Class SimpleIngestionWorkItem<I,M,C,D>
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.worker.ingestion.SimpleIngestionWorkItem<I,M,C,D>
-
- 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 SimpleIngestionWorkItem<I,M,C,D> extends Object
A payload of a work item containing a data needed by a single simple ingestion task. Parameters are taken from the @ResourceIngestionDefinition class implementation.
-
-
Constructor Summary
Constructors Constructor Description SimpleIngestionWorkItem()Creates an emptySimpleIngestionWorkItem.SimpleIngestionWorkItem(String id, String processId, String processType, String resourceIngestionDefinitionId, String ingestionConfigurationId, I resourceId, String ingestionStrategy, M resourceMetadata, C customConfig, D destination, Variant metadata)Creates a newSimpleIngestionWorkItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CgetCustomConfig()Returns the custom configuration.DgetDestination()Returns the destination.StringgetId()Returns the id of the ingestion process.StringgetIngestionConfigurationId()Returns the ingestion configuration id.StringgetIngestionStrategy()Returns the ingestion strategy.VariantgetMetadata()Returns the process metadata.StringgetProcessId()Returns the ingestion process id.StringgetProcessType()Returns the ingestion process type.IgetResourceId()Returns the resource id.StringgetResourceIngestionDefinitionId()Returns the resource ingestion definition id.MgetResourceMetadata()Returns the resource metadata.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SimpleIngestionWorkItem
public SimpleIngestionWorkItem()
Creates an emptySimpleIngestionWorkItem.This constructor is used by the reflection-based mapping process and should not be used for any other purpose.
-
SimpleIngestionWorkItem
public SimpleIngestionWorkItem(@Deprecated String id, String processId, String processType, String resourceIngestionDefinitionId, String ingestionConfigurationId, I resourceId, String ingestionStrategy, M resourceMetadata, C customConfig, D destination, Variant metadata)
Creates a newSimpleIngestionWorkItem.- Parameters:
id- ingestion process id - deprecated, use processId insteadprocessId- ingestion process idprocessType- ingestion process typeresourceIngestionDefinitionId- resource ingestion definition idingestionConfigurationId- ingestion configuration idresourceId- properties which identify the resource in the source systemingestionStrategy- ingestion strategyresourceMetadata- resource metadatacustomConfig- custom ingestion propertiesdestination- properties describing where the ingested data should be storedmetadata- process metadata
-
-
Method Detail
-
getId
public String getId()
Returns the id of the ingestion process.- Returns:
- id of the ingestion process
-
getProcessId
public String getProcessId()
Returns the ingestion process id.- Returns:
- ingestion process id
-
getProcessType
public String getProcessType()
Returns the ingestion process type.- Returns:
- ingestion process type
-
getResourceIngestionDefinitionId
public String getResourceIngestionDefinitionId()
Returns the resource ingestion definition id.- Returns:
- resource ingestion definition id
-
getIngestionConfigurationId
public String getIngestionConfigurationId()
Returns the ingestion configuration id.- Returns:
- ingestion configuration id
-
getResourceId
public I getResourceId()
Returns the resource id.- Returns:
- resource id
-
getIngestionStrategy
public String getIngestionStrategy()
Returns the ingestion strategy.- Returns:
- ingestion strategy
-
getResourceMetadata
public M getResourceMetadata()
Returns the resource metadata.- Returns:
- resource metadata
-
getDestination
public D getDestination()
Returns the destination.- Returns:
- destination
-
getCustomConfig
public C getCustomConfig()
Returns the custom configuration.- Returns:
- custom configuration
-
getMetadata
public Variant getMetadata()
Returns the process metadata.- Returns:
- process metadata
-
-