use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class GroupFilterAggregator method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("field", new PluginPropertyField("field", "", "string", true, false));
properties.put("value", new PluginPropertyField("value", "", "string", true, false));
return PluginClass.builder().setName("GroupFilter").setType(BatchAggregator.PLUGIN_TYPE).setDescription("").setClassName(GroupFilterAggregator.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class MockJoiner method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("joinKeys", new PluginPropertyField("joinKeys", "", "string", true, false));
properties.put("requiredInputs", new PluginPropertyField("requiredInputs", "", "string", true, false));
properties.put("selectedFields", new PluginPropertyField("selectedFields", "", "string", true, false));
return PluginClass.builder().setName("MockJoiner").setType(BatchJoiner.PLUGIN_TYPE).setDescription("").setClassName(MockJoiner.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class MockSinkWithWriteCapability method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, true));
properties.put("connectionConfig", new PluginPropertyField("connectionConfig", "", "connectionconfig", true, true, false, Collections.singleton("tableName")));
return PluginClass.builder().setName(NAME).setType(BatchSink.PLUGIN_TYPE).setDescription("").setClassName(MockSinkWithWriteCapability.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class DistinctAggregator method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("fields", new PluginPropertyField("fields", "", "string", true, false));
return PluginClass.builder().setName(NAME).setType(BatchAggregator.PLUGIN_TYPE).setDescription("").setClassName(DistinctAggregator.class.getName()).setConfigFieldName("conf").setProperties(properties).build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class DistinctReducibleAggregator method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("fields", new PluginPropertyField("fields", "", "string", true, false));
properties.put("partitions", new PluginPropertyField("partitions", "", "int", false, false));
return PluginClass.builder().setName(NAME).setType(BatchReducibleAggregator.PLUGIN_TYPE).setDescription("").setClassName(DistinctReducibleAggregator.class.getName()).setConfigFieldName("config").setProperties(properties).build();
}
Aggregations