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.
|
public 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 toCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.