Interface SnowflakeSinkService
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
SnowflakeSinkServiceImpl
@Internal public interface SnowflakeSinkService extends AutoCloseable
Class for ingesting data to Snowflake table, and it's responsible for managing the lifecycle of the underlying client for ingesting the data into the external service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()Flush internal data, if applicable.voidinsert(Map<String,Object> row)Insert aMapserialized record to be written.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
insert
void insert(Map<String,Object> row) throws IOException
Insert aMapserialized record to be written.- Parameters:
row-Mapserialized Snowflake row to insert- Throws:
IOException
-
flush
void flush() throws IOExceptionFlush internal data, if applicable.- Throws:
IOException- if data flush failed to write to backend
-
-