Interface ReductionFunction
-
- All Superinterfaces:
AnalyticsValue
,AnalyticsValueStream
- All Known Implementing Classes:
CountFunction
,DocCountFunction
,MeanFunction
,MissingFunction
,SumFunction
,UniqueFunction
public interface ReductionFunction extends AnalyticsValue
A function that reduces the values of a mapping expression, field or constant.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValue
AnalyticsValue.AbstractAnalyticsValue
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
AnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
synchronizeDataCollectors(UnaryOperator<ReductionDataCollector<?>> sync)
Syncs the data collectors with shared versions across the entire Analytics Request so that as little data as possible is sent across shards.-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValue
exists, getObject
-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
convertToConstant, getExpressionStr, getExpressionType, getName, streamObjects
-
-
-
-
Method Detail
-
synchronizeDataCollectors
void synchronizeDataCollectors(UnaryOperator<ReductionDataCollector<?>> sync)
Syncs the data collectors with shared versions across the entire Analytics Request so that as little data as possible is sent across shards.- Parameters:
sync
- a function that takes in aReductionDataCollector
and returns a shared version
-
-