SegmentWriteState

Holder class for common parameters used during write.

Constructors

Link copied to clipboard
constructor(infoStream: InfoStream?, directory: Directory, segmentInfo: SegmentInfo, fieldInfos: FieldInfos?, segUpdates: BufferedUpdates?, context: IOContext)

Sole constructor.

constructor(infoStream: InfoStream?, directory: Directory, segmentInfo: SegmentInfo, fieldInfos: FieldInfos?, segUpdates: BufferedUpdates?, context: IOContext, segmentSuffix: String)

Constructor which takes segment suffix.

constructor(state: SegmentWriteState, segmentSuffix: String)

Create a shallow copy of SegmentWriteState with a new segment suffix.

Properties

Link copied to clipboard

IOContext for all writes; you should pass this to .

Link copied to clipboard

Number of deleted documents set while flushing the segment.

Link copied to clipboard

Directory where this segment will be written to.

Link copied to clipboard

FieldInfos describing all fields in this segment.

Link copied to clipboard

InfoStream used for debugging messages.

Link copied to clipboard

FixedBitSet recording live documents; this is only set if there is one or more deleted documents.

Link copied to clipboard

SegmentInfo describing this segment.

Link copied to clipboard

Unique suffix for any postings files written for this segment. 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 ).

Link copied to clipboard

Deletes and updates to apply while we are flushing the segment. A Term is enrolled in here if it was deleted/updated at one point, and it's mapped to the docIDUpto, meaning any docID < docIDUpto containing this term should be deleted/updated.

Link copied to clipboard

Number of only soft deleted documents set while flushing the segment.