public class CachedParquetStarTable extends ParquetStarTable
CREATEDBY_INFO| Constructor and Description |
|---|
CachedParquetStarTable(IOSupplier<ParquetFileReader> pfrSupplier,
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, getInputColumn, getParquetFileReader, getRowCount, getSchemacheckedLongToInt, getColumnAuxDataInfos, getName, getParameters, getURL, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic CachedParquetStarTable(IOSupplier<ParquetFileReader> pfrSupplier, int nthread) throws java.io.IOException
pfrSupplier - access to parquet data filenthread - 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()
AbstractStarTableisRandom in interface StarTableisRandom in class AbstractStarTablepublic 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
AbstractStarTablegetCell 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.getCell(long, int).getRow in interface StarTablegetRow in class AbstractStarTableirow - the index of the row to retrievejava.io.IOException - if there is an error reading the datapublic void close()
throws java.io.IOException
AbstractStarTableclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface StarTableclose in class AbstractStarTablejava.io.IOException