public class EntityProcessorWrapper extends EntityProcessor
EntityProcessor
instance which performs transforms and handles multi-row outputs correctly.Modifier and Type | Field and Description |
---|---|
protected List<Map<String,Object>> |
rowcache |
protected List<Transformer> |
transformers |
Constructor and Description |
---|
EntityProcessorWrapper(EntityProcessor delegate,
Entity entity,
DocBuilder docBuilder) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
applyTransformer(Map<String,Object> row) |
void |
close()
Invoked when the Entity processor is destroyed towards the end of import.
|
void |
destroy()
Invoked for each entity at the very end of the import to do any needed cleanup tasks.
|
List<EntityProcessorWrapper> |
getChildren() |
Context |
getContext() |
DataSource |
getDatasource() |
Entity |
getEntity() |
protected Map<String,Object> |
getFromRowCache() |
VariableResolver |
getVariableResolver() |
void |
init(Context context)
This method is called when it starts processing an entity.
|
boolean |
isInitialized() |
Map<String,Object> |
nextDeletedRowKey()
This is used during delta-import.
|
Map<String,Object> |
nextModifiedParentRowKey()
This is used during delta-import.
|
Map<String,Object> |
nextModifiedRowKey()
This is used for delta-import.
|
Map<String,Object> |
nextRow()
This method helps streaming the data for each row .
|
void |
setDatasource(DataSource datasource) |
void |
setInitialized(boolean initialized) |
postTransform
protected List<Transformer> transformers
public EntityProcessorWrapper(EntityProcessor delegate, Entity entity, DocBuilder docBuilder)
public void init(Context context)
EntityProcessor
init
in class EntityProcessor
context
- The current contextpublic Map<String,Object> nextRow()
EntityProcessor
nextRow
in class EntityProcessor
public Map<String,Object> nextModifiedRowKey()
EntityProcessor
nextModifiedRowKey
in class EntityProcessor
public Map<String,Object> nextDeletedRowKey()
EntityProcessor
nextDeletedRowKey
in class EntityProcessor
public Map<String,Object> nextModifiedParentRowKey()
EntityProcessor
nextModifiedParentRowKey
in class EntityProcessor
public void destroy()
EntityProcessor
destroy
in class EntityProcessor
public VariableResolver getVariableResolver()
public Context getContext()
public void close()
EntityProcessor
close
in class EntityProcessor
public Entity getEntity()
public List<EntityProcessorWrapper> getChildren()
public DataSource getDatasource()
public void setDatasource(DataSource datasource)
public boolean isInitialized()
public void setInitialized(boolean initialized)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.