SegmentReadState
class SegmentReadState
Holder class for common parameters used during read.
Constructors
Link copied to clipboard
Create a SegmentReadState.
constructor(dir: Directory, info: SegmentInfo, fieldInfos: FieldInfos, context: IOContext, segmentSuffix: String)
Create a SegmentReadState.
Create a SegmentReadState.
Properties
Link copied to clipboard
IOContext to pass to Directory.openInput.
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 ).