public class SegmentWriteState extends Object
Modifier and Type | Field and Description |
---|---|
BitVector |
deletedDocs |
Directory |
directory |
FieldInfos |
fieldInfos |
boolean |
hasVectors |
PrintStream |
infoStream |
int |
maxSkipLevels
Expert: The maximum number of skip levels.
|
int |
numDocs |
org.apache.lucene.index.BufferedDeletes |
segDeletes |
String |
segmentName |
int |
skipInterval
Expert: The fraction of TermDocs entries stored in skip tables,
used to accelerate
TermDocs.skipTo(int) . |
int |
termIndexInterval
Expert: The fraction of terms in the "dictionary" which should be stored
in RAM.
|
Constructor and Description |
---|
SegmentWriteState(PrintStream infoStream,
Directory directory,
String segmentName,
FieldInfos fieldInfos,
int numDocs,
int termIndexInterval,
org.apache.lucene.index.BufferedDeletes segDeletes) |
public final PrintStream infoStream
public final Directory directory
public final String segmentName
public final FieldInfos fieldInfos
public final int numDocs
public boolean hasVectors
public final org.apache.lucene.index.BufferedDeletes segDeletes
public BitVector deletedDocs
public final int termIndexInterval
public final int skipInterval
TermDocs.skipTo(int)
. Larger values result in
smaller indexes, greater acceleration, but fewer accelerable cases, while
smaller values result in bigger indexes, less acceleration and more
accelerable cases. More detailed experiments would be useful here.public final int maxSkipLevels
public SegmentWriteState(PrintStream infoStream, Directory directory, String segmentName, FieldInfos fieldInfos, int numDocs, int termIndexInterval, org.apache.lucene.index.BufferedDeletes segDeletes)