Package | Description |
---|---|
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.appending |
Codec for on append-only outputs, such as plain output streams and append-only filesystems.
|
org.apache.lucene.codecs.blockterms |
Pluggable term index / block terms dictionary implementations.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.lucene3x |
Codec to support Lucene 3.x indexes (readonly)
|
org.apache.lucene.codecs.lucene40 |
Lucene 4.0 file format.
|
org.apache.lucene.codecs.lucene41 |
Lucene 4.1 file format.
|
org.apache.lucene.codecs.lucene46 |
Lucene 4.6 file format.
|
org.apache.lucene.codecs.sep |
Sep: base support for separate files (doc,frq,pos,skp,pyl)
|
org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories
|
org.apache.lucene.facet.taxonomy.directory |
Taxonomy index implementation using on top of a Directory.
|
org.apache.lucene.index |
Misc index tools and index support.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.replicator |
Files replication framework
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
org.apache.lucene.store |
Misc Directory implementations.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
void |
DatasetSplitter.split(AtomicReader originalIndex,
Directory trainingIndex,
Directory testIndex,
Directory crossValidationIndex,
Analyzer analyzer,
String... fieldNames)
Split a given index into 3 indexes for training, test and cross validation tasks respectively
|
Modifier and Type | Method and Description |
---|---|
abstract StoredFieldsReader |
StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Returns a
StoredFieldsReader to load stored
fields. |
abstract StoredFieldsWriter |
StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context)
Returns a
StoredFieldsWriter to write stored
fields. |
abstract SegmentInfo |
SegmentInfoReader.read(Directory directory,
String segmentName,
IOContext context)
Read
SegmentInfo data from a directory. |
abstract FieldInfos |
FieldInfosReader.read(Directory directory,
String segmentName,
String segmentSuffix,
IOContext iocontext)
Read the
FieldInfos previously written with FieldInfosWriter . |
abstract Bits |
LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context)
Read live docs bits.
|
abstract TermVectorsReader |
TermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context)
Returns a
TermVectorsReader to read term
vectors. |
abstract TermVectorsWriter |
TermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context)
Returns a
TermVectorsWriter to write term
vectors. |
abstract void |
SegmentInfoWriter.write(Directory dir,
SegmentInfo info,
FieldInfos fis,
IOContext ioContext)
Write
SegmentInfo data. |
abstract void |
FieldInfosWriter.write(Directory directory,
String segmentName,
String segmentSuffix,
FieldInfos infos,
IOContext context)
Writes the provided
FieldInfos to the
directory. |
abstract void |
LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context)
Persist live docs bits.
|
Constructor and Description |
---|
BlockTreeTermsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo info,
PostingsReaderBase postingsReader,
IOContext ioContext,
String segmentSuffix,
int indexDivisor)
Sole constructor.
|
Constructor and Description |
---|
AppendingTermsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo info,
PostingsReaderBase postingsReader,
IOContext ioContext,
String segmentSuffix,
int indexDivisor)
Deprecated.
|
Constructor and Description |
---|
BlockTermsReader(TermsIndexReaderBase indexReader,
Directory dir,
FieldInfos fieldInfos,
SegmentInfo info,
PostingsReaderBase postingsReader,
IOContext context,
String segmentSuffix) |
FixedGapTermsIndexReader(Directory dir,
FieldInfos fieldInfos,
String segment,
int indexDivisor,
Comparator<BytesRef> termComp,
String segmentSuffix,
IOContext context) |
VariableGapTermsIndexReader(Directory dir,
FieldInfos fieldInfos,
String segment,
int indexDivisor,
String segmentSuffix,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
CompressingStoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
CompressingStoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
TermVectorsReader |
CompressingTermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
TermVectorsWriter |
CompressingTermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context) |
Constructor and Description |
---|
CompressingStoredFieldsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingStoredFieldsWriter(Directory directory,
SegmentInfo si,
String segmentSuffix,
IOContext context,
String formatName,
CompressionMode compressionMode,
int chunkSize)
Sole constructor.
|
CompressingTermVectorsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingTermVectorsWriter(Directory directory,
SegmentInfo si,
String segmentSuffix,
IOContext context,
String formatName,
CompressionMode compressionMode,
int chunkSize)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
Lucene3xSegmentInfoReader.read(Directory directory,
String segmentName,
IOContext context)
Deprecated.
|
static void |
Lucene3xSegmentInfoReader.readLegacyInfos(SegmentInfos infos,
Directory directory,
IndexInput input,
int format)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
Lucene40StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
Lucene40StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
SegmentInfo |
Lucene40SegmentInfoReader.read(Directory dir,
String segment,
IOContext context)
Deprecated.
|
Bits |
Lucene40LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
TermVectorsReader |
Lucene40TermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
TermVectorsWriter |
Lucene40TermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context) |
void |
Lucene40SegmentInfoWriter.write(Directory dir,
SegmentInfo si,
FieldInfos fis,
IOContext ioContext)
Deprecated.
Save a single segment's info.
|
void |
Lucene40LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context) |
Constructor and Description |
---|
Lucene40PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
String segmentSuffix)
Deprecated.
Sole constructor.
|
Lucene40StoredFieldsReader(Directory d,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Sole constructor.
|
Lucene40StoredFieldsWriter(Directory directory,
String segment,
IOContext context)
Sole constructor.
|
Lucene40TermVectorsReader(Directory d,
SegmentInfo si,
FieldInfos fieldInfos,
IOContext context)
Sole constructor.
|
Lucene40TermVectorsWriter(Directory directory,
String segment,
IOContext context)
Sole constructor.
|
Constructor and Description |
---|
Lucene41PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
String segmentSuffix)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
Lucene46SegmentInfoReader.read(Directory dir,
String segment,
IOContext context) |
void |
Lucene46SegmentInfoWriter.write(Directory dir,
SegmentInfo si,
FieldInfos fis,
IOContext ioContext)
Save a single segment's info.
|
Modifier and Type | Method and Description |
---|---|
abstract IntIndexOutput |
IntStreamFactory.createOutput(Directory dir,
String fileName,
IOContext context)
Create an
IntIndexOutput on the provided
fileName. |
abstract IntIndexInput |
IntStreamFactory.openInput(Directory dir,
String fileName,
IOContext context)
Create an
IntIndexInput on the provided
fileName. |
Constructor and Description |
---|
SepPostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext context,
IntStreamFactory intFactory,
String segmentSuffix) |
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
SimpleTextStoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
SimpleTextStoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
SegmentInfo |
SimpleTextSegmentInfoReader.read(Directory directory,
String segmentName,
IOContext context) |
FieldInfos |
SimpleTextFieldInfosReader.read(Directory directory,
String segmentName,
String segmentSuffix,
IOContext iocontext) |
Bits |
SimpleTextLiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
TermVectorsReader |
SimpleTextTermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
TermVectorsWriter |
SimpleTextTermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context) |
void |
SimpleTextSegmentInfoWriter.write(Directory dir,
SegmentInfo si,
FieldInfos fis,
IOContext ioContext) |
void |
SimpleTextFieldInfosWriter.write(Directory directory,
String segmentName,
String segmentSuffix,
FieldInfos infos,
IOContext context) |
void |
SimpleTextLiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context) |
Constructor and Description |
---|
SimpleTextStoredFieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
SimpleTextStoredFieldsWriter(Directory directory,
String segment,
IOContext context) |
SimpleTextTermVectorsReader(Directory directory,
SegmentInfo si,
IOContext context) |
SimpleTextTermVectorsWriter(Directory directory,
String segment,
IOContext context) |
Constructor and Description |
---|
SearcherTaxonomyManager(Directory indexDir,
Directory taxoDir,
SearcherFactory searcherFactory)
Creates search and taxonomy readers over the corresponding directories.
|
Modifier and Type | Method and Description |
---|---|
Directory |
DirectoryTaxonomyWriter.getDirectory()
Returns the
Directory of this taxonomy writer. |
Modifier and Type | Method and Description |
---|---|
void |
DirectoryTaxonomyWriter.addTaxonomy(Directory taxoDir,
DirectoryTaxonomyWriter.OrdinalMap map)
Takes the categories from the given taxonomy directory, and adds the
missing ones to this taxonomy.
|
protected DirectoryReader |
DirectoryTaxonomyReader.openIndexReader(Directory directory)
Open the
DirectoryReader from this Directory . |
protected IndexWriter |
DirectoryTaxonomyWriter.openIndexWriter(Directory directory,
IndexWriterConfig config)
Open internal index writer, which contains the taxonomy data.
|
void |
DirectoryTaxonomyWriter.replaceTaxonomy(Directory taxoDir)
Replaces the current taxonomy with the given one.
|
static void |
DirectoryTaxonomyWriter.unlock(Directory directory)
Forcibly unlocks the taxonomy in the named directory.
|
Constructor and Description |
---|
DirectoryTaxonomyReader(Directory directory)
Open for reading a taxonomy stored in a given
Directory . |
DirectoryTaxonomyWriter(Directory d)
Create this with
OpenMode.CREATE_OR_APPEND . |
DirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode)
Creates a new instance with a default cache as defined by
DirectoryTaxonomyWriter.defaultTaxonomyWriterCache() . |
DirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode,
TaxonomyWriterCache cache)
Construct a Taxonomy writer.
|
Modifier and Type | Field and Description |
---|---|
protected Directory |
ConcurrentMergeScheduler.dir
Directory that holds the index. |
Directory |
CheckIndex.Status.dir
Directory index is in.
|
Directory |
SegmentInfo.dir
Where this segment resides.
|
Directory |
SegmentWriteState.directory
Directory where this segment will be written
to. |
protected Directory |
DirectoryReader.directory
The index directory.
|
Directory |
SegmentReadState.directory
Directory where this segment is read from. |
Modifier and Type | Method and Description |
---|---|
Directory |
SegmentReader.directory()
Returns the directory this index resides in.
|
Directory |
DirectoryReader.directory()
Returns the directory this index resides in.
|
Directory |
MergePolicy.MergeException.getDirectory()
Returns the
Directory of the index that hit
the exception. |
abstract Directory |
IndexCommit.getDirectory()
Returns the
Directory for the index. |
Directory |
IndexWriter.getDirectory()
Returns the Directory used by this index.
|
Modifier and Type | Method and Description |
---|---|
void |
IndexWriter.addIndexes(Directory... dirs)
Adds all segments from an array of indexes into this index.
|
long |
TrackingIndexWriter.addIndexes(Directory... dirs)
Calls
IndexWriter.addIndexes(Directory...) and
returns the generation that reflects this change. |
void |
MergePolicy.OneMerge.checkAborted(Directory dir)
Called periodically by
IndexWriter while
merging to see if the merge is aborted. |
Collection<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 long |
SegmentInfos.getLastCommitGeneration(Directory directory)
Get the generation of the most recent commit to the
index in this directory (N in the segments_N file).
|
static String |
SegmentInfos.getLastCommitSegmentsFileName(Directory directory)
Get the filename of the segments_N file for the most
recent commit to the index in this Directory.
|
static boolean |
DirectoryReader.indexExists(Directory directory)
Returns
true if an index likely exists at
the specified directory. |
static boolean |
IndexWriter.isLocked(Directory directory)
Returns
true iff the index in the named directory is
currently locked. |
static List<IndexCommit> |
DirectoryReader.listCommits(Directory dir)
Returns all commit points that exist in the Directory.
|
static DirectoryReader |
IndexReader.open(Directory directory)
Deprecated.
|
static DirectoryReader |
DirectoryReader.open(Directory directory)
Returns a IndexReader reading the index in the given
Directory
|
static DirectoryReader |
IndexReader.open(Directory directory,
int termInfosIndexDivisor)
Deprecated.
|
static DirectoryReader |
DirectoryReader.open(Directory directory,
int termInfosIndexDivisor)
Expert: Returns a IndexReader reading the index in the given
Directory with the given termInfosIndexDivisor.
|
void |
SegmentInfos.read(Directory directory)
Find the latest commit (
segments_N file ) and
load all SegmentCommitInfo s. |
void |
SegmentInfos.read(Directory directory,
String segmentFileName)
Read a particular segmentFileName.
|
String |
MergePolicy.OneMerge.segString(Directory dir)
Returns a readable description of the current merge
state.
|
String |
MergePolicy.MergeSpecification.segString(Directory dir)
Returns a description of the merges in this
specification.
|
void |
MultiPassIndexSplitter.split(Version version,
IndexReader in,
Directory[] outputs,
boolean seq)
Split source index into multiple parts.
|
String |
SegmentInfos.toString(Directory directory)
Returns readable description of this segment.
|
String |
SegmentCommitInfo.toString(Directory dir,
int pendingDelCount)
Returns a description of this segment.
|
String |
SegmentInfo.toString(Directory dir,
int delCount)
Used for debugging.
|
static void |
IndexWriter.unlock(Directory directory)
Forcibly unlocks the index in the named directory.
|
static String |
SegmentInfos.write3xInfo(Directory dir,
SegmentInfo si,
IOContext context)
Deprecated.
|
static void |
SegmentInfos.writeSegmentsGen(Directory dir,
long generation)
A utility for writing the
IndexFileNames.SEGMENTS_GEN file to a
Directory . |
Constructor and Description |
---|
CheckIndex(Directory dir)
Create a new CheckIndex on the directory.
|
DirectoryReader(Directory directory,
AtomicReader[] segmentReaders)
Expert: Constructs a
DirectoryReader on the given subReaders. |
IndexUpgrader(Directory dir,
IndexWriterConfig iwc,
boolean deletePriorCommits)
Creates index upgrader on the given directory, using an
IndexWriter using the given
config. |
IndexUpgrader(Directory dir,
Version matchVersion)
Creates index upgrader on the given directory, using an
IndexWriter using the given
matchVersion . |
IndexUpgrader(Directory dir,
Version matchVersion,
PrintStream infoStream,
boolean deletePriorCommits)
Creates index upgrader on the given directory, using an
IndexWriter using the given
matchVersion . |
IndexWriter(Directory d,
IndexWriterConfig conf)
Constructs a new IndexWriter per the settings given in
conf . |
MergePolicy.MergeException(String message,
Directory dir)
Create a
MergeException . |
MergePolicy.MergeException(Throwable exc,
Directory dir)
Create a
MergeException . |
MergeState.CheckAbort(MergePolicy.OneMerge merge,
Directory dir)
Creates a #CheckAbort instance.
|
PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary,
Directory dir)
PersistentSnapshotDeletionPolicy wraps another
IndexDeletionPolicy to enable flexible
snapshotting, passing IndexWriterConfig.OpenMode.CREATE_OR_APPEND
by default. |
PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary,
Directory dir,
IndexWriterConfig.OpenMode mode)
PersistentSnapshotDeletionPolicy wraps another
IndexDeletionPolicy to enable flexible snapshotting. |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Filter docsInFirstIndex,
IndexWriterConfig config1,
IndexWriterConfig config2) |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Term midTerm,
IndexWriterConfig config1,
IndexWriterConfig config2) |
PKIndexSplitter(Version version,
Directory input,
Directory dir1,
Directory dir2,
Filter docsInFirstIndex)
Split an index based on a
Filter . |
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.
|
ReaderManager(Directory dir)
Creates and returns a new ReaderManager from the given
Directory . |
SegmentInfo(Directory dir,
String version,
String name,
int docCount,
boolean isCompoundFile,
Codec codec,
Map<String,String> diagnostics)
Construct a new complete SegmentInfo instance from input.
|
SegmentInfo(Directory dir,
String version,
String name,
int docCount,
boolean isCompoundFile,
Codec codec,
Map<String,String> diagnostics,
Map<String,String> attributes)
Construct a new complete SegmentInfo instance from input.
|
SegmentInfos.FindSegmentsFile(Directory directory)
Sole constructor.
|
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
int termsIndexDivisor)
Create a
SegmentReadState . |
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
int termsIndexDivisor,
String segmentSuffix)
Create a
SegmentReadState . |
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
int termIndexInterval,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context)
Sole constructor.
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
int termIndexInterval,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context,
String segmentSuffix)
Constructor which takes segment suffix.
|
Modifier and Type | Method and Description |
---|---|
static void |
GetTermInfo.getTermInfo(Directory dir,
Term term) |
Modifier and Type | Method and Description |
---|---|
Directory |
ReplicationClient.SourceDirectoryFactory.getDirectory(String sessionID,
String source)
Returns the
Directory to use for the given session and source. |
Directory |
PerSessionDirectoryFactory.getDirectory(String sessionID,
String source) |
Modifier and Type | Method and Description |
---|---|
static void |
IndexReplicationHandler.cleanupFilesOnFailure(Directory dir,
List<String> files)
Cleanup the index directory by deleting all given files.
|
static void |
IndexReplicationHandler.cleanupOldIndexFiles(Directory dir,
String segmentsFile)
Cleans up the index directory from old index files.
|
static void |
IndexReplicationHandler.copyFiles(Directory source,
Directory target,
List<String> files)
Copies the files from the source directory to the target one, if they are
not the same.
|
static IndexCommit |
IndexReplicationHandler.getLastCommit(Directory dir)
|
protected IndexWriter |
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter.openIndexWriter(Directory directory,
IndexWriterConfig config) |
static void |
IndexReplicationHandler.writeSegmentsGen(String segmentsFile,
Directory dir)
Writes
IndexFileNames.SEGMENTS_GEN file to the directory, reading
the generation from the given segmentsFile . |
Modifier and Type | Method and Description |
---|---|
void |
IndexAndTaxonomyReplicationHandler.revisionReady(String version,
Map<String,List<RevisionFile>> revisionFiles,
Map<String,List<String>> copiedFiles,
Map<String,Directory> sourceDirectory) |
void |
ReplicationClient.ReplicationHandler.revisionReady(String version,
Map<String,List<RevisionFile>> revisionFiles,
Map<String,List<String>> copiedFiles,
Map<String,Directory> sourceDirectory)
Called when a new revision was obtained and is available (i.e.
|
void |
IndexReplicationHandler.revisionReady(String version,
Map<String,List<RevisionFile>> revisionFiles,
Map<String,List<String>> copiedFiles,
Map<String,Directory> sourceDirectory) |
Constructor and Description |
---|
IndexAndTaxonomyReplicationHandler(Directory indexDir,
Directory taxoDir,
Callable<Boolean> callback)
Constructor with the given index directory and callback to notify when the
indexes were updated.
|
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory d) |
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode) |
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode,
TaxonomyWriterCache cache) |
IndexReplicationHandler(Directory indexDir,
Callable<Boolean> callback)
Constructor with the given index directory and callback to notify when the
indexes were updated.
|
Constructor and Description |
---|
SearcherManager(Directory dir,
SearcherFactory searcherFactory)
Creates and returns a new SearcherManager from the given
Directory . |
Modifier and Type | Method and Description |
---|---|
void |
SpellChecker.setSpellIndex(Directory spellIndexDir)
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. |
Constructor and Description |
---|
SpellChecker(Directory spellIndex)
Use the given directory as a spell checker index with a
LevensteinDistance as the default StringDistance . |
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 given
StringDistance measure
and the given Comparator for sorting the results. |
Modifier and Type | Method and Description |
---|---|
protected Directory |
AnalyzingInfixSuggester.getDirectory(File path)
Subclass can override to choose a specific
Directory implementation. |
Constructor and Description |
---|
AnalyzingInfixSuggester(Version matchVersion,
Directory dir,
Analyzer analyzer)
Create a new instance, loading from a previously built
AnalyzingInfixSuggester directory, if it exists.
|
AnalyzingInfixSuggester(Version matchVersion,
Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars)
Create a new instance, loading from a previously built
AnalyzingInfixSuggester directory, if it exists.
|
BlendedInfixSuggester(Version matchVersion,
Directory dir,
Analyzer analyzer)
Create a new instance, loading from a previously built
directory, if it exists.
|
BlendedInfixSuggester(Version matchVersion,
Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
BlendedInfixSuggester.BlenderType blenderType,
int numFactor)
Create a new instance, loading from a previously built
directory, if it exists.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseDirectory
Base implementation for a concrete
Directory . |
class |
CompoundFileDirectory
Class for accessing a compound stream.
|
class |
FileSwitchDirectory
Expert: A Directory instance that switches files between
two other Directory instances.
|
class |
FilterDirectory
Directory implementation that delegates calls to another directory.
|
class |
FSDirectory
Base class for Directory implementations that store index
files in the file system.
|
class |
MMapDirectory
File-based
Directory implementation that uses
mmap for reading, and FSDirectory.FSIndexOutput for writing. |
class |
NativeUnixDirectory
A
Directory implementation for all Unixes that uses
DIRECT I/O to bypass OS level IO caching during
merging. |
class |
NIOFSDirectory
An
FSDirectory implementation that uses java.nio's FileChannel's
positional read, which allows multiple threads to read from the same file
without synchronizing. |
class |
NRTCachingDirectory
Wraps a
RAMDirectory
around any provided delegate directory, to
be used during NRT search. |
class |
RAMDirectory
A memory-resident
Directory implementation. |
class |
RateLimitedDirectoryWrapper
|
class |
SimpleFSDirectory
A straightforward implementation of
FSDirectory
using java.io.RandomAccessFile. |
class |
TrackingDirectoryWrapper
A delegating Directory that records which files were
written to and deleted.
|
class |
WindowsDirectory
Native
Directory implementation for Microsoft Windows. |
Modifier and Type | Field and Description |
---|---|
protected Directory |
FilterDirectory.in |
Modifier and Type | Method and Description |
---|---|
Directory |
NRTCachingDirectory.getDelegate() |
Directory |
FilterDirectory.getDelegate()
Return the wrapped
Directory . |
Directory |
CompoundFileDirectory.getDirectory() |
Directory |
FileSwitchDirectory.getPrimaryDir()
Return the primary directory
|
Directory |
FileSwitchDirectory.getSecondaryDir()
Return the secondary directory
|
Modifier and Type | Method and Description |
---|---|
void |
RateLimitedDirectoryWrapper.copy(Directory to,
String src,
String dest,
IOContext context) |
void |
TrackingDirectoryWrapper.copy(Directory to,
String src,
String dest,
IOContext context) |
void |
Directory.copy(Directory to,
String src,
String dest,
IOContext context)
Copies the file src to
Directory to under the new
file name dest. |
Constructor and Description |
---|
CompoundFileDirectory(Directory directory,
String fileName,
IOContext context,
boolean openForWrite)
Create a new CompoundFileDirectory.
|
FileSwitchDirectory(Set<String> primaryExtensions,
Directory primaryDir,
Directory secondaryDir,
boolean doClose) |
FilterDirectory(Directory in)
Sole constructor, typically called from sub-classes.
|
NativeUnixDirectory(File path,
Directory delegate)
Create a new NIOFSDirectory for the named location.
|
NativeUnixDirectory(File path,
int mergeBufferSize,
long minBytesDirect,
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 <=
maxCachedMB
|
RAMDirectory(Directory dir,
IOContext context)
Creates a new
RAMDirectory instance from a different
Directory implementation. |
RateLimitedDirectoryWrapper(Directory wrapped) |
TrackingDirectoryWrapper(Directory in) |
Modifier and Type | Method and Description |
---|---|
static Class<? extends Directory> |
CommandLineUtil.loadDirectoryClass(String clazzName)
Loads a specific Directory implementation
|
Modifier and Type | Method and Description |
---|---|
static void |
IOUtils.deleteFilesIgnoringExceptions(Directory dir,
String... files)
Deletes all given files, suppressing all thrown IOExceptions.
|
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.