Package org.apache.solr.update.processor
Class AbstractDefaultValueUpdateProcessorFactory
- java.lang.Object
-
- org.apache.solr.update.processor.UpdateRequestProcessorFactory
-
- org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
-
- All Implemented Interfaces:
NamedListInitializedPlugin
- Direct Known Subclasses:
DefaultValueUpdateProcessorFactory,TimestampUpdateProcessorFactory
public abstract class AbstractDefaultValueUpdateProcessorFactory extends UpdateRequestProcessorFactory
Base class that can be extended by any
UpdateRequestProcessorFactorydesigned to add a default value to the document in anAddUpdateCommandwhen that field is not already specified.This base class handles initialization of the
fieldNameinit param, and provides anAbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessorthat Factory subclasses may choose to return from theirgetInstanceimplementation.- Since:
- 4.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways
-
-
Constructor Summary
Constructors Constructor Description AbstractDefaultValueUpdateProcessorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(NamedList args)-
Methods inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
getInstance
-
-
-
-
Field Detail
-
fieldName
protected String fieldName
-
-
Method Detail
-
init
public void init(NamedList args)
- Specified by:
initin interfaceNamedListInitializedPlugin- Overrides:
initin classUpdateRequestProcessorFactory
-
-