org.apache.solr.handler.dataimport
Class ThreadedEntityProcessorWrapper
java.lang.Object
org.apache.solr.handler.dataimport.EntityProcessor
org.apache.solr.handler.dataimport.EntityProcessorWrapper
org.apache.solr.handler.dataimport.ThreadedEntityProcessorWrapper
public class ThreadedEntityProcessorWrapper
- extends EntityProcessorWrapper
Each Entity may have only a single EntityProcessor . But the same entity can be run by
multiple EntityProcessorWrapper (1 per thread) . this helps running transformations in multiple threads
- Since:
- Solr 3.1
Method Summary |
void |
init(org.apache.solr.handler.dataimport.DocBuilder.EntityRow rows)
|
Map<String,Object> |
nextRow()
This method helps streaming the data for each row . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadedEntityProcessorWrapper
public ThreadedEntityProcessorWrapper(EntityProcessor delegate,
DocBuilder docBuilder,
org.apache.solr.handler.dataimport.DocBuilder.EntityRunner entityRunner,
VariableResolverImpl resolver)
nextRow
public Map<String,Object> nextRow()
- Description copied from class:
EntityProcessor
- This method helps streaming the data for each row . The implementation
would fetch as many rows as needed and gives one 'row' at a time. Only this
method is used during a full import
- Overrides:
nextRow
in class EntityProcessorWrapper
- Returns:
- A 'row'. The 'key' for the map is the column name and the 'value'
is the value of that column. If there are no more rows to be
returned, return 'null'
init
public void init(org.apache.solr.handler.dataimport.DocBuilder.EntityRow rows)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.