use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
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 cdapio.
the class NodeStatesAction method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, false));
return PluginClass.builder().setName(NodeStatesAction.NAME).setType(PostAction.PLUGIN_TYPE).setDescription("").setClassName(NodeStatesAction.class.getName()).setProperties(properties).setConfigFieldName("conf").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class NullErrorTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("name", new PluginPropertyField("name", "", "string", true, false));
return PluginClass.builder().setName("NullErrorTransform").setType(Transform.PLUGIN_TYPE).setDescription("").setClassName(NullErrorTransform.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class Window method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("width", new PluginPropertyField("width", "", "long", true, false));
properties.put("slideInterval", new PluginPropertyField("slideInterval", "", "long", true, false));
return PluginClass.builder().setName("Window").setType(Windower.PLUGIN_TYPE).setDescription("").setClassName(Window.class.getName()).setProperties(properties).setConfigFieldName("conf").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class MockSource method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("schema", new PluginPropertyField("schema", "", "string", true, false));
properties.put("records", new PluginPropertyField("records", "", "string", true, false));
properties.put("intervalMillis", new PluginPropertyField("intervalMillis", "", "long", false, false));
properties.put("referenceName", new PluginPropertyField("referenceName", "", "string", false, false));
return PluginClass.builder().setName("Mock").setType(StreamingSource.PLUGIN_TYPE).setDescription("").setClassName(MockSource.class.getName()).setProperties(properties).setConfigFieldName("conf").build();
}
Aggregations