Class MultiLevelSkipListReader
This abstract class reads skip lists with multiple levels.
See MultiLevelSkipListWriter for the information about the encoding of the multi level skip lists.
Subclasses must implement the abstract method ReadSkipData(Int32, IndexInput) which defines the actual format of the skip data.
Implements
Inherited Members
Namespace: Lucene.Net.Codecs
Assembly: Lucene.Net.dll
Syntax
public abstract class MultiLevelSkipListReader : IDisposable
Constructors
| Improve this Doc View SourceMultiLevelSkipListReader(IndexInput, Int32, Int32)
Creates a MultiLevelSkipListReader, where Lucene.Net.Codecs.MultiLevelSkipListReader.skipInterval and Lucene.Net.Codecs.MultiLevelSkipListReader.skipMultiplier are the same.
Declaration
protected MultiLevelSkipListReader(IndexInput skipStream, int maxSkipLevels, int skipInterval)
Parameters
Type | Name | Description |
---|---|---|
IndexInput | skipStream | |
System.Int32 | maxSkipLevels | |
System.Int32 | skipInterval |
MultiLevelSkipListReader(IndexInput, Int32, Int32, Int32)
Creates a MultiLevelSkipListReader.
Declaration
protected MultiLevelSkipListReader(IndexInput skipStream, int maxSkipLevels, int skipInterval, int skipMultiplier)
Parameters
Type | Name | Description |
---|---|---|
IndexInput | skipStream | |
System.Int32 | maxSkipLevels | |
System.Int32 | skipInterval | |
System.Int32 | skipMultiplier |
Fields
| Improve this Doc View Sourcem_maxNumberOfSkipLevels
The maximum number of skip levels possible for this index.
Declaration
protected int m_maxNumberOfSkipLevels
Field Value
Type | Description |
---|---|
System.Int32 |
m_skipDoc
Doc id of current skip entry per level.
Declaration
protected int[] m_skipDoc
Field Value
Type | Description |
---|---|
System.Int32[] |
Properties
| Improve this Doc View SourceDoc
Returns the id of the doc to which the last call of SkipTo(Int32) has skipped.
Declaration
public virtual int Doc { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceDispose()
Disposes all resources used by this object.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all resources used by this object. Subclasses may override to dispose their own resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Init(Int64, Int32)
Initializes the reader, for reuse on a new term.
Declaration
public virtual void Init(long skipPointer, int df)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | skipPointer | |
System.Int32 | df |
ReadSkipData(Int32, IndexInput)
Subclasses must implement the actual skip data encoding in this method.
Declaration
protected abstract int ReadSkipData(int level, IndexInput skipStream)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | The level skip data shall be read from. |
IndexInput | skipStream | The skip stream to read from. |
Returns
Type | Description |
---|---|
System.Int32 |
SeekChild(Int32)
Seeks the skip entry on the given level.
Declaration
protected virtual void SeekChild(int level)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level |
SetLastSkipData(Int32)
Copies the values of the last read skip entry on this level
.
Declaration
protected virtual void SetLastSkipData(int level)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level |
SkipTo(Int32)
Skips entries to the first beyond the current whose document number is
greater than or equal to target
. Returns the current doc count.
Declaration
public virtual int SkipTo(int target)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | target |
Returns
Type | Description |
---|---|
System.Int32 |