|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.SegmentWriteState
public class SegmentWriteState
Holder class for common parameters used during write.
Field Summary | |
---|---|
IOContext |
context
IOContext for all writes; you should pass this
to Directory.createOutput(String,IOContext) . |
int |
delCountOnFlush
Number of deleted documents set while flushing the segment. |
Directory |
directory
Directory where this segment will be written
to. |
FieldInfos |
fieldInfos
FieldInfos describing all fields in this
segment. |
InfoStream |
infoStream
InfoStream used for debugging messages. |
MutableBits |
liveDocs
MutableBits recording live documents; this is
only set if there is one or more deleted documents. |
SegmentInfo |
segmentInfo
SegmentInfo describing this segment. |
String |
segmentSuffix
Unique suffix for any postings files written for this segment. |
org.apache.lucene.index.BufferedUpdates |
segUpdates
Deletes and updates to apply while we are flushing the segment. |
int |
termIndexInterval
Expert: The fraction of terms in the "dictionary" which should be stored in RAM. |
Constructor Summary | |
---|---|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
int termIndexInterval,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context)
Sole constructor. |
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
int termIndexInterval,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context,
String segmentSuffix)
Constructor which takes segment suffix. |
|
SegmentWriteState(SegmentWriteState state,
String segmentSuffix)
Create a shallow copy of SegmentWriteState with a new segment suffix. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final InfoStream infoStream
InfoStream
used for debugging messages.
public final Directory directory
Directory
where this segment will be written
to.
public final SegmentInfo segmentInfo
SegmentInfo
describing this segment.
public final FieldInfos fieldInfos
FieldInfos
describing all fields in this
segment.
public int delCountOnFlush
public final org.apache.lucene.index.BufferedUpdates segUpdates
public MutableBits liveDocs
MutableBits
recording live documents; this is
only set if there is one or more deleted documents.
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 int termIndexInterval
public final IOContext context
IOContext
for all writes; you should pass this
to Directory.createOutput(String,IOContext)
.
Constructor Detail |
---|
public SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, int termIndexInterval, org.apache.lucene.index.BufferedUpdates segUpdates, IOContext context)
public SegmentWriteState(InfoStream infoStream, Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, int termIndexInterval, org.apache.lucene.index.BufferedUpdates segUpdates, IOContext context, String segmentSuffix)
SegmentWriteState(InfoStream, Directory, SegmentInfo, FieldInfos, int,
BufferedUpdates, IOContext)
public SegmentWriteState(SegmentWriteState state, String segmentSuffix)
SegmentWriteState
with a new segment suffix.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |