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 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 Metrics getMetrics()
getMetrics in interface DeltaRuntimeContextpublic Map<String,String> getRuntimeArguments()
getRuntimeArguments in interface DeltaRuntimeContextpublic int getInstanceId()
getInstanceId 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 PluginProperties getPluginProperties(String pluginId)
getPluginProperties in interface PluginContextpublic PluginProperties getPluginProperties(String pluginId, MacroEvaluator evaluator) throws InvalidMacroException
getPluginProperties in interface PluginContextInvalidMacroExceptionpublic <T> Class<T> loadPluginClass(String pluginId)
loadPluginClass in interface PluginContextpublic <T> T newPluginInstance(String pluginId) throws InstantiationException
newPluginInstance in interface PluginContextInstantiationExceptionpublic <T> T newPluginInstance(String pluginId, MacroEvaluator evaluator) throws InstantiationException, InvalidMacroException
newPluginInstance in interface PluginContextInstantiationExceptionInvalidMacroExceptionpublic void setError(ReplicationError error) throws IOException
setError in interface DeltaSourceContextIOExceptionpublic void setOK()
throws IOException
setOK in interface DeltaSourceContextIOExceptionpublic void notifyFailed(Throwable cause)
notifyFailed in interface FailureNotifierCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.