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
IOException
protected abstract int add(int value) throws IOException
IOException
public IntIndexOutput.Index index() throws IOException
IntIndexOutput
index
in class IntIndexOutput
IOException
public void write(int v) throws IOException
IntIndexOutput
write
in class IntIndexOutput
IOException
public void close() throws IOException
close
in interface Closeable
close
in class IntIndexOutput
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.