public class FeatherStarTable extends AbstractStarTable
Modifier and Type | Field and Description |
---|---|
static java.lang.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 java.lang.String |
META_KEY
JSON key to store miscellaneous/broken metadata in column metadata.
|
static java.lang.String |
SHAPE_KEY
JSON key to store stringified array shape in column user metadata.
|
static java.lang.String |
UCD_KEY
JSON key used to store UCDs in column user metadata.
|
static java.lang.String |
UNIT_KEY
JSON key used to store units in column user metadata.
|
static java.lang.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(java.io.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.
|
java.lang.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.
|
java.lang.String |
getName()
Returns the name of this table, if it has one.
|
java.lang.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 java.lang.String UCD_KEY
public static final java.lang.String UTYPE_KEY
public static final java.lang.String UNIT_KEY
public static final java.lang.String DESCRIPTION_KEY
public static final java.lang.String SHAPE_KEY
public static final java.lang.String META_KEY
public static final ValueInfo FTYPE_INFO
public FeatherStarTable(uk.ac.bristol.star.feather.FeatherTable ftable)
ftable
- feather table objectpublic FeatherStarTable(java.io.File file) throws java.io.IOException
file
- filejava.io.IOException
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 java.lang.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 java.lang.Object getCell(long irow, int icol) throws java.io.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 columnjava.io.IOException
- if there is an error reading the datapublic java.lang.Object getRow(long irow, int icol) throws java.io.IOException
java.io.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 java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface StarTable
close
in class AbstractStarTable
java.io.IOException