Next Previous Up Contents
Next: Adapting Sequential to Random Access
Up: Table Data
Previous: Sequential Access

2.3.2 Random Access

If a table's isRandom method returns true, then it is possible to access the cells of a table in any order. This is done using the getCell or getRow methods directly on the table itself (not on a RowSequence). Similar comments about whether to use getCell or getRow apply as in the previous section.

If an attempt is made to call these random access methods on a non-random table (one for which isRandom() returns false), an UnsupportedOperationException will be thrown.


Next Previous Up Contents
Next: Adapting Sequential to Random Access
Up: Table Data
Previous: Sequential Access

STIL - Starlink Tables Infrastructure Library
Starlink User Note252
STIL web page: http://www.starlink.ac.uk/stil/
Author email: m.b.taylor@bristol.ac.uk