Package uk.ac.starlink.table.storage
Class IndexedStreamColumnStore
java.lang.Object
uk.ac.starlink.table.storage.IndexedStreamColumnStore
- All Implemented Interfaces:
ColumnStore
ColumnStore implementation which uses two streamed files to store a
variable number of variable-length data items.
- Since:
- 21 Jun 2006
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionIndexedStreamColumnStore
(Codec codec, File dataFile, File indexFile) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptCell
(Object value) Writes a datum to this store.Returns an object that can provide random access to the cells written to this store.void
endCells()
Signals that no more calls toacceptCell
will be made, and that calls tocreateReader
may be made.
-
Constructor Details
-
IndexedStreamColumnStore
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 upindexFile
- filename used for storing offset values; it is the caller's responsibility to clear this up- Throws:
IOException
-
-
Method Details
-
acceptCell
Description copied from interface:ColumnStore
Writes a datum to this store.- Specified by:
acceptCell
in interfaceColumnStore
- Parameters:
value
- the value to add- Throws:
IOException
-
endCells
Description copied from interface:ColumnStore
Signals that no more calls toacceptCell
will be made, and that calls tocreateReader
may be made.- Specified by:
endCells
in interfaceColumnStore
- Throws:
IOException
-
createReader
Description copied from interface:ColumnStore
Returns an object that can provide random access to the cells written to this store.- Specified by:
createReader
in interfaceColumnStore
- Returns:
- column cell reader
-