public interface DeltaTargetContext extends DeltaRuntimeContext
| Modifier and Type | Method and Description |
|---|---|
void |
commitOffset(Offset offset,
long sequenceNumber)
Commit changes up to the given offset.
|
void |
dropTableState(String database,
String table)
Record that the table was dropped and its state can be removed
|
SourceProperties |
getSourceProperties() |
void |
incrementCount(DDLOperation op)
Record that a DDL operation was processed.
|
void |
incrementCount(DMLOperation op)
Record that a DML operation was processed.
|
default void |
initializeSequenceNumber(long sequenceNumber)
Initialize the sequence number generated by the replicator pipeline.
|
void |
setTableError(String database,
String table,
ReplicationError error)
Record that there are currently errors applying events to a specified table.
|
void |
setTableError(String database,
String schema,
String table,
ReplicationError error)
Record that there are currently errors applying events to a specified table.
|
void |
setTableReplicating(String database,
String table)
Record that a table is being replicated.
|
void |
setTableSnapshotting(String database,
String table)
Record that the initial snapshot for the table is being applied
|
getAllTables, getApplicationName, getInstanceCount, getInstanceId, getMaxRetrySeconds, getMetrics, getPipelineId, getRunId, getRuntimeArguments, getState, putStatevoid incrementCount(DMLOperation op)
commitOffset(Offset, long) is called.op - a DML operationvoid incrementCount(DDLOperation op)
commitOffset(Offset, long) is called.op - a DDL operationvoid commitOffset(Offset offset, long sequenceNumber) throws IOException
incrementCount(DDLOperation) and
incrementCount(DMLOperation).offset - offset to commitOffsetsequenceNumber - the sequence number for the offsetIOException - if there was an error persisting the new offsetvoid setTableError(String database, String table, ReplicationError error) throws IOException
database - database that the table is intable - table that is having errorserror - information about the errorIOException - if there was an error persisting the change in state. This can only be thrown if there was
a change in state.void setTableError(String database, @Nullable String schema, String table, ReplicationError error) throws IOException
database - database that the table is inschema - schema in which table is present. Can be null for the databases which don't support schematable - table that is having errorserror - information about the errorIOException - if there was an error persisting the change in state. This can only be thrown if there was
a change in state.void setTableReplicating(String database, String table) throws IOException
database - database that the table is intable - table nameIOException - if there was an error persisting the change in state. This can only be thrown if there was
a change in state.void setTableSnapshotting(String database, String table) throws IOException
database - database that the table is intable - table nameIOException - if there was an error persisting the change in state. This can only be thrown if there was
a change in state.void dropTableState(String database, String table) throws IOException
database - database that the table is intable - table nameIOException - if there was an error persisting the change in state. This can only be thrown if there was
a change in state.@Nullable SourceProperties getSourceProperties()
null is returneddefault void initializeSequenceNumber(long sequenceNumber)
sequenceNumber - the sequence number to be set for the first record seen by replication pipelineCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.