public class CachedParquetStarTable extends ParquetStarTable
ParquetStarTable.ConfigCREATEDBY_INFO, NAME_KEY, REQUIRED_VOTMETAVERSION, UNSUPPORTED_INFO, VOTMETA_KEY, VOTMETA_NAMESPACE, VOTMETAVERSION_KEY| Constructor and Description |
|---|
CachedParquetStarTable(IOSupplier<ParquetFileReader> pfrSupplier,
ParquetStarTable.Config config,
int nthread)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
The
AbstractStarTable implementation of this method
does nothing. |
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. |
java.lang.Object[] |
getRow(long irow)
The
AbstractStarTable implementation of this method
constructs a row by repeated invocation of AbstractStarTable.getCell(long, int). |
RowAccess |
getRowAccess()
Returns an object which can provide random access to this
table's data, if random access is implemented.
|
RowSequence |
getRowSequence()
Returns an object which can iterate over all the rows in the table
sequentially.
|
RowSplittable |
getRowSplittable()
Returns a default splittable which relies on table random access
if available, or otherwise provides only sequential access (no splits).
|
boolean |
isRandom()
The
AbstractStarTable implementation of this method
returns false. |
getColumnCount, getColumnInfo, getColumnReadStore, getExtraMetadataMap, getInputColumn, getParquetFileReader, getRowCount, getSchema, getVOTableMetadataText, setVOTableMetadataTextcheckedLongToInt, getColumnAuxDataInfos, getName, getParameters, getURL, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic CachedParquetStarTable(IOSupplier<ParquetFileReader> pfrSupplier, ParquetStarTable.Config config, int nthread) throws java.io.IOException
pfrSupplier - access to parquet data fileconfig - table reading configurationnthread - number of threads to use for concurrent column reads;
if <=0, a value is chosen based on the number
of available processorsjava.io.IOExceptionpublic boolean isRandom()
AbstractStarTableAbstractStarTable implementation of this method
returns false.isRandom in interface StarTableisRandom in class AbstractStarTabletrue if table random access methods are availablepublic RowSequence getRowSequence() throws java.io.IOException
StarTablegetRowSequence in interface StarTablegetRowSequence in class AbstractStarTablejava.io.IOException - if there is an error providing accesspublic RowAccess getRowAccess() throws java.io.IOException
StarTablegetRowAccess in interface StarTablegetRowAccess in class AbstractStarTablejava.io.IOException - if there is an error setting up accesspublic RowSplittable getRowSplittable() throws java.io.IOException
AbstractStarTableIt is often possible to provide a better implementation than this.
getRowSplittable in interface StarTablegetRowSplittable in class AbstractStarTableTables.getDefaultRowSplittable(this)java.io.IOExceptionRowRunnerpublic java.lang.Object getCell(long irow,
int icol)
throws java.io.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 columnjava.io.IOException - if there is an error reading the datapublic java.lang.Object[] getRow(long irow)
throws java.io.IOException
AbstractStarTableAbstractStarTable implementation of this method
constructs a row by repeated invocation of AbstractStarTable.getCell(long, int).getRow in interface StarTablegetRow in class AbstractStarTableirow - the index of the row to retrieveirowjava.io.IOException - if there is an error reading the datapublic void close()
throws java.io.IOException
AbstractStarTableAbstractStarTable implementation of this method
does nothing.close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface StarTableclose in class AbstractStarTablejava.io.IOException