public abstract class FieldValueMutatingUpdateProcessor extends FieldMutatingUpdateProcessor
FieldMutatingUpdateProcessorFactory
FieldMutatingUpdateProcessor.FieldNameSelector
Modifier and Type | Field and Description |
---|---|
static Object |
DELETE_VALUE_SINGLETON |
SELECT_ALL_FIELDS, SELECT_NO_FIELDS
next
Constructor and Description |
---|
FieldValueMutatingUpdateProcessor(FieldMutatingUpdateProcessor.FieldNameSelector selector,
UpdateRequestProcessor next) |
Modifier and Type | Method and Description |
---|---|
protected SolrInputField |
mutate(SolrInputField src)
Method for mutating SolrInputFields associated with fields identified
by the FieldNameSelector associated with this processor
|
protected abstract Object |
mutateValue(Object src)
Mutates individual values of a field as needed, or returns the original
value.
|
createFieldNameSelector, createFieldNameSelector, processAdd, wrap
finish, processCommit, processDelete, processMergeIndexes, processRollback
public static final Object DELETE_VALUE_SINGLETON
public FieldValueMutatingUpdateProcessor(FieldMutatingUpdateProcessor.FieldNameSelector selector, UpdateRequestProcessor next)
protected abstract Object mutateValue(Object src)
src
- a value from a matched field which should be mutatedDELETE_VALUE_SINGLETON
to indicate that the value
should be removed completely.DELETE_VALUE_SINGLETON
protected final SolrInputField mutate(SolrInputField src)
FieldMutatingUpdateProcessor
mutate
in class FieldMutatingUpdateProcessor
src
- the SolrInputField to mutate, may be modified in place and
returnedCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.