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 |
|---|---|
StageMetrics |
getMetrics() |
MockStageMetrics |
getMockMetrics() |
PluginProperties |
getPluginProperties() |
PluginProperties |
getPluginProperties(String pluginId) |
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 <T> T newPluginInstance(String pluginId) throws InstantiationException
newPluginInstance in interface StageContextInstantiationExceptionpublic <T> Class<T> loadPluginClass(String pluginId)
loadPluginClass in interface StageContextCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.