org.apache.solr.update.processor
Class AbstractDefaultValueUpdateProcessorFactory

java.lang.Object
  extended by org.apache.solr.update.processor.UpdateRequestProcessorFactory
      extended by org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
All Implemented Interfaces:
NamedListInitializedPlugin
Direct Known Subclasses:
DefaultValueUpdateProcessorFactory, TimestampUpdateProcessorFactory, UUIDUpdateProcessorFactory

public abstract class AbstractDefaultValueUpdateProcessorFactory
extends UpdateRequestProcessorFactory

Base class that can be extended by any UpdateRequestProcessorFactory designed to add a default value to the document in an AddUpdateCommand when that field is not already specified.

This base class handles initialization of the fieldName init param, and provides an AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor that Factory subclasses may choose to return from their getInstance implementation.


Nested Class Summary
protected static class AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor
          A simple processor that adds the results of AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor.getDefaultValue() to any document which does not already have a value in fieldName
 
Field Summary
protected  String fieldName
           
 
Constructor Summary
AbstractDefaultValueUpdateProcessorFactory()
           
 
Method Summary
 void init(NamedList args)
           
 
Methods inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldName

protected String fieldName
Constructor Detail

AbstractDefaultValueUpdateProcessorFactory

public AbstractDefaultValueUpdateProcessorFactory()
Method Detail

init

public void init(NamedList args)
Specified by:
init in interface NamedListInitializedPlugin
Overrides:
init in class UpdateRequestProcessorFactory


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