Class SegmentReadState
Holder class for common parameters used during read.
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class SegmentReadState
Constructors
| Improve this Doc View SourceSegmentReadState(SegmentReadState, String)
Create a SegmentReadState.
Declaration
public SegmentReadState(SegmentReadState other, string newSegmentSuffix)
Parameters
Type | Name | Description |
---|---|---|
SegmentReadState | other | |
System.String | newSegmentSuffix |
SegmentReadState(Directory, SegmentInfo, FieldInfos, IOContext, Int32)
Create a SegmentReadState.
Declaration
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
SegmentInfo | info | |
FieldInfos | fieldInfos | |
IOContext | context | |
System.Int32 | termsIndexDivisor |
SegmentReadState(Directory, SegmentInfo, FieldInfos, IOContext, Int32, String)
Create a SegmentReadState.
Declaration
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor, string segmentSuffix)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
SegmentInfo | info | |
FieldInfos | fieldInfos | |
IOContext | context | |
System.Int32 | termsIndexDivisor | |
System.String | segmentSuffix |
Properties
| Improve this Doc View SourceContext
IOContext to pass to OpenInput(String, IOContext).
Declaration
public IOContext Context { get; }
Property Value
Type | Description |
---|---|
IOContext |
Directory
Directory where this segment is read from.
Declaration
public Directory Directory { get; }
Property Value
Type | Description |
---|---|
Directory |
FieldInfos
FieldInfos describing all fields in this segment.
Declaration
public FieldInfos FieldInfos { get; }
Property Value
Type | Description |
---|---|
FieldInfos |
SegmentInfo
SegmentInfo describing this segment.
Declaration
public SegmentInfo SegmentInfo { get; }
Property Value
Type | Description |
---|---|
SegmentInfo |
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 new PostingsFormat then any files you write/read must be derived using this suffix (use SegmentFileName(String, String, String)).
Declaration
public string SegmentSuffix { get; }
Property Value
Type | Description |
---|---|
System.String |
TermsIndexDivisor
The termInfosIndexDivisor
to use, if
appropriate (not all PostingsFormats 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
Declaration
public int TermsIndexDivisor { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |