Class FixedInt32BlockIndexOutput
Abstract base class that writes fixed-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 FixedIntBlockIndexOutput in Lucene
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
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 FixedInt32BlockIndexOutput : Int32IndexOutput, 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 SourceFixedInt32BlockIndexOutput(IndexOutput, Int32)
Declaration
protected FixedInt32BlockIndexOutput(IndexOutput output, int fixedBlockSize)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Store.IndexOutput | output | |
System.Int32 | fixedBlockSize |
Fields
| Improve this Doc View Sourcem_buffer
Declaration
protected readonly int[] m_buffer
Field Value
Type | Description |
---|---|
System.Int32[] |
m_output
Declaration
protected readonly IndexOutput m_output
Field Value
Type | Description |
---|---|
Lucene.Net.Store.IndexOutput |
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 SourceFlushBlock()
Declaration
protected abstract void FlushBlock()
GetIndex()
Declaration
public override Int32IndexOutput.Index GetIndex()
Returns
Type | Description |
---|---|
Int32IndexOutput.Index |
Overrides
| Improve this Doc View SourceWrite(Int32)
Declaration
public override void Write(int v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | v |
Overrides
Implements
System.IDisposable