Class ParquetSchemaConverter
java.lang.Object
org.apache.flink.formats.parquet.utils.ParquetSchemaConverter
Schema converter converts Parquet schema to and from Flink internal types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcomputeMinBytesForDecimalPrecision(int precision) static org.apache.parquet.schema.MessageTypeconvertToParquetMessageType(String name, org.apache.flink.table.types.logical.RowType rowType, org.apache.hadoop.conf.Configuration conf) static org.apache.parquet.schema.TypeconvertToParquetType(String name, org.apache.flink.table.types.logical.LogicalType type, org.apache.hadoop.conf.Configuration conf) static booleanis32BitDecimal(int precision) static booleanis64BitDecimal(int precision)
-
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)
-