|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.table.WrapperStarTable
uk.ac.starlink.table.SelectorStarTable
public abstract class SelectorStarTable
Sequential wrapper table which selects only certain rows of its base table.
No random access is provided, and the row sequence evaluates
the abstract isIncluded(uk.ac.starlink.table.RowSequence) method for each row of the base
table as it is iterated over.
| Field Summary |
|---|
| Fields inherited from class uk.ac.starlink.table.WrapperStarTable |
|---|
baseTable |
| Constructor Summary | |
|---|---|
SelectorStarTable(StarTable baseTable)
Constructor. |
|
| Method Summary | |
|---|---|
Object |
getCell(int icol)
|
Object[] |
getRow()
|
long |
getRowCount()
Returns -1 (length unknown). |
RowSequence |
getRowSequence()
Returns an object which can iterate over all the rows in the table sequentially. |
abstract boolean |
isIncluded(RowSequence baseSeq)
Evaluated to determine whether rows of the base table are included in this one. |
boolean |
isRandom()
Returns false. |
| Methods inherited from class uk.ac.starlink.table.WrapperStarTable |
|---|
checkedLongToInt, getBaseTable, getCell, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getRow, getURL, setName, setParameter, setURL, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectorStarTable(StarTable baseTable)
baseTable - table on which this is based| Method Detail |
|---|
public abstract boolean isIncluded(RowSequence baseSeq)
throws IOException
baseSeq - row sequence of the base table
IOExceptionpublic boolean isRandom()
isRandom in interface StarTableisRandom in class WrapperStarTablepublic long getRowCount()
getRowCount in interface StarTablegetRowCount in class WrapperStarTablepublic Object[] getRow()
public Object getCell(int icol)
public RowSequence getRowSequence()
throws IOException
StarTable
getRowSequence in interface StarTablegetRowSequence in class WrapperStarTableIOException - if there is an error providing access
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||