use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
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 PluginClass.builder().setName("FieldCount").setType(BatchAggregator.PLUGIN_TYPE).setDescription("").setClassName(FieldCountAggregator.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class LookupTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("lookupKey", new PluginPropertyField("lookupKey", "", "string", true, false));
properties.put("destinationField", new PluginPropertyField("destinationField", "", "string", true, false));
properties.put("lookupName", new PluginPropertyField("lookupName", "", "string", true, false));
return PluginClass.builder().setName(NAME).setType(Transform.PLUGIN_TYPE).setDescription("").setClassName(LookupTransform.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
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));
properties.put("name2", new PluginPropertyField("name2", "", "string", false, false));
properties.put("alias2", new PluginPropertyField("alias2", "", "string", false, false));
properties.put("dirName2", new PluginPropertyField("dirName2", "", "string", false, false));
return PluginClass.builder().setName(PLUGIN_NAME).setType(BatchSink.PLUGIN_TYPE).setDescription("").setClassName(MockExternalSink.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
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 PluginClass.builder().setName("Mock").setType(Condition.PLUGIN_TYPE).setDescription("").setClassName(MockCondition.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
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 PluginClass.builder().setName("StringValueFilterCompute").setType(SparkCompute.PLUGIN_TYPE).setDescription("").setClassName(StringValueFilterCompute.class.getName()).setProperties(properties).setConfigFieldName("conf").build();
}
Aggregations