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.
|
static FieldValueMutatingUpdateProcessor |
valueMutator(FieldMutatingUpdateProcessor.FieldNameSelector selector,
UpdateRequestProcessor next,
Function<Object,Object> fun) |
createFieldNameSelector, createFieldNameSelector, mutator, processAdd, wrap
close, doClose, 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
returnedpublic static FieldValueMutatingUpdateProcessor valueMutator(FieldMutatingUpdateProcessor.FieldNameSelector selector, UpdateRequestProcessor next, Function<Object,Object> fun)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.