Fields inherited from class org.apache.solr.handler.dataimport.
EntityProcessorBase ABORT, cacheSupport, context, CONTINUE, entityName, isFirstInit, ON_ERROR, onError, query, rowIterator, SKIP, SKIP_DOC, TRANSFORM_ROW, TRANSFORMER
Modifier and Type
Method and Description
( init Context context)
This method is called when it starts processing an entity.
Map< String, Object>
For a simple implementation, this is the only method that the sub-class should implement.
Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void init(
This method is called when it starts processing an entity. When it comes
back to the entity it is called again. So it can reset anything at that point.
For a rootmost entity this is called only once for an ingestion. For sub-entities , this
is called multiple once for each row from its parent entity
init EntityProcessorBase Parameters:
context - The current context
Map< String, Object> nextRow()
For a simple implementation, this is the only method that the sub-class should implement. This is intended to
stream rows one-by-one. Return null to signal end of rows
nextRow EntityProcessorBase Returns: a row where the key is the name of the field and value can be any Object or a Collection of objects. Return
null to signal end of rows