|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.codecs.sep.IntIndexOutput
org.apache.lucene.codecs.intblock.VariableIntBlockIndexOutput
public abstract class 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.
| Field Summary | |
|---|---|
protected IndexOutput |
out
|
| Constructor Summary | |
|---|---|
protected |
VariableIntBlockIndexOutput(IndexOutput out,
int maxBlockSize)
NOTE: maxBlockSize must be the maximum block size plus the max non-causal lookahead of your codec. |
| Method Summary | |
|---|---|
protected abstract int |
add(int value)
Called one value at a time. |
void |
close()
|
IntIndexOutput.Index |
index()
If you are indexing the primary output file, call this and interact with the returned IndexWriter. |
void |
write(int v)
Write an int to the primary file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final IndexOutput out
| Constructor Detail |
|---|
protected VariableIntBlockIndexOutput(IndexOutput out,
int maxBlockSize)
throws IOException
IOException| Method Detail |
|---|
protected abstract int add(int value)
throws IOException
IOException
public IntIndexOutput.Index index()
throws IOException
IntIndexOutput
index in class IntIndexOutputIOException
public void write(int v)
throws IOException
IntIndexOutput
write in class IntIndexOutputIOException
public void close()
throws IOException
close in interface Closeableclose in class IntIndexOutputIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||