C# Class Lucene.Net.Codecs.IntBlock.VariableIntBlockIndexOutput

Abstract base class that writes variable-size blocks of ints to an IndexOutput. While this is a simple approach, a more performant approach would directly create an impl of IntIndexOutput inside Directory. Wrapping a generic IndexInput will likely cost performance. @lucene.experimental
Inheritance: Lucene.Net.Codecs.Sep.IntIndexOutput
ファイルを表示 Open project: apache/lucenenet Class Usage Examples

Protected Properties

Property Type Description
output Lucene.Net.Store.IndexOutput

Public Methods

Method Description
Dispose ( ) : void
Index ( ) : Lucene.Net.Codecs.Sep.IntIndexOutputIndex
Write ( int v ) : void

Protected Methods

Method Description
Add ( int value ) : int

Called one value at a time. Return the number of buffered input values that have been written to out.

VariableIntBlockIndexOutput ( Lucene.Net.Store.IndexOutput output, int maxBlockSize ) : Lucene.Net.Codecs.Sep

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.

Method Details

Add() protected abstract method

Called one value at a time. Return the number of buffered input values that have been written to out.
protected abstract Add ( int value ) : int
value int
return int

Dispose() public method

public Dispose ( ) : void
return void

Index() public method

public Index ( ) : Lucene.Net.Codecs.Sep.IntIndexOutputIndex
return Lucene.Net.Codecs.Sep.IntIndexOutputIndex

VariableIntBlockIndexOutput() protected method

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.
protected VariableIntBlockIndexOutput ( Lucene.Net.Store.IndexOutput output, int maxBlockSize ) : Lucene.Net.Codecs.Sep
output Lucene.Net.Store.IndexOutput
maxBlockSize int
return Lucene.Net.Codecs.Sep

Write() public method

public Write ( int v ) : void
v int
return void

Property Details

output protected_oe property

protected IndexOutput,Lucene.Net.Store output
return Lucene.Net.Store.IndexOutput