Class ParquetSchemaConverter

java.lang.Object
org.apache.flink.formats.parquet.utils.ParquetSchemaConverter

public class ParquetSchemaConverter extends Object
Schema converter converts Parquet schema to and from Flink internal types.
  • Constructor Details

    • ParquetSchemaConverter

      public ParquetSchemaConverter()
  • Method Details

    • convertToParquetMessageType

      public static org.apache.parquet.schema.MessageType convertToParquetMessageType(String name, org.apache.flink.table.types.logical.RowType rowType, org.apache.hadoop.conf.Configuration conf)
    • convertToParquetType

      public static org.apache.parquet.schema.Type convertToParquetType(String name, org.apache.flink.table.types.logical.LogicalType type, org.apache.hadoop.conf.Configuration conf)
    • computeMinBytesForDecimalPrecision

      public static int computeMinBytesForDecimalPrecision(int precision)
    • is32BitDecimal

      public static boolean is32BitDecimal(int precision)
    • is64BitDecimal

      public static boolean is64BitDecimal(int precision)