public abstract class RandomStarTable extends AbstractStarTable
The isRandom method always returns true, and the
getRowSequence method is implemented using the table's
(abstract) getCell and getRow methods,
which must be safe for concurrent use from multiple threads.
This implementation is only suitable where table data access is
naturally thread-safe; in cases where synchronization or some
other potentially expensive mechanism is used to secure thread-safety
of getCell, it is better to use a different implementation
with a better getRowSequence implementation.
| Constructor and Description |
|---|
RandomStarTable() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
getCell(long irow,
int icol)
Implementations of this method must be safe for concurrent calls
from multiple threads.
|
RowAccess |
getRowAccess()
Returns a
RowAccess object based on the random data
access methods of this table. |
abstract long |
getRowCount()
Implementations must supply a non-negative return value.
|
RowSequence |
getRowSequence()
Returns a
RowSequence object based on the random data
access methods of this table. |
boolean |
isRandom()
Returns true.
|
checkedLongToInt, close, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameters, getRow, getRowSplittable, getURL, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic boolean isRandom()
isRandom in interface StarTableisRandom in class AbstractStarTablepublic RowSequence getRowSequence()
RowSequence object based on the random data
access methods of this table.getRowSequence in interface StarTablegetRowSequence in class AbstractStarTablepublic RowAccess getRowAccess()
RowAccess object based on the random data
access methods of this table.getRowAccess in interface StarTablegetRowAccess in class AbstractStarTablepublic abstract long getRowCount()
getRowCount in interface StarTablegetRowCount in class AbstractStarTablepublic abstract java.lang.Object getCell(long irow,
int icol)
throws java.io.IOException
getCell in interface StarTablegetCell in class AbstractStarTableirow - the index of the cell's rowicol - the index of the cell's columnjava.io.IOException - if there is an error reading the data