use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class MockRuntimeDatasetSink method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, true));
properties.put("runtimeDatasetName", new PluginPropertyField("runtimeDatasetName", "", "string", true, true));
return PluginClass.builder().setName("MockRuntime").setType(BatchSink.PLUGIN_TYPE).setDescription("").setClassName(MockRuntimeDatasetSink.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
the class MockSQLEngine method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("name", new PluginPropertyField("name", "", "string", true, false));
properties.put("inputDirName", new PluginPropertyField("inputDirName", "", "string", true, false));
properties.put("outputDirName", new PluginPropertyField("outputDirName", "", "string", true, false));
properties.put("outputSchema", new PluginPropertyField("outputSchema", "", "string", true, false));
return new PluginClass(BatchSQLEngine.PLUGIN_TYPE, NAME, "", MockSQLEngine.class.getName(), "config", properties);
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by caskdata.
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 caskdata.
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 caskdata.
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();
}
Aggregations