public static final class MergeDataSourceProcessor.Source extends java.lang.Object implements ConfigurationObject
Describes the objects used as sources for a merged data source (see !mergeDataSources processor).
[[examples=merged_datasource]]| Constructor and Description |
|---|
Source() |
| Modifier and Type | Method and Description |
|---|---|
void |
setFields(java.util.Map<java.lang.String,java.lang.String> fields)
The names of each field in the DataSource.
|
void |
setKey(java.lang.String key)
The key to use when looking for the object among the attributes and the processor output values.
|
void |
setType(MergeDataSourceProcessor.SourceType type)
The type of source.
|
void |
validate(java.util.List<java.lang.Throwable> validationErrors,
Configuration config)
validate that the configuration was correct.
|
public void setKey(java.lang.String key)
key - the look up keypublic void setType(MergeDataSourceProcessor.SourceType type)
MergeDataSourceProcessor.SourceType
for the options.type - the type of sourcepublic void setFields(java.util.Map<java.lang.String,java.lang.String> fields)
MergeDataSourceProcessor.SourceType
for instructions on how to declare the fieldsfields - the field namespublic void validate(java.util.List<java.lang.Throwable> validationErrors,
Configuration config)
ConfigurationObjectvalidate in interface ConfigurationObjectvalidationErrors - a list to add any detected errors to.config - the containing configuration