Class VariableInt32BlockIndexInput
Abstract base class that reads variable-size blocks of ints from an Lucene.Net.Store.IndexInput. While this is a simple approach, a more performant approach would directly create an impl of Int32IndexInput inside Lucene.Net.Store.Directory. Wrapping a generic Lucene.Net.Store.IndexInput will likely cost performance.
NOTE: This was VariableIntBlockIndexInput in Lucene
Note
This API is experimental and might change in incompatible ways in the next release.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Codecs.IntBlock
Assembly: Lucene.Net.Codecs.dll
Syntax
public abstract class VariableInt32BlockIndexInput : Int32IndexInput, IDisposable
Remarks
Naive int block API that writes vInts. This is expected to give poor performance; it's really only for testing the pluggability. One should typically use pfor instead.
Constructors
| Improve this Doc View SourceVariableInt32BlockIndexInput(IndexInput)
Declaration
protected VariableInt32BlockIndexInput(IndexInput input)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Store.IndexInput | input |
Fields
| Improve this Doc View Sourcem_maxBlockSize
Declaration
protected readonly int m_maxBlockSize
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
| Improve this Doc View SourceGetBlockReader(IndexInput, Int32[])
Declaration
protected abstract VariableInt32BlockIndexInput.IBlockReader GetBlockReader(IndexInput in, int[] buffer)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Store.IndexInput | in | |
System.Int32[] | buffer |
Returns
Type | Description |
---|---|
VariableInt32BlockIndexInput.IBlockReader |
GetIndex()
Declaration
public override Int32IndexInput.Index GetIndex()
Returns
Type | Description |
---|---|
Int32IndexInput.Index |
Overrides
| Improve this Doc View SourceGetReader()
Declaration
public override Int32IndexInput.Reader GetReader()
Returns
Type | Description |
---|---|
Int32IndexInput.Reader |
Overrides
Implements
System.IDisposable