use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class PluginValidationTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("connectionConfig", new PluginPropertyField("connectionConfig", "", "connectionconfig", true, true, false, ImmutableSet.of("plugin1", "plugin1Type")));
properties.put("plugin1", new PluginPropertyField("plugin1", "", "string", true, true));
properties.put("plugin1Type", new PluginPropertyField("plugin1Type", "", "string", true, true));
properties.put("plugin2", new PluginPropertyField("plugin2", "", "string", true, true));
properties.put("plugin2Type", new PluginPropertyField("plugin2Type", "", "string", true, true));
return PluginClass.builder().setName(PLUGIN_NAME).setType(Transform.PLUGIN_TYPE).setDescription("").setClassName(PluginValidationTransform.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class StringValueFilterTransform 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("StringValueFilter").setType(Transform.PLUGIN_TYPE).setDescription("").setClassName(StringValueFilterTransform.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class FieldLineageAction method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("readDataset", new PluginPropertyField("readDataset", "", "string", true, false));
properties.put("writeDataset", new PluginPropertyField("writeDataset", "", "string", true, false));
properties.put("fieldOperations", new PluginPropertyField("fieldOperations", "", "string", true, false));
return PluginClass.builder().setName("FieldLineageAction").setType(Action.PLUGIN_TYPE).setDescription("").setClassName(FieldLineageAction.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class DropNullTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("field", new PluginPropertyField("field", "", "string", true, false));
return PluginClass.builder().setName("DropField").setType(Transform.PLUGIN_TYPE).setDescription("").setClassName(DropNullTransform.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class FilterErrorTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("code", new PluginPropertyField("code", "", "int", true, false));
return PluginClass.builder().setName("Filter").setType(ErrorTransform.PLUGIN_TYPE).setDescription("").setClassName(FilterErrorTransform.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
Aggregations