use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class MockSink 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(MockSink.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class MockSource method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("connectionConfig", new PluginPropertyField("connectionConfig", "", "connectionconfig", true, true, false, Collections.singleton("tableName")));
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, false));
properties.put("schema", new PluginPropertyField("schema", "", "string", false, false));
properties.put("metadataOperations", new PluginPropertyField("metadataOperations", "", "string", false, false));
properties.put("sleepInMillis", new PluginPropertyField("sleepInMillis", "", "long", false, false));
return PluginClass.builder().setName("Mock").setType(BatchSource.PLUGIN_TYPE).setDescription("").setClassName(MockSource.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
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 caskdata.
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 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 PluginClass.builder().setName("FieldCount").setType(BatchAggregator.PLUGIN_TYPE).setDescription("").setClassName(FieldCountAggregator.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
Aggregations