public class MockTransformContext extends Object implements TransformContext
| Constructor and Description |
|---|
MockTransformContext() |
MockTransformContext(String stageName) |
MockTransformContext(String stageName,
Map<String,String> args) |
MockTransformContext(String stageName,
Map<String,String> args,
LookupProvider lookup) |
| Modifier and Type | Method and Description |
|---|---|
Arguments |
getArguments() |
co.cask.cdap.api.data.schema.Schema |
getInputSchema() |
Map<String,co.cask.cdap.api.data.schema.Schema> |
getInputSchemas() |
long |
getLogicalStartTime() |
StageMetrics |
getMetrics() |
MockStageMetrics |
getMockMetrics() |
String |
getNamespace() |
Map<String,co.cask.cdap.api.data.schema.Schema> |
getOutputPortSchemas() |
co.cask.cdap.api.data.schema.Schema |
getOutputSchema() |
String |
getPipelineName() |
PluginProperties |
getPluginProperties() |
PluginProperties |
getPluginProperties(String pluginId) |
URL |
getServiceURL(String serviceId) |
URL |
getServiceURL(String applicationId,
String serviceId) |
String |
getStageName() |
<T> Class<T> |
loadPluginClass(String pluginId) |
<T> T |
newPluginInstance(String pluginId) |
<T> Lookup<T> |
provide(String table,
Map<String,String> arguments) |
public MockTransformContext()
public MockTransformContext(String stageName)
public MockTransformContext(String stageName, Map<String,String> args, LookupProvider lookup)
public PluginProperties getPluginProperties()
getPluginProperties in interface StageContextpublic PluginProperties getPluginProperties(String pluginId)
getPluginProperties in interface StageContextpublic StageMetrics getMetrics()
getMetrics in interface StageContextpublic MockStageMetrics getMockMetrics()
public String getStageName()
getStageName in interface StageContextpublic String getNamespace()
getNamespace in interface StageContextpublic String getPipelineName()
getPipelineName in interface StageContextpublic long getLogicalStartTime()
getLogicalStartTime in interface StageContextpublic <T> T newPluginInstance(String pluginId) throws InstantiationException
newPluginInstance in interface StageContextInstantiationException@Nullable public co.cask.cdap.api.data.schema.Schema getInputSchema()
getInputSchema in interface StageContextpublic Map<String,co.cask.cdap.api.data.schema.Schema> getInputSchemas()
getInputSchemas in interface StageContext@Nullable public co.cask.cdap.api.data.schema.Schema getOutputSchema()
getOutputSchema in interface StageContextpublic Map<String,co.cask.cdap.api.data.schema.Schema> getOutputPortSchemas()
getOutputPortSchemas in interface StageContextpublic Arguments getArguments()
getArguments in interface StageContextpublic <T> Class<T> loadPluginClass(String pluginId)
loadPluginClass in interface StageContextpublic <T> Lookup<T> provide(String table, Map<String,String> arguments)
provide in interface LookupProvider@Nullable public URL getServiceURL(String applicationId, String serviceId)
getServiceURL in interface ServiceDiscoverer@Nullable public URL getServiceURL(String serviceId)
getServiceURL in interface ServiceDiscovererCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.