|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.filter.PermutedColumnSupplement
public class PermutedColumnSupplement
ColumnSupplement implementation which contains a selection of the columns in the base table. Each column is a view of one in the base table.
An int[] array, colMap, is used to keep track of which columns in this table correspond to which columns in the base table; the i'th column in this table corresponds to the colMap[i]'th column in the base table. The colMap array may contain duplicate entries, but all its entries must be in the range 0..baseSup.getColumnCount()-1. This table will have colMap.length columns.
Constructor Summary | |
---|---|
PermutedColumnSupplement(ColumnSupplement baseSup,
int[] colMap)
Constructs a permuted column supplement based on a given column supplement. |
|
PermutedColumnSupplement(uk.ac.starlink.table.StarTable baseTable,
int[] colMap)
Constructs a permuted column supplement based on a given table. |
Method Summary | |
---|---|
SupplementSequence |
createSequence(uk.ac.starlink.table.RowSequence rseq)
Returns a new iterator over the values in the columns defined by this object. |
Object |
getCell(long irow,
int icol)
Random access read of a cell defined by this object. |
int |
getColumnCount()
Returns the number of columns defined by this object. |
uk.ac.starlink.table.ColumnInfo |
getColumnInfo(int icol)
Returns the column metadata object for a given column. |
Object[] |
getRow(long irow)
Random access read of a row defined by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermutedColumnSupplement(ColumnSupplement baseSup, int[] colMap)
baseSup
- column supplement supplying the base datacolMap
- array of column indices, one for each column in this
objectpublic PermutedColumnSupplement(uk.ac.starlink.table.StarTable baseTable, int[] colMap)
baseTable
- table supplying the base datacolMap
- array of column indices, one for each column in this
objectMethod Detail |
---|
public int getColumnCount()
ColumnSupplement
getColumnCount
in interface ColumnSupplement
public uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
ColumnSupplement
getColumnInfo
in interface ColumnSupplement
icol
- column index within this object
public Object getCell(long irow, int icol) throws IOException
ColumnSupplement
getCell
in interface ColumnSupplement
irow
- row indexicol
- column index
IOException
public Object[] getRow(long irow) throws IOException
ColumnSupplement
getRow
in interface ColumnSupplement
irow
- row index
IOException
public SupplementSequence createSequence(uk.ac.starlink.table.RowSequence rseq) throws IOException
ColumnSupplement
createSequence
in interface ColumnSupplement
rseq
- row sequence providing data from the host table
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |