public class SegmentWriteState extends Object
Modifier and Type | Field and Description |
---|---|
IOContext |
context
IOContext for all writes; you should pass this
to Directory.createOutput(String,IOContext) . |
int |
delCountOnFlush
Number of deleted documents set while flushing the
segment.
|
Directory |
directory
Directory where this segment will be written
to. |
FieldInfos |
fieldInfos
FieldInfos describing all fields in this
segment. |
InfoStream |
infoStream
InfoStream used for debugging messages. |
MutableBits |
liveDocs
MutableBits recording live documents; this is
only set if there is one or more deleted documents. |
org.apache.lucene.index.BufferedDeletes |
segDeletes
Deletes to apply while we are flushing the segment.
|
SegmentInfo |
segmentInfo
SegmentInfo describing this segment. |
String |
segmentSuffix
Unique suffix for any postings files written for this
segment.
|
int |
termIndexInterval
Expert: The fraction of terms in the "dictionary" which should be stored
in RAM.
|
Constructor and Description |
---|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
int termIndexInterval,
org.apache.lucene.index.BufferedDeletes segDeletes,
IOContext context)
Sole constructor.
|
SegmentWriteState(SegmentWriteState state,
String segmentSuffix)
Create a shallow
SegmentWriteState copy final a format ID |
public final InfoStream infoStream
InfoStream
used for debugging messages.public final SegmentInfo segmentInfo
SegmentInfo
describing this segment.public final FieldInfos fieldInfos
FieldInfos
describing all fields in this
segment.public int delCountOnFlush
public final org.apache.lucene.index.BufferedDeletes segDeletes
public MutableBits liveDocs
MutableBits
recording live documents; this is
only set if there is one or more deleted documents.public final String segmentSuffix
PerFieldPostingsFormat
sets this for
each of the postings formats it wraps. If you create
a new PostingsFormat
then any files you
write/read must be derived using this suffix (use
IndexFileNames.segmentFileName(String,String,String)
).public int termIndexInterval
public final IOContext context
IOContext
for all writes; you should pass this
to Directory.createOutput(String,IOContext)
.public SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, int termIndexInterval, org.apache.lucene.index.BufferedDeletes segDeletes, IOContext context)
public SegmentWriteState(SegmentWriteState state, String segmentSuffix)
SegmentWriteState
copy final a format IDCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.