
com.snowflake.kafka.connector.internal.SnowflakeIngestionService 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
package com.snowflake.kafka.connector.internal;
import com.snowflake.kafka.connector.internal.InternalUtils.IngestedFileStatus;
import com.snowflake.kafka.connector.internal.telemetry.SnowflakeTelemetryService;
import java.util.List;
import java.util.Map;
/** Ingestion service manages snow pipe */
public interface SnowflakeIngestionService {
/**
* Set telemetry client
*
* @param telemetry telemetry client
*/
void setTelemetry(SnowflakeTelemetryService telemetry);
/**
* Ingest single file
*
* @param fileName file name
*/
void ingestFile(String fileName);
/**
* Ingest a list of files
*
* @param fileNames file name List
*/
void ingestFiles(List fileNames);
/** @return corresponding stage name */
String getStageName();
/**
* retrieve status of given files from the ingest report
*
* @param files a list of file name
* @return a map contains all file status
*/
Map readIngestReport(List files);
/**
* retrieve status of given files from load history in one hour time window
*
* @param files a list of file name
* @param startTime the start time stamp of time window in ms
* @return a map contains all file status
*/
Map readOneHourHistory(List files, long startTime);
/** close ingest service */
void close();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy