use of co.cask.cdap.api.plugin.PluginClass in project cdap by caskdata.
the class MockExternalSource method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("name", new PluginPropertyField("name", "", "string", true, false));
properties.put("dirName", new PluginPropertyField("dirName", "", "string", true, false));
return new PluginClass(BatchSource.PLUGIN_TYPE, PLUGIN_NAME, "", MockExternalSource.class.getName(), "config", properties);
}
use of co.cask.cdap.api.plugin.PluginClass in project cdap by caskdata.
the class MockSource method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, false));
properties.put("schema", new PluginPropertyField("schema", "", "string", false, false));
return new PluginClass(BatchSource.PLUGIN_TYPE, "Mock", "", MockSource.class.getName(), "config", properties);
}
use of co.cask.cdap.api.plugin.PluginClass in project cdap by caskdata.
the class FieldCountAggregator method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("fieldName", new PluginPropertyField("fieldName", "", "string", true, true));
properties.put("fieldType", new PluginPropertyField("fieldType", "", "string", true, true));
return new PluginClass(BatchAggregator.PLUGIN_TYPE, "FieldCount", "", FieldCountAggregator.class.getName(), "config", properties);
}
use of co.cask.cdap.api.plugin.PluginClass in project cdap by caskdata.
the class FilterTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("name", new PluginPropertyField("name", "", "string", true, false));
return new PluginClass(Transform.PLUGIN_TYPE, "FilterTransform", "", FilterTransform.class.getName(), "config", properties);
}
use of co.cask.cdap.api.plugin.PluginClass in project cdap by caskdata.
the class MockExternalSink method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("name", new PluginPropertyField("name", "", "string", false, false));
properties.put("alias", new PluginPropertyField("alias", "", "string", true, false));
properties.put("dirName", new PluginPropertyField("dirName", "", "string", true, false));
return new PluginClass(BatchSink.PLUGIN_TYPE, PLUGIN_NAME, "", MockExternalSink.class.getName(), "config", properties);
}
Aggregations