Class Lucene40SegmentInfoFormat
java.lang.Object
org.apache.lucene.codecs.SegmentInfoFormat
org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoFormat
Deprecated.
Only for reading old 4.0-4.5 segments, and supporting IndexWriter.addIndexes
Lucene 4.0 Segment info format.
Files:
- .si: Header, SegVersion, SegSize, IsCompoundFile, Diagnostics, Attributes, Files
- Header -->
CodecHeader
- SegSize -->
Int32
- SegVersion -->
String
- Files -->
Set<String>
- Diagnostics, Attributes -->
Map<String,String>
- IsCompoundFile -->
Int8
- SegVersion is the code version that created the segment.
- SegSize is the number of documents contained in the segment index.
- IsCompoundFile records whether the segment is written as a compound file or not. If this is -1, the segment is not a compound file. If it is 1, the segment is a compound file.
- Checksum contains the CRC32 checksum of all bytes in the segments_N file up until the checksum. This is used to verify integrity of the file on opening the index.
- The Diagnostics Map is privately written by
IndexWriter
, as a debugging aid, for each segment it creates. It includes metadata like the current Lucene version, OS, Java version, why the segment was created (merge, flush, addIndexes), etc. - Attributes: a key-value map of codec-private attributes.
- Files is a list of files referred to by this segment.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.File extension used to storeSegmentInfo
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns theSegmentInfoReader
for readingSegmentInfo
instances.Deprecated.Returns theSegmentInfoWriter
for writingSegmentInfo
instances.
-
Field Details
-
SI_EXTENSION
Deprecated.File extension used to storeSegmentInfo
.- See Also:
-
-
Constructor Details
-
Lucene40SegmentInfoFormat
public Lucene40SegmentInfoFormat()Deprecated.Sole constructor.
-
-
Method Details
-
getSegmentInfoReader
Deprecated.Description copied from class:SegmentInfoFormat
Returns theSegmentInfoReader
for readingSegmentInfo
instances.- Specified by:
getSegmentInfoReader
in classSegmentInfoFormat
-
getSegmentInfoWriter
Deprecated.Description copied from class:SegmentInfoFormat
Returns theSegmentInfoWriter
for writingSegmentInfo
instances.- Specified by:
getSegmentInfoWriter
in classSegmentInfoFormat
-