public class SchemaUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
applySchemaUpdates(Table table,
SchemaUpdate.Consumer updates) |
static PartitionSpec |
createPartitionSpec(Schema schema,
java.util.List<java.lang.String> partitionBy) |
static Type |
inferIcebergType(java.lang.Object value,
IcebergSinkConfig config) |
static Type.PrimitiveType |
needsDataTypeUpdate(Type currentIcebergType,
org.apache.kafka.connect.data.Schema valueSchema) |
static Type |
toIcebergType(org.apache.kafka.connect.data.Schema valueSchema,
IcebergSinkConfig config) |
public static Type.PrimitiveType needsDataTypeUpdate(Type currentIcebergType, org.apache.kafka.connect.data.Schema valueSchema)
public static void applySchemaUpdates(Table table, SchemaUpdate.Consumer updates)
public static PartitionSpec createPartitionSpec(Schema schema, java.util.List<java.lang.String> partitionBy)
public static Type toIcebergType(org.apache.kafka.connect.data.Schema valueSchema, IcebergSinkConfig config)
public static Type inferIcebergType(java.lang.Object value, IcebergSinkConfig config)