Package uk.ac.starlink.ttools.plot2.data
Interface CachedColumn
-
public interface CachedColumn
Defines storage for a vector of data.The usage sequence for an instance of this class is:
- Call
add(java.lang.Object)
zero or more times - Call
endAdd()
- Call
createReader()
zero or more times
- Since:
- 4 Feb 2013
- Author:
- Mark Taylor
- Call
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(java.lang.Object value)
Adds an entry to this vector data container.CachedReader
createReader()
Returns an object which is capable of accessing the values that were added to this object.void
endAdd()
Indicates that no more calls toadd(java.lang.Object)
will be madelong
getRowCount()
Returns the number of values added so far.
-
-
-
Method Detail
-
add
void add(java.lang.Object value) throws java.io.IOException
Adds an entry to this vector data container. In general the supplied value must be of an appropriate type for this object. It must not be null.- Parameters:
value
- non-null value to store- Throws:
java.io.IOException
-
endAdd
void endAdd() throws java.io.IOException
Indicates that no more calls toadd(java.lang.Object)
will be made- Throws:
java.io.IOException
-
getRowCount
long getRowCount()
Returns the number of values added so far.- Returns:
- value count
-
createReader
CachedReader createReader()
Returns an object which is capable of accessing the values that were added to this object.- Returns:
- cached data sequence
-
-