Class VariableInt32BlockIndexOutput
Abstract base class that writes variable-size blocks of ints
to an Lucene.Net.Store.IndexOutput. While this is a simple approach, a
more performant approach would directly create an impl
of Int32IndexOutput inside Lucene.Net.Store.Directory. Wrapping a generic
Lucene.Net.Store.IndexOutput will likely cost performance.
NOTE: This was VariableIntBlockIndexOutput in Lucene
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
VariableInt32BlockIndexOutput
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()
Assembly: Lucene.Net.Codecs.dll
Syntax
public abstract class VariableInt32BlockIndexOutput : Int32IndexOutput, IDisposable
Constructors
|
Improve this Doc
View Source
VariableInt32BlockIndexOutput(IndexOutput, Int32)
NOTE: maxBlockSize
must be the maximum block size
plus the max non-causal lookahead of your codec. EG Simple9
requires lookahead=1 because on seeing the Nth value
it knows it must now encode the N-1 values before it.
Declaration
protected VariableInt32BlockIndexOutput(IndexOutput output, int maxBlockSize)
Parameters
Type |
Name |
Description |
Lucene.Net.Store.IndexOutput |
output |
|
System.Int32 |
maxBlockSize |
|
Fields
|
Improve this Doc
View Source
m_output
Declaration
protected readonly IndexOutput m_output
Field Value
Type |
Description |
Lucene.Net.Store.IndexOutput |
|
Methods
|
Improve this Doc
View Source
Add(Int32)
Called one value at a time. Return the number of
buffered input values that have been written to out.
Declaration
protected abstract int Add(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
GetIndex()
Declaration
public override Int32IndexOutput.Index GetIndex()
Returns
Overrides
|
Improve this Doc
View Source
Write(Int32)
Declaration
public override void Write(int v)
Parameters
Type |
Name |
Description |
System.Int32 |
v |
|
Overrides
Implements
System.IDisposable