Package | Description |
---|---|
org.apache.lucene.benchmark.byTask |
Benchmarking Lucene By Tasks
|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
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.asserting |
Codec for testing that asserts various contracts of the codec apis.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.lucene40 |
Lucene 4.0 file format.
|
org.apache.lucene.codecs.lucene41 |
Lucene 4.1 file format.
|
org.apache.lucene.codecs.lucene42 |
Lucene 4.2 file format.
|
org.apache.lucene.codecs.lucene46 |
Lucene 4.6 file format.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene53 for an overview
of the index format. |
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 |
Code to maintain and access indices.
|
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 |
Binary i/o API, used for all index data.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.fst |
Finite state transducers
|
Modifier and Type | Method and Description |
---|---|
Directory |
PerfRunData.getDirectory() |
Directory |
PerfRunData.getTaxonomyDir() |
Modifier and Type | Method and Description |
---|---|
void |
PerfRunData.setDirectory(Directory directory) |
Modifier and Type | Method and Description |
---|---|
static IndexCommit |
OpenReaderTask.findIndexCommit(Directory dir,
String userData) |
Modifier and Type | Method and Description |
---|---|
void |
DatasetSplitter.split(LeafReader 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 Directory |
CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
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 Directory |
CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
abstract FieldInfos |
FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext iocontext)
|
abstract SegmentInfo |
SegmentInfoFormat.read(Directory directory,
String segmentName,
byte[] segmentID,
IOContext context)
Read
SegmentInfo data from a directory. |
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 |
CompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context)
Packs the provided segment's files into a compound format.
|
abstract void |
SegmentInfoFormat.write(Directory dir,
SegmentInfo info,
IOContext ioContext)
Write
SegmentInfo data. |
abstract void |
FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
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.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
AssertingStoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
AssertingStoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
Bits |
AssertingLiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
TermVectorsReader |
AssertingTermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
TermVectorsWriter |
AssertingTermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context) |
void |
AssertingLiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
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,
int maxDocsPerChunk,
int blockSize)
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,
int blockSize)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
Directory |
Lucene40CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
Lucene40StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Deprecated.
|
StoredFieldsWriter |
Lucene40StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context)
Deprecated.
|
Directory |
Lucene40CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Deprecated.
|
FieldInfos |
Lucene40FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext iocontext)
Deprecated.
|
SegmentInfo |
Lucene40SegmentInfoFormat.read(Directory dir,
String segment,
byte[] segmentID,
IOContext context)
Deprecated.
|
Bits |
Lucene40LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context)
Deprecated.
|
TermVectorsReader |
Lucene40TermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context)
Deprecated.
|
TermVectorsWriter |
Lucene40TermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context)
Deprecated.
|
void |
Lucene40CompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context)
Deprecated.
|
void |
Lucene40SegmentInfoFormat.write(Directory dir,
SegmentInfo info,
IOContext ioContext)
Deprecated.
|
void |
Lucene40FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context)
Deprecated.
|
void |
Lucene40LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
Lucene41StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Deprecated.
|
StoredFieldsWriter |
Lucene41StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context)
Deprecated.
|
Constructor and Description |
---|
Lucene41PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
String segmentSuffix)
Deprecated.
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
FieldInfos |
Lucene42FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext iocontext)
Deprecated.
|
TermVectorsReader |
Lucene42TermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context)
Deprecated.
|
TermVectorsWriter |
Lucene42TermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context)
Deprecated.
|
void |
Lucene42FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
FieldInfos |
Lucene46FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext context)
Deprecated.
|
SegmentInfo |
Lucene46SegmentInfoFormat.read(Directory dir,
String segment,
byte[] segmentID,
IOContext context)
Deprecated.
|
void |
Lucene46SegmentInfoFormat.write(Directory dir,
SegmentInfo info,
IOContext ioContext)
Deprecated.
|
void |
Lucene46FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Directory |
Lucene50CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
Lucene50StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
Lucene50StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
Directory |
Lucene50CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
FieldInfos |
Lucene50FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext context) |
SegmentInfo |
Lucene50SegmentInfoFormat.read(Directory dir,
String segment,
byte[] segmentID,
IOContext context) |
Bits |
Lucene50LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
void |
Lucene50CompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context) |
void |
Lucene50SegmentInfoFormat.write(Directory dir,
SegmentInfo si,
IOContext ioContext) |
void |
Lucene50FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context) |
void |
Lucene50LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
Directory |
SimpleTextCompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
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) |
Directory |
SimpleTextCompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
FieldInfos |
SimpleTextFieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext iocontext) |
SegmentInfo |
SimpleTextSegmentInfoFormat.read(Directory directory,
String segmentName,
byte[] segmentID,
IOContext context) |
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 |
SimpleTextCompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context) |
void |
SimpleTextSegmentInfoFormat.write(Directory dir,
SegmentInfo si,
IOContext ioContext) |
void |
SimpleTextFieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
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) |
Modifier and Type | Method and Description |
---|---|
static void |
TaxonomyMergeUtils.merge(Directory srcIndexDir,
Directory srcTaxoDir,
DirectoryTaxonomyWriter.OrdinalMap map,
IndexWriter destIndexWriter,
DirectoryTaxonomyWriter destTaxoWriter,
FacetsConfig srcConfig)
Merges the given taxonomy and index directories and commits the changes to
the given writers.
|
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.
|
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 |
ThreadedIndexingAndSearchingTestCase.dir |
Directory |
SegmentInfo.dir
Where this segment resides.
|
Directory |
CheckIndex.Status.dir
Directory index is in.
|
Directory |
SegmentReadState.directory
Directory where this segment is read from. |
Directory |
SegmentWriteState.directory
Directory where this segment will be written
to. |
protected Directory |
DirectoryReader.directory
The index directory.
|
Modifier and Type | Method and Description |
---|---|
protected static Directory |
BaseCompoundFormatTestCase.createLargeCFS(Directory dir)
Setup a large compound file with a number of components, each of
which is a sequential file (so that we can easily tell that we are
reading in the right byte).
|
Directory |
DirectoryReader.directory()
Returns the directory this index resides in.
|
Directory |
SegmentReader.directory()
Returns the directory this index resides in.
|
abstract Directory |
IndexCommit.getDirectory()
Returns the
Directory for the index. |
Directory |
IndexWriter.getDirectory()
Returns the Directory used by this index.
|
Directory |
MergePolicy.MergeException.getDirectory()
Returns the
Directory of the index that hit
the exception. |
protected Directory |
ThreadedIndexingAndSearchingTestCase.getDirectory(Directory in) |
Modifier and Type | Method and Description |
---|---|
void |
RandomIndexWriter.addIndexes(Directory... dirs) |
long |
TrackingIndexWriter.addIndexes(Directory... dirs)
Calls
IndexWriter.addIndexes(Directory...) and
returns the generation that reflects this change. |
void |
IndexWriter.addIndexes(Directory... dirs)
Adds all segments from an array of indexes into this index.
|
FieldsProducer |
RandomPostingsTester.buildIndex(Codec codec,
Directory dir,
IndexOptions maxAllowed,
boolean allowPayloads,
boolean alwaysTestMax) |
protected static Directory |
BaseCompoundFormatTestCase.createLargeCFS(Directory dir)
Setup a large compound file with a number of components, each of
which is a sequential file (so that we can easily tell that we are
reading in the right byte).
|
protected static void |
BaseCompoundFormatTestCase.createRandomFile(Directory dir,
String name,
int size)
Creates a file of the specified size with random data.
|
protected static void |
BaseCompoundFormatTestCase.createSequenceFile(Directory dir,
String name,
byte start,
int size)
Creates a file of the specified size with sequential data.
|
Collection<String> |
SegmentInfos.files(Directory dir,
boolean includeSegmentsFile)
Deprecated.
Use
SegmentInfos.files(boolean) instead. |
protected Directory |
ThreadedIndexingAndSearchingTestCase.getDirectory(Directory in) |
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.
|
protected void |
SuppressingConcurrentMergeScheduler.handleMergeException(Directory dir,
Throwable exc) |
protected void |
ConcurrentMergeScheduler.handleMergeException(Directory dir,
Throwable exc)
Called when an exception is hit in a background merge
thread
|
static boolean |
DirectoryReader.indexExists(Directory directory)
Returns
true if an index likely exists at
the specified directory. |
static boolean |
IndexWriter.isLocked(Directory directory)
Deprecated.
Use of this method can only lead to race conditions. Try
to actually obtain a lock instead.
|
static List<IndexCommit> |
DirectoryReader.listCommits(Directory dir)
Returns all commit points that exist in the Directory.
|
static IndexWriter |
RandomIndexWriter.mockIndexWriter(Directory dir,
IndexWriterConfig conf,
Random r)
Returns an indexwriter that randomly mixes up thread scheduling (by yielding at test points)
|
static IndexWriter |
RandomIndexWriter.mockIndexWriter(Random r,
Directory dir,
IndexWriterConfig conf,
RandomIndexWriter.TestPoint testPoint)
Returns an indexwriter that enables the specified test point
|
protected static SegmentInfo |
BaseCompoundFormatTestCase.newSegmentInfo(Directory dir,
String name)
Returns a new fake segment
|
protected static SegmentInfo |
BaseFieldInfoFormatTestCase.newSegmentInfo(Directory dir,
String name)
Returns a new fake segment
|
static DirectoryReader |
DirectoryReader.open(Directory directory)
Returns a IndexReader reading the index in the given
Directory
|
static SegmentInfos |
SegmentInfos.readCommit(Directory directory,
String segmentFileName)
Read a particular segmentFileName.
|
static SegmentInfos |
SegmentInfos.readLatestCommit(Directory directory)
Find the latest commit (
segments_N file ) and
load all SegmentCommitInfo s. |
String |
MergePolicy.MergeSpecification.segString(Directory dir)
Returns a description of the merges in this
specification.
|
void |
MultiPassIndexSplitter.split(IndexReader in,
Directory[] outputs,
boolean seq)
Split source index into multiple parts.
|
String |
SegmentInfos.toString(Directory dir)
Deprecated.
Use
SegmentInfos.toString() instead. |
String |
SegmentInfo.toString(Directory dir,
int delCount)
Deprecated.
Use
SegmentInfo.toString(int) instead. |
String |
SegmentCommitInfo.toString(Directory dir,
int pendingDelCount)
Deprecated.
Use
SegmentCommitInfo.toString(int) instead. |
Constructor and Description |
---|
CheckIndex(Directory dir)
Create a new CheckIndex on the directory.
|
CheckIndex(Directory dir,
Lock writeLock)
Expert: create a directory with the specified lock.
|
DirectoryReader(Directory directory,
LeafReader[] segmentReaders)
Expert: Constructs a
DirectoryReader on the given subReaders. |
FindSegmentsFile(Directory directory)
Sole constructor.
|
IndexUpgrader(Directory dir)
Creates index upgrader on the given directory, using an
IndexWriter using the given
matchVersion . |
IndexUpgrader(Directory dir,
IndexWriterConfig iwc,
boolean deletePriorCommits)
Creates index upgrader on the given directory, using an
IndexWriter using the given
config. |
IndexUpgrader(Directory dir,
InfoStream 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 . |
MergeException(String message,
Directory dir)
Create a
MergeException . |
MergeException(Throwable exc,
Directory dir)
Create a
MergeException . |
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)
Split an index based on a
Filter . |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Filter docsInFirstIndex,
IndexWriterConfig config1,
IndexWriterConfig config2) |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Query docsInFirstIndex)
Split an index based on a
Query . |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Query docsInFirstIndex,
IndexWriterConfig config1,
IndexWriterConfig config2) |
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) |
RandomIndexWriter(Random r,
Directory dir)
create a RandomIndexWriter with a random config: Uses MockAnalyzer
|
RandomIndexWriter(Random r,
Directory dir,
Analyzer a)
create a RandomIndexWriter with a random config
|
RandomIndexWriter(Random r,
Directory dir,
IndexWriterConfig c)
create a RandomIndexWriter with the provided config
|
ReaderManager(Directory dir)
Creates and returns a new ReaderManager from the given
Directory . |
SegmentInfo(Directory dir,
Version version,
String name,
int maxDoc,
boolean isCompoundFile,
Codec codec,
Map<String,String> diagnostics,
byte[] id,
Map<String,String> attributes)
Construct a new complete SegmentInfo instance from input.
|
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context)
Create a
SegmentReadState . |
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
String segmentSuffix)
Create a
SegmentReadState . |
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context)
Sole constructor.
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
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 |
PerSessionDirectoryFactory.getDirectory(String sessionID,
String source) |
Directory |
ReplicationClient.SourceDirectoryFactory.getDirectory(String sessionID,
String source)
Returns the
Directory to use for the given session and 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,
InfoStream infoStream)
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) |
Modifier and Type | Method and Description |
---|---|
void |
IndexReplicationHandler.revisionReady(String version,
Map<String,List<RevisionFile>> revisionFiles,
Map<String,List<String>> copiedFiles,
Map<String,Directory> sourceDirectory) |
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.
|
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.
|
IndexReplicationHandler(Directory indexDir,
Callable<Boolean> callback)
Constructor with the given index directory and callback to notify when the
indexes were updated.
|
SnapshotDirectoryTaxonomyWriter(Directory d) |
SnapshotDirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode) |
SnapshotDirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode,
TaxonomyWriterCache cache) |
Modifier and Type | Field and Description |
---|---|
Directory |
ShardSearchingTestBase.NodeState.dir |
protected static Directory |
SearchEquivalenceTestBase.directory |
protected static Directory |
BaseExplanationTestCase.directory |
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(Path path)
Subclass can override to choose a specific
Directory implementation. |
Constructor and 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(Version matchVersion,
Directory dir,
Analyzer analyzer)
|
AnalyzingInfixSuggester(Version matchVersion,
Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
boolean commitOnBuild)
|
AnalyzingInfixSuggester(Version matchVersion,
Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
boolean commitOnBuild,
boolean allTermsRequired,
boolean highlight)
|
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,
boolean commitOnBuild,
boolean allTermsRequired,
boolean highlight)
Create a new instance, loading from a previously built
directory, if it exists.
|
BlendedInfixSuggester(Version matchVersion,
Directory dir,
Analyzer analyzer)
Deprecated.
|
BlendedInfixSuggester(Version matchVersion,
Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
BlendedInfixSuggester.BlenderType blenderType,
int numFactor,
boolean commitOnBuild)
|
Modifier and Type | Class and Description |
---|---|
class |
BaseDirectory
Base implementation for a concrete
Directory that uses a LockFactory for locking. |
class |
BaseDirectoryWrapper
Calls check index on close.
|
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 |
LockValidatingDirectoryWrapper
This class makes a best-effort check that a provided
Lock
is valid before any destructive filesystem operation. |
class |
MMapDirectory
File-based
Directory implementation that uses
mmap for reading, and FSDirectory.FSIndexOutput for writing. |
class |
MockDirectoryWrapper
This is a Directory Wrapper that adds methods
intended to be used only by unit tests.
|
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 |
RAFDirectory
A straightforward implementation of
FSDirectory
using java.io.RandomAccessFile. |
class |
RAMDirectory
A memory-resident
Directory implementation. |
class |
RawDirectoryWrapper
Delegates all operations, even optional ones, to the wrapped directory.
|
class |
SimpleFSDirectory
A straightforward implementation of
FSDirectory
using Files.newByteChannel(Path, java.nio.file.OpenOption...) . |
class |
SleepingLockWrapper
Directory that wraps another, and that sleeps and retries
if obtaining the lock fails.
|
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 |
FilterDirectory.getDelegate()
Return the wrapped
Directory . |
protected abstract Directory |
BaseLockFactoryTestCase.getDirectory(Path path)
Subclass returns the Directory to be tested; if it's
an FS-based directory it should point to the specified
path, else it can ignore it.
|
protected abstract Directory |
BaseDirectoryTestCase.getDirectory(Path path)
Subclass returns the Directory to be tested; if it's
an FS-based directory it should point to the specified
path, else it can ignore it.
|
Directory |
FileSwitchDirectory.getPrimaryDir()
Return the primary directory
|
Directory |
FileSwitchDirectory.getSecondaryDir()
Return the secondary directory
|
static Directory |
FilterDirectory.unwrap(Directory dir)
Get the wrapped instance by
dir as long as this reader is
an instance of FilterDirectory . |
Modifier and Type | Method and Description |
---|---|
void |
MockDirectoryWrapper.copyFrom(Directory from,
String src,
String dest,
IOContext context) |
void |
RawDirectoryWrapper.copyFrom(Directory from,
String src,
String dest,
IOContext context) |
void |
LockValidatingDirectoryWrapper.copyFrom(Directory from,
String src,
String dest,
IOContext context) |
void |
Directory.copyFrom(Directory from,
String src,
String dest,
IOContext context)
Copies the file src in from to this directory under the new
file name dest.
|
void |
TrackingDirectoryWrapper.copyFrom(Directory from,
String src,
String dest,
IOContext context) |
Lock |
VerifyingLockFactory.obtainLock(Directory dir,
String lockName) |
Lock |
NoLockFactory.obtainLock(Directory dir,
String lockName) |
Lock |
SingleInstanceLockFactory.obtainLock(Directory dir,
String lockName) |
abstract Lock |
LockFactory.obtainLock(Directory dir,
String lockName)
Return a new obtained Lock instance identified by lockName.
|
Lock |
FSLockFactory.obtainLock(Directory dir,
String lockName) |
static void |
BaseDirectoryTestCase.testCopyBytes(Directory dir) |
static void |
BaseDirectoryTestCase.testCopyBytesWithThreads(Directory d) |
static Directory |
FilterDirectory.unwrap(Directory dir)
Get the wrapped instance by
dir as long as this reader is
an instance of FilterDirectory . |
Constructor and Description |
---|
BaseDirectoryWrapper(Directory delegate) |
FileSwitchDirectory(Set<String> primaryExtensions,
Directory primaryDir,
Directory secondaryDir,
boolean doClose) |
FilterDirectory(Directory in)
Sole constructor, typically called from sub-classes.
|
LockValidatingDirectoryWrapper(Directory in,
Lock writeLock) |
MockDirectoryWrapper(Random random,
Directory delegate) |
NativeUnixDirectory(Path path,
Directory delegate)
Create a new NIOFSDirectory for the named location with
FSLockFactory.getDefault() . |
NativeUnixDirectory(Path path,
int mergeBufferSize,
long minBytesDirect,
LockFactory lockFactory,
Directory delegate)
Create a new NIOFSDirectory for the named location.
|
NativeUnixDirectory(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
<= maxCachedMB |
RawDirectoryWrapper(Directory delegate) |
SleepingLockWrapper(Directory delegate,
long lockWaitTimeout)
Create a new SleepingLockFactory
|
SleepingLockWrapper(Directory delegate,
long lockWaitTimeout,
long pollInterval)
Create a new SleepingLockFactory
|
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 boolean |
TestUtil.anyFilesExceptWriteLock(Directory dir) |
static CheckIndex.Status |
TestUtil.checkIndex(Directory dir)
This runs the CheckIndex tool on the index in.
|
static CheckIndex.Status |
TestUtil.checkIndex(Directory dir,
boolean crossCheckTermVectors) |
static CheckIndex.Status |
TestUtil.checkIndex(Directory dir,
boolean crossCheckTermVectors,
boolean failFast)
If failFast is true, then throw the first exception when index corruption is hit, instead of moving on to other fields/segments to
look for any other corruption.
|
static void |
IOUtils.deleteFilesIgnoringExceptions(Directory dir,
String... files)
Deletes all given files, suppressing all thrown IOExceptions.
|
static BaseDirectoryWrapper |
LuceneTestCase.newDirectory(Directory d)
Returns a new Directory instance, with contents copied from the
provided directory.
|
static BaseDirectoryWrapper |
LuceneTestCase.newDirectory(Random r,
Directory d)
Returns a new Directory instance, using the specified random
with contents copied from the provided directory.
|
static RAMDirectory |
TestUtil.ramCopyOf(Directory dir)
Returns a copy of directory, entirely in RAM
|
static boolean |
LuceneTestCase.slowFileExists(Directory dir,
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 boolean |
IOUtils.spins(Directory dir)
If the dir is an
FSDirectory or wraps one via possibly
nested FilterDirectory or FileSwitchDirectory ,
this returns IOUtils.spins(Path) for the wrapped directory,
else, true. |
Constructor and Description |
---|
FSTTester(Random random,
Directory dir,
int inputMode,
List<FSTTester.InputOutput<T>> pairs,
Outputs<T> outputs,
boolean doReverseLookup) |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.