Class SubsetStarTable
java.lang.Object
uk.ac.starlink.table.WrapperStarTable
uk.ac.starlink.topcat.SubsetStarTable
- All Implemented Interfaces:
Closeable, AutoCloseable, uk.ac.starlink.table.StarTable
public class SubsetStarTable
extends uk.ac.starlink.table.WrapperStarTable
StarTable that applies a row subset selection to a given input table.
This implementation is not random access, but does supply a
non-trivial RowSplittable.
- Since:
- 14 Dec 2020
- Author:
- Mark Taylor
-
Field Summary
Fields inherited from class uk.ac.starlink.table.WrapperStarTable
baseTable -
Constructor Summary
ConstructorsConstructorDescriptionSubsetStarTable(uk.ac.starlink.table.StarTable base, RowSubset rset) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic uk.ac.starlink.table.StarTablecreateTable(uk.ac.starlink.table.StarTable table, RowSubset rset) Returns a table with row selection characteristics matching those of the given subset.getCell(long irow, int icol) Object[]getRow(long irow) uk.ac.starlink.table.RowAccesslonguk.ac.starlink.table.RowSequenceuk.ac.starlink.table.RowSplittableNote the row index reflects the index in the underlying table, not that of the subset table.booleanisRandom()Methods inherited from class uk.ac.starlink.table.WrapperStarTable
checkedLongToInt, close, getBaseTable, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getURL, setName, setParameter, setURL, toString
-
Constructor Details
-
SubsetStarTable
Constructor.- Parameters:
base- table supplying row datarset- subset defining row inclusion
-
-
Method Details
-
isRandom
public boolean isRandom()- Specified by:
isRandomin interfaceuk.ac.starlink.table.StarTable- Overrides:
isRandomin classuk.ac.starlink.table.WrapperStarTable
-
getRowCount
public long getRowCount()- Specified by:
getRowCountin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowCountin classuk.ac.starlink.table.WrapperStarTable
-
getCell
- Specified by:
getCellin interfaceuk.ac.starlink.table.StarTable- Overrides:
getCellin classuk.ac.starlink.table.WrapperStarTable
-
getRow
- Specified by:
getRowin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowin classuk.ac.starlink.table.WrapperStarTable
-
getRowAccess
public uk.ac.starlink.table.RowAccess getRowAccess()- Specified by:
getRowAccessin interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowAccessin classuk.ac.starlink.table.WrapperStarTable
-
getRowSequence
- Specified by:
getRowSequencein interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowSequencein classuk.ac.starlink.table.WrapperStarTable- Throws:
IOException
-
getRowSplittable
Note the row index reflects the index in the underlying table, not that of the subset table.- Specified by:
getRowSplittablein interfaceuk.ac.starlink.table.StarTable- Overrides:
getRowSplittablein classuk.ac.starlink.table.WrapperStarTable- Throws:
IOException
-
createTable
public static uk.ac.starlink.table.StarTable createTable(uk.ac.starlink.table.StarTable table, RowSubset rset) Returns a table with row selection characteristics matching those of the given subset.
-