Class IngestionWorker<T>


  • public class IngestionWorker<T>
    extends Worker<T>
    A worker executing an Ingestion.
    • Method Detail

      • from

        public static <T> IngestionWorker<T> from​(Session session,
                                                  Ingestion<T> ingestion,
                                                  WorkerId workerId,
                                                  Identifier instanceSchema)
        Creates a new IngestionWorker.
        Type Parameters:
        T - ingestion state type
        Parameters:
        session - Snowpark session object
        ingestion - ingestion
        workerId - worker id
        instanceSchema - Task Reactor instance name
        Returns:
        a new ingestion worker
      • performWork

        protected T performWork​(WorkItem workItem)
        Specified by:
        performWork in class Worker<T>
        Parameters:
        workItem - work item provided by the dispatcher
        Returns:
        custom object defined by the user.