Class ExecuteSnapshot<P extends Partition>
java.lang.Object
io.debezium.pipeline.signal.actions.AbstractSnapshotSignal<P>
io.debezium.pipeline.signal.actions.snapshotting.ExecuteSnapshot<P>
- All Implemented Interfaces:
SignalAction<P>
The action to trigger an ad-hoc snapshot.
The action parameters are
type
of snapshot and list of data-collections
on which the
snapshot will be executed.- Author:
- Jiri Pechanec
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.pipeline.signal.actions.AbstractSnapshotSignal
AbstractSnapshotSignal.SnapshotType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChangeEventSourceCoordinator<P,
? extends OffsetContext> private final EventDispatcher<P,
? extends DataCollectionId> private static final org.slf4j.Logger
private static final String
static final String
Fields inherited from class io.debezium.pipeline.signal.actions.AbstractSnapshotSignal
FIELD_ADDITIONAL_CONDITION, FIELD_ADDITIONAL_CONDITIONS, FIELD_DATA_COLLECTION, FIELD_DATA_COLLECTIONS, FIELD_FILTER, FIELD_SURROGATE_KEY, FIELD_TYPE
-
Constructor Summary
ConstructorDescriptionExecuteSnapshot
(EventDispatcher<P, ? extends DataCollectionId> dispatcher, ChangeEventSourceCoordinator<P, ?> changeEventSourceCoordinator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
arrived
(SignalPayload<P> signalPayload) private AdditionalCondition
buildAdditionalCondition
(Value value) Deprecated.Use {getAdditionalConditions} instead.private List<AdditionalCondition>
getDataCollections
(Document data) getSurrogateKey
(Document data) Methods inherited from class io.debezium.pipeline.signal.actions.AbstractSnapshotSignal
getSnapshotType
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NAME
- See Also:
-
MATCH_ALL_PATTERN
- See Also:
-
dispatcher
-
changeEventSourceCoordinator
private final ChangeEventSourceCoordinator<P extends Partition,? extends OffsetContext> changeEventSourceCoordinator
-
-
Constructor Details
-
ExecuteSnapshot
public ExecuteSnapshot(EventDispatcher<P, ? extends DataCollectionId> dispatcher, ChangeEventSourceCoordinator<P, ?> changeEventSourceCoordinator)
-
-
Method Details
-
arrived
- Parameters:
signalPayload
- the content of the signal- Returns:
- true if the signal was processed
- Throws:
InterruptedException
-
getAdditionalConditions
private List<AdditionalCondition> getAdditionalConditions(Document data, AbstractSnapshotSignal.SnapshotType type) -
buildAdditionalCondition
-
getDataCollections
-
getAdditionalCondition
Deprecated.Use {getAdditionalConditions} instead.TODO remove in 2.5 release -
getSurrogateKey
-