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 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.

Since:
4.0.0
  • Field Details

    • fieldName

      protected String fieldName
  • Constructor Details

    • AbstractDefaultValueUpdateProcessorFactory

      public AbstractDefaultValueUpdateProcessorFactory()
  • Method Details

    • init

      public void init(org.apache.solr.common.util.NamedList<?> args)
      Description copied from interface: NamedListInitializedPlugin
      init will be called just once, immediately after creation.

      Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself

      Parameters:
      args - non-null list of initialization parameters (may be empty)