public class Lucene70SegmentInfoFormat extends SegmentInfoFormat
Files:
IndexHeader
Int32
String
String
Set<String>
Map<String,String>
Int8
Int32
count, followed by count
SortFieldString
field name, followed by Int32
sort type ID,
followed by Int8
indicating reversed sort, followed by a type-specific encoding of the optional missing value
CodecFooter
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.SegmentInfos
Modifier and Type | Field and Description |
---|---|
static String |
SI_EXTENSION
File extension used to store
SegmentInfo . |
Constructor and Description |
---|
Lucene70SegmentInfoFormat()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
read(Directory dir,
String segment,
byte[] segmentID,
IOContext context) |
void |
write(Directory dir,
SegmentInfo si,
IOContext ioContext) |
public static final String SI_EXTENSION
SegmentInfo
.public SegmentInfo read(Directory dir, String segment, byte[] segmentID, IOContext context) throws IOException
read
in class SegmentInfoFormat
IOException
public void write(Directory dir, SegmentInfo si, IOContext ioContext) throws IOException
write
in class SegmentInfoFormat
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.