public class DataSourceImpl
extends java.lang.Object
implements org.embulk.config.ConfigSource, org.embulk.config.TaskSource, org.embulk.config.TaskReport, org.embulk.config.ConfigDiff
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.node.ObjectNode |
data |
protected ModelManagerDelegateImpl |
model |
| Constructor and Description |
|---|
DataSourceImpl(ModelManagerDelegateImpl model) |
DataSourceImpl(ModelManagerDelegateImpl model,
com.fasterxml.jackson.databind.node.ObjectNode data) |
| Modifier and Type | Method and Description |
|---|---|
DataSourceImpl |
deepCopy() |
boolean |
equals(java.lang.Object other) |
<E> E |
get(java.lang.Class<E> type,
java.lang.String attrName) |
<E> E |
get(java.lang.Class<E> type,
java.lang.String attrName,
E defaultValue) |
java.util.List<java.lang.String> |
getAttributeNames() |
java.lang.Iterable<java.util.Map.Entry<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> |
getAttributes()
Deprecated.
|
DataSourceImpl |
getNested(java.lang.String attrName) |
DataSourceImpl |
getNestedOrGetEmpty(java.lang.String attrName) |
DataSourceImpl |
getNestedOrSetEmpty(java.lang.String attrName) |
com.fasterxml.jackson.databind.node.ObjectNode |
getObjectNode()
Deprecated.
|
boolean |
has(java.lang.String attrName) |
int |
hashCode() |
boolean |
isEmpty() |
<T> T |
loadConfig(java.lang.Class<T> taskType)
Deprecated.
|
<T> T |
loadTask(java.lang.Class<T> taskType)
Deprecated.
|
DataSourceImpl |
merge(org.embulk.config.DataSource other) |
protected DataSourceImpl |
newInstance(ModelManagerDelegateImpl model,
com.fasterxml.jackson.databind.node.ObjectNode data) |
DataSourceImpl |
remove(java.lang.String attrName) |
DataSourceImpl |
set(java.lang.String attrName,
java.lang.Object v) |
DataSourceImpl |
setAll(org.embulk.config.DataSource other) |
DataSourceImpl |
setNested(java.lang.String attrName,
org.embulk.config.DataSource v) |
java.lang.String |
toJson() |
java.lang.String |
toString() |
protected final com.fasterxml.jackson.databind.node.ObjectNode data
protected final ModelManagerDelegateImpl model
public DataSourceImpl(ModelManagerDelegateImpl model)
public DataSourceImpl(ModelManagerDelegateImpl model, com.fasterxml.jackson.databind.node.ObjectNode data)
protected DataSourceImpl newInstance(ModelManagerDelegateImpl model, com.fasterxml.jackson.databind.node.ObjectNode data)
@Deprecated public com.fasterxml.jackson.databind.node.ObjectNode getObjectNode()
public java.util.List<java.lang.String> getAttributeNames()
getAttributeNames in interface org.embulk.config.DataSource@Deprecated public java.lang.Iterable<java.util.Map.Entry<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> getAttributes()
public boolean isEmpty()
isEmpty in interface org.embulk.config.DataSourcepublic boolean has(java.lang.String attrName)
has in interface org.embulk.config.DataSourcepublic <E> E get(java.lang.Class<E> type,
java.lang.String attrName)
get in interface org.embulk.config.DataSourcepublic <E> E get(java.lang.Class<E> type,
java.lang.String attrName,
E defaultValue)
get in interface org.embulk.config.DataSourcepublic DataSourceImpl getNested(java.lang.String attrName)
getNested in interface org.embulk.config.ConfigDiffgetNested in interface org.embulk.config.ConfigSourcegetNested in interface org.embulk.config.DataSourcegetNested in interface org.embulk.config.TaskReportgetNested in interface org.embulk.config.TaskSourcepublic DataSourceImpl getNestedOrSetEmpty(java.lang.String attrName)
getNestedOrSetEmpty in interface org.embulk.config.ConfigDiffgetNestedOrSetEmpty in interface org.embulk.config.ConfigSourcegetNestedOrSetEmpty in interface org.embulk.config.DataSourcegetNestedOrSetEmpty in interface org.embulk.config.TaskReportgetNestedOrSetEmpty in interface org.embulk.config.TaskSourcepublic DataSourceImpl getNestedOrGetEmpty(java.lang.String attrName)
getNestedOrGetEmpty in interface org.embulk.config.ConfigDiffgetNestedOrGetEmpty in interface org.embulk.config.ConfigSourcegetNestedOrGetEmpty in interface org.embulk.config.DataSourcegetNestedOrGetEmpty in interface org.embulk.config.TaskReportgetNestedOrGetEmpty in interface org.embulk.config.TaskSourcepublic DataSourceImpl set(java.lang.String attrName, java.lang.Object v)
set in interface org.embulk.config.ConfigDiffset in interface org.embulk.config.ConfigSourceset in interface org.embulk.config.DataSourceset in interface org.embulk.config.TaskReportset in interface org.embulk.config.TaskSourcepublic DataSourceImpl setNested(java.lang.String attrName, org.embulk.config.DataSource v)
setNested in interface org.embulk.config.ConfigDiffsetNested in interface org.embulk.config.ConfigSourcesetNested in interface org.embulk.config.DataSourcesetNested in interface org.embulk.config.TaskReportsetNested in interface org.embulk.config.TaskSourcepublic DataSourceImpl setAll(org.embulk.config.DataSource other)
setAll in interface org.embulk.config.ConfigDiffsetAll in interface org.embulk.config.ConfigSourcesetAll in interface org.embulk.config.DataSourcesetAll in interface org.embulk.config.TaskReportsetAll in interface org.embulk.config.TaskSourcepublic DataSourceImpl remove(java.lang.String attrName)
remove in interface org.embulk.config.ConfigDiffremove in interface org.embulk.config.ConfigSourceremove in interface org.embulk.config.DataSourceremove in interface org.embulk.config.TaskReportremove in interface org.embulk.config.TaskSourcepublic DataSourceImpl deepCopy()
deepCopy in interface org.embulk.config.ConfigDiffdeepCopy in interface org.embulk.config.ConfigSourcedeepCopy in interface org.embulk.config.DataSourcedeepCopy in interface org.embulk.config.TaskReportdeepCopy in interface org.embulk.config.TaskSourcepublic DataSourceImpl merge(org.embulk.config.DataSource other)
merge in interface org.embulk.config.ConfigDiffmerge in interface org.embulk.config.ConfigSourcemerge in interface org.embulk.config.DataSourcemerge in interface org.embulk.config.TaskReportmerge in interface org.embulk.config.TaskSourcepublic java.lang.String toJson()
toJson in interface org.embulk.config.DataSource@Deprecated public <T> T loadTask(java.lang.Class<T> taskType)
loadTask in interface org.embulk.config.TaskSource@Deprecated public <T> T loadConfig(java.lang.Class<T> taskType)
loadConfig in interface org.embulk.config.ConfigSourcepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object