public class MockTarget extends Object implements io.cdap.delta.api.DeltaTarget
| Modifier and Type | Field and Description |
|---|---|
static PluginClass |
PLUGIN_CLASS |
| Constructor and Description |
|---|
MockTarget(io.cdap.delta.test.mock.MockTarget.Conf conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(io.cdap.delta.api.Configurer configurer) |
io.cdap.delta.api.EventConsumer |
createConsumer(io.cdap.delta.api.DeltaTargetContext context) |
io.cdap.delta.api.assessment.TableAssessor<io.cdap.delta.api.assessment.StandardizedTableDetail> |
createTableAssessor(io.cdap.delta.api.Configurer configurer) |
static io.cdap.delta.proto.Plugin |
getPlugin(File filePath)
Get the plugin configuration for a mock target that should write events to a local file.
|
public static final PluginClass PLUGIN_CLASS
public void configure(io.cdap.delta.api.Configurer configurer)
configure in interface io.cdap.delta.api.DeltaTargetpublic io.cdap.delta.api.EventConsumer createConsumer(io.cdap.delta.api.DeltaTargetContext context)
createConsumer in interface io.cdap.delta.api.DeltaTargetpublic io.cdap.delta.api.assessment.TableAssessor<io.cdap.delta.api.assessment.StandardizedTableDetail> createTableAssessor(io.cdap.delta.api.Configurer configurer)
createTableAssessor in interface io.cdap.delta.api.assessment.TableAssessorSupplier<io.cdap.delta.api.assessment.StandardizedTableDetail>public static io.cdap.delta.proto.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.