public class ParquetColumnMetadata extends Object
Modifier and Type | Field and Description |
---|---|
static int |
UNDEFINED_LENGTH |
Constructor and Description |
---|
ParquetColumnMetadata(org.apache.parquet.column.ColumnDescriptor column) |
Modifier and Type | Method and Description |
---|---|
int |
getDataTypeLength()
Returns data type length for a given
ColumnDescriptor and it's corresponding
SchemaElement . |
MaterializedField |
getField() |
static int |
getTypeLengthInBits(org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName type) |
boolean |
isFixedLength() |
boolean |
isRepeated() |
void |
resolveDrillType(Map<String,org.apache.parquet.format.SchemaElement> schemaElements,
OptionManager options) |
public static final int UNDEFINED_LENGTH
public ParquetColumnMetadata(org.apache.parquet.column.ColumnDescriptor column)
public void resolveDrillType(Map<String,org.apache.parquet.format.SchemaElement> schemaElements, OptionManager options)
public static int getTypeLengthInBits(org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName type)
type
- type
- a fixed length type from the parquet library enumpublic int getDataTypeLength()
ColumnDescriptor
and it's corresponding
SchemaElement
. Neither is enough information alone as the max
repetition level (indicating if it is an array type) is in the ColumnDescriptor and
the length of a fixed width field is stored at the schema level.public boolean isFixedLength()
public boolean isRepeated()
public MaterializedField getField()
Copyright © 1970 The Apache Software Foundation. All rights reserved.