Class MergingReductionCollectionManager
- java.lang.Object
-
- org.apache.solr.analytics.function.ReductionCollectionManager
-
- org.apache.solr.analytics.function.MergingReductionCollectionManager
-
public class MergingReductionCollectionManager extends ReductionCollectionManager
TheReductionCollectionManager
used for distributed requests.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.analytics.function.ReductionCollectionManager
ReductionCollectionManager.ReductionDataCollection
-
-
Field Summary
-
Fields inherited from class org.apache.solr.analytics.function.ReductionCollectionManager
reductionDataCollectors
-
-
Constructor Summary
Constructors Constructor Description MergingReductionCollectionManager()
MergingReductionCollectionManager(ReductionDataCollector<?>[] reductionDataCollectors, Iterable<AnalyticsField> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ReductionCollectionManager
createNewManager(ReductionDataCollector<?>[] reductionDataCollectors, Iterable<AnalyticsField> fields)
Create anReductionCollectionManager
to manage the given collectors and fields.void
setData(ReductionCollectionManager.ReductionDataCollection dataCollection)
Finalize the reductions with the collected data stored in the parameter.-
Methods inherited from class org.apache.solr.analytics.function.ReductionCollectionManager
addCollectTarget, addLastingCollectTarget, apply, clearLastingCollectTargets, collect, doSetNextReader, exportData, getUsedFields, merge, mergeData, needsCollection, newDataCollection, newDataCollectionIO, newDataCollectionTarget, prepareReductionDataIO, setShardInput, setShardOutput
-
-
-
-
Constructor Detail
-
MergingReductionCollectionManager
public MergingReductionCollectionManager()
-
MergingReductionCollectionManager
public MergingReductionCollectionManager(ReductionDataCollector<?>[] reductionDataCollectors, Iterable<AnalyticsField> fields)
-
-
Method Detail
-
createNewManager
protected ReductionCollectionManager createNewManager(ReductionDataCollector<?>[] reductionDataCollectors, Iterable<AnalyticsField> fields)
Description copied from class:ReductionCollectionManager
Create anReductionCollectionManager
to manage the given collectors and fields.- Overrides:
createNewManager
in classReductionCollectionManager
- Parameters:
reductionDataCollectors
- Reduction collectorsfields
- fields used by the reductions- Returns:
- a collection manager
-
setData
public void setData(ReductionCollectionManager.ReductionDataCollection dataCollection)
Description copied from class:ReductionCollectionManager
Finalize the reductions with the collected data stored in the parameter. Once the data is finalized, theReductionFunction
s that use theseReductionDataCollector
s act like regularAnalyticsValue
classes that can be accessed through theirget<value-type>
methods.- Overrides:
setData
in classReductionCollectionManager
- Parameters:
dataCollection
- the collection of reduction data to compute results for
-
-