public class MergingReductionCollectionManager extends ReductionCollectionManager
ReductionCollectionManager
used for distributed requests.ReductionCollectionManager.ReductionDataCollection
reductionDataCollectors
Constructor and Description |
---|
MergingReductionCollectionManager() |
MergingReductionCollectionManager(ReductionDataCollector<?>[] reductionDataCollectors,
Iterable<AnalyticsField> fields) |
Modifier and Type | Method and Description |
---|---|
protected ReductionCollectionManager |
createNewManager(ReductionDataCollector<?>[] reductionDataCollectors,
Iterable<AnalyticsField> fields)
Create an
ReductionCollectionManager to manage the given collectors and fields. |
void |
setData(ReductionCollectionManager.ReductionDataCollection dataCollection)
Finalize the reductions with the collected data stored in the parameter.
|
addCollectTarget, addLastingCollectTarget, apply, clearLastingCollectTargets, collect, doSetNextReader, exportData, getUsedFields, merge, mergeData, needsCollection, newDataCollection, newDataCollectionIO, newDataCollectionTarget, prepareReductionDataIO, setShardInput, setShardOutput
public MergingReductionCollectionManager()
public MergingReductionCollectionManager(ReductionDataCollector<?>[] reductionDataCollectors, Iterable<AnalyticsField> fields)
protected ReductionCollectionManager createNewManager(ReductionDataCollector<?>[] reductionDataCollectors, Iterable<AnalyticsField> fields)
ReductionCollectionManager
ReductionCollectionManager
to manage the given collectors and fields.createNewManager
in class ReductionCollectionManager
reductionDataCollectors
- Reduction collectorsfields
- fields used by the reductionspublic void setData(ReductionCollectionManager.ReductionDataCollection dataCollection)
ReductionCollectionManager
ReductionFunction
s that use these
ReductionDataCollector
s act like regular AnalyticsValue
classes that
can be accessed through their get<value-type>
methods.setData
in class ReductionCollectionManager
dataCollection
- the collection of reduction data to compute results forCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.