public class IcebergTableSchema extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STARTING_COMPLEX_TYPES_INDEX |
static int |
STARTING_SCHEMA_INDEX |
| Constructor and Description |
|---|
IcebergTableSchema(org.apache.iceberg.Schema tableSchema,
org.apache.iceberg.PartitionSpec partitionSpec) |
| Modifier and Type | Method and Description |
|---|---|
static IcebergTableSchema |
of(Class<?> clazz,
List<MetastoreColumn> partitionKeys)
Based on given class fields annotated with
MetastoreFieldDefinition
generates Iceberg table schema and its partition specification. |
org.apache.iceberg.PartitionSpec |
partitionSpec() |
org.apache.iceberg.Schema |
tableSchema() |
public static final int STARTING_SCHEMA_INDEX
public static final int STARTING_COMPLEX_TYPES_INDEX
public IcebergTableSchema(org.apache.iceberg.Schema tableSchema,
org.apache.iceberg.PartitionSpec partitionSpec)
public static IcebergTableSchema of(Class<?> clazz, List<MetastoreColumn> partitionKeys)
MetastoreFieldDefinition
generates Iceberg table schema and its partition specification.clazz - base class for Iceberg schemapartitionKeys - list of partition keyspublic org.apache.iceberg.Schema tableSchema()
public org.apache.iceberg.PartitionSpec partitionSpec()
Copyright © 2021 The Apache Software Foundation. All rights reserved.