Class SegmentReadState
Holder class for common parameters used during read.
Inheritance
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class SegmentReadState : object
Constructors
| Improve this Doc View SourceSegmentReadState(SegmentReadState, String)
Create a Segment
Declaration
public SegmentReadState(SegmentReadState other, string newSegmentSuffix)
Parameters
Type | Name | Description |
---|---|---|
Segment |
other | |
System. |
newSegmentSuffix |
SegmentReadState(Directory, SegmentInfo, FieldInfos, IOContext, Int32)
Create a Segment
Declaration
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
Segment |
info | |
Field |
fieldInfos | |
IOContext | context | |
System. |
termsIndexDivisor |
SegmentReadState(Directory, SegmentInfo, FieldInfos, IOContext, Int32, String)
Create a Segment
Declaration
public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor, string segmentSuffix)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
Segment |
info | |
Field |
fieldInfos | |
IOContext | context | |
System. |
termsIndexDivisor | |
System. |
segmentSuffix |
Properties
| Improve this Doc View SourceContext
IOContext to pass to
Open
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
Field
Declaration
public FieldInfos FieldInfos { get; }
Property Value
Type | Description |
---|---|
Field |
SegmentInfo
Segment
Declaration
public SegmentInfo SegmentInfo { get; }
Property Value
Type | Description |
---|---|
Segment |
SegmentSuffix
Unique suffix for any postings files read for this
segment. Per
Declaration
public string SegmentSuffix { get; }
Property Value
Type | Description |
---|---|
System. |
TermsIndexDivisor
The termInfosIndexDivisor
to use, if
appropriate (not all Postings
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. |