use of co.cask.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class MockCondition method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("name", new PluginPropertyField("name", "", "string", true, false));
properties.put("tableName", new PluginPropertyField("tableName", "", "string", false, false));
return new PluginClass(Condition.PLUGIN_TYPE, "Mock", "", MockCondition.class.getName(), "config", properties);
}
use of co.cask.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class StringValueFilterCompute method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("field", new PluginPropertyField("field", "", "string", true, true));
properties.put("value", new PluginPropertyField("value", "", "string", true, true));
return new PluginClass(SparkCompute.PLUGIN_TYPE, "StringValueFilterCompute", "", StringValueFilterCompute.class.getName(), "conf", properties);
}
use of co.cask.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class MockSource method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("schema", new PluginPropertyField("schema", "", "string", true, false));
properties.put("records", new PluginPropertyField("records", "", "string", true, false));
properties.put("intervalMillis", new PluginPropertyField("intervalMillis", "", "long", false, false));
return new PluginClass(StreamingSource.PLUGIN_TYPE, "Mock", "", MockSource.class.getName(), "conf", properties);
}
use of co.cask.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class MockSink method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, true));
return new PluginClass(SparkSink.PLUGIN_TYPE, "Mock", "", MockSink.class.getName(), "config", properties);
}
use of co.cask.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class MockAction method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, false));
properties.put("rowKey", new PluginPropertyField("rowKey", "", "string", true, false));
properties.put("columnKey", new PluginPropertyField("columnKey", "", "string", true, false));
properties.put("value", new PluginPropertyField("value", "", "string", true, true));
properties.put("argumentKey", new PluginPropertyField("argumentKey", "", "string", false, false));
properties.put("argumentValue", new PluginPropertyField("argumentValue", "", "string", false, false));
return new PluginClass(Action.PLUGIN_TYPE, "TableWriterAction", "", MockAction.class.getName(), "config", properties);
}
Aggregations