public abstract class AllValuesOrNoneFieldMutatingUpdateProcessor extends FieldMutatingUpdateProcessor
SKIP_FIELD_VALUE_LIST_SINGLETON
for at least one value - then none of the values are mutated:
mutate(srcField) will return srcField.FieldMutatingUpdateProcessor.FieldNameSelector
Modifier and Type | Field and Description |
---|---|
static Object |
DELETE_VALUE_SINGLETON |
static Object |
SKIP_FIELD_VALUE_LIST_SINGLETON |
SELECT_ALL_FIELDS, SELECT_NO_FIELDS
next
Constructor and Description |
---|
AllValuesOrNoneFieldMutatingUpdateProcessor(FieldMutatingUpdateProcessor.FieldNameSelector selector,
UpdateRequestProcessor next) |
Modifier and Type | Method and Description |
---|---|
protected SolrInputField |
mutate(SolrInputField srcField)
Method for mutating SolrInputFields associated with fields identified
by the FieldNameSelector associated with this processor
|
protected abstract Object |
mutateValue(Object srcVal)
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 static final Object SKIP_FIELD_VALUE_LIST_SINGLETON
public AllValuesOrNoneFieldMutatingUpdateProcessor(FieldMutatingUpdateProcessor.FieldNameSelector selector, UpdateRequestProcessor next)
protected abstract Object mutateValue(Object srcVal)
srcVal
- a value from a matched field which should be mutatedDELETE_VALUE_SINGLETON
to indicate that the value
should be removed completely, or
SKIP_FIELD_VALUE_LIST_SINGLETON
to indicate that
a field value is not consistent withDELETE_VALUE_SINGLETON
,
SKIP_FIELD_VALUE_LIST_SINGLETON
protected final SolrInputField mutate(SolrInputField srcField)
FieldMutatingUpdateProcessor
mutate
in class FieldMutatingUpdateProcessor
srcField
- the SolrInputField to mutate, may be modified in place and
returnedCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.