Interface VariantShreddingFunction

All Superinterfaces:
BiFunction<Integer,String,org.apache.parquet.schema.Type>

public interface VariantShreddingFunction extends BiFunction<Integer,String,org.apache.parquet.schema.Type>
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.parquet.schema.Type
    apply(Integer fieldId, String name)
    A function to produce the shredded type for a variant field.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • apply

      org.apache.parquet.schema.Type apply(Integer fieldId, String name)
      A function to produce the shredded type for a variant field. This function is called with the ID and name of a variant field to produce the shredded type as a typed_value field. This field is added to the result variant struct alongside the metadata and value fields.
      Specified by:
      apply in interface BiFunction<Integer,String,org.apache.parquet.schema.Type>
      Parameters:
      fieldId - field ID of the variant field to shred
      name - name of the variant field to shred
      Returns:
      a Parquet Type to use as the Variant's typed_value field