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. |
SegmentInfo |
segmentInfo
SegmentInfo describing this segment. |
String |
segmentSuffix
Unique suffix for any postings files written for this
segment.
|
org.apache.lucene.index.BufferedUpdates |
segUpdates
Deletes and updates to apply while we are flushing the 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.BufferedUpdates segUpdates,
IOContext context)
Sole constructor.
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
int termIndexInterval,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context,
String segmentSuffix)
Constructor which takes segment suffix.
|
SegmentWriteState(SegmentWriteState state,
String segmentSuffix)
Create a shallow copy of
SegmentWriteState with a new segment suffix. |
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.BufferedUpdates segUpdates
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.BufferedUpdates segUpdates, IOContext context)
public SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, int termIndexInterval, org.apache.lucene.index.BufferedUpdates segUpdates, IOContext context, String segmentSuffix)
public SegmentWriteState(SegmentWriteState state, String segmentSuffix)
SegmentWriteState
with a new segment suffix.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.