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. |
FixedBitSet |
liveDocs
FixedBitSet 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 |
softDelCountOnFlush
Number of only soft deleted documents set while flushing the
segment.
|
Constructor and Description |
---|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context)
Sole constructor.
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
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 int softDelCountOnFlush
public final org.apache.lucene.index.BufferedUpdates segUpdates
public FixedBitSet liveDocs
FixedBitSet
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)
).
Note: the suffix must be either empty, or be a textual suffix contain exactly two parts (separated by underscore), or be a base36 generation.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, org.apache.lucene.index.BufferedUpdates segUpdates, IOContext context)
public SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, org.apache.lucene.index.BufferedUpdates segUpdates, IOContext context, String segmentSuffix)
public SegmentWriteState(SegmentWriteState state, String segmentSuffix)
SegmentWriteState
with a new segment suffix.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.