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 Summary
Constructors Constructor Description ParquetSchemaConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
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)
-
-