Package org.apache.iceberg.parquet
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
Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
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 atyped_value
field. This field is added to the result variant struct alongside themetadata
andvalue
fields.- Specified by:
apply
in interfaceBiFunction<Integer,
String, org.apache.parquet.schema.Type> - Parameters:
fieldId
- field ID of the variant field to shredname
- name of the variant field to shred- Returns:
- a Parquet
Type
to use as the Variant'styped_value
field
-