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
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Protected Properties

Свойство Type Description
output Lucene.Net.Store.IndexOutput

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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
Résultat int

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Index() public méthode

public Index ( ) : Lucene.Net.Codecs.Sep.IntIndexOutputIndex
Résultat Lucene.Net.Codecs.Sep.IntIndexOutputIndex

VariableIntBlockIndexOutput() protected méthode

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
Résultat Lucene.Net.Codecs.Sep

Write() public méthode

public Write ( int v ) : void
v int
Résultat void

Property Details

output protected_oe property

protected IndexOutput,Lucene.Net.Store output
Résultat Lucene.Net.Store.IndexOutput