Uses of Class
org.apache.lucene.store.Directory
-
Packages that use Directory Package Description org.apache.lucene.benchmark.byTask Benchmarking Lucene By Tasks.org.apache.lucene.benchmark.byTask.tasks Extendable benchmark tasks.org.apache.lucene.facet.index Indexing of document categoriesorg.apache.lucene.facet.taxonomy.directory Taxonomy implemented using a Lucene-Indexorg.apache.lucene.index Code to maintain and access indices.org.apache.lucene.misc Miscellaneous index tools.org.apache.lucene.search Code to search indices.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.store Binary i/o API, used for all index data.org.apache.lucene.store.instantiated InstantiatedIndex, alternative RAM store for small corpora.org.apache.lucene.util Some utility classes. -
-
Uses of Directory in org.apache.lucene.benchmark.byTask
Methods in org.apache.lucene.benchmark.byTask that return Directory Modifier and Type Method Description DirectoryPerfRunData. getDirectory()DirectoryPerfRunData. getTaxonomyDir()Methods in org.apache.lucene.benchmark.byTask with parameters of type Directory Modifier and Type Method Description voidPerfRunData. setDirectory(Directory directory) -
Uses of Directory in org.apache.lucene.benchmark.byTask.tasks
Methods in org.apache.lucene.benchmark.byTask.tasks with parameters of type Directory Modifier and Type Method Description static IndexCommitOpenReaderTask. findIndexCommit(Directory dir, String userData) -
Uses of Directory in org.apache.lucene.facet.index
Constructors in org.apache.lucene.facet.index with parameters of type Directory Constructor Description FacetsPayloadProcessorProvider(Directory dir, int[] ordinalMap, FacetIndexingParams indexingParams)Construct FacetsPayloadProcessorProvider with FacetIndexingParams -
Uses of Directory in org.apache.lucene.facet.taxonomy.directory
Methods in org.apache.lucene.facet.taxonomy.directory with parameters of type Directory Modifier and Type Method Description voidDirectoryTaxonomyWriter. addTaxonomy(Directory taxoDir, DirectoryTaxonomyWriter.OrdinalMap map)Takes the categories from the given taxonomy directory, and adds the missing ones to this taxonomy.protected IndexReaderDirectoryTaxonomyReader. openIndexReader(Directory directory)protected IndexWriterDirectoryTaxonomyWriter. openIndexWriter(Directory directory, IndexWriterConfig config)Open internal index writer, which contains the taxonomy data.static voidDirectoryTaxonomyWriter. unlock(Directory directory)Forcibly unlocks the taxonomy in the named directory.Constructors in org.apache.lucene.facet.taxonomy.directory with parameters of type Directory Constructor Description DirectoryTaxonomyReader(Directory directory)Open for reading a taxonomy stored in a givenDirectory.DirectoryTaxonomyWriter(Directory d)DirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode)Creates a new instance with a default cached as defined byDirectoryTaxonomyWriter.defaultTaxonomyWriterCache().DirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode, TaxonomyWriterCache cache)Construct a Taxonomy writer. -
Uses of Directory in org.apache.lucene.index
Fields in org.apache.lucene.index declared as Directory Modifier and Type Field Description DirectoryCheckIndex.Status. dirDirectory index is in.protected DirectoryConcurrentMergeScheduler. dirDirectorySegmentInfo. dirprotected DirectoryThreadedIndexingAndSearchingTestCase. dirDirectorySegmentWriteState. directoryMethods in org.apache.lucene.index that return Directory Modifier and Type Method Description DirectoryFilterIndexReader. directory()DirectoryIndexReader. directory()Returns the directory associated with this index.DirectorySegmentReader. directory()Returns the directory this index resides in.DirectoryCompoundFileWriter. getDirectory()Returns the directory of the compound file.abstract DirectoryIndexCommit. getDirectory()Returns theDirectoryfor the index.DirectoryIndexWriter. getDirectory()Returns the Directory used by this index.DirectoryMergePolicy.MergeException. getDirectory()Returns theDirectoryof the index that hit the exception.DirectorySnapshotDeletionPolicy.SnapshotCommitPoint. getDirectory()protected DirectoryThreadedIndexingAndSearchingTestCase. getDirectory(Directory in)Methods in org.apache.lucene.index with parameters of type Directory Modifier and Type Method Description voidCompoundFileWriter. addFile(String file, Directory dir)Same asCompoundFileWriter.addFile(String), only for files that are found in an externalDirectory.voidIndexWriter. addIndexes(Directory... dirs)Adds all segments from an array of indexes into this index.voidRandomIndexWriter. addIndexes(Directory... dirs)voidIndexWriter. addIndexesNoOptimize(Directory... dirs)Deprecated.useIndexWriter.addIndexes(Directory...)insteadCollection<String>SegmentInfos. files(Directory dir, boolean includeSegmentsFile)Returns all file names referenced by SegmentInfo instances matching the provided Directory (ie files associated with any "external" segments are skipped).static SegmentReaderSegmentReader. get(boolean readOnly, Directory dir, SegmentInfo si, int readBufferSize, boolean doOpenStores, int termInfosIndexDivisor)static Map<String,String>IndexReader. getCommitUserData(Directory directory)Deprecated.CallIndexReader.getIndexCommit()on an open IndexReader, and then callIndexCommit.getUserData().static longIndexReader. getCurrentVersion(Directory directory)Deprecated.UseIndexReader.getVersion()on an opened IndexReader.protected DirectoryThreadedIndexingAndSearchingTestCase. getDirectory(Directory in)PayloadProcessorProvider.DirPayloadProcessorPayloadProcessorProvider. getDirProcessor(Directory dir)Deprecated.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 StringSegmentInfos. getLastCommitSegmentsFileName(Directory directory)Get the filename of the segments_N file for the most recent commit to the index in this Directory.static booleanIndexReader. indexExists(Directory directory)Returnstrueif an index exists at the specified directory.static booleanIndexWriter. isLocked(Directory directory)Returnstrueiff the index in the named directory is currently locked.static longIndexReader. lastModified(Directory directory2)Deprecated.If you need to track commit time of an index, you can store it in the commit data (seeIndexWriter.commit(Map)static Collection<IndexCommit>IndexReader. listCommits(Directory dir)Returns all commit points that exist in the Directory.static IndexReaderIndexReader. open(Directory directory)Returns a IndexReader reading the index in the given Directory, with readOnly=true.static IndexReaderIndexReader. open(Directory directory, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(Directory directory, int termInfosIndexDivisor)Expert: Returns a IndexReader reading the index in the given Director and given termInfosIndexDivisorstatic IndexReaderIndexReader. open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)Deprecated.Write support will be removed in Lucene 4.0.voidSegmentInfos. read(Directory directory)This version of read uses the retry logic (for lock-less commits) to find the right segments file to load.voidSegmentInfos. read(Directory directory, String segmentFileName)Read a particular segmentFileName.static longSegmentInfos. readCurrentVersion(Directory directory)Deprecated.Load the SegmentInfos and then callSegmentInfos.getVersion().static Map<String,String>PersistentSnapshotDeletionPolicy. readSnapshotsInfo(Directory dir)Reads the snapshots information from the givenDirectory.StringMergePolicy.MergeSpecification. segString(Directory dir)StringMergePolicy.OneMerge. segString(Directory dir)voidIndexSorter. sort(Directory input, Directory output, String field)voidMultiPassIndexSplitter. split(IndexReader input, Directory[] outputs, boolean seq)Deprecated.voidMultiPassIndexSplitter. split(Version version, IndexReader input, Directory[] outputs, boolean seq)Split source index into multiple parts.StringSegmentInfo. toString(Directory dir, int pendingDelCount)Used for debugging.StringSegmentInfos. toString(Directory directory)static voidIndexWriter. unlock(Directory directory)Forcibly unlocks the index in the named directory.voidFieldInfos. write(Directory d, String name)Constructors in org.apache.lucene.index with parameters of type Directory Constructor Description CheckIndex(Directory dir)Create a new CheckIndex on the directory.CompoundFileWriter(Directory dir, String name)Create the compound stream in the specified file.FieldInfos(Directory d, String name)Construct a FieldInfos object using the directory and the name of the file IndexInputFieldNormModifier(Directory d, Similarity s)Deprecated.Constructor for code that wishes to use this class programmatically If Similarity is null, kill the field norms.FindSegmentsFile(Directory directory)IndexUpgrader(Directory dir, IndexWriterConfig iwc, PrintStream infoStream, boolean deletePriorCommits)Creates index upgrader on the given directory, using anIndexWriterusing the given config.IndexUpgrader(Directory dir, Version matchVersion)Creates index upgrader on the given directory, using anIndexWriterusing the givenmatchVersion.IndexUpgrader(Directory dir, Version matchVersion, PrintStream infoStream, boolean deletePriorCommits)Creates index upgrader on the given directory, using anIndexWriterusing the givenmatchVersion.IndexWriter(Directory d, Analyzer a, boolean create, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, Analyzer a, boolean create, IndexWriter.MaxFieldLength mfl)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl, IndexCommit commit)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, Analyzer a, IndexWriter.MaxFieldLength mfl)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, IndexWriterConfig conf)Constructs a new IndexWriter per the settings given inconf.MergeException(String message, Directory dir)MergeException(Throwable exc, Directory dir)PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir, IndexWriterConfig.OpenMode mode, Version matchVersion)PersistentSnapshotDeletionPolicywraps anotherIndexDeletionPolicyto enable flexible snapshotting.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm)Deprecated.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm, IndexWriterConfig config1, IndexWriterConfig config2)PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Filter docsInFirstIndex)Deprecated.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Filter docsInFirstIndex, IndexWriterConfig config1, IndexWriterConfig config2)PKIndexSplitter(Version version, Directory input, Directory dir1, Directory dir2, Term midTerm)Split an index based on a given primary key term and a 'middle' term.PKIndexSplitter(Version version, Directory input, Directory dir1, Directory dir2, Filter docsInFirstIndex)Split an index based on aFilter.RandomIndexWriter(Random r, Directory dir)create a RandomIndexWriter with a random config: Uses TEST_VERSION_CURRENT and Whitespace+LowercasingAnalyzerRandomIndexWriter(Random r, Directory dir, Analyzer a)create a RandomIndexWriter with a random config: Uses TEST_VERSION_CURRENTRandomIndexWriter(Random r, Directory dir, IndexWriterConfig c)create a RandomIndexWriter with the provided configRandomIndexWriter(Random r, Directory dir, Version v, Analyzer a)create a RandomIndexWriter with a random configSegmentInfo(String name, int docCount, Directory dir, boolean isCompoundFile, boolean hasSingleNormFile, boolean hasProx, boolean hasVectors)SegmentWriteState(PrintStream infoStream, Directory directory, String segmentName, FieldInfos fieldInfos, int numDocs, int termIndexInterval, org.apache.lucene.index.BufferedDeletes segDeletes) -
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.search
Fields in org.apache.lucene.search declared as Directory Modifier and Type Field Description protected static DirectorySearchEquivalenceTestBase. directoryMethods in org.apache.lucene.search with parameters of type Directory Modifier and Type Method Description longNRTManager.TrackingIndexWriter. addIndexes(Directory... dirs)Constructors in org.apache.lucene.search with parameters of type Directory Constructor Description IndexSearcher(Directory path)Deprecated.useIndexSearcher(IndexReader)instead.IndexSearcher(Directory path, boolean readOnly)Deprecated.UseIndexSearcher(IndexReader)instead.SearcherManager(Directory dir, SearcherFactory searcherFactory)Creates and returns a new SearcherManager from the givenDirectory. -
Uses of Directory in org.apache.lucene.search.spell
Methods in org.apache.lucene.search.spell with parameters of type Directory Modifier and Type Method Description voidSpellChecker. 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.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 aLevensteinDistanceas the defaultStringDistance.SpellChecker(Directory spellIndex, StringDistance sd)Use the given directory as a spell checker index.SpellChecker(Directory spellIndex, StringDistance sd, 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.store
Subclasses of Directory in org.apache.lucene.store Modifier and Type Class Description classDirectIOLinuxDirectoryAnDirectoryimplementation that uses the Linux-specific O_DIRECT flag to bypass all OS level caching.classFileSwitchDirectoryExpert: A Directory instance that switches files between two other Directory instances.classFSDirectoryclassMMapDirectoryFile-basedDirectoryimplementation that uses mmap for reading, andFSDirectory.FSIndexOutputfor writing.classMockDirectoryWrapperThis is a Directory Wrapper that adds methods intended to be used only by unit tests.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.classRAMDirectoryA memory-residentDirectoryimplementation.classSimpleFSDirectoryA straightforward implementation ofFSDirectoryusing java.io.RandomAccessFile.classWindowsDirectoryNativeDirectoryimplementation for Microsoft Windows.Methods in org.apache.lucene.store that return Directory Modifier and Type Method Description DirectoryFileSwitchDirectory. getPrimaryDir()Return the primary directoryDirectoryFileSwitchDirectory. getSecondaryDir()Return the secondary directoryMethods in org.apache.lucene.store with parameters of type Directory Modifier and Type Method Description voidDirectory. copy(Directory to, String src, String dest)Copies the file src toDirectoryto under the new file name dest.static voidDirectory. copy(Directory src, Directory dest, boolean closeDirSrc)Deprecated.should be replaced with calls tocopy(Directory, String, String)for every file that needs copying.voidMockDirectoryWrapper. copy(Directory to, String src, String dest)Constructors in org.apache.lucene.store with parameters of type Directory Constructor Description FileSwitchDirectory(Set<String> primaryExtensions, Directory primaryDir, Directory secondaryDir, boolean doClose)MockDirectoryWrapper(Random random, Directory delegate)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 <= maxCachedMBRAMDirectory(Directory dir)Creates a newRAMDirectoryinstance from a differentDirectoryimplementation. -
Uses of Directory in org.apache.lucene.store.instantiated
Methods in org.apache.lucene.store.instantiated that return Directory Modifier and Type Method Description DirectoryInstantiatedIndexReader. directory()Deprecated. -
Uses of Directory in org.apache.lucene.util
Methods in org.apache.lucene.util that return types with arguments of type Directory Modifier and Type Method Description static Class<? extends Directory>CommandLineUtil. loadDirectoryClass(String clazzName)Loads a specific Directory implementationMethods in org.apache.lucene.util with parameters of type Directory Modifier and Type Method Description static boolean_TestUtil. anyFilesExceptWriteLock(Directory dir)static CheckIndex.Status_TestUtil. checkIndex(Directory dir)This runs the CheckIndex tool on the index in.static MockDirectoryWrapperLuceneTestCase. newDirectory(Random r, Directory d)Returns a new Directory instance, using the specified random with contents copied from the provided directory.static MockDirectoryWrapperLuceneTestCase. newDirectory(Directory d)Returns a new Directory instance, with contents copied from the provided directory.voidBitVector. write(Directory d, String name)Writes this vector to the filenamein Directoryd, in a format that can be read by the constructorBitVector(Directory, String).Constructors in org.apache.lucene.util with parameters of type Directory Constructor Description BitVector(Directory d, String name)Constructs a bit vector from the filenamein Directoryd, as written by theBitVector.write(org.apache.lucene.store.Directory, java.lang.String)method.
-