Class ParquetColumnMetadata
java.lang.Object
org.apache.drill.exec.store.parquet.columnreaders.ParquetColumnMetadata
Represents a single column read from the Parquet file by the record reader.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns data type length for a given and it's corresponding .getField()
static int
getTypeLengthInBits
(org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName type) boolean
boolean
void
resolveDrillType
(Map<String, org.apache.parquet.format.SchemaElement> schemaElements, OptionManager options)
-
Field Details
-
UNDEFINED_LENGTH
public static final int UNDEFINED_LENGTH- See Also:
-
-
Constructor Details
-
ParquetColumnMetadata
public ParquetColumnMetadata(org.apache.parquet.column.ColumnDescriptor column)
-
-
Method Details
-
resolveDrillType
public void resolveDrillType(Map<String, org.apache.parquet.format.SchemaElement> schemaElements, OptionManager options) -
getTypeLengthInBits
public static int getTypeLengthInBits(org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName type) - Parameters:
type
-type
- a fixed length type from the parquet library enum- Returns:
- the length in pageDataByteArray of the type
-
getDataTypeLength
public int getDataTypeLength()Returns data type length for a given and it's corresponding . 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.- Returns:
- the length if fixed width, else UNDEFINED_LENGTH (-1)
-
isFixedLength
public boolean isFixedLength() -
isRepeated
public boolean isRepeated() -
getField
-