public class ParquetSchemaConverter extends Object
Constructor and Description |
---|
ParquetSchemaConverter() |
Modifier and Type | Method and Description |
---|---|
static int |
computeMinBytesForDecimalPrecision(int precision) |
static DataField |
convertToPaimonField(org.apache.parquet.schema.Type parquetType)
Convert parquet
Type to paimon DataField to. |
static RowType |
convertToPaimonRowType(org.apache.parquet.schema.MessageType messageType)
Convert parquet
MessageType to paimon RowType . |
static org.apache.parquet.schema.MessageType |
convertToParquetMessageType(RowType rowType)
Convert paimon
RowType to parquet MessageType . |
static org.apache.parquet.schema.Type |
convertToParquetType(DataField field)
Convert paimon
DataField to parquet Type . |
static boolean |
is32BitDecimal(int precision) |
static boolean |
is64BitDecimal(int precision) |
static org.apache.parquet.schema.Type |
parquetListElementType(org.apache.parquet.schema.GroupType listType) |
static Pair<org.apache.parquet.schema.Type,org.apache.parquet.schema.Type> |
parquetMapKeyValueType(org.apache.parquet.schema.GroupType mapType) |
public static org.apache.parquet.schema.MessageType convertToParquetMessageType(RowType rowType)
RowType
to parquet MessageType
.public static org.apache.parquet.schema.Type convertToParquetType(DataField field)
DataField
to parquet Type
.public static int computeMinBytesForDecimalPrecision(int precision)
public static boolean is32BitDecimal(int precision)
public static boolean is64BitDecimal(int precision)
public static RowType convertToPaimonRowType(org.apache.parquet.schema.MessageType messageType)
MessageType
to paimon RowType
.public static DataField convertToPaimonField(org.apache.parquet.schema.Type parquetType)
Type
to paimon DataField
to.public static org.apache.parquet.schema.Type parquetListElementType(org.apache.parquet.schema.GroupType listType)
public static Pair<org.apache.parquet.schema.Type,org.apache.parquet.schema.Type> parquetMapKeyValueType(org.apache.parquet.schema.GroupType mapType)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.