public abstract class ParquetStarTable extends AbstractStarTable
Modifier and Type | Field and Description |
---|---|
static ValueInfo |
CREATEDBY_INFO
Parameter metadata for parquet creation info.
|
Constructor and Description |
---|
ParquetStarTable(IOSupplier<ParquetFileReader> pfrSupplier)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Returns the number of columns in this table.
|
ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column.
|
ColumnReadStore |
getColumnReadStore(PageReadStore pageStore,
MessageType schema)
Gets a ColumnReadStore from a PageReadStore.
|
InputColumn<?> |
getInputColumn(int icol)
Returns the input column that can be used to read a given column
of this table.
|
ParquetFileReader |
getParquetFileReader()
Returns a reader for this table's underlying file.
|
long |
getRowCount()
Returns the number of rows in this table, if known.
|
MessageType |
getSchema()
Returns the schema of the the parquet file.
|
checkedLongToInt, close, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getRowAccess, getRowSequence, getRowSplittable, getURL, isRandom, setName, setParameters, setURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterByName, setParameter
public static final ValueInfo CREATEDBY_INFO
public ParquetStarTable(IOSupplier<ParquetFileReader> pfrSupplier) throws java.io.IOException
pfrSupplier
- access to parquet data 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 ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo
in interface StarTable
getColumnInfo
in class AbstractStarTable
icol
- the column for which header information is requiredicol
public ParquetFileReader getParquetFileReader() throws java.io.IOException
java.io.IOException
public MessageType getSchema()
public ColumnReadStore getColumnReadStore(PageReadStore pageStore, MessageType schema)
pageStore
- page storeschema
- schema for required data; this may for instance
define only a subset of available columnspublic InputColumn<?> getInputColumn(int icol)
icol
- column index