|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.AbstractStarTable
uk.ac.starlink.gbin.GbinStarTable
public abstract class GbinStarTable
Partial StarTable implementation for use with GBIN files.
Constructor Summary | |
---|---|
protected |
GbinStarTable(GbinTableProfile profile,
java.lang.Class<?> gobjClazz)
Constructor. |
Method Summary | ||
---|---|---|
static
|
createCollectionTable(GbinTableProfile profile,
java.lang.Class<T> gobjClazz,
java.util.Collection<? extends T> gobjList)
Returns a table instance based on a collection of gaia objects. |
|
RowSequence |
createRowSequence(GbinObjectReader reader,
java.lang.Object gobj0)
Returns a row sequence for this table based on some required objects. |
|
int |
getColumnCount()
Returns the number of columns in this table. |
|
ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column. |
|
java.lang.Class<?> |
getGaiaObjectClass()
Returns the class of the elements contained in the GBIN file. |
Methods inherited from class uk.ac.starlink.table.AbstractStarTable |
---|
checkedLongToInt, getCell, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getRowCount, getRowSequence, getURL, isRandom, setName, setParameter, setParameters, setURL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GbinStarTable(GbinTableProfile profile, java.lang.Class<?> gobjClazz)
profile
- configures how GBIN files will be mapped to a tablegobjClazz
- class of all objects in GBIN fileMethod Detail |
---|
public int getColumnCount()
StarTable
getColumnCount
in interface StarTable
getColumnCount
in class AbstractStarTable
public ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo
in interface StarTable
getColumnInfo
in class AbstractStarTable
icol
- the column for which header information is required
public RowSequence createRowSequence(GbinObjectReader reader, java.lang.Object gobj0)
reader
- gbin object reader positioned after the first object
in the stream; must read objects suitable for this tablegobj0
- first object read from reader
public java.lang.Class<?> getGaiaObjectClass()
public static <T> GbinStarTable createCollectionTable(GbinTableProfile profile, java.lang.Class<T> gobjClazz, java.util.Collection<? extends T> gobjList)
A random-access implementation is possible, but trying to
implement getCell
efficiently would be a bit fiddly
because of the way that column values are extracted.
profile
- configures how Gaia objects will be mapped to columnsgobjClazz
- class of all objects representing rowsgobjList
- collection of typed objects, one for each table row
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |