Interface ParquetSchemaUtil.Visitor

Enclosing class:
ParquetSchemaUtil

public static interface ParquetSchemaUtil.Visitor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Collection<org.apache.parquet.schema.Type> typePath, org.apache.parquet.schema.PrimitiveType primitiveType)
    Accept a Parquet column.
  • Method Details

    • accept

      void accept(Collection<org.apache.parquet.schema.Type> typePath, org.apache.parquet.schema.PrimitiveType primitiveType)
      Accept a Parquet column.

      This represents the constituents parts of a ColumnDescriptor in an easier to consume fashion. In particular, it is useful when the consumer wants to iterate the Typed-path from MessageType root to leaf without needing to resort to extraneous allocation of MessageType.getType(String...) or state management needed via GroupType.getType(String). The arguments of this method can be made into a ColumnDescriptor using ParquetSchemaUtil.makeColumnDescriptor(Collection, PrimitiveType).

      Parameters:
      typePath - the fully typed path
      primitiveType - the leaf primitiveType, guaranteed to be the last element of path