public abstract class AbstractArrayExtractor extends AbstractBaseExtractor
Modifier and Type | Class and Description |
---|---|
static class |
AbstractArrayExtractor.FieldMapping |
static class |
AbstractArrayExtractor.FieldType |
Constructor and Description |
---|
AbstractArrayExtractor(String id,
List<AbstractArrayExtractor.FieldMapping> fields) |
Modifier and Type | Method and Description |
---|---|
protected void |
doProcess(ExecutionResult result)
Process the execution result as input.
|
protected abstract String[] |
getFields(ExecutionResult result) |
protected DataItemInputChained |
getItemForGroup(int group) |
void |
register(Hive hive,
FolderItemFactory folderItemFactory) |
protected void |
updateData(String value,
int group) |
createInput, fillNoError, process, setError, unregister
public AbstractArrayExtractor(String id, List<AbstractArrayExtractor.FieldMapping> fields)
protected void doProcess(ExecutionResult result) throws Exception
AbstractBaseExtractor
This method will only be called if no execution error occurred. Otherwise the error flags of all data items are automatically set.
This method must apply the attributes from AbstractBaseExtractor.fillNoError(Map)
when
updating items. This is needed since applying them afterwards would cause
two updates on the dataitem and the state would by async to the value
itself.
doProcess
in class AbstractBaseExtractor
result
- the execution result that has to be processesException
- if anything goes wrongprotected abstract String[] getFields(ExecutionResult result)
public void register(Hive hive, FolderItemFactory folderItemFactory)
register
in interface Extractor
register
in class AbstractBaseExtractor
protected void updateData(String value, int group)
protected DataItemInputChained getItemForGroup(int group)