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, setURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterByName, setParameter
public 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
- fileIOException
public int getColumnCount()
StarTable
getColumnCount
in interface StarTable
getColumnCount
in class AbstractStarTable
public long getRowCount()
StarTable
getRowCount
in interface StarTable
getRowCount
in class AbstractStarTable
public boolean isRandom()
AbstractStarTable
AbstractStarTable
implementation of this method
returns false
.isRandom
in interface StarTable
isRandom
in class AbstractStarTable
true
if table random access methods are availablepublic String getName()
StarTable
getName
in interface StarTable
getName
in class AbstractStarTable
null
if no suitable one
existspublic ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo
in interface StarTable
getColumnInfo
in class AbstractStarTable
icol
- the column for which header information is requiredicol
public Object getCell(long irow, int icol) throws IOException
AbstractStarTable
AbstractStarTable
implementation of this method
throws an UnsupportedOperationException
,
since unless otherwise provided there is no random access.getCell
in interface StarTable
getCell
in class AbstractStarTable
irow
- 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
IOException
public RowSequence getRowSequence()
StarTable
getRowSequence
in interface StarTable
getRowSequence
in class AbstractStarTable
public RowAccess getRowAccess()
StarTable
getRowAccess
in interface StarTable
getRowAccess
in class AbstractStarTable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface StarTable
close
in class AbstractStarTable
IOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.