public class IndexedStreamColumnStore extends java.lang.Object implements ColumnStore
Constructor and Description |
---|
IndexedStreamColumnStore(Codec codec,
java.io.File dataFile,
java.io.File indexFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptCell(java.lang.Object value)
Writes a datum to this store.
|
ColumnReader |
createReader()
Returns an object that can provide random access to the
cells written to this store.
|
void |
endCells()
Signals that no more calls to
acceptCell will be made,
and that calls to createReader may be made. |
public IndexedStreamColumnStore(Codec codec, java.io.File dataFile, java.io.File indexFile) throws java.io.IOException
codec
- encoder/decoder for the type of data stored in this
columndataFile
- filename used for storing the data;
it is the caller's responsibility to clear this upindexFile
- filename used for storing offset values;
it is the caller's responsibility to clear this upjava.io.IOException
public void acceptCell(java.lang.Object value) throws java.io.IOException
ColumnStore
acceptCell
in interface ColumnStore
value
- the value to addjava.io.IOException
public void endCells() throws java.io.IOException
ColumnStore
acceptCell
will be made,
and that calls to createReader
may be made.endCells
in interface ColumnStore
java.io.IOException
public ColumnReader createReader()
ColumnStore
createReader
in interface ColumnStore