public class Threshold extends Object implements ReductionFunction
Constructor and Description |
---|
Threshold() |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ReduceFunctionVisitor<T> visitor) |
Map<Status,Integer> |
getHitsByStatus(List<Status> statuses) |
Map<Status,Integer> |
getHitsByStatusWithIndex(List<StatusWithIndex> statuses) |
float |
getThreshold() |
Optional<StatusWithIndices> |
reduce(List<StatusWithIndex> statuses) |
void |
setThreshold(float threshold) |
String |
toString() |
public void setThreshold(float threshold)
public float getThreshold()
public Optional<StatusWithIndices> reduce(List<StatusWithIndex> statuses)
reduce
in interface ReductionFunction
public <T> T accept(ReduceFunctionVisitor<T> visitor)
accept
in interface ReductionFunction
public Map<Status,Integer> getHitsByStatusWithIndex(List<StatusWithIndex> statuses)
Copyright © 2017. All rights reserved.