public abstract class GbinStarTable extends AbstractStarTable
Modifier | Constructor and Description |
---|---|
protected |
GbinStarTable(GbinTableProfile profile,
java.lang.Class<?> gobjClazz)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <T> GbinStarTable |
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.
|
checkedLongToInt, close, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getRowAccess, getRowCount, getRowSequence, getRowSplittable, getURL, isRandom, setName, setParameters, setURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterByName, setParameter
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 filepublic 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 requiredicol
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 readerpublic 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