public abstract class EntityProcessor extends Object
An instance of entity processor serves an entity. It is reused throughout the import process.
Implementations of this abstract class must provide a public no-args constructor.
Refer to http://wiki.apache.org/solr/DataImportHandler for more details.
This API is experimental and may change in the future.
Constructor and Description |
---|
EntityProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Invoked when the Entity processor is destroyed towards the end of import.
|
abstract void |
destroy()
Invoked for each entity at the very end of the import to do any needed cleanup tasks.
|
abstract void |
init(Context context)
This method is called when it starts processing an entity.
|
abstract Map<String,Object> |
nextDeletedRowKey()
This is used during delta-import.
|
abstract Map<String,Object> |
nextModifiedParentRowKey()
This is used during delta-import.
|
abstract Map<String,Object> |
nextModifiedRowKey()
This is used for delta-import.
|
abstract Map<String,Object> |
nextRow()
This method helps streaming the data for each row .
|
void |
postTransform(Map<String,Object> r)
Invoked after the transformers are invoked.
|
public abstract void init(Context context)
context
- The current contextpublic abstract Map<String,Object> nextRow()
public abstract Map<String,Object> nextModifiedRowKey()
public abstract Map<String,Object> nextDeletedRowKey()
public abstract Map<String,Object> nextModifiedParentRowKey()
public abstract void destroy()
public void postTransform(Map<String,Object> r)
r
- The transformed rowpublic void close()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.