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
|
void |
incrementCount(DDLOperation op)
Record that a DDL operation was processed.
|
void |
incrementCount(DMLOperation op)
Record that a DML operation was processed.
|
void |
setTableError(String database,
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
|
getApplicationName, getInstanceId, getMaxRetrySeconds, getMetrics, getRunId, getRuntimeArguments, getState, putStatevoid incrementCount(DMLOperation op)
commitOffset(Offset, long) is called.op - type of DML operationvoid incrementCount(DDLOperation op)
commitOffset(Offset, long) is called.op - type of 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 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.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.