public abstract class ParquetStarTable extends AbstractStarTable
Modifier and Type | Class and Description |
---|---|
static interface |
ParquetStarTable.Config
Defines configuration options for reading parquet tables.
|
Modifier and Type | Field and Description |
---|---|
static ValueInfo |
CREATEDBY_INFO
Parameter metadata for parquet creation info.
|
static java.lang.String |
NAME_KEY
Extra metadata key for table name.
|
static java.lang.String |
REQUIRED_VOTMETAVERSION
Required value for VOTable metadata version.
|
static ValueInfo |
UNSUPPORTED_INFO
Column metadata for dummy/unsupported columns.
|
static java.lang.String |
VOTMETA_KEY
Extra metadata key for skeleton VOTable text.
|
static java.lang.String |
VOTMETA_NAMESPACE
Namespace used in metadata keys for VOParquet convention things.
|
static java.lang.String |
VOTMETAVERSION_KEY
Extra metadata key for VOTable metadata version.
|
Constructor and Description |
---|
ParquetStarTable(IOSupplier<ParquetFileReader> pfrSupplier,
ParquetStarTable.Config config)
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.
|
java.util.Map<java.lang.String,java.lang.String> |
getExtraMetadataMap()
Returns the parquet key-value file-level metadata map
associated with this parquet file.
|
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.
|
java.lang.String |
getVOTableMetadataText()
Returns the text content of a VOTable intended to supply
metadata for this table.
|
void |
setVOTableMetadataText(java.lang.String votmeta)
Sets the text content of a VOTable intended to supply
metadata for this table.
|
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 static final ValueInfo UNSUPPORTED_INFO
public static final java.lang.String NAME_KEY
public static final java.lang.String VOTMETA_NAMESPACE
public static final java.lang.String VOTMETA_KEY
public static final java.lang.String VOTMETAVERSION_KEY
public static final java.lang.String REQUIRED_VOTMETAVERSION
public ParquetStarTable(IOSupplier<ParquetFileReader> pfrSupplier, ParquetStarTable.Config config) throws java.io.IOException
pfrSupplier
- access to parquet data fileconfig
- table reading optionsjava.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 java.util.Map<java.lang.String,java.lang.String> getExtraMetadataMap()
public java.lang.String getVOTableMetadataText()
public void setVOTableMetadataText(java.lang.String votmeta)
votmeta
- VOTable metadata documentpublic 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