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 |
isInitalized() |
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 |
setInitalized(boolean initalized) |
postTransformprotected List<Transformer> transformers
public EntityProcessorWrapper(EntityProcessor delegate, Entity entity, DocBuilder docBuilder)
public void init(Context context)
EntityProcessorinit in class EntityProcessorcontext - The current contextpublic Map<String,Object> nextRow()
EntityProcessornextRow in class EntityProcessorpublic Map<String,Object> nextModifiedRowKey()
EntityProcessornextModifiedRowKey in class EntityProcessorpublic Map<String,Object> nextDeletedRowKey()
EntityProcessornextDeletedRowKey in class EntityProcessorpublic Map<String,Object> nextModifiedParentRowKey()
EntityProcessornextModifiedParentRowKey in class EntityProcessorpublic void destroy()
EntityProcessordestroy in class EntityProcessorpublic VariableResolver getVariableResolver()
public Context getContext()
public void close()
EntityProcessorclose in class EntityProcessorpublic Entity getEntity()
public List<EntityProcessorWrapper> getChildren()
public DataSource getDatasource()
public void setDatasource(DataSource datasource)
public boolean isInitalized()
public void setInitalized(boolean initalized)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.