Class RandomStarTable

java.lang.Object
uk.ac.starlink.table.AbstractStarTable
uk.ac.starlink.table.RandomStarTable
All Implemented Interfaces:
Closeable, AutoCloseable, StarTable
Direct Known Subclasses:
BeanStarTable, ColumnStarTable, ConstantStarTable, RandomResultSetStarTable, RowListStarTable

public abstract class RandomStarTable extends AbstractStarTable
Implements a StarTable based on row and cell accessor methods that are random access and thread-safe.

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.

Author:
Mark Taylor (Starlink)
  • Constructor Details

    • RandomStarTable

      public RandomStarTable()
  • Method Details