## Uses of Class
org.apache.lucene.store.Directory

Packages that use Directory
org.apache.lucene.benchmark.byTask: Benchmarking Lucene By Tasks.
org.apache.lucene.benchmark.stats
org.apache.lucene.index: Code to maintain and access indices.
org.apache.lucene.misc
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.db
org.apache.lucene.store.instantiated: InstantiatedIndex, alternative RAM store for small corpora.
org.apache.lucene.store.je
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
`Directory` `PerfRunData.getDirectory()`

Methods in org.apache.lucene.benchmark.byTask with parameters of type Directory
`void` `PerfRunData.setDirectory(Directory directory)`

Uses of Directory in org.apache.lucene.benchmark.stats

Methods in org.apache.lucene.benchmark.stats that return Directory
`Directory` `TestData.getDirectory()`

Methods in org.apache.lucene.benchmark.stats with parameters of type Directory
`void` `TestData.setDirectory(Directory directory)`

Uses of Directory in org.apache.lucene.index

Fields in org.apache.lucene.index declared as Directory
`protected Directory` `ConcurrentMergeScheduler.dir`
`Directory` `CheckIndex.Status.dir` Directory index is in.
`protected Directory` `IndexModifier.directory` Deprecated.

Methods in org.apache.lucene.index that return Directory
`Directory` `FilterIndexReader.directory()`
`Directory` `IndexReader.directory()` Returns the directory associated with this index.
`Directory` `IndexWriter.getDirectory()` Returns the Directory used by this index.
`abstract Directory` `IndexCommit.getDirectory()` Returns the `Directory` for the index.
`Directory` `MergePolicy.MergeException.getDirectory()` Returns the `Directory` of the index that hit the exception.

Methods in org.apache.lucene.index with parameters of type Directory
`void` `IndexWriter.addIndexes(Directory[] dirs)` Deprecated. Use `IndexWriter.addIndexesNoOptimize(org.apache.lucene.store.Directory[])` instead, then separately call `IndexWriter.optimize()` afterwards if you need to.
`void` `IndexWriter.addIndexesNoOptimize(Directory[] dirs)` Merges all segments from an array of indexes into this index.
`static boolean` `CheckIndex.check(Directory dir, boolean doFix)` Deprecated. Please instantiate a CheckIndex and then use `CheckIndex.checkIndex()` instead
`static boolean` `CheckIndex.check(Directory dir, boolean doFix, List onlySegments)` Deprecated. Please instantiate a CheckIndex and then use `CheckIndex.checkIndex(List)` instead
`static long` `IndexReader.getCurrentVersion(Directory directory)` Reads version number from segments files.
`static boolean` `IndexReader.indexExists(Directory directory)` Returns `true` if an index exists at the specified directory.
`protected void` `IndexModifier.init(Directory directory, Analyzer analyzer, boolean create)` Deprecated. Initialize an IndexWriter.
`static boolean` `IndexWriter.isLocked(Directory directory)` Returns `true` iff the index in the named directory is currently locked.
`static boolean` `IndexReader.isLocked(Directory directory)` Deprecated. Please use `IndexWriter.isLocked(Directory)` instead
`static long` `IndexReader.lastModified(Directory directory2)` Returns the time the index in the named directory was last modified.
`static Collection` `IndexReader.listCommits(Directory dir)` Returns all commit points that exist in the Directory.
`static IndexReader` `IndexReader.open(Directory directory)` Returns a read/write IndexReader reading the index in the given Directory.
`static IndexReader` `IndexReader.open(Directory directory, boolean readOnly)` Returns a read/write or read only IndexReader reading the index in the given Directory.
`static IndexReader` `IndexReader.open(Directory directory, IndexDeletionPolicy deletionPolicy)` Expert: returns a read/write IndexReader reading the index in the given Directory, with a custom `IndexDeletionPolicy`.
`static IndexReader` `IndexReader.open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly)` Expert: returns a read/write or read only IndexReader reading the index in the given Directory, with a custom `IndexDeletionPolicy`.
`String` `MergePolicy.MergeSpecification.segString(Directory dir)`
`static void` `IndexWriter.unlock(Directory directory)` Forcibly unlocks the index in the named directory.
`static void` `IndexReader.unlock(Directory directory)` Deprecated. Please use `IndexWriter.unlock(Directory)` instead

Constructors in org.apache.lucene.index with parameters of type Directory
`CheckIndex(Directory dir)` Create a new CheckIndex on the directory.
`FieldNormModifier(Directory d, Similarity s)` Constructor for code that wishes to use this class programatically If Similarity is null, kill the field norms.
`IndexModifier(Directory directory, Analyzer analyzer, boolean create)` Deprecated. Open an index with write access.
`IndexReader(Directory directory)` Deprecated. - use IndexReader()
`IndexWriter(Directory d, Analyzer a)` Deprecated. This constructor will be removed in the 3.0 release. Use `IndexWriter.IndexWriter(Directory,Analyzer,MaxFieldLength)` instead, and call `IndexWriter.commit()` when needed.
`IndexWriter(Directory d, Analyzer a, boolean create)` Deprecated. This constructor will be removed in the 3.0 release, and call `IndexWriter.commit()` when needed. Use `IndexWriter.IndexWriter(Directory,Analyzer,boolean,MaxFieldLength)` instead.
`IndexWriter(Directory d, Analyzer a, boolean create, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)` Expert: constructs an IndexWriter with a custom `IndexDeletionPolicy`, for the index in `d`.
`IndexWriter(Directory d, Analyzer a, boolean create, IndexWriter.MaxFieldLength mfl)` Constructs an IndexWriter for the index in `d`.
`IndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)` Expert: constructs an IndexWriter with a custom `IndexDeletionPolicy`, for the index in `d`, first creating it if it does not already exist.
`IndexWriter(Directory d, Analyzer a, IndexWriter.MaxFieldLength mfl)` Constructs an IndexWriter for the index in `d`, first creating it if it does not already exist.
`IndexWriter(Directory d, boolean autoCommit, Analyzer a)` Deprecated. This constructor will be removed in the 3.0 release. Use `IndexWriter.IndexWriter(Directory,Analyzer,MaxFieldLength)` instead, and call `IndexWriter.commit()` when needed.
`IndexWriter(Directory d, boolean autoCommit, Analyzer a, boolean create)` Deprecated. This constructor will be removed in the 3.0 release. Use `IndexWriter.IndexWriter(Directory,Analyzer,boolean,MaxFieldLength)` instead, and call `IndexWriter.commit()` when needed.
`IndexWriter(Directory d, boolean autoCommit, Analyzer a, boolean create, IndexDeletionPolicy deletionPolicy)` Deprecated. This constructor will be removed in the 3.0 release. Use `IndexWriter.IndexWriter(Directory,Analyzer,boolean,IndexDeletionPolicy,MaxFieldLength)` instead, and call `IndexWriter.commit()` when needed.
`IndexWriter(Directory d, boolean autoCommit, Analyzer a, IndexDeletionPolicy deletionPolicy)` Deprecated. This constructor will be removed in the 3.0 release. Use `IndexWriter.IndexWriter(Directory,Analyzer,IndexDeletionPolicy,MaxFieldLength)` instead, and call `IndexWriter.commit()` when needed.
`MergePolicy.MergeException(String message, Directory dir)`
`MergePolicy.MergeException(Throwable exc, Directory dir)`

Uses of Directory in org.apache.lucene.misc

Constructors in org.apache.lucene.misc with parameters of type Directory
`LengthNormModifier(Directory d, Similarity s)` Constructor for code that wishes to use this class progaomatically.

Uses of Directory in org.apache.lucene.search

Constructors in org.apache.lucene.search with parameters of type Directory
`IndexSearcher(Directory directory)` Creates a searcher searching the index in the provided directory.

Uses of Directory in org.apache.lucene.search.spell

Methods in org.apache.lucene.search.spell with parameters of type Directory
`void` `SpellChecker.setSpellIndex(Directory spellIndex)` Use a different index as the spell checker index or re-open the existing index if `spellIndex` is the same value as given in the constructor.

Constructors in org.apache.lucene.search.spell with parameters of type Directory
`SpellChecker(Directory spellIndex)`
`SpellChecker(Directory spellIndex, StringDistance sd)` Use the given directory as a spell checker index.

Uses of Directory in org.apache.lucene.store

Subclasses of Directory in org.apache.lucene.store
`class` `FSDirectory` Straightforward implementation of `Directory` as a directory of files.
`class` `MMapDirectory` File-based `Directory` implementation that uses mmap for input.
`class` `NIOFSDirectory` NIO version of FSDirectory.
`class` `RAMDirectory` A memory-resident `Directory` implementation.

Methods in org.apache.lucene.store with parameters of type Directory
`static void` `Directory.copy(Directory src, Directory dest, boolean closeDirSrc)` Copy contents of a directory src to a directory dest.

Constructors in org.apache.lucene.store with parameters of type Directory
`RAMDirectory(Directory dir)` Creates a new `RAMDirectory` instance from a different `Directory` implementation.

Uses of Directory in org.apache.lucene.store.db

Subclasses of Directory in org.apache.lucene.store.db
`class` `DbDirectory` A DbDirectory is a Berkeley DB 4.3 based implementation of `Directory`.

Uses of Directory in org.apache.lucene.store.instantiated

Methods in org.apache.lucene.store.instantiated that return Directory
`Directory` `InstantiatedIndexReader.directory()`

Uses of Directory in org.apache.lucene.store.je

Subclasses of Directory in org.apache.lucene.store.je
`class` `JEDirectory` Port of Andi Vajda's DbDirectory to to Java Edition of Berkeley Database A JEDirectory is a Berkeley DB JE based implementation of `Directory`.

Uses of Directory in org.apache.lucene.util

Methods in org.apache.lucene.util with parameters of type Directory
`void` `BitVector.write(Directory d, String name)` Writes this vector to the file `name` in Directory `d`, in a format that can be read by the constructor `BitVector.BitVector(Directory, String)`.

Constructors in org.apache.lucene.util with parameters of type Directory
`BitVector(Directory d, String name)` Constructs a bit vector from the file `name` in Directory `d`, as written by the `BitVector.write(org.apache.lucene.store.Directory, java.lang.String)` method.

Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.