Class SimpleIngestionWorker<I,M,D,C>
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.worker.Worker<ConnectorResponse>
-
- com.snowflake.connectors.taskreactor.worker.ingestion.SimpleIngestionWorker<I,M,D,C>
-
- Type Parameters:
I- resource id class, containing properties which identify the resource in the source systemM- resource metadata class, containing additional properties which identify the resource in the source system. The properties can be fetched automatically or calculated by the connectorC- custom ingestion configuration class, containing custom ingestion propertiesD- destination configuration class, containing properties describing where the ingested data should be stored
public class SimpleIngestionWorker<I,M,D,C> extends Worker<ConnectorResponse>
A worker executing anSimpleIngestion. * It executes common logic for most of the simple ingestion scenarios.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <I,M,D,C>
SimpleIngestionWorker<I,M,D,C>from(Session session, SimpleIngestion<I,M,D,C> ingestion, WorkerId workerId, Identifier instanceSchema, com.fasterxml.jackson.databind.JavaType simpleIngestionWorkItemType)Creates a newSimpleIngestionWorker.protected ConnectorResponseperformWork(WorkItem workItem)-
Methods inherited from class com.snowflake.connectors.taskreactor.worker.Worker
run, shouldCancel
-
-
-
-
Method Detail
-
from
public static <I,M,D,C> SimpleIngestionWorker<I,M,D,C> from(Session session, SimpleIngestion<I,M,D,C> ingestion, WorkerId workerId, Identifier instanceSchema, com.fasterxml.jackson.databind.JavaType simpleIngestionWorkItemType)
Creates a newSimpleIngestionWorker.- Type Parameters:
I- resource id class, containing properties which identify the resource in the source systemM- resource metadata class, containing additional properties which identify the resource in the source system. The properties can be fetched automatically or calculated by the connectorC- custom ingestion configuration class, containing custom ingestion propertiesD- destination configuration class, containing properties describing where the ingested data should be stored- Parameters:
session- Snowpark session objectingestion- simple ingestionworkerId- worker idinstanceSchema- Task Reactor instance namesimpleIngestionWorkItemType-JavaTypetype of SimpleIngestionWorkItem- Returns:
- a new simple ingestion worker
-
performWork
protected ConnectorResponse performWork(WorkItem workItem)
- Specified by:
performWorkin classWorker<ConnectorResponse>- Parameters:
workItem- work item provided by the dispatcher- Returns:
- custom object defined by the user.
-
-