Class SegmentWriteState
Holder class for common parameters used during write.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public class SegmentWriteState : object
Constructors
Name | Description |
---|---|
SegmentWriteState(SegmentWriteState, String) | Create a shallow copy of SegmentWriteState with a new segment suffix. |
SegmentWriteState(InfoStream, Directory, SegmentInfo, FieldInfos, Int32, BufferedUpdates, IOContext) | Sole constructor. |
SegmentWriteState(InfoStream, Directory, SegmentInfo, FieldInfos, Int32, BufferedUpdates, IOContext, String) | Constructor which takes segment suffix. |
Properties
Name | Description |
---|---|
Context | IOContext for all writes; you should pass this to CreateOutput(String, IOContext). |
DelCountOnFlush | Number of deleted documents set while flushing the segment. |
Directory | Directory where this segment will be written to. |
FieldInfos | FieldInfos describing all fields in this segment. |
InfoStream | InfoStream used for debugging messages. |
LiveDocs | IMutableBits recording live documents; this is only set if there is one or more deleted documents. |
SegmentInfo | SegmentInfo describing this segment. |
SegmentSuffix | Unique suffix for any postings files written for this segment. 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 SegmentFileName(String, String, String)). |
SegUpdates | Deletes and updates to apply while we are flushing the segment. A Term is enrolled in here if it was deleted/updated at one point, and it's mapped to the docIDUpto, meaning any docID < docIDUpto containing this term should be deleted/updated. |
TermIndexInterval | Expert: The fraction of terms in the "dictionary" which should be stored in RAM. Smaller values use more memory, but make searching slightly faster, while larger values use less memory and make searching slightly slower. Searching is typically not dominated by dictionary lookup, so tweaking this is rarely useful. |