public class MockTarget extends Object implements DeltaTarget
| Modifier and Type | Field and Description |
|---|---|
static io.cdap.cdap.api.plugin.PluginClass |
PLUGIN_CLASS |
PLUGIN_TYPE| Constructor and Description |
|---|
MockTarget(io.cdap.delta.test.mock.MockTarget.Conf conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configurer configurer) |
EventConsumer |
createConsumer(DeltaTargetContext context) |
TableAssessor<StandardizedTableDetail> |
createTableAssessor(Configurer configurer) |
static Plugin |
getPlugin(File filePath)
Get the plugin configuration for a mock target that should write events to a local file.
|
static Plugin |
getPlugin(File filePath,
boolean emitErrorForDML)
Get the plugin configuration for a mock target that should write events to a local file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializecreateTableAssessorpublic void configure(Configurer configurer)
configure in interface DeltaTargetpublic EventConsumer createConsumer(DeltaTargetContext context)
createConsumer in interface DeltaTargetpublic TableAssessor<StandardizedTableDetail> createTableAssessor(Configurer configurer)
createTableAssessor in interface TableAssessorSupplier<StandardizedTableDetail>public static Plugin getPlugin(File filePath)
FileEventConsumer.readEvents(File, int)
to read events written by the target.filePath - path to the file to write events topublic static Plugin getPlugin(File filePath, boolean emitErrorForDML)
FileEventConsumer.readEvents(File, int)
to read events written by the target.filePath - path to the file to write events toemitErrorForDML - configuration for whether error should be emitted by target for each dml operationCopyright © 2023 CDAP Licensed under the Apache License, Version 2.0.