public final class ParquetSchema extends Object
Constructor and Description |
---|
ParquetSchema(OptionManager options,
int rowGroupIndex,
org.apache.parquet.hadoop.metadata.ParquetMetadata footer,
Collection<SchemaPath> selectedCols)
Build the Parquet schema.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allFieldsFixedLength() |
void |
buildSchema()
Build the schema for this read as a combination of the schema specified in
the Parquet footer and the list of columns selected in the query.
|
void |
createNonExistentColumns(OutputMutator output,
List<NullableIntVector> nullFilledVectors)
Create "dummy" fields for columns which are selected in the SELECT clause, but not
present in the Parquet schema.
|
org.apache.parquet.hadoop.metadata.ParquetMetadata |
footer() |
int |
getBitWidthAllFixedFields() |
List<ParquetColumnMetadata> |
getColumnMetadata() |
long |
getGroupRecordCount()
Return the Parquet file row count.
|
org.apache.parquet.hadoop.metadata.BlockMetaData |
getRowGroupMetadata() |
boolean |
isStarQuery() |
public ParquetSchema(OptionManager options, int rowGroupIndex, org.apache.parquet.hadoop.metadata.ParquetMetadata footer, Collection<SchemaPath> selectedCols)
options
- session optionsrowGroupIndex
- row group to readselectedCols
- columns specified in the SELECT clause, or null if
this is a SELECT * querypublic void buildSchema()
public boolean isStarQuery()
public org.apache.parquet.hadoop.metadata.ParquetMetadata footer()
public int getBitWidthAllFixedFields()
public boolean allFieldsFixedLength()
public List<ParquetColumnMetadata> getColumnMetadata()
public long getGroupRecordCount()
public org.apache.parquet.hadoop.metadata.BlockMetaData getRowGroupMetadata()
public void createNonExistentColumns(OutputMutator output, List<NullableIntVector> nullFilledVectors) throws SchemaChangeException
output
- the output containerSchemaChangeException
- should not occurCopyright © 1970 The Apache Software Foundation. All rights reserved.