public static class MaxCollector.FloatMaxCollector extends MaxCollector<MaxCollector.FloatMaxCollector.MaxData>
Modifier and Type | Class and Description |
---|---|
static class |
MaxCollector.FloatMaxCollector.MaxData |
MaxCollector.DoubleMaxCollector, MaxCollector.FloatMaxCollector, MaxCollector.IntMaxCollector, MaxCollector.LongMaxCollector, MaxCollector.StringMaxCollector
name
collectionTargets, ioData, lastingTargets
Constructor and Description |
---|
FloatMaxCollector(FloatValueStream param) |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(MaxCollector.FloatMaxCollector.MaxData data)
Apply the collected info to the given reduction data.
|
void |
collect()
Collect the information from current Solr Document.
|
float |
max()
Returns the max value of the set data.
|
MaxCollector.FloatMaxCollector.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, getName
addCollectTarget, addLastingCollectTarget, clearLastingCollectTargets, collectAndApply, dataIO, newDataIO, newDataTarget
public FloatMaxCollector(FloatValueStream param)
public MaxCollector.FloatMaxCollector.MaxData newData()
ReductionDataCollector
newData
in class ReductionDataCollector<MaxCollector.FloatMaxCollector.MaxData>
public float max()
public void collect()
ReductionDataCollector
collect
in class ReductionDataCollector<MaxCollector.FloatMaxCollector.MaxData>
protected void apply(MaxCollector.FloatMaxCollector.MaxData data)
ReductionDataCollector
ReductionDataCollector.collect()
call.apply
in class ReductionDataCollector<MaxCollector.FloatMaxCollector.MaxData>
data
- reduction data to apply collected info topublic void submitReservations(Consumer<ReductionDataReservation<?,?>> consumer)
ReductionDataCollector
submitReservations
in class ReductionDataCollector<MaxCollector.FloatMaxCollector.MaxData>
consumer
- the consumer which the reservations are submitted topublic void setMergedData(ReductionData data)
ReductionDataCollector
ReductionFunction
s 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.FloatMaxCollector.MaxData>
data
- the merged data to compute a reduction forpublic void setData(ReductionData data)
ReductionDataCollector
ReductionFunction
s 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.FloatMaxCollector.MaxData>
data
- the collected data to compute a reduction forCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.