Class StreamColumnStore
java.lang.Object
uk.ac.starlink.table.storage.StreamColumnStore
- All Implemented Interfaces:
ColumnStore
ColumnStore implementation which uses a streamed file to store a
variable number of fixed-length data items.
- Since:
- 21 Jun 2006
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptCell(Object value) Writes a datum to this store.Returns an object that can provide random access to the cells written to this store.voidendCells()Signals that no more calls toacceptCellwill be made, and that calls tocreateReadermay be made.
-
Constructor Details
-
StreamColumnStore
Constructor.- Parameters:
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 up- Throws:
IOException
-
-
Method Details
-
acceptCell
Description copied from interface:ColumnStoreWrites a datum to this store.- Specified by:
acceptCellin interfaceColumnStore- Parameters:
value- the value to add- Throws:
IOException
-
endCells
Description copied from interface:ColumnStoreSignals that no more calls toacceptCellwill be made, and that calls tocreateReadermay be made.- Specified by:
endCellsin interfaceColumnStore- Throws:
IOException
-
createReader
Description copied from interface:ColumnStoreReturns an object that can provide random access to the cells written to this store.- Specified by:
createReaderin interfaceColumnStore- Returns:
- column cell reader
-