public class FeatherStarTable extends AbstractStarTable
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION_KEY
JSON key used to store description text in column user metadata.
|
static ValueInfo |
FTYPE_INFO
Aux metadata key for column feather type value.
|
static String |
META_KEY
JSON key to store miscellaneous/broken metadata in column metadata.
|
static String |
SHAPE_KEY
JSON key to store stringified array shape in column user metadata.
|
static String |
UCD_KEY
JSON key used to store UCDs in column user metadata.
|
static String |
UNIT_KEY
JSON key used to store units in column user metadata.
|
static String |
UTYPE_KEY
JSON key used to store Utypes in column user metadata.
|
| Constructor and Description |
|---|
FeatherStarTable(uk.ac.bristol.star.feather.FeatherTable ftable)
Constructs a FeatherStarTable from a FeatherTable.
|
FeatherStarTable(File file)
Constructs a FeatherStarTable from a File.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does nothing, but perhaps it ought to try to clear up resources
related to the mapped buffers.
|
Object |
getCell(long irow,
int icol)
The
AbstractStarTable implementation of this method
throws an UnsupportedOperationException,
since unless otherwise provided there is no random access. |
int |
getColumnCount()
Returns the number of columns in this table.
|
ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column.
|
String |
getName()
Returns the name of this table, if it has one.
|
Object |
getRow(long irow,
int icol) |
RowAccess |
getRowAccess()
Returns an object which can provide random access to this
table's data, if random access is implemented.
|
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()
The
AbstractStarTable implementation of this method
returns false. |
checkedLongToInt, getColumnAuxDataInfos, getParameters, getRow, getRowSplittable, getURL, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic static final String UCD_KEY
public static final String UTYPE_KEY
public static final String UNIT_KEY
public static final String DESCRIPTION_KEY
public static final String SHAPE_KEY
public static final String META_KEY
public static final ValueInfo FTYPE_INFO
public FeatherStarTable(uk.ac.bristol.star.feather.FeatherTable ftable)
ftable - feather table objectpublic FeatherStarTable(File file) throws IOException
file - fileIOExceptionpublic int getColumnCount()
StarTablegetColumnCount in interface StarTablegetColumnCount in class AbstractStarTablepublic long getRowCount()
StarTablegetRowCount in interface StarTablegetRowCount in class AbstractStarTablepublic boolean isRandom()
AbstractStarTableAbstractStarTable implementation of this method
returns false.isRandom in interface StarTableisRandom in class AbstractStarTabletrue if table random access methods are availablepublic String getName()
StarTablegetName in interface StarTablegetName in class AbstractStarTablenull if no suitable one
existspublic ColumnInfo getColumnInfo(int icol)
StarTablegetColumnInfo in interface StarTablegetColumnInfo in class AbstractStarTableicol - the column for which header information is requiredicolpublic Object getCell(long irow, int icol) throws IOException
AbstractStarTableAbstractStarTable implementation of this method
throws an UnsupportedOperationException,
since unless otherwise provided there is no random access.getCell in interface StarTablegetCell in class AbstractStarTableirow - the index of the cell's rowicol - the index of the cell's columnIOException - if there is an error reading the datapublic Object getRow(long irow, int icol) throws IOException
IOExceptionpublic RowSequence getRowSequence()
StarTablegetRowSequence in interface StarTablegetRowSequence in class AbstractStarTablepublic RowAccess getRowAccess()
StarTablegetRowAccess in interface StarTablegetRowAccess in class AbstractStarTablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface StarTableclose in class AbstractStarTableIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.