SegmentReadState

Holder class for common parameters used during read.

Constructors

Link copied to clipboard
constructor(dir: Directory, info: SegmentInfo, fieldInfos: FieldInfos, context: IOContext)

Create a SegmentReadState.

constructor(dir: Directory, info: SegmentInfo, fieldInfos: FieldInfos, context: IOContext, segmentSuffix: String)

Create a SegmentReadState.

constructor(other: SegmentReadState, newSegmentSuffix: String)

Create a SegmentReadState.

Properties

Link copied to clipboard
Link copied to clipboard

Directory where this segment is read from.

Link copied to clipboard

FieldInfos describing all fields in this segment.

Link copied to clipboard

SegmentInfo describing this segment.

Link copied to clipboard

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