public static class MinCollector.IntMinCollector extends MinCollector<MinCollector.IntMinCollector.MinData>
Modifier and Type | Class and Description |
---|---|
static class |
MinCollector.IntMinCollector.MinData |
MinCollector.DoubleMinCollector, MinCollector.FloatMinCollector, MinCollector.IntMinCollector, MinCollector.LongMinCollector, MinCollector.StringMinCollector
name
collectionTargets, ioData, lastingTargets
Constructor and Description |
---|
IntMinCollector(IntValueStream param) |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(MinCollector.IntMinCollector.MinData data)
Apply the collected info to the given reduction data.
|
void |
collect()
Collect the information from current Solr Document.
|
int |
min()
Returns the min value of the set data.
|
MinCollector.IntMinCollector.MinData |
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 IntMinCollector(IntValueStream param)
public MinCollector.IntMinCollector.MinData newData()
ReductionDataCollector
newData
in class ReductionDataCollector<MinCollector.IntMinCollector.MinData>
public int min()
public void collect()
ReductionDataCollector
collect
in class ReductionDataCollector<MinCollector.IntMinCollector.MinData>
protected void apply(MinCollector.IntMinCollector.MinData data)
ReductionDataCollector
ReductionDataCollector.collect()
call.apply
in class ReductionDataCollector<MinCollector.IntMinCollector.MinData>
data
- reduction data to apply collected info topublic void submitReservations(Consumer<ReductionDataReservation<?,?>> consumer)
ReductionDataCollector
submitReservations
in class ReductionDataCollector<MinCollector.IntMinCollector.MinData>
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 MinCollector<MinCollector.IntMinCollector.MinData>
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 MinCollector<MinCollector.IntMinCollector.MinData>
data
- the collected data to compute a reduction forCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.