|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.SegmentReadState
public class SegmentReadState
Holder class for common parameters used during read.
Field Summary | |
---|---|
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. |
int |
termsIndexDivisor
The termInfosIndexDivisor to use, if
appropriate (not all PostingsFormat s support
it; in particular the current default does not). |
Constructor Summary | |
---|---|
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
int termsIndexDivisor)
Create a SegmentReadState . |
|
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
int termsIndexDivisor,
String segmentSuffix)
Create a SegmentReadState . |
|
SegmentReadState(SegmentReadState other,
String newSegmentSuffix)
Create a SegmentReadState . |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Directory directory
Directory
where this segment is read from.
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 int termsIndexDivisor
termInfosIndexDivisor
to use, if
appropriate (not all PostingsFormat
s support
it; in particular the current default does not).
NOTE: if this is < 0, that means "defer terms index load until needed". But if the codec must load the terms index on init (preflex is the only once currently that must do so), then it should negate this value to get the app's terms divisor
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)
).
Constructor Detail |
---|
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor)
SegmentReadState
.
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor, String segmentSuffix)
SegmentReadState
.
public SegmentReadState(SegmentReadState other, String newSegmentSuffix)
SegmentReadState
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |