public class SegmentReadState extends Object
Modifier and Type | Field and Description |
---|---|
IOContext |
context
IOContext to pass to Directory.openInput(String,IOContext) . |
Directory |
directory
Directory where this segment is read from. |
FieldInfos |
fieldInfos
FieldInfos describing all fields in this
segment. |
SegmentInfo |
segmentInfo
SegmentInfo describing this segment. |
String |
segmentSuffix
Unique suffix for any postings files read for this
segment.
|
Constructor and Description |
---|
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context)
Create a
SegmentReadState . |
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
String segmentSuffix)
Create a
SegmentReadState . |
SegmentReadState(SegmentReadState other,
String newSegmentSuffix)
Create a
SegmentReadState . |
public final SegmentInfo segmentInfo
SegmentInfo
describing this segment.public final FieldInfos fieldInfos
FieldInfos
describing all fields in this
segment.public final IOContext context
IOContext
to pass to Directory.openInput(String,IOContext)
.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 SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context)
SegmentReadState
.public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, String segmentSuffix)
SegmentReadState
.public SegmentReadState(SegmentReadState other, String newSegmentSuffix)
SegmentReadState
.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.