public class StreamColumnStore extends Object implements ColumnStore
Constructor and Description |
---|
StreamColumnStore(Codec codec,
File dataFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptCell(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 StreamColumnStore(Codec codec, File dataFile) throws 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 upIOException
public void acceptCell(Object value) throws IOException
ColumnStore
acceptCell
in interface ColumnStore
value
- the value to addIOException
public void endCells() throws IOException
ColumnStore
acceptCell
will be made,
and that calls to createReader
may be made.endCells
in interface ColumnStore
IOException
public ColumnReader createReader()
ColumnStore
createReader
in interface ColumnStore
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.