Class ParquetColumnMetadata

java.lang.Object
org.apache.drill.exec.store.parquet.columnreaders.ParquetColumnMetadata

public class ParquetColumnMetadata extends Object
Represents a single column read from the Parquet file by the record reader.
  • Field Details

  • 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

      public MaterializedField getField()