Package org.apache.lucene.index
Class SegmentReadState
- java.lang.Object
-
- org.apache.lucene.index.SegmentReadState
-
public class SegmentReadState extends java.lang.ObjectHolder class for common parameters used during read.
-
-
Field Summary
Fields Modifier and Type Field Description IOContextcontextIOContextto pass toDirectory.openInput(String,IOContext).DirectorydirectoryDirectorywhere this segment is read from.FieldInfosfieldInfosFieldInfosdescribing all fields in this segment.SegmentInfosegmentInfoSegmentInfodescribing this segment.java.lang.StringsegmentSuffixUnique suffix for any postings files read for this segment.
-
Constructor Summary
Constructors Constructor Description SegmentReadState(SegmentReadState other, java.lang.String newSegmentSuffix)Create aSegmentReadState.SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context)Create aSegmentReadState.SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, java.lang.String segmentSuffix)Create aSegmentReadState.
-
-
-
Field Detail
-
segmentInfo
public final SegmentInfo segmentInfo
SegmentInfodescribing this segment.
-
fieldInfos
public final FieldInfos fieldInfos
FieldInfosdescribing all fields in this segment.
-
context
public final IOContext context
IOContextto pass toDirectory.openInput(String,IOContext).
-
segmentSuffix
public final java.lang.String segmentSuffix
Unique suffix for any postings files read for this segment.PerFieldPostingsFormatsets this for each of the postings formats it wraps. If you create a newPostingsFormatthen any files you write/read must be derived using this suffix (useIndexFileNames.segmentFileName(String,String,String)).
-
-
Constructor Detail
-
SegmentReadState
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context)
Create aSegmentReadState.
-
SegmentReadState
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, java.lang.String segmentSuffix)
Create aSegmentReadState.
-
SegmentReadState
public SegmentReadState(SegmentReadState other, java.lang.String newSegmentSuffix)
Create aSegmentReadState.
-
-