public interface TaskSource extends DataSource
It had two following methods that return Jackson's instances till v0.9, but they are removed so that Jackson on the core side can be hidden from plugins.
Iterable<Map.Entry<String, JsonNode>> getAttributes()
ObjectNode getObjectNode()
| Modifier and Type | Method and Description |
|---|---|
TaskSource |
deepCopy()
Creates a deep copy of itself.
|
TaskSource |
getNested(String attrName)
Returns a nested value under
attrName. |
TaskSource |
getNestedOrGetEmpty(String attrName)
Returns a nested value under
attrName. |
TaskSource |
getNestedOrSetEmpty(String attrName)
Returns a nested value under
attrName. |
default <T> T |
loadTask(Class<T> taskType)
Deprecated.
Use
embulk-util-config instead. |
TaskSource |
merge(DataSource other)
Merges another
TaskSource into itself. |
TaskSource |
remove(String attrName)
Removes the attribute named
attrName. |
TaskSource |
set(String attrName,
Object v)
Sets a value for
attrName. |
TaskSource |
setAll(DataSource other)
Sets all attributes in
other into itself. |
TaskSource |
setNested(String attrName,
DataSource v)
Sets a nested value for
attrName. |
get, get, getAttributeNames, has, isEmpty, toJson@Deprecated default <T> T loadTask(Class<T> taskType)
embulk-util-config instead.PluginTask.
This method will be deprecated. Loading tasks will be replaced by another library
embulk-util-config on plugin's side.
T - the task class to load this configuration astaskType - the task class to load this configuration asTaskSource getNested(String attrName)
attrName.getNested in interface DataSourceattrName - name of the nested attribute to look forattrNameTaskSource getNestedOrSetEmpty(String attrName)
attrName. Sets an empty object node "{}" there if it is empty.getNestedOrSetEmpty in interface DataSourceattrName - name of the nested attribute to look forattrNameTaskSource getNestedOrGetEmpty(String attrName)
attrName. Returns an empty object node "{}" there if it is empty.getNestedOrGetEmpty in interface DataSourceattrName - name of the nested attribute to look forattrNameTaskSource set(String attrName, Object v)
attrName.set in interface DataSourceattrName - name of the attribute to set the value atv - the value Object to setTaskSource setNested(String attrName, DataSource v)
attrName.setNested in interface DataSourceattrName - name of the attribute to set the nested value atv - the nested value to setTaskSource setAll(DataSource other)
other into itself.setAll in interface DataSourceother - the other TaskSource to setTaskSource remove(String attrName)
attrName.remove in interface DataSourceattrName - name of the attribute to removeTaskSource deepCopy()
deepCopy in interface DataSourceTaskSource instance that is deep-copied from itselfTaskSource merge(DataSource other)
TaskSource into itself.merge in interface DataSourceother - the other TaskSource to mergeTaskSource is merged