Class Lucene41PostingsReader
Concrete class that reads docId(maybe frq,pos,offset,payloads) list with postings format.
Note
This API is experimental and might change in incompatible ways in the next release.
Implements
Inherited Members
Namespace: Lucene.Net.Codecs.Lucene41
Assembly: Lucene.Net.dll
Syntax
public sealed class Lucene41PostingsReader : PostingsReaderBase, IDisposable
Constructors
Lucene41PostingsReader(Directory, FieldInfos, SegmentInfo, IOContext, string)
Sole constructor.
Declaration
public Lucene41PostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, string segmentSuffix)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
FieldInfos | fieldInfos | |
SegmentInfo | segmentInfo | |
IOContext | ioContext | |
string | segmentSuffix |
See Also
Methods
CheckIntegrity()
Checks consistency of this reader.
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public override void CheckIntegrity()
Overrides
See Also
DecodeTerm(long[], DataInput, FieldInfo, BlockTermState, bool)
Actually decode metadata for next term.
Declaration
public override void DecodeTerm(long[] longs, DataInput @in, FieldInfo fieldInfo, BlockTermState termState, bool absolute)
Parameters
Type | Name | Description |
---|---|---|
long[] | longs | |
DataInput | in | |
FieldInfo | fieldInfo | |
BlockTermState | termState | |
bool | absolute |
Overrides
See Also
Dispose(bool)
Implementations must override and should dispose all resources used by this instance.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
See Also
Docs(FieldInfo, BlockTermState, IBits, DocsEnum, DocsFlags)
Must fully consume state, since after this call that TermState may be reused.
Declaration
public override DocsEnum Docs(FieldInfo fieldInfo, BlockTermState termState, IBits liveDocs, DocsEnum reuse, DocsFlags flags)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo | |
BlockTermState | termState | |
IBits | liveDocs | |
DocsEnum | reuse | |
DocsFlags | flags |
Returns
Type | Description |
---|---|
DocsEnum |
Overrides
See Also
DocsAndPositions(FieldInfo, BlockTermState, IBits, DocsAndPositionsEnum, DocsAndPositionsFlags)
Must fully consume state, since after this call that TermState may be reused.
Declaration
public override DocsAndPositionsEnum DocsAndPositions(FieldInfo fieldInfo, BlockTermState termState, IBits liveDocs, DocsAndPositionsEnum reuse, DocsAndPositionsFlags flags)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo | |
BlockTermState | termState | |
IBits | liveDocs | |
DocsAndPositionsEnum | reuse | |
DocsAndPositionsFlags | flags |
Returns
Type | Description |
---|---|
DocsAndPositionsEnum |
Overrides
See Also
Init(IndexInput)
Performs any initialization, such as reading and verifying the header from the provided terms dictionary IndexInput.
Declaration
public override void Init(IndexInput termsIn)
Parameters
Type | Name | Description |
---|---|---|
IndexInput | termsIn |
Overrides
See Also
NewTermState()
Return a newly created empty TermState.
Declaration
public override BlockTermState NewTermState()
Returns
Type | Description |
---|---|
BlockTermState |
Overrides
See Also
RamBytesUsed()
Returns approximate RAM bytes used.
Declaration
public override long RamBytesUsed()
Returns
Type | Description |
---|---|
long |