Package org.apache.solr.update.processor
Class FieldValueSubsetUpdateProcessorFactory
- java.lang.Object
-
- org.apache.solr.update.processor.UpdateRequestProcessorFactory
-
- org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
-
- org.apache.solr.update.processor.FieldValueSubsetUpdateProcessorFactory
-
- All Implemented Interfaces:
NamedListInitializedPlugin
,SolrCoreAware
- Direct Known Subclasses:
FirstFieldValueUpdateProcessorFactory
,LastFieldValueUpdateProcessorFactory
,MaxFieldValueUpdateProcessorFactory
,MinFieldValueUpdateProcessorFactory
,UniqFieldsUpdateProcessorFactory
public abstract class FieldValueSubsetUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory
Base class for processors that want to mutate selected fields to only keep a subset of the original values.- Since:
- 4.0.0
- See Also:
pickSubset(java.util.Collection<T>)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
FieldMutatingUpdateProcessorFactory.SelectorParams
-
Nested classes/interfaces inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways
-
-
Constructor Summary
Constructors Constructor Description FieldValueSubsetUpdateProcessorFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description UpdateRequestProcessor
getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
protected abstract <T> Collection<T>
pickSubset(Collection<T> values)
Method subclasses must override to specify which values should be kept.-
Methods inherited from class org.apache.solr.update.processor.FieldMutatingUpdateProcessorFactory
getDefaultSelector, getSelector, inform, init, parseSelectorExclusionParams, parseSelectorParams
-
-
-
-
Method Detail
-
getInstance
public final UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
- Specified by:
getInstance
in classUpdateRequestProcessorFactory
-
pickSubset
protected abstract <T> Collection<T> pickSubset(Collection<T> values)
Method subclasses must override to specify which values should be kept. This method will not be called unless the collection contains more then one value.
-
-