org.apache.solr.handler.dataimport
Class ThreadedEntityProcessorWrapper

java.lang.Object
  extended by org.apache.solr.handler.dataimport.EntityProcessor
      extended by org.apache.solr.handler.dataimport.EntityProcessorWrapper
          extended by 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

Field Summary
 
Fields inherited from class org.apache.solr.handler.dataimport.EntityProcessorWrapper
context, resolver, rowcache, transformers
 
Constructor Summary
ThreadedEntityProcessorWrapper(EntityProcessor delegate, DocBuilder docBuilder, org.apache.solr.handler.dataimport.DocBuilder.EntityRunner entityRunner, VariableResolverImpl resolver)
           
 
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 org.apache.solr.handler.dataimport.EntityProcessorWrapper
applyTransformer, close, destroy, getContext, getFromRowCache, getVariableResolver, init, nextDeletedRowKey, nextModifiedParentRowKey, nextModifiedRowKey
 
Methods inherited from class org.apache.solr.handler.dataimport.EntityProcessor
postTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadedEntityProcessorWrapper

public ThreadedEntityProcessorWrapper(EntityProcessor delegate,
                                      DocBuilder docBuilder,
                                      org.apache.solr.handler.dataimport.DocBuilder.EntityRunner entityRunner,
                                      VariableResolverImpl resolver)
Method Detail

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.