Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene80 for an overview
of the index format. |
org.apache.lucene.codecs.lucene60 |
Components from the Lucene 6.0 index format.
|
org.apache.lucene.codecs.lucene70 |
Components from the Lucene 7.0 index format.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Method and Description |
---|---|
abstract SegmentInfo |
SegmentInfoFormat.read(Directory directory,
java.lang.String segmentName,
byte[] segmentID,
IOContext context)
Read
SegmentInfo data from a directory. |
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,
java.lang.String segmentSuffix,
IOContext iocontext)
|
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,
java.lang.String segmentSuffix,
FieldInfos infos,
IOContext context)
Writes the provided
FieldInfos to the
directory. |
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 |
---|
CompressingStoredFieldsIndexReader(IndexInput fieldsIndexIn,
SegmentInfo si) |
CompressingStoredFieldsReader(Directory d,
SegmentInfo si,
java.lang.String segmentSuffix,
FieldInfos fn,
IOContext context,
java.lang.String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingStoredFieldsWriter(Directory directory,
SegmentInfo si,
java.lang.String segmentSuffix,
IOContext context,
java.lang.String formatName,
CompressionMode compressionMode,
int chunkSize,
int maxDocsPerChunk,
int blockSize)
Sole constructor.
|
CompressingTermVectorsReader(Directory d,
SegmentInfo si,
java.lang.String segmentSuffix,
FieldInfos fn,
IOContext context,
java.lang.String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingTermVectorsWriter(Directory directory,
SegmentInfo si,
java.lang.String segmentSuffix,
IOContext context,
java.lang.String formatName,
CompressionMode compressionMode,
int chunkSize,
int blockSize)
Sole constructor.
|
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,
java.lang.String segmentSuffix,
IOContext context) |
void |
Lucene50CompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context) |
void |
Lucene50FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
java.lang.String segmentSuffix,
FieldInfos infos,
IOContext context) |
Constructor and Description |
---|
Lucene50CompoundReader(Directory directory,
SegmentInfo si,
IOContext context)
Create a new CompoundFileDirectory.
|
Modifier and Type | Method and Description |
---|---|
FieldInfos |
Lucene60FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
java.lang.String segmentSuffix,
IOContext context) |
void |
Lucene60FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
java.lang.String segmentSuffix,
FieldInfos infos,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
Lucene70SegmentInfoFormat.read(Directory dir,
java.lang.String segment,
byte[] segmentID,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
Lucene70SegmentInfoFormat.write(Directory dir,
SegmentInfo si,
IOContext ioContext) |
Modifier and Type | Field and Description |
---|---|
SegmentInfo |
SegmentCommitInfo.info
The
SegmentInfo that we wrap. |
SegmentInfo |
SegmentWriteState.segmentInfo
SegmentInfo describing this segment. |
SegmentInfo |
SegmentReadState.segmentInfo
SegmentInfo describing this segment. |
SegmentInfo |
MergeState.segmentInfo
SegmentInfo of the newly merged segment. |
(package private) SegmentInfo |
DocumentsWriterPerThread.segmentInfo |
Modifier and Type | Method and Description |
---|---|
(package private) SegmentInfo |
DocumentsWriterPerThread.getSegmentInfo()
Get current segment info we are writing.
|
Modifier and Type | Method and Description |
---|---|
(package private) static void |
IndexWriter.createCompoundFile(InfoStream infoStream,
TrackingDirectoryWrapper directory,
SegmentInfo info,
IOContext context,
IOUtils.IOConsumer<java.util.Collection<java.lang.String>> deleteFiles)
NOTE: this method creates a compound file for all files returned by
info.files().
|
private void |
IndexWriter.flushFailed(SegmentInfo info)
Cleans up residuals from a segment that could not be entirely flushed due to an error
|
void |
DocumentsWriter.FlushNotifications.flushFailed(SegmentInfo info)
Called when a segment failed to flush.
|
private java.util.List<CodecReader> |
MergeState.maybeSortReaders(java.util.List<CodecReader> originalReaders,
SegmentInfo segmentInfo) |
(package private) static void |
IndexWriter.setDiagnostics(SegmentInfo info,
java.lang.String source) |
private static void |
IndexWriter.setDiagnostics(SegmentInfo info,
java.lang.String source,
java.util.Map<java.lang.String,java.lang.String> details) |
Constructor and Description |
---|
MergeState(java.util.List<CodecReader> originalReaders,
SegmentInfo segmentInfo,
InfoStream infoStream)
Sole constructor.
|
SegmentCommitInfo(SegmentInfo info,
int delCount,
int softDelCount,
long delGen,
long fieldInfosGen,
long docValuesGen)
Sole constructor.
|
SegmentMerger(java.util.List<CodecReader> readers,
SegmentInfo segmentInfo,
InfoStream infoStream,
Directory dir,
FieldInfos.FieldNumbers fieldNumbers,
IOContext context) |
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
boolean openedFromWriter,
IOContext context,
java.util.Map<java.lang.String,java.lang.String> readerAttributes)
Create a
SegmentReadState . |
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
boolean openedFromWriter,
IOContext context,
java.lang.String segmentSuffix,
java.util.Map<java.lang.String,java.lang.String> readerAttributes)
Create a
SegmentReadState . |
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
BufferedUpdates segUpdates,
IOContext context)
Sole constructor.
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
BufferedUpdates segUpdates,
IOContext context,
java.lang.String segmentSuffix)
Constructor which takes segment suffix.
|