public class TableSchema extends Object implements Serializable
Schema
, including schemaId
and fieldId.Modifier and Type | Field and Description |
---|---|
static int |
CURRENT_VERSION |
static int |
PAIMON_07_VERSION |
static int |
PAIMON_08_VERSION |
Constructor and Description |
---|
TableSchema(int version,
long id,
List<DataField> fields,
int highestFieldId,
List<String> partitionKeys,
List<String> primaryKeys,
Map<String,String> options,
String comment,
long timeMillis) |
TableSchema(long id,
List<DataField> fields,
int highestFieldId,
List<String> partitionKeys,
List<String> primaryKeys,
Map<String,String> options,
String comment) |
public static final int PAIMON_07_VERSION
public static final int PAIMON_08_VERSION
public static final int CURRENT_VERSION
public TableSchema(long id, List<DataField> fields, int highestFieldId, List<String> partitionKeys, List<String> primaryKeys, Map<String,String> options, @Nullable String comment)
public int version()
public long id()
public int highestFieldId()
public int numBuckets()
public boolean crossPartitionUpdate()
public long timeMillis()
public RowType logicalRowType()
public RowType logicalPartitionType()
public RowType logicalBucketKeyType()
public RowType logicalTrimmedPrimaryKeysType()
public RowType logicalPrimaryKeysType()
public TableSchema copy(Map<String,String> newOptions)
public static TableSchema fromJson(String json)
public static TableSchema fromPath(FileIO fileIO, Path path)
public static TableSchema tryFromPath(FileIO fileIO, Path path) throws FileNotFoundException
FileNotFoundException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.