com.snowflake.kafka.connector.streaming.iceberg.IcebergInitService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowflake-kafka-connector Show documentation
Show all versions of snowflake-kafka-connector Show documentation
Snowflake Kafka Connect Sink Connector
The newest version!
package com.snowflake.kafka.connector.streaming.iceberg;
import com.snowflake.kafka.connector.internal.KCLogger;
import com.snowflake.kafka.connector.internal.SnowflakeConnectionService;
public class IcebergInitService {
private final KCLogger LOGGER = new KCLogger(IcebergInitService.class.getName());
private final SnowflakeConnectionService snowflakeConnectionService;
public IcebergInitService(SnowflakeConnectionService snowflakeConnectionService) {
this.snowflakeConnectionService = snowflakeConnectionService;
}
public void initializeIcebergTableProperties(String tableName) {
LOGGER.info("Initializing properties for Iceberg table: {}", tableName);
snowflakeConnectionService.addMetadataColumnForIcebergIfNotExists(tableName);
snowflakeConnectionService.initializeMetadataColumnTypeForIceberg(tableName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy