Uses of Class
org.apache.lucene.store.Directory
-
Packages that use Directory Package Description org.apache.lucene.analysis.hunspell Stemming TokenFilter using a Java implementation of the Hunspell stemming algorithm.org.apache.lucene.classification.utils Utilities for evaluation, data preparation, etc.org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.compressing StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.org.apache.lucene.codecs.lucene50 Components from the Lucene 5.0 index format Seeorg.apache.lucene.codecs.lucene80for an overview of the index format.org.apache.lucene.codecs.lucene60 Components from the Lucene 6.0 index format.org.apache.lucene.codecs.lucene70 Components from the Lucene 7.0 index format.org.apache.lucene.codecs.lucene86 Lucene 8.6 file format.org.apache.lucene.codecs.lucene87 Lucene 8.7 file format.org.apache.lucene.codecs.simpletext Simpletext Codec: writes human readable postings.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.misc Miscellaneous index tools.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.search Code to search indices.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.analyzing Analyzer based autosuggest.org.apache.lucene.search.suggest.fst Finite-state based autosuggest.org.apache.lucene.search.suggest.tst Ternary Search Tree based autosuggest.org.apache.lucene.store Binary i/o API, used for all index data.org.apache.lucene.util Some utility classes.org.apache.lucene.util.bkd Block KD-tree, implementing the generic spatial data structure described in this paper. -
-
Uses of Directory in org.apache.lucene.analysis.hunspell
Methods in org.apache.lucene.analysis.hunspell with parameters of type Directory Modifier and Type Method Description private voidDictionary. readDictionaryFiles(Directory tempDir, java.lang.String tempFileNamePrefix, java.util.List<java.io.InputStream> dictionaries, java.nio.charset.CharsetDecoder decoder, Builder<IntsRef> words)Reads the dictionary file through the provided InputStreams, building up the words mapConstructors in org.apache.lucene.analysis.hunspell with parameters of type Directory Constructor Description Dictionary(Directory tempDir, java.lang.String tempFileNamePrefix, java.io.InputStream affix, java.io.InputStream dictionary)Creates a new Dictionary containing the information read from the provided InputStreams to hunspell affix and dictionary files.Dictionary(Directory tempDir, java.lang.String tempFileNamePrefix, java.io.InputStream affix, java.util.List<java.io.InputStream> dictionaries, boolean ignoreCase)Creates a new Dictionary containing the information read from the provided InputStreams to hunspell affix and dictionary files. -
Uses of Directory in org.apache.lucene.classification.utils
Methods in org.apache.lucene.classification.utils with parameters of type Directory Modifier and Type Method Description voidDatasetSplitter. split(IndexReader originalIndex, Directory trainingIndex, Directory testIndex, Directory crossValidationIndex, Analyzer analyzer, boolean termVectors, java.lang.String classFieldName, java.lang.String... fieldNames)Split a given index into 3 indexes for training, test and cross validation tasks respectively -
Uses of Directory in org.apache.lucene.codecs
Subclasses of Directory in org.apache.lucene.codecs Modifier and Type Class Description classCompoundDirectoryA read-onlyDirectorythat consists of a view over a compound file.Methods in org.apache.lucene.codecs with parameters of type Directory Modifier and Type Method Description abstract StoredFieldsReaderStoredFieldsFormat. fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)Returns aStoredFieldsReaderto load stored fields.abstract StoredFieldsWriterStoredFieldsFormat. fieldsWriter(Directory directory, SegmentInfo si, IOContext context)Returns aStoredFieldsWriterto write stored fields.abstract CompoundDirectoryCompoundFormat. getCompoundReader(Directory dir, SegmentInfo si, IOContext context)Returns a Directory view (read-only) for the compound files in this segmentabstract FieldInfosFieldInfosFormat. read(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext iocontext)abstract SegmentInfoSegmentInfoFormat. read(Directory directory, java.lang.String segmentName, byte[] segmentID, IOContext context)ReadSegmentInfodata from a directory.abstract BitsLiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)Read live docs bits.abstract TermVectorsReaderTermVectorsFormat. vectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context)Returns aTermVectorsReaderto read term vectors.abstract TermVectorsWriterTermVectorsFormat. vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context)Returns aTermVectorsWriterto write term vectors.abstract voidCompoundFormat. write(Directory dir, SegmentInfo si, IOContext context)Packs the provided segment's files into a compound format.abstract voidFieldInfosFormat. write(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context)Writes the providedFieldInfosto the directory.abstract voidSegmentInfoFormat. write(Directory dir, SegmentInfo info, IOContext ioContext)WriteSegmentInfodata.abstract voidLiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)Persist live docs bits. -
Uses of Directory in org.apache.lucene.codecs.compressing
Fields in org.apache.lucene.codecs.compressing declared as Directory Modifier and Type Field Description private DirectoryFieldsIndexWriter. dirMethods in org.apache.lucene.codecs.compressing with parameters of type Directory Modifier and Type Method Description StoredFieldsReaderCompressingStoredFieldsFormat. fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)StoredFieldsWriterCompressingStoredFieldsFormat. fieldsWriter(Directory directory, SegmentInfo si, IOContext context)TermVectorsReaderCompressingTermVectorsFormat. vectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context)TermVectorsWriterCompressingTermVectorsFormat. vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context)Constructors in org.apache.lucene.codecs.compressing with parameters of type Directory Constructor Description CompressingStoredFieldsReader(Directory d, SegmentInfo si, java.lang.String segmentSuffix, FieldInfos fn, IOContext context, java.lang.String formatName, CompressionMode compressionMode)Sole constructor.CompressingStoredFieldsWriter(Directory directory, SegmentInfo si, java.lang.String segmentSuffix, IOContext context, java.lang.String formatName, CompressionMode compressionMode, int chunkSize, int maxDocsPerChunk, int blockShift)Sole constructor.CompressingTermVectorsReader(Directory d, SegmentInfo si, java.lang.String segmentSuffix, FieldInfos fn, IOContext context, java.lang.String formatName, CompressionMode compressionMode)Sole constructor.CompressingTermVectorsWriter(Directory directory, SegmentInfo si, java.lang.String segmentSuffix, IOContext context, java.lang.String formatName, CompressionMode compressionMode, int chunkSize, int blockShift)Sole constructor.FieldsIndexReader(Directory dir, java.lang.String name, java.lang.String suffix, java.lang.String extension, java.lang.String codecName, byte[] id, IndexInput metaIn)FieldsIndexWriter(Directory dir, java.lang.String name, java.lang.String suffix, java.lang.String extension, java.lang.String codecName, byte[] id, int blockShift, IOContext ioContext) -
Uses of Directory in org.apache.lucene.codecs.lucene50
Subclasses of Directory in org.apache.lucene.codecs.lucene50 Modifier and Type Class Description (package private) classLucene50CompoundReaderClass for accessing a compound stream.Fields in org.apache.lucene.codecs.lucene50 declared as Directory Modifier and Type Field Description private DirectoryLucene50CompoundReader. directoryMethods in org.apache.lucene.codecs.lucene50 with parameters of type Directory Modifier and Type Method Description StoredFieldsReaderLucene50StoredFieldsFormat. fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)StoredFieldsWriterLucene50StoredFieldsFormat. fieldsWriter(Directory directory, SegmentInfo si, IOContext context)CompoundDirectoryLucene50CompoundFormat. getCompoundReader(Directory dir, SegmentInfo si, IOContext context)FieldInfosLucene50FieldInfosFormat. read(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext context)private java.util.Map<java.lang.String,Lucene50CompoundReader.FileEntry>Lucene50CompoundReader. readEntries(byte[] segmentID, Directory dir, java.lang.String entriesFileName)Helper method that reads CFS entries from an input streamBitsLucene50LiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)voidLucene50CompoundFormat. write(Directory dir, SegmentInfo si, IOContext context)voidLucene50FieldInfosFormat. write(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context)voidLucene50LiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)Constructors in org.apache.lucene.codecs.lucene50 with parameters of type Directory Constructor Description Lucene50CompoundReader(Directory directory, SegmentInfo si, IOContext context)Create a new CompoundFileDirectory. -
Uses of Directory in org.apache.lucene.codecs.lucene60
Methods in org.apache.lucene.codecs.lucene60 with parameters of type Directory Modifier and Type Method Description FieldInfosLucene60FieldInfosFormat. read(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext context)voidLucene60FieldInfosFormat. write(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context) -
Uses of Directory in org.apache.lucene.codecs.lucene70
Methods in org.apache.lucene.codecs.lucene70 with parameters of type Directory Modifier and Type Method Description SegmentInfoLucene70SegmentInfoFormat. read(Directory dir, java.lang.String segment, byte[] segmentID, IOContext context)voidLucene70SegmentInfoFormat. write(Directory dir, SegmentInfo si, IOContext ioContext) -
Uses of Directory in org.apache.lucene.codecs.lucene86
Methods in org.apache.lucene.codecs.lucene86 with parameters of type Directory Modifier and Type Method Description SegmentInfoLucene86SegmentInfoFormat. read(Directory dir, java.lang.String segment, byte[] segmentID, IOContext context)voidLucene86SegmentInfoFormat. write(Directory dir, SegmentInfo si, IOContext ioContext) -
Uses of Directory in org.apache.lucene.codecs.lucene87
Methods in org.apache.lucene.codecs.lucene87 with parameters of type Directory Modifier and Type Method Description StoredFieldsReaderLucene87StoredFieldsFormat. fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)StoredFieldsWriterLucene87StoredFieldsFormat. fieldsWriter(Directory directory, SegmentInfo si, IOContext context) -
Uses of Directory in org.apache.lucene.codecs.simpletext
Methods in org.apache.lucene.codecs.simpletext with parameters of type Directory Modifier and Type Method Description StoredFieldsReaderSimpleTextStoredFieldsFormat. fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)StoredFieldsWriterSimpleTextStoredFieldsFormat. fieldsWriter(Directory directory, SegmentInfo si, IOContext context)CompoundDirectorySimpleTextCompoundFormat. getCompoundReader(Directory dir, SegmentInfo si, IOContext context)FieldInfosSimpleTextFieldInfosFormat. read(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext iocontext)SegmentInfoSimpleTextSegmentInfoFormat. read(Directory directory, java.lang.String segmentName, byte[] segmentID, IOContext context)BitsSimpleTextLiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)TermVectorsReaderSimpleTextTermVectorsFormat. vectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context)TermVectorsWriterSimpleTextTermVectorsFormat. vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context)voidSimpleTextCompoundFormat. write(Directory dir, SegmentInfo si, IOContext context)voidSimpleTextFieldInfosFormat. write(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context)voidSimpleTextSegmentInfoFormat. write(Directory dir, SegmentInfo si, IOContext ioContext)voidSimpleTextLiveDocsFormat. writeLiveDocs(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)Constructors in org.apache.lucene.codecs.simpletext with parameters of type Directory Constructor Description SimpleTextBKDWriter(int maxDoc, Directory tempDir, java.lang.String tempFileNamePrefix, BKDConfig config, double maxMBSortInHeap, long totalPointCount)SimpleTextStoredFieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context)SimpleTextStoredFieldsWriter(Directory directory, java.lang.String segment, IOContext context)SimpleTextTermVectorsReader(Directory directory, SegmentInfo si, IOContext context)SimpleTextTermVectorsWriter(Directory directory, java.lang.String segment, IOContext context) -
Uses of Directory in org.apache.lucene.index
Subclasses of Directory in org.apache.lucene.index Modifier and Type Class Description (package private) classTrackingTmpOutputDirectoryWrapperFields in org.apache.lucene.index declared as Directory Modifier and Type Field Description private DirectoryCheckIndex. dirDirectoryCheckIndex.Status. dirDirectory index is in.private DirectoryIndexUpgrader. dirprivate DirectoryPersistentSnapshotDeletionPolicy. dirDirectorySegmentInfo. dirWhere this segment resides.(package private) DirectoryStandardDirectoryReader.ReaderCommit. dirprivate DirectoryPKIndexSplitter. dir1private DirectoryPKIndexSplitter. dir2protected DirectoryDirectoryReader. directoryThe index directory.private DirectoryIndexFileDeleter. directoryprivate DirectoryIndexWriter. directoryprivate DirectoryReaderPool. directory(package private) DirectorySegmentInfos.FindSegmentsFile. directoryprivate DirectorySegmentMerger. directoryDirectorySegmentReadState. directoryDirectorywhere this segment is read from.DirectorySegmentWriteState. directoryDirectorywhere this segment will be written to.(package private) DirectoryStoredFieldsConsumer. directoryprotected DirectoryTermVectorsConsumer. directory(package private) DirectoryIndexFileDeleter.CommitPoint. directoryOrigprivate DirectoryIndexFileDeleter. directoryOrigprivate DirectoryIndexWriter. directoryOrigprivate DirectoryPKIndexSplitter. inputprivate DirectoryReaderPool. originalDirectoryMethods in org.apache.lucene.index that return Directory Modifier and Type Method Description DirectoryDirectoryReader. directory()Returns the directory this index resides in.DirectorySegmentReader. directory()Returns the directory this index resides in.abstract DirectoryIndexCommit. getDirectory()Returns theDirectoryfor the index.DirectoryIndexFileDeleter.CommitPoint. getDirectory()DirectoryIndexWriter. getDirectory()Returns the Directory used by this index.DirectorySnapshotDeletionPolicy.SnapshotCommitPoint. getDirectory()DirectoryStandardDirectoryReader.ReaderCommit. getDirectory()DirectoryConcurrentMergeScheduler. wrapForMerge(MergePolicy.OneMerge merge, Directory in)DirectoryMergeScheduler. wrapForMerge(MergePolicy.OneMerge merge, Directory in)Wraps the incomingDirectoryso that we can merge-throttle it usingRateLimitedIndexOutput.DirectoryNoMergeScheduler. wrapForMerge(MergePolicy.OneMerge merge, Directory in)Methods in org.apache.lucene.index with parameters of type Directory Modifier and Type Method Description private java.util.List<Lock>IndexWriter. acquireWriteLocks(Directory... dirs)Acquires write locks on all the directories; be sure to match with a call toIOUtils.close(java.io.Closeable...)in a finally clause.longIndexWriter. addIndexes(Directory... dirs)Adds all segments from an array of indexes into this index.voidSegmentInfos. commit(Directory dir)Writes and syncs to the Directory dir, taking care to remove the segments file on exceptionprivate voidPKIndexSplitter. createIndex(IndexWriterConfig config, Directory target, DirectoryReader reader, Query preserveFilter, boolean negateFilter)(package private) java.lang.StringSegmentInfos. finishCommit(Directory dir)Returns the committed segments_N filename.(package private) abstract DocConsumerDocumentsWriterPerThread.IndexingChain. getChain(int indexCreatedVersionMajor, SegmentInfo segmentInfo, Directory directory, FieldInfos.Builder fieldInfos, LiveIndexWriterConfig indexWriterConfig, java.util.function.Consumer<java.lang.Throwable> abortingExceptionConsumer)(package private) DocValuesProducerSegmentDocValues. getDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos)Returns theDocValuesProducerfor the given generation.static longSegmentInfos. getLastCommitGeneration(Directory directory)Get the generation of the most recent commit to the index in this directory (N in the segments_N file).static java.lang.StringSegmentInfos. getLastCommitSegmentsFileName(Directory directory)Get the filename of the segments_N file for the most recent commit to the index in this Directory.private voidReadersAndUpdates. handleDVUpdates(FieldInfos infos, Directory dir, DocValuesFormat dvFormat, SegmentReader reader, java.util.Map<java.lang.Integer,java.util.Set<java.lang.String>> fieldFiles, long maxDelGen, InfoStream infoStream)static booleanDirectoryReader. indexExists(Directory directory)Returnstrueif an index likely exists at the specified directory.private voidConcurrentMergeScheduler. initDynamicDefaults(Directory directory)(package private) voidConcurrentMergeScheduler. initialize(InfoStream infoStream, Directory directory)(package private) voidMergeScheduler. initialize(InfoStream infoStream, Directory directory)IndexWriter calls this on init.static java.util.List<IndexCommit>DirectoryReader. listCommits(Directory dir)Returns all commit points that exist in the Directory.private RefCount<DocValuesProducer>SegmentDocValues. newDocValuesProducer(SegmentCommitInfo si, Directory dir, java.lang.Long gen, FieldInfos infos)private voidIndexWriter. noDupDirs(Directory... dirs)static DirectoryReaderDirectoryReader. open(Directory directory)Returns a IndexReader reading the index in the given Directory(package private) static DirectoryReaderStandardDirectoryReader. open(Directory directory, IndexCommit commit)called from DirectoryReader.open(...) methodsstatic DirectoryReaderStandardDirectoryReader. open(Directory directory, SegmentInfos infos, java.util.List<? extends LeafReader> oldReaders)This constructor is only used forStandardDirectoryReader.doOpenIfChanged(SegmentInfos), as well as NRT replication.(package private) voidSegmentInfos. prepareCommit(Directory dir)Call this to start a commit.static SegmentInfosSegmentInfos. readCommit(Directory directory, java.lang.String segmentFileName)Read a particular segmentFileName.static SegmentInfosSegmentInfos. readCommit(Directory directory, ChecksumIndexInput input, long generation)Read the commit from the providedChecksumIndexInput.static SegmentInfosSegmentInfos. readLatestCommit(Directory directory)Find the latest commit (segments_N file) and load allSegmentCommitInfos.(package private) voidSegmentInfos. rollbackCommit(Directory dir)java.lang.StringMergePolicy.MergeSpecification. segString(Directory dir)Returns a description of the merges in this specification.voidMultiPassIndexSplitter. split(IndexReader in, Directory[] outputs, boolean seq)Split source index into multiple parts.DirectoryConcurrentMergeScheduler. wrapForMerge(MergePolicy.OneMerge merge, Directory in)DirectoryMergeScheduler. wrapForMerge(MergePolicy.OneMerge merge, Directory in)Wraps the incomingDirectoryso that we can merge-throttle it usingRateLimitedIndexOutput.DirectoryNoMergeScheduler. wrapForMerge(MergePolicy.OneMerge merge, Directory in)private voidSegmentInfos. write(Directory directory)private java.util.Set<java.lang.String>ReadersAndUpdates. writeFieldInfosGen(FieldInfos fieldInfos, Directory dir, FieldInfosFormat infosFormat)booleanReadersAndUpdates. writeFieldUpdates(Directory dir, FieldInfos.FieldNumbers fieldNumbers, long maxDelGen, InfoStream infoStream)(package private) booleanPendingDeletes. writeLiveDocs(Directory dir)Writes the live docs to disk and returnstrueif any new docs were written.(package private) booleanPendingSoftDeletes. writeLiveDocs(Directory dir)booleanReadersAndUpdates. writeLiveDocs(Directory dir)Constructors in org.apache.lucene.index with parameters of type Directory Constructor Description CheckIndex(Directory dir)Create a new CheckIndex on the directory.CheckIndex(Directory dir, Lock writeLock)Expert: create a directory with the specified lock.CommitPoint(java.util.Collection<IndexFileDeleter.CommitPoint> commitsToDelete, Directory directoryOrig, SegmentInfos segmentInfos)DefaultIndexingChain(int indexCreatedVersionMajor, SegmentInfo segmentInfo, Directory directory, FieldInfos.Builder fieldInfos, LiveIndexWriterConfig indexWriterConfig, java.util.function.Consumer<java.lang.Throwable> abortingExceptionConsumer)DirectoryReader(Directory directory, LeafReader[] segmentReaders)Expert: Constructs aDirectoryReaderon the given subReaders.DocumentsWriter(DocumentsWriter.FlushNotifications flushNotifications, int indexCreatedVersionMajor, java.util.concurrent.atomic.AtomicLong pendingNumDocs, boolean enableTestPoints, java.util.function.Supplier<java.lang.String> segmentNameSupplier, LiveIndexWriterConfig config, Directory directoryOrig, Directory directory, FieldInfos.FieldNumbers globalFieldNumberMap)DocumentsWriterPerThread(int indexVersionCreated, java.lang.String segmentName, Directory directoryOrig, Directory directory, LiveIndexWriterConfig indexWriterConfig, DocumentsWriterDeleteQueue deleteQueue, FieldInfos.Builder fieldInfos, java.util.concurrent.atomic.AtomicLong pendingNumDocs, boolean enableTestPoints)FindSegmentsFile(Directory directory)Sole constructor.IndexFileDeleter(java.lang.String[] files, Directory directoryOrig, Directory directory, IndexDeletionPolicy policy, SegmentInfos segmentInfos, InfoStream infoStream, IndexWriter writer, boolean initialIndexExists, boolean isReaderInit)Initialize the deleter: find all previous commits in the Directory, incref the files they reference, call the policy to let it delete commits.IndexUpgrader(Directory dir)Creates index upgrader on the given directory, using anIndexWriterusing the givenmatchVersion.IndexUpgrader(Directory dir, IndexWriterConfig iwc, boolean deletePriorCommits)Creates index upgrader on the given directory, using anIndexWriterusing the given config.IndexUpgrader(Directory dir, InfoStream infoStream, boolean deletePriorCommits)Creates index upgrader on the given directory, using anIndexWriterusing the givenmatchVersion.IndexWriter(Directory d, IndexWriterConfig conf)Constructs a new IndexWriter per the settings given inconf.PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir)PersistentSnapshotDeletionPolicywraps anotherIndexDeletionPolicyto enable flexible snapshotting, passingIndexWriterConfig.OpenMode.CREATE_OR_APPENDby default.PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir, IndexWriterConfig.OpenMode mode)PersistentSnapshotDeletionPolicywraps anotherIndexDeletionPolicyto enable flexible snapshotting.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm)Split an index based on a given primary key term and a 'middle' term.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm, IndexWriterConfig config1, IndexWriterConfig config2)PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Query docsInFirstIndex)Split an index based on aQuery.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Query docsInFirstIndex, IndexWriterConfig config1, IndexWriterConfig config2)ReaderCommit(StandardDirectoryReader reader, SegmentInfos infos, Directory dir)ReaderManager(Directory dir)Creates and returns a new ReaderManager from the givenDirectory.ReaderPool(Directory directory, Directory originalDirectory, SegmentInfos segmentInfos, FieldInfos.FieldNumbers fieldNumbers, java.util.function.LongSupplier completedDelGenSupplier, InfoStream infoStream, java.lang.String softDeletesField, StandardDirectoryReader reader)SegmentCoreReaders(Directory dir, SegmentCommitInfo si, IOContext context)SegmentDocValuesProducer(SegmentCommitInfo si, Directory dir, FieldInfos coreInfos, FieldInfos allInfos, SegmentDocValues segDocValues)Creates a new producer that handles updated docvalues fieldsSegmentInfo(Directory dir, Version version, Version minVersion, java.lang.String name, int maxDoc, boolean isCompoundFile, Codec codec, java.util.Map<java.lang.String,java.lang.String> diagnostics, byte[] id, java.util.Map<java.lang.String,java.lang.String> attributes, Sort indexSort)Construct a new complete SegmentInfo instance from input.SegmentMerger(java.util.List<CodecReader> readers, SegmentInfo segmentInfo, InfoStream infoStream, Directory dir, FieldInfos.FieldNumbers fieldNumbers, IOContext context)SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context)Create aSegmentReadState.SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, java.lang.String segmentSuffix)Create aSegmentReadState.SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, BufferedUpdates segUpdates, IOContext context)Sole constructor.SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, BufferedUpdates segUpdates, IOContext context, java.lang.String segmentSuffix)Constructor which takes segment suffix.SortingStoredFieldsConsumer(Codec codec, Directory directory, SegmentInfo info)SortingTermVectorsConsumer(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec)StandardDirectoryReader(Directory directory, LeafReader[] readers, IndexWriter writer, SegmentInfos sis, boolean applyAllDeletes, boolean writeAllDeletes)called only from static open() methodsStoredFieldsConsumer(Codec codec, Directory directory, SegmentInfo info)TermVectorsConsumer(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec)TrackingTmpOutputDirectoryWrapper(Directory in) -
Uses of Directory in org.apache.lucene.misc
Methods in org.apache.lucene.misc with parameters of type Directory Modifier and Type Method Description static voidGetTermInfo. getTermInfo(Directory dir, Term term) -
Uses of Directory in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as Directory Modifier and Type Field Description private DirectoryDocumentBatch.MultiDocumentBatch. directory -
Uses of Directory in org.apache.lucene.search
Constructors in org.apache.lucene.search with parameters of type Directory Constructor Description SearcherManager(Directory dir, SearcherFactory searcherFactory)Creates and returns a new SearcherManager from the givenDirectory. -
Uses of Directory in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as Directory Modifier and Type Field Description (package private) DirectorySpellChecker. spellIndexthe spell indexMethods in org.apache.lucene.search.spell with parameters of type Directory Modifier and Type Method Description (package private) IndexSearcherSpellChecker. createSearcher(Directory dir)Creates a new read-only IndexSearchervoidSpellChecker. setSpellIndex(Directory spellIndexDir)Use a different index as the spell checker index or re-open the existing index ifspellIndexis the same value as given in the constructor.private voidSpellChecker. swapSearcher(Directory dir)Constructors in org.apache.lucene.search.spell with parameters of type Directory Constructor Description SpellChecker(Directory spellIndex)Use the given directory as a spell checker index with aLevenshteinDistanceas the defaultStringDistance.SpellChecker(Directory spellIndex, StringDistance sd)Use the given directory as a spell checker index.SpellChecker(Directory spellIndex, StringDistance sd, java.util.Comparator<SuggestWord> comparator)Use the given directory as a spell checker index with the givenStringDistancemeasure and the givenComparatorfor sorting the results. -
Uses of Directory in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest declared as Directory Modifier and Type Field Description private DirectorySortedInputIterator. tempDirConstructors in org.apache.lucene.search.suggest with parameters of type Directory Constructor Description SortedInputIterator(Directory tempDir, java.lang.String tempFileNamePrefix, InputIterator source)Creates a new sorted wrapper, using natural order for sorting.SortedInputIterator(Directory tempDir, java.lang.String tempFileNamePrefix, InputIterator source, java.util.Comparator<BytesRef> comparator)Creates a new sorted wrapper, sorting by BytesRef (ascending) then cost (ascending). -
Uses of Directory in org.apache.lucene.search.suggest.analyzing
Fields in org.apache.lucene.search.suggest.analyzing declared as Directory Modifier and Type Field Description private DirectoryAnalyzingInfixSuggester. dirprivate DirectoryAnalyzingSuggester. tempDirMethods in org.apache.lucene.search.suggest.analyzing that return Directory Modifier and Type Method Description protected DirectoryAnalyzingInfixSuggester. getDirectory(java.nio.file.Path path)Subclass can override to choose a specificDirectoryimplementation.Constructors in org.apache.lucene.search.suggest.analyzing with parameters of type Directory Constructor Description AnalyzingInfixSuggester(Directory dir, Analyzer analyzer)Create a new instance, loading from a previously built AnalyzingInfixSuggester directory, if it exists.AnalyzingInfixSuggester(Directory dir, Analyzer indexAnalyzer, Analyzer queryAnalyzer, int minPrefixChars, boolean commitOnBuild)Create a new instance, loading from a previously built AnalyzingInfixSuggester directory, if it exists.AnalyzingInfixSuggester(Directory dir, Analyzer indexAnalyzer, Analyzer queryAnalyzer, int minPrefixChars, boolean commitOnBuild, boolean allTermsRequired, boolean highlight)Create a new instance, loading from a previously built AnalyzingInfixSuggester directory, if it exists.AnalyzingInfixSuggester(Directory dir, Analyzer indexAnalyzer, Analyzer queryAnalyzer, int minPrefixChars, boolean commitOnBuild, boolean allTermsRequired, boolean highlight, boolean closeIndexWriterOnBuild)Create a new instance, loading from a previously built AnalyzingInfixSuggester directory, if it exists.AnalyzingSuggester(Directory tempDir, java.lang.String tempFileNamePrefix, Analyzer analyzer)AnalyzingSuggester(Directory tempDir, java.lang.String tempFileNamePrefix, Analyzer indexAnalyzer, Analyzer queryAnalyzer)AnalyzingSuggester(Directory tempDir, java.lang.String tempFileNamePrefix, Analyzer indexAnalyzer, Analyzer queryAnalyzer, int options, int maxSurfaceFormsPerAnalyzedForm, int maxGraphExpansions, boolean preservePositionIncrements)Creates a new suggester.BlendedInfixSuggester(Directory dir, Analyzer analyzer)Create a new instance, loading from a previously built directory, if it exists.BlendedInfixSuggester(Directory dir, Analyzer indexAnalyzer, Analyzer queryAnalyzer, int minPrefixChars, BlendedInfixSuggester.BlenderType blenderType, int numFactor, boolean commitOnBuild)Create a new instance, loading from a previously built directory, if it exists.BlendedInfixSuggester(Directory dir, Analyzer indexAnalyzer, Analyzer queryAnalyzer, int minPrefixChars, BlendedInfixSuggester.BlenderType blenderType, int numFactor, java.lang.Double exponent, boolean commitOnBuild, boolean allTermsRequired, boolean highlight)Create a new instance, loading from a previously built directory, if it exists.FuzzySuggester(Directory tempDir, java.lang.String tempFileNamePrefix, Analyzer analyzer)Creates aFuzzySuggesterinstance initialized with default values.FuzzySuggester(Directory tempDir, java.lang.String tempFileNamePrefix, Analyzer indexAnalyzer, Analyzer queryAnalyzer)Creates aFuzzySuggesterinstance with an index and query analyzer initialized with default values.FuzzySuggester(Directory tempDir, java.lang.String tempFileNamePrefix, Analyzer indexAnalyzer, Analyzer queryAnalyzer, int options, int maxSurfaceFormsPerAnalyzedForm, int maxGraphExpansions, boolean preservePositionIncrements, int maxEdits, boolean transpositions, int nonFuzzyPrefix, int minFuzzyLength, boolean unicodeAware)Creates aFuzzySuggesterinstance. -
Uses of Directory in org.apache.lucene.search.suggest.fst
Fields in org.apache.lucene.search.suggest.fst declared as Directory Modifier and Type Field Description private DirectoryFSTCompletionLookup. tempDirprivate DirectoryWFSTCompletionLookup. tempDirConstructors in org.apache.lucene.search.suggest.fst with parameters of type Directory Constructor Description FSTCompletionLookup(Directory tempDir, java.lang.String tempFileNamePrefix)This constructor prepares for creating a suggested FST using theFSTCompletionLookup.build(InputIterator)method.FSTCompletionLookup(Directory tempDir, java.lang.String tempFileNamePrefix, int buckets, boolean exactMatchFirst)This constructor prepares for creating a suggested FST using theFSTCompletionLookup.build(InputIterator)method.FSTCompletionLookup(Directory tempDir, java.lang.String tempFileNamePrefix, FSTCompletion completion, boolean exactMatchFirst)This constructor takes a pre-built automaton.WFSTCompletionLookup(Directory tempDir, java.lang.String tempFileNamePrefix)WFSTCompletionLookup(Directory tempDir, java.lang.String tempFileNamePrefix, boolean exactFirst)Creates a new suggester.WFSTInputIterator(Directory tempDir, java.lang.String tempFileNamePrefix, InputIterator source) -
Uses of Directory in org.apache.lucene.search.suggest.tst
Fields in org.apache.lucene.search.suggest.tst declared as Directory Modifier and Type Field Description private DirectoryTSTLookup. tempDirConstructors in org.apache.lucene.search.suggest.tst with parameters of type Directory Constructor Description TSTLookup(Directory tempDir, java.lang.String tempFileNamePrefix)Creates a new TSTLookup, for building. -
Uses of Directory in org.apache.lucene.store
Subclasses of Directory in org.apache.lucene.store Modifier and Type Class Description classBaseDirectoryBase implementation for a concreteDirectorythat uses aLockFactoryfor locking.classByteBuffersDirectoryAByteBuffer-basedDirectoryimplementation that can be used to store index files on the heap.classFileSwitchDirectoryExpert: A Directory instance that switches files between two other Directory instances.classFilterDirectoryDirectory implementation that delegates calls to another directory.classFSDirectoryBase class for Directory implementations that store index files in the file system.classHardlinkCopyDirectoryWrapperThis directory wrapper overridescopyFrom(Directory, String, String, IOContext)in order to optionally use a hard-link instead of a full byte by byte file copy if applicable.classLockValidatingDirectoryWrapperThis class makes a best-effort check that a providedLockis valid before any destructive filesystem operation.classMMapDirectoryFile-basedDirectoryimplementation that uses mmap for reading, andFSDirectory.FSIndexOutputfor writing.classNativeUnixDirectoryADirectoryimplementation for all Unixes that uses DIRECT I/O to bypass OS level IO caching during merging.classNIOFSDirectoryAnFSDirectoryimplementation that uses java.nio's FileChannel's positional read, which allows multiple threads to read from the same file without synchronizing.classNRTCachingDirectoryWraps aRAMDirectoryaround any provided delegate directory, to be used during NRT search.classRAFDirectoryA straightforward implementation ofFSDirectoryusing java.io.RandomAccessFile.classRAMDirectoryDeprecated.This class uses inefficient synchronization and is discouraged in favor ofMMapDirectory.classSimpleFSDirectoryDeprecated.This class is a less efficient implementation of what's available inNIOFSDirectory, and will be removed in future versions of Lucene.classSleepingLockWrapperDirectory that wraps another, and that sleeps and retries if obtaining the lock fails.classTrackingDirectoryWrapperA delegating Directory that records which files were written to and deleted.classWindowsDirectoryNativeDirectoryimplementation for Microsoft Windows.Fields in org.apache.lucene.store declared as Directory Modifier and Type Field Description private DirectoryNativeUnixDirectory. delegateprotected DirectoryFilterDirectory. inprivate DirectoryFileSwitchDirectory. primaryDirprivate DirectoryFileSwitchDirectory. secondaryDirMethods in org.apache.lucene.store that return Directory Modifier and Type Method Description DirectoryFilterDirectory. getDelegate()Return the wrappedDirectory.private DirectoryFileSwitchDirectory. getDirectory(java.lang.String name)DirectoryFileSwitchDirectory. getPrimaryDir()Return the primary directoryDirectoryFileSwitchDirectory. getSecondaryDir()Return the secondary directorystatic DirectoryFilterDirectory. unwrap(Directory dir)Get the wrapped instance bydiras long as this reader is an instance ofFilterDirectory.Methods in org.apache.lucene.store with parameters of type Directory Modifier and Type Method Description voidDirectory. copyFrom(Directory from, java.lang.String src, java.lang.String dest, IOContext context)Copies an existingsrcfile from directoryfromto a non-existent filedestin this directory.voidHardlinkCopyDirectoryWrapper. copyFrom(Directory from, java.lang.String srcFile, java.lang.String destFile, IOContext context)voidLockValidatingDirectoryWrapper. copyFrom(Directory from, java.lang.String src, java.lang.String dest, IOContext context)voidTrackingDirectoryWrapper. copyFrom(Directory from, java.lang.String src, java.lang.String dest, IOContext context)LockFSLockFactory. obtainLock(Directory dir, java.lang.String lockName)abstract LockLockFactory. obtainLock(Directory dir, java.lang.String lockName)Return a new obtained Lock instance identified by lockName.LockNoLockFactory. obtainLock(Directory dir, java.lang.String lockName)LockSingleInstanceLockFactory. obtainLock(Directory dir, java.lang.String lockName)LockVerifyingLockFactory. obtainLock(Directory dir, java.lang.String lockName)(package private) static booleanNRTCachingDirectory. slowFileExists(Directory dir, java.lang.String fileName)Returns true if the file exists (can be opened), false if it cannot be opened, and (unlike Java's File.exists) throws IOException if there's some unexpected error.static DirectoryFilterDirectory. unwrap(Directory dir)Get the wrapped instance bydiras long as this reader is an instance ofFilterDirectory.Constructors in org.apache.lucene.store with parameters of type Directory Constructor Description FileSwitchDirectory(java.util.Set<java.lang.String> primaryExtensions, Directory primaryDir, Directory secondaryDir, boolean doClose)FilterDirectory(Directory in)Sole constructor, typically called from sub-classes.HardlinkCopyDirectoryWrapper(Directory in)Creates a new HardlinkCopyDirectoryWrapper delegating to the given directoryLockValidatingDirectoryWrapper(Directory in, Lock writeLock)NativeUnixDirectory(java.nio.file.Path path, int mergeBufferSize, long minBytesDirect, LockFactory lockFactory, Directory delegate)Create a new NIOFSDirectory for the named location.NativeUnixDirectory(java.nio.file.Path path, Directory delegate)Create a new NIOFSDirectory for the named location withFSLockFactory.getDefault().NativeUnixDirectory(java.nio.file.Path path, LockFactory lockFactory, Directory delegate)Create a new NIOFSDirectory for the named location.NRTCachingDirectory(Directory delegate, double maxMergeSizeMB, double maxCachedMB)We will cache a newly created output if 1) it's a flush or a merge and the estimated size of the merged segment is<= maxMergeSizeMB, and 2) the total cached bytes is<= maxCachedMBSleepingLockWrapper(Directory delegate, long lockWaitTimeout)Create a new SleepingLockFactorySleepingLockWrapper(Directory delegate, long lockWaitTimeout, long pollInterval)Create a new SleepingLockFactoryTrackingDirectoryWrapper(Directory in) -
Uses of Directory in org.apache.lucene.util
Fields in org.apache.lucene.util declared as Directory Modifier and Type Field Description private DirectoryOfflineSorter. dirprivate DirectoryOfflineSorter.MergePartitionsTask. dirprivate DirectoryOfflineSorter.SortPartitionTask. dirMethods in org.apache.lucene.util that return Directory Modifier and Type Method Description DirectoryOfflineSorter. getDirectory()Returns theDirectorywe use to create temp files.Methods in org.apache.lucene.util that return types with arguments of type Directory Modifier and Type Method Description static java.lang.Class<? extends Directory>CommandLineUtil. loadDirectoryClass(java.lang.String clazzName)Loads a specific Directory implementationMethods in org.apache.lucene.util with parameters of type Directory Modifier and Type Method Description static voidIOUtils. deleteFiles(Directory dir, java.util.Collection<java.lang.String> names)Deletes all given file names.static voidIOUtils. deleteFilesIgnoringExceptions(Directory dir, java.lang.String... files)static voidIOUtils. deleteFilesIgnoringExceptions(Directory dir, java.util.Collection<java.lang.String> files)Deletes all given files, suppressing all thrown IOExceptions.(package private) voidOfflineSorter. mergePartitions(Directory trackingDir, java.util.List<java.util.concurrent.Future<OfflineSorter.Partition>> segments)Merge the most recentmaxTempFilepartitions into a new partition.static booleanIOUtils. spins(Directory dir)If the dir is anFSDirectoryor wraps one via possibly nestedFilterDirectoryorFileSwitchDirectory, this returnsIOUtils.spins(Path)for the wrapped directory, else, true.Constructors in org.apache.lucene.util with parameters of type Directory Constructor Description MergePartitionsTask(Directory dir, java.util.List<java.util.concurrent.Future<OfflineSorter.Partition>> segmentsToMerge)OfflineSorter(Directory dir, java.lang.String tempFileNamePrefix)Defaults constructor.OfflineSorter(Directory dir, java.lang.String tempFileNamePrefix, java.util.Comparator<BytesRef> comparator)Defaults constructor with a custom comparator.OfflineSorter(Directory dir, java.lang.String tempFileNamePrefix, java.util.Comparator<BytesRef> comparator, OfflineSorter.BufferSize ramBufferSize, int maxTempfiles, int valueLength, java.util.concurrent.ExecutorService exec, int maxPartitionsInRAM)All-details constructor.SortPartitionTask(Directory dir, OfflineSorter.Partition part) -
Uses of Directory in org.apache.lucene.util.bkd
Fields in org.apache.lucene.util.bkd declared as Directory Modifier and Type Field Description private DirectoryBKDRadixSelector. tempDir(package private) DirectoryOfflinePointWriter. tempDirConstructors in org.apache.lucene.util.bkd with parameters of type Directory Constructor Description BKDRadixSelector(BKDConfig config, int maxPointsSortInHeap, Directory tempDir, java.lang.String tempFileNamePrefix)Sole constructor.BKDWriter(int maxDoc, Directory tempDir, java.lang.String tempFileNamePrefix, BKDConfig config, double maxMBSortInHeap, long totalPointCount)OfflinePointReader(BKDConfig config, Directory tempDir, java.lang.String tempFileName, long start, long length, byte[] reusableBuffer)OfflinePointWriter(BKDConfig config, Directory tempDir, java.lang.String tempFileNamePrefix, java.lang.String desc, long expectedCount)Create a new writer with an unknown number of incoming points
-