public static class MaxCollector.IntMaxCollector extends MaxCollector<MaxCollector.IntMaxCollector.MaxData>
| Modifier and Type | Class and Description |
|---|---|
static class |
MaxCollector.IntMaxCollector.MaxData |
MaxCollector.DoubleMaxCollector, MaxCollector.FloatMaxCollector, MaxCollector.IntMaxCollector, MaxCollector.LongMaxCollector, MaxCollector.StringMaxCollectornamecollectionTargets, ioData, lastingTargets| Constructor and Description |
|---|
IntMaxCollector(IntValueStream param) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(MaxCollector.IntMaxCollector.MaxData data)
Apply the collected info to the given reduction data.
|
void |
collect()
Collect the information from current Solr Document.
|
int |
max()
Returns the max value of the set data.
|
MaxCollector.IntMaxCollector.MaxData |
newData()
A clean slate to start a new reduction.
|
void |
setData(ReductionData data)
Finalize the reduction with the collected data stored in the parameter.
|
void |
setMergedData(ReductionData data)
Finalize the reduction with the merged data stored in the parameter.
|
void |
submitReservations(Consumer<ReductionDataReservation<?,?>> consumer)
Submits the data reservations needed for this data collector.
|
exists, getExpressionStr, getNameaddCollectTarget, addLastingCollectTarget, clearLastingCollectTargets, collectAndApply, dataIO, newDataIO, newDataTargetpublic IntMaxCollector(IntValueStream param)
public MaxCollector.IntMaxCollector.MaxData newData()
ReductionDataCollectornewData in class ReductionDataCollector<MaxCollector.IntMaxCollector.MaxData>public int max()
public void collect()
ReductionDataCollectorcollect in class ReductionDataCollector<MaxCollector.IntMaxCollector.MaxData>protected void apply(MaxCollector.IntMaxCollector.MaxData data)
ReductionDataCollectorReductionDataCollector.collect() call.apply in class ReductionDataCollector<MaxCollector.IntMaxCollector.MaxData>data - reduction data to apply collected info topublic void submitReservations(Consumer<ReductionDataReservation<?,?>> consumer)
ReductionDataCollectorsubmitReservations in class ReductionDataCollector<MaxCollector.IntMaxCollector.MaxData>consumer - the consumer which the reservations are submitted topublic void setMergedData(ReductionData data)
ReductionDataCollectorReductionFunctions that use this
data collector act like regular AnalyticsValue classes that
can be accessed through their get<value-type> methods.
(FOR CLOUD)setMergedData in class MaxCollector<MaxCollector.IntMaxCollector.MaxData>data - the merged data to compute a reduction forpublic void setData(ReductionData data)
ReductionDataCollectorReductionFunctions that use this
data collector act like regular AnalyticsValue classes that
can be accessed through their get<value-type> methods.
(FOR SINGLE-SHARD)setData in class MaxCollector<MaxCollector.IntMaxCollector.MaxData>data - the collected data to compute a reduction forCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.