public class MockRealtimeContext extends Object implements RealtimeContext
| Constructor and Description |
|---|
MockRealtimeContext() |
MockRealtimeContext(Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
co.cask.cdap.api.data.schema.Schema |
getInputSchema() |
Map<String,co.cask.cdap.api.data.schema.Schema> |
getInputSchemas() |
int |
getInstanceCount() |
int |
getInstanceId() |
StageMetrics |
getMetrics() |
co.cask.cdap.api.data.schema.Schema |
getOutputSchema() |
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 PluginProperties getPluginProperties()
getPluginProperties in interface StageContextpublic StageMetrics getMetrics()
getMetrics in interface StageContextpublic String getStageName()
getStageName in interface StageContextpublic int getInstanceId()
getInstanceId in interface RealtimeContextpublic int getInstanceCount()
getInstanceCount in interface RealtimeContextpublic PluginProperties getPluginProperties(String pluginId)
getPluginProperties in interface StageContextpublic <T> Class<T> loadPluginClass(String pluginId)
loadPluginClass 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 StageContextCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.