public class ParquetSchemaConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LIST_ARRAY_TYPE |
static String |
LIST_ELEMENT |
static String |
LIST_GROUP_NAME |
static String |
MAP_VALUE |
static String |
MESSAGE_ROOT |
| Constructor and Description |
|---|
ParquetSchemaConverter() |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeMinBytesForDecimalPrecision(int precision) |
static org.apache.flink.api.common.typeinfo.TypeInformation<?> |
convertFields(List<org.apache.parquet.schema.Type> parquetFields) |
static org.apache.flink.api.common.typeinfo.TypeInformation<?> |
convertParquetTypeToTypeInfo(org.apache.parquet.schema.Type fieldType) |
static org.apache.parquet.schema.MessageType |
convertToParquetMessageType(String name,
org.apache.flink.table.types.logical.RowType rowType) |
static org.apache.flink.api.common.typeinfo.TypeInformation<?> |
fromParquetType(org.apache.parquet.schema.MessageType type)
Converts Parquet schema to Flink Internal Type.
|
static org.apache.parquet.schema.MessageType |
toParquetType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInformation,
boolean legacyMode)
Converts Flink Internal Type to Parquet schema.
|
public static final String MAP_VALUE
public static final String LIST_ARRAY_TYPE
public static final String LIST_ELEMENT
public static final String LIST_GROUP_NAME
public static final String MESSAGE_ROOT
public static org.apache.flink.api.common.typeinfo.TypeInformation<?> fromParquetType(org.apache.parquet.schema.MessageType type)
type - Parquet schemapublic static org.apache.parquet.schema.MessageType toParquetType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInformation,
boolean legacyMode)
typeInformation - Flink type informationlegacyMode - is standard LIST and MAP schema or back-compatible schemapublic static org.apache.flink.api.common.typeinfo.TypeInformation<?> convertFields(List<org.apache.parquet.schema.Type> parquetFields)
public static org.apache.flink.api.common.typeinfo.TypeInformation<?> convertParquetTypeToTypeInfo(org.apache.parquet.schema.Type fieldType)
public static org.apache.parquet.schema.MessageType convertToParquetMessageType(String name, org.apache.flink.table.types.logical.RowType rowType)
public static int computeMinBytesForDecimalPrecision(int precision)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.