org.apache.solr.update.processor
Class AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor

java.lang.Object
  extended by org.apache.solr.update.processor.UpdateRequestProcessor
      extended by org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor
Enclosing class:
AbstractDefaultValueUpdateProcessorFactory

protected abstract static class AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor
extends UpdateRequestProcessor

A simple processor that adds the results of getDefaultValue() to any document which does not already have a value in fieldName


Field Summary
 
Fields inherited from class org.apache.solr.update.processor.UpdateRequestProcessor
next
 
Constructor Summary
AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor(String fieldName, UpdateRequestProcessor next)
           
 
Method Summary
abstract  Object getDefaultValue()
           
 void processAdd(AddUpdateCommand cmd)
           
 
Methods inherited from class org.apache.solr.update.processor.UpdateRequestProcessor
finish, processCommit, processDelete, processMergeIndexes, processRollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor

public AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor(String fieldName,
                                                                              UpdateRequestProcessor next)
Method Detail

processAdd

public void processAdd(AddUpdateCommand cmd)
                throws IOException
Overrides:
processAdd in class UpdateRequestProcessor
Throws:
IOException

getDefaultValue

public abstract Object getDefaultValue()


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.