public class DeltaContext extends Object implements DeltaSourceContext, DeltaTargetContext
public void incrementCount(DMLOperation op)
incrementCount in interface DeltaTargetContextpublic void incrementCount(DDLOperation op)
incrementCount in interface DeltaTargetContextpublic void incrementPublishCount(DMLOperation op)
incrementPublishCount in interface DeltaSourceContextpublic void incrementPublishCount(DDLOperation op)
incrementPublishCount in interface DeltaSourceContextpublic void commitOffset(Offset offset, long sequenceNumber) throws IOException
commitOffset in interface DeltaTargetContextIOExceptionpublic void setTableError(String database, String table, ReplicationError error) throws IOException
setTableError in interface DeltaTargetContextIOExceptionpublic void setTableError(String database, @Nullable String schema, String table, ReplicationError error) throws IOException
setTableError in interface DeltaTargetContextIOExceptionpublic void setTableReplicating(String database, String table) throws IOException
setTableReplicating in interface DeltaTargetContextIOExceptionpublic void setTableSnapshotting(String database, String table) throws IOException
setTableSnapshotting in interface DeltaTargetContextIOExceptionpublic void dropTableState(String database, String table) throws IOException
dropTableState in interface DeltaTargetContextIOExceptionpublic SourceProperties getSourceProperties()
getSourceProperties in interface DeltaTargetContextpublic String getApplicationName()
getApplicationName in interface DeltaRuntimeContextpublic String getRunId()
getRunId in interface DeltaRuntimeContextpublic io.cdap.cdap.api.metrics.Metrics getMetrics()
getMetrics in interface DeltaRuntimeContextpublic Map<String,String> getRuntimeArguments()
getRuntimeArguments in interface DeltaRuntimeContextpublic int getInstanceId()
getInstanceId in interface DeltaRuntimeContextpublic int getInstanceCount()
getInstanceCount in interface DeltaRuntimeContextpublic int getMaxRetrySeconds()
getMaxRetrySeconds in interface DeltaRuntimeContext@Nullable public byte[] getState(String key) throws IOException
getState in interface DeltaRuntimeContextIOExceptionpublic void putState(String key, byte[] val) throws IOException
putState in interface DeltaRuntimeContextIOExceptionpublic DeltaPipelineId getPipelineId()
getPipelineId in interface DeltaRuntimeContextpublic Set<SourceTable> getAllTables()
getAllTables in interface DeltaRuntimeContextpublic io.cdap.cdap.api.plugin.PluginProperties getPluginProperties(String pluginId)
getPluginProperties in interface io.cdap.cdap.api.plugin.PluginContextpublic io.cdap.cdap.api.plugin.PluginProperties getPluginProperties(String pluginId, io.cdap.cdap.api.macro.MacroEvaluator evaluator) throws io.cdap.cdap.api.macro.InvalidMacroException
getPluginProperties in interface io.cdap.cdap.api.plugin.PluginContextio.cdap.cdap.api.macro.InvalidMacroExceptionpublic <T> Class<T> loadPluginClass(String pluginId)
loadPluginClass in interface io.cdap.cdap.api.plugin.PluginContextpublic <T> T newPluginInstance(String pluginId) throws InstantiationException
newPluginInstance in interface io.cdap.cdap.api.plugin.PluginContextInstantiationExceptionpublic <T> T newPluginInstance(String pluginId, io.cdap.cdap.api.macro.MacroEvaluator evaluator) throws InstantiationException, io.cdap.cdap.api.macro.InvalidMacroException
newPluginInstance in interface io.cdap.cdap.api.plugin.PluginContextInstantiationExceptionio.cdap.cdap.api.macro.InvalidMacroExceptionpublic void setError(ReplicationError error) throws IOException
setError in interface DeltaSourceContextIOExceptionpublic void setOK()
throws IOException
setOK in interface DeltaSourceContextIOExceptionpublic Offset getCommittedOffset() throws IOException
getCommittedOffset in interface DeltaSourceContextIOExceptionpublic void initializeSequenceNumber(long sequenceNumber)
initializeSequenceNumber in interface DeltaTargetContextpublic void notifyFailed(Throwable cause)
notifyFailed in interface FailureNotifierCopyright © 2023 CDAP Licensed under the Apache License, Version 2.0.