Class MergingReductionCollectionManager
- java.lang.Object
-
- org.apache.solr.analytics.function.ReductionCollectionManager
-
- org.apache.solr.analytics.function.MergingReductionCollectionManager
-
public class MergingReductionCollectionManager extends ReductionCollectionManager
TheReductionCollectionManagerused 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 ReductionCollectionManagercreateNewManager(ReductionDataCollector<?>[] reductionDataCollectors, Iterable<AnalyticsField> fields)Create anReductionCollectionManagerto manage the given collectors and fields.voidsetData(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:ReductionCollectionManagerCreate anReductionCollectionManagerto manage the given collectors and fields.- Overrides:
createNewManagerin 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:ReductionCollectionManagerFinalize the reductions with the collected data stored in the parameter. Once the data is finalized, theReductionFunctions that use theseReductionDataCollectors act like regularAnalyticsValueclasses that can be accessed through theirget<value-type>methods.- Overrides:
setDatain classReductionCollectionManager- Parameters:
dataCollection- the collection of reduction data to compute results for
-
-