use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class FieldCountReducibleAggregator 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(NAME).setType(BatchReducibleAggregator.PLUGIN_TYPE).setDescription("").setClassName(FieldCountReducibleAggregator.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class DupeFlagger method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("keep", new PluginPropertyField("keep", "input to keep", "string", true, false));
properties.put("flagField", new PluginPropertyField("flagField", "name of the flag field", "string", false, true));
return PluginClass.builder().setName(NAME).setType(BatchJoiner.PLUGIN_TYPE).setDescription("").setClassName(DupeFlagger.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class MockAutoJoiner method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put(Conf.STAGES, new PluginPropertyField(Conf.STAGES, "", "string", true, true));
properties.put(Conf.REQUIRED, new PluginPropertyField(Conf.REQUIRED, "", "string", false, true));
properties.put(Conf.KEY, new PluginPropertyField(Conf.KEY, "", "string", false, true));
properties.put(Conf.NULL_SAFE, new PluginPropertyField(Conf.NULL_SAFE, "", "boolean", false, false));
properties.put(Conf.BROADCAST, new PluginPropertyField(Conf.BROADCAST, "", "string", false, false));
properties.put(Conf.SELECT, new PluginPropertyField(Conf.SELECT, "", "string", false, true));
properties.put(Conf.SCHEMA, new PluginPropertyField(Conf.SCHEMA, "", "string", false, true));
properties.put(Conf.DISTRIBUTION_SIZE, new PluginPropertyField(Conf.DISTRIBUTION_SIZE, "", "integer", false, false));
properties.put(Conf.DISTRIBUTION_NAME, new PluginPropertyField(Conf.DISTRIBUTION_NAME, "", "string", false, false));
properties.put(Conf.CONDITION_EXPR, new PluginPropertyField(Conf.CONDITION_EXPR, "", "string", false, false));
return PluginClass.builder().setName(NAME).setType(BatchJoiner.PLUGIN_TYPE).setDescription("").setClassName(MockAutoJoiner.class.getName()).setProperties(properties).setConfigFieldName("conf").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
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 PluginClass.builder().setName(PLUGIN_NAME).setType(BatchSource.PLUGIN_TYPE).setDescription("").setClassName(MockExternalSource.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class NullFieldSplitterTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("field", new PluginPropertyField("field", "", "string", true, true));
return PluginClass.builder().setName("NullFieldSplitter").setType(SplitterTransform.PLUGIN_TYPE).setDescription("").setClassName(NullFieldSplitterTransform.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
Aggregations