StarTable
public class RowSubsetStarTable extends WrapperStarTable
BitSet
is used to keep track of which rows in the
base table should be visible from this one; a set (true) bit in the
mask indicates a row in the base table which will be visible in this one.
It is the responsibility of the user to ensure that no bits in the
mask are set beyond the end of the underlying table - behaviour is
undefined in the case that this condition is violated (but probably
procured RowSequence objects will misbehave).baseTable
Constructor | Description |
---|---|
RowSubsetStarTable(StarTable baseTable) |
Constructs a new RowSubsetStarTable with no rows showing,
in which a set bit in the mask indicates a visible row.
|
RowSubsetStarTable(StarTable baseTable,
java.util.BitSet mask) |
Constructs a new RowSubsetStarTable with a given mask.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.BitSet |
getMask() |
Returns the bit mask which defines which rows are seen.
|
long |
getRowCount() |
Returns the number of rows in this table, if known.
|
RowSequence |
getRowSequence() |
Returns an object which can iterate over all the rows in the table
sequentially.
|
boolean |
isRandom() |
Returns false.
|
void |
setMask(java.util.BitSet mask) |
Sets the mask which determines which rows are seen.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkedLongToInt, getBaseTable, getCell, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getRow, getURL, setName, setParameter, setURL, toString
public RowSubsetStarTable(StarTable baseTable)
baseTable
- base table which provides the underlying datapublic RowSubsetStarTable(StarTable baseTable, java.util.BitSet mask)
baseTable
- base table which provides the underlying datamask
- bitmask determining which rows in baseTable
are seenpublic java.util.BitSet getMask()
public void setMask(java.util.BitSet mask)
mask
- row maskpublic boolean isRandom()
isRandom
in interface StarTable
isRandom
in class WrapperStarTable
public long getRowCount()
StarTable
getRowCount
in interface StarTable
getRowCount
in class WrapperStarTable
public RowSequence getRowSequence() throws java.io.IOException
StarTable
getRowSequence
in interface StarTable
getRowSequence
in class WrapperStarTable
java.io.IOException
- if there is an error providing accessCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.