Package uk.ac.starlink.table.storage
Interface ColumnStore
-
- All Known Implementing Classes:
IndexedStreamColumnStore
,StreamColumnStore
public interface ColumnStore
Defines an object which can store the data of a column, that is, an array of homogeneous objects. The store is populated sequentially, and when ready provides random access.The sequence of calls must be as follows:
- Zero or more calls of
acceptCell(java.lang.Object)
- A call of
endCells()
- Zero or more calls of
createReader()
- Since:
- 21 Jun 2006
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 toacceptCell
will be made, and that calls tocreateReader
may be made.
-
-
-
Method Detail
-
acceptCell
void acceptCell(java.lang.Object value) throws java.io.IOException
Writes a datum to this store.- Parameters:
value
- the value to add- Throws:
java.io.IOException
-
endCells
void endCells() throws java.io.IOException
Signals that no more calls toacceptCell
will be made, and that calls tocreateReader
may be made.- Throws:
java.io.IOException
-
createReader
ColumnReader createReader()
Returns an object that can provide random access to the cells written to this store.- Returns:
- column cell reader
-
-