Uses of Class
org.apache.lucene.index.SegmentInfo
Packages that use SegmentInfo
Package
Description
Lucene 5.0 file format.
Lucene 5.0 compressing format.
Lucene 6.0 file format.
Components from the Lucene 7.0 index format.
Lucene 8.6 file format.
Lucene 8.7 file format.
Codecs API: API for customization of the encoding and structure of the index.
Lucene 9.0 file format.
Lucene 9.0 compressing format.
Term dictionary, DocValues or Postings formats that are read entirely into memory.
Simpletext Codec: writes human readable postings.
Code to maintain and access indices.
-
Uses of SegmentInfo in org.apache.lucene.backward_codecs.lucene50
Methods in org.apache.lucene.backward_codecs.lucene50 with parameters of type SegmentInfoModifier and TypeMethodDescriptionfinal StoredFieldsReader
Lucene50StoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) Lucene50StoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) Lucene50CompoundFormat.getCompoundReader
(Directory dir, SegmentInfo si, IOContext context) void
Lucene50CompoundFormat.write
(Directory dir, SegmentInfo si, IOContext context) Constructors in org.apache.lucene.backward_codecs.lucene50 with parameters of type SegmentInfoModifierConstructorDescriptionLucene50CompoundReader
(Directory directory, SegmentInfo si, IOContext context) Create a new CompoundFileDirectory. -
Uses of SegmentInfo in org.apache.lucene.backward_codecs.lucene50.compressing
Methods in org.apache.lucene.backward_codecs.lucene50.compressing with parameters of type SegmentInfoModifier and TypeMethodDescriptionLucene50CompressingStoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) Lucene50CompressingStoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) final TermVectorsReader
Lucene50CompressingTermVectorsFormat.vectorsReader
(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) Lucene50CompressingTermVectorsFormat.vectorsWriter
(Directory directory, SegmentInfo segmentInfo, IOContext context) Constructors in org.apache.lucene.backward_codecs.lucene50.compressing with parameters of type SegmentInfoModifierConstructorDescription(package private)
LegacyFieldsIndexReader
(IndexInput fieldsIndexIn, SegmentInfo si) Lucene50CompressingStoredFieldsReader
(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) Sole constructor.Lucene50CompressingTermVectorsReader
(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) Sole constructor. -
Uses of SegmentInfo in org.apache.lucene.backward_codecs.lucene60
Methods in org.apache.lucene.backward_codecs.lucene60 with parameters of type SegmentInfoModifier and TypeMethodDescriptionLucene60FieldInfosFormat.read
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext context) void
Lucene60FieldInfosFormat.write
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) Note: although this format is only used on older versions, we need to keep the write logic in addition to the read logic. -
Uses of SegmentInfo in org.apache.lucene.backward_codecs.lucene70
Methods in org.apache.lucene.backward_codecs.lucene70 that return SegmentInfoModifier and TypeMethodDescriptionprivate SegmentInfo
Lucene70SegmentInfoFormat.parseSegmentInfo
(Directory dir, DataInput input, String segment, byte[] segmentID) Methods in org.apache.lucene.backward_codecs.lucene70 with parameters of type SegmentInfoModifier and TypeMethodDescriptionvoid
Lucene70SegmentInfoFormat.write
(Directory dir, SegmentInfo si, IOContext ioContext) -
Uses of SegmentInfo in org.apache.lucene.backward_codecs.lucene86
Methods in org.apache.lucene.backward_codecs.lucene86 that return SegmentInfoModifier and TypeMethodDescriptionprivate SegmentInfo
Lucene86SegmentInfoFormat.parseSegmentInfo
(Directory dir, DataInput input, String segment, byte[] segmentID) Methods in org.apache.lucene.backward_codecs.lucene86 with parameters of type SegmentInfoModifier and TypeMethodDescriptionvoid
Lucene86SegmentInfoFormat.write
(Directory dir, SegmentInfo si, IOContext ioContext) -
Uses of SegmentInfo in org.apache.lucene.backward_codecs.lucene87
Methods in org.apache.lucene.backward_codecs.lucene87 with parameters of type SegmentInfoModifier and TypeMethodDescriptionLucene87StoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) Lucene87StoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) -
Uses of SegmentInfo in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return SegmentInfoModifier and TypeMethodDescriptionabstract SegmentInfo
SegmentInfoFormat.read
(Directory directory, String segmentName, byte[] segmentID, IOContext context) ReadSegmentInfo
data from a directory.Methods in org.apache.lucene.codecs with parameters of type SegmentInfoModifier and TypeMethodDescriptionabstract StoredFieldsReader
StoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) Returns aStoredFieldsReader
to load stored fields.abstract StoredFieldsWriter
StoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) Returns aStoredFieldsWriter
to write stored fields.abstract CompoundDirectory
CompoundFormat.getCompoundReader
(Directory dir, SegmentInfo si, IOContext context) Returns a Directory view (read-only) for the compound files in this segmentabstract FieldInfos
FieldInfosFormat.read
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext iocontext) abstract TermVectorsReader
TermVectorsFormat.vectorsReader
(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) Returns aTermVectorsReader
to read term vectors.abstract TermVectorsWriter
TermVectorsFormat.vectorsWriter
(Directory directory, SegmentInfo segmentInfo, IOContext context) Returns aTermVectorsWriter
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
FieldInfosFormat.write
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) Writes the providedFieldInfos
to the directory.abstract void
SegmentInfoFormat.write
(Directory dir, SegmentInfo info, IOContext ioContext) WriteSegmentInfo
data. -
Uses of SegmentInfo in org.apache.lucene.codecs.lucene90
Methods in org.apache.lucene.codecs.lucene90 that return SegmentInfoModifier and TypeMethodDescriptionprivate SegmentInfo
Lucene90SegmentInfoFormat.parseSegmentInfo
(Directory dir, DataInput input, String segment, byte[] segmentID) Methods in org.apache.lucene.codecs.lucene90 with parameters of type SegmentInfoModifier and TypeMethodDescriptionLucene90StoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) Lucene90StoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) Lucene90CompoundFormat.getCompoundReader
(Directory dir, SegmentInfo si, IOContext context) Lucene90FieldInfosFormat.read
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext context) void
Lucene90CompoundFormat.write
(Directory dir, SegmentInfo si, IOContext context) void
Lucene90FieldInfosFormat.write
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) void
Lucene90SegmentInfoFormat.write
(Directory dir, SegmentInfo si, IOContext ioContext) private void
Lucene90CompoundFormat.writeCompoundFile
(IndexOutput entries, IndexOutput data, Directory dir, SegmentInfo si) private void
Lucene90SegmentInfoFormat.writeSegmentInfo
(DataOutput output, SegmentInfo si) Constructors in org.apache.lucene.codecs.lucene90 with parameters of type SegmentInfoModifierConstructorDescriptionLucene90CompoundReader
(Directory directory, SegmentInfo si, IOContext context) Create a new CompoundFileDirectory. -
Uses of SegmentInfo in org.apache.lucene.codecs.lucene90.compressing
Methods in org.apache.lucene.codecs.lucene90.compressing with parameters of type SegmentInfoModifier and TypeMethodDescriptionLucene90CompressingStoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) Lucene90CompressingStoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) final TermVectorsReader
Lucene90CompressingTermVectorsFormat.vectorsReader
(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) final TermVectorsWriter
Lucene90CompressingTermVectorsFormat.vectorsWriter
(Directory directory, SegmentInfo segmentInfo, IOContext context) Constructors in org.apache.lucene.codecs.lucene90.compressing with parameters of type SegmentInfoModifierConstructorDescriptionLucene90CompressingStoredFieldsReader
(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) Sole constructor.(package private)
Lucene90CompressingStoredFieldsWriter
(Directory directory, SegmentInfo si, String segmentSuffix, IOContext context, String formatName, CompressionMode compressionMode, int chunkSize, int maxDocsPerChunk, int blockShift) Sole constructor.Lucene90CompressingTermVectorsReader
(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) Sole constructor.(package private)
Lucene90CompressingTermVectorsWriter
(Directory directory, SegmentInfo si, String segmentSuffix, IOContext context, String formatName, CompressionMode compressionMode, int chunkSize, int maxDocsPerChunk, int blockShift) Sole constructor. -
Uses of SegmentInfo in org.apache.lucene.codecs.memory
Methods in org.apache.lucene.codecs.memory with parameters of type SegmentInfoModifier and TypeMethodDescriptionprivate void
FSTTermsReader.checkFieldSummary
(SegmentInfo info, IndexInput in, FSTTermsReader.TermsReader field, FSTTermsReader.TermsReader previous) -
Uses of SegmentInfo in org.apache.lucene.codecs.simpletext
Methods in org.apache.lucene.codecs.simpletext that return SegmentInfoModifier and TypeMethodDescriptionSimpleTextSegmentInfoFormat.read
(Directory directory, String segmentName, byte[] segmentID, IOContext context) Methods in org.apache.lucene.codecs.simpletext with parameters of type SegmentInfoModifier and TypeMethodDescriptionSimpleTextStoredFieldsFormat.fieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) SimpleTextStoredFieldsFormat.fieldsWriter
(Directory directory, SegmentInfo si, IOContext context) SimpleTextCompoundFormat.getCompoundReader
(Directory dir, SegmentInfo si, IOContext context) SimpleTextFieldInfosFormat.read
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext iocontext) SimpleTextTermVectorsFormat.vectorsReader
(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) SimpleTextTermVectorsFormat.vectorsWriter
(Directory directory, SegmentInfo segmentInfo, IOContext context) void
SimpleTextCompoundFormat.write
(Directory dir, SegmentInfo si, IOContext context) void
SimpleTextFieldInfosFormat.write
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) void
SimpleTextSegmentInfoFormat.write
(Directory dir, SegmentInfo si, IOContext ioContext) Constructors in org.apache.lucene.codecs.simpletext with parameters of type SegmentInfoModifierConstructorDescriptionSimpleTextStoredFieldsReader
(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) SimpleTextTermVectorsReader
(Directory directory, SegmentInfo si, IOContext context) -
Uses of SegmentInfo in org.apache.lucene.index
Fields in org.apache.lucene.index declared as SegmentInfoModifier and TypeFieldDescriptionfinal SegmentInfo
SegmentCommitInfo.info
TheSegmentInfo
that we wrap.(package private) final SegmentInfo
StoredFieldsConsumer.info
protected final SegmentInfo
TermVectorsConsumer.info
private final SegmentInfo
DocumentsWriterPerThread.segmentInfo
final SegmentInfo
MergeState.segmentInfo
SegmentInfo
of the newly merged segment.final SegmentInfo
SegmentReadState.segmentInfo
SegmentInfo
describing this segment.final SegmentInfo
SegmentWriteState.segmentInfo
SegmentInfo
describing this segment.Methods in org.apache.lucene.index that return SegmentInfoModifier and TypeMethodDescription(package private) SegmentInfo
DocumentsWriterPerThread.getSegmentInfo()
Get current segment info we are writing.Methods in org.apache.lucene.index with parameters of type SegmentInfoModifier and TypeMethodDescription(package private) static void
IndexWriter.createCompoundFile
(InfoStream infoStream, TrackingDirectoryWrapper directory, SegmentInfo info, IOContext context, IOConsumer<Collection<String>> deleteFiles) NOTE: this method creates a compound file for all files returned by info.files().void
DocumentsWriter.FlushNotifications.flushFailed
(SegmentInfo info) Called when a segment failed to flush.private void
IndexWriter.flushFailed
(SegmentInfo info) Cleans up residuals from a segment that could not be entirely flushed due to an error(package private) static void
IndexWriter.setDiagnostics
(SegmentInfo info, String source) private static void
IndexWriter.setDiagnostics
(SegmentInfo info, String source, Map<String, String> details) private static void
MergeState.verifyIndexSort
(List<CodecReader> readers, SegmentInfo segmentInfo) Constructors in org.apache.lucene.index with parameters of type SegmentInfoModifierConstructorDescription(package private)
IndexingChain
(int indexCreatedVersionMajor, SegmentInfo segmentInfo, Directory directory, FieldInfos.Builder fieldInfos, LiveIndexWriterConfig indexWriterConfig, Consumer<Throwable> abortingExceptionConsumer) (package private)
MergeState
(List<CodecReader> readers, SegmentInfo segmentInfo, InfoStream infoStream) Sole constructor.SegmentCommitInfo
(SegmentInfo info, int delCount, int softDelCount, long delGen, long fieldInfosGen, long docValuesGen, byte[] id) Sole constructor.(package private)
SegmentMerger
(List<CodecReader> readers, SegmentInfo segmentInfo, InfoStream infoStream, Directory dir, FieldInfos.FieldNumbers fieldNumbers, IOContext context) SegmentReadState
(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context) Create aSegmentReadState
.SegmentReadState
(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, String segmentSuffix) Create aSegmentReadState
.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, String segmentSuffix) Constructor which takes segment suffix.(package private)
SortingStoredFieldsConsumer
(Codec codec, Directory directory, SegmentInfo info) (package private)
SortingTermVectorsConsumer
(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec) (package private)
StoredFieldsConsumer
(Codec codec, Directory directory, SegmentInfo info) (package private)
TermVectorsConsumer
(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec)