Class IcebergTableSchema
java.lang.Object
org.apache.drill.metastore.iceberg.schema.IcebergTableSchema
Provides Iceberg table schema and its partition specification for specific component.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorDescriptionIcebergTableSchema
(org.apache.iceberg.Schema tableSchema, org.apache.iceberg.PartitionSpec partitionSpec) -
Method Summary
Modifier and TypeMethodDescriptionstatic IcebergTableSchema
of
(Class<?> clazz, List<MetastoreColumn> partitionKeys) Based on given class fields annotated withMetastoreFieldDefinition
generates Iceberg table schema and its partition specification.org.apache.iceberg.PartitionSpec
org.apache.iceberg.Schema
-
Field Details
-
STARTING_SCHEMA_INDEX
public static final int STARTING_SCHEMA_INDEX- See Also:
-
STARTING_COMPLEX_TYPES_INDEX
public static final int STARTING_COMPLEX_TYPES_INDEX- See Also:
-
-
Constructor Details
-
IcebergTableSchema
public IcebergTableSchema(org.apache.iceberg.Schema tableSchema, org.apache.iceberg.PartitionSpec partitionSpec)
-
-
Method Details
-
of
Based on given class fields annotated withMetastoreFieldDefinition
generates Iceberg table schema and its partition specification.- Parameters:
clazz
- base class for Iceberg schemapartitionKeys
- list of partition keys- Returns:
- instance of Iceberg table schema
-
tableSchema
public org.apache.iceberg.Schema tableSchema() -
partitionSpec
public org.apache.iceberg.PartitionSpec partitionSpec()
-