Class IngestionWorker<T>
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.worker.Worker<T>
-
- com.snowflake.connectors.taskreactor.worker.ingestion.IngestionWorker<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> IngestionWorker<T>from(Session session, Ingestion<T> ingestion, WorkerId workerId, Identifier instanceSchema)Creates a newIngestionWorker.protected TperformWork(WorkItem workItem)-
Methods inherited from class com.snowflake.connectors.taskreactor.worker.Worker
run, shouldCancel
-
-
-
-
Method Detail
-
from
public static <T> IngestionWorker<T> from(Session session, Ingestion<T> ingestion, WorkerId workerId, Identifier instanceSchema)
Creates a newIngestionWorker.- Type Parameters:
T- ingestion state type- Parameters:
session- Snowpark session objectingestion- ingestionworkerId- worker idinstanceSchema- Task Reactor instance name- Returns:
- a new ingestion worker
-
performWork
protected T performWork(WorkItem workItem)
- Specified by:
performWorkin classWorker<T>- Parameters:
workItem- work item provided by the dispatcher- Returns:
- custom object defined by the user.
-
-