Package uk.ac.starlink.topcat
Class BooleanColumnRowSubset
java.lang.Object
uk.ac.starlink.topcat.RowSubset
uk.ac.starlink.topcat.BooleanColumnRowSubset
A RowSubset implementation based on a boolean column of a StarTable.
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.starlink.topcat.RowSubset
RowSubset.Key -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanColumnRowSubset(uk.ac.starlink.table.StarTable startab, int icol) Constructs a row subset from a given StarTable and column index. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index of the column in the table on which this subset's contents are based.uk.ac.starlink.table.StarTablegetTable()Returns the table from whose column this subset is based.booleanisIncluded(long lrow) Indicates whether a given row is in the subset or not.
-
Constructor Details
-
BooleanColumnRowSubset
public BooleanColumnRowSubset(uk.ac.starlink.table.StarTable startab, int icol) Constructs a row subset from a given StarTable and column index.- Parameters:
startab- the tableicol- the index of the column in that table- Throws:
IllegalArgumentException- if the content class of the table column is not Boolean
-
-
Method Details
-
isIncluded
public boolean isIncluded(long lrow) Description copied from class:RowSubsetIndicates whether a given row is in the subset or not.- Specified by:
isIncludedin classRowSubset- Parameters:
lrow- the index of the row in question- Returns:
trueiff rowlrowis to be included
-
getTable
public uk.ac.starlink.table.StarTable getTable()Returns the table from whose column this subset is based.- Returns:
- table
-
getColumnIndex
public int getColumnIndex()Returns the index of the column in the table on which this subset's contents are based.- Returns:
- column index
-