Class CountCollector.TotalCountCollector
- java.lang.Object
-
- org.apache.solr.analytics.function.reduction.data.ReductionDataCollector<CountCollector.CountData>
-
- org.apache.solr.analytics.function.reduction.data.CountCollector
-
- org.apache.solr.analytics.function.reduction.data.CountCollector.TotalCountCollector
-
- Enclosing class:
- CountCollector
public static class CountCollector.TotalCountCollector extends CountCollector
Represents acount()
expression. This collects the number of Solr Documents used in a result set.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.analytics.function.reduction.data.CountCollector
CountCollector.CountData, CountCollector.ExpressionCountCollector, CountCollector.TotalCountCollector
-
-
Field Summary
-
Fields inherited from class org.apache.solr.analytics.function.reduction.data.CountCollector
name
-
Fields inherited from class org.apache.solr.analytics.function.reduction.data.ReductionDataCollector
collectionTargets, ioData, lastingTargets
-
-
Constructor Summary
Constructors Constructor Description TotalCountCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
apply(CountCollector.CountData data)
Apply the collected info to the given reduction data.-
Methods inherited from class org.apache.solr.analytics.function.reduction.data.CountCollector
count, docCount, getExpressionStr, getName, newData, setData, setMergedData, submitReservations
-
Methods inherited from class org.apache.solr.analytics.function.reduction.data.ReductionDataCollector
addCollectTarget, addLastingCollectTarget, clearLastingCollectTargets, collect, collectAndApply, dataIO, newDataIO, newDataTarget
-
-
-
-
Method Detail
-
apply
protected void apply(CountCollector.CountData data)
Description copied from class:ReductionDataCollector
Apply the collected info to the given reduction data. Should always be called after aReductionDataCollector.collect()
call.- Specified by:
apply
in classReductionDataCollector<CountCollector.CountData>
- Parameters:
data
- reduction data to apply collected info to
-
-