public abstract class VariableIntBlockIndexOutput extends IntIndexOutput
| Modifier and Type | Field and Description |
|---|---|
protected IndexOutput |
out |
| Modifier | Constructor and Description |
|---|---|
protected |
VariableIntBlockIndexOutput(IndexOutput out,
int maxBlockSize)
NOTE: maxBlockSize must be the maximum block size
plus the max non-causal lookahead of your codec.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected final IndexOutput out
protected VariableIntBlockIndexOutput(IndexOutput out, int maxBlockSize) throws IOException
IOExceptionprotected abstract int add(int value)
throws IOException
IOExceptionpublic IntIndexOutput.Index index()
IntIndexOutputindex in class IntIndexOutputpublic void write(int v)
throws IOException
IntIndexOutputwrite in class IntIndexOutputIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in class IntIndexOutputIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.