Package org.apache.lucene.index
Class SegmentReadState
java.lang.Object
org.apache.lucene.index.SegmentReadState
Holder class for common parameters used during read.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Modifier and TypeFieldDescriptionfinal IOContext
IOContext
to pass toDirectory.openInput(String,IOContext)
.final Directory
Directory
where this segment is read from.final FieldInfos
FieldInfos
describing all fields in this segment.final SegmentInfo
SegmentInfo
describing this segment.final String
Unique suffix for any postings files read for this segment. -
Constructor Summary
ConstructorDescriptionSegmentReadState
(SegmentReadState other, String newSegmentSuffix) Create aSegmentReadState
.SegmentReadState
(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context) Create aSegmentReadState
.SegmentReadState
(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, String segmentSuffix) Create aSegmentReadState
. -
Method Summary
-
Field Details
-
directory
Directory
where this segment is read from. -
segmentInfo
SegmentInfo
describing this segment. -
fieldInfos
FieldInfos
describing all fields in this segment. -
context
IOContext
to pass toDirectory.openInput(String,IOContext)
. -
segmentSuffix
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 newPostingsFormat
then any files you write/read must be derived using this suffix (useIndexFileNames.segmentFileName(String,String,String)
).
-
-
Constructor Details
-
SegmentReadState
Create aSegmentReadState
. -
SegmentReadState
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, String segmentSuffix) Create aSegmentReadState
. -
SegmentReadState
Create aSegmentReadState
.
-