public class Argminmax extends NamedWarpScriptFunction implements WarpScriptMapperFunction, WarpScriptBucketizerFunction, WarpScriptReducerFunction
It operates on LONG and DOUBLE. There is no location and elevation returned.
This reducer takes an additional LONG parameter to choose the maximum to report (use 0 to report them all), and a String parameter to choose on which label it operates.
| Modifier and Type | Class and Description |
|---|---|
static class |
Argminmax.Builder |
| Constructor and Description |
|---|
Argminmax(java.lang.String name,
java.lang.String label,
int count,
boolean isArgmin) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(java.lang.Object[] args) |
java.lang.String |
toString() |
getName, refSnapshot, setNamepublic Argminmax(java.lang.String name,
java.lang.String label,
int count,
boolean isArgmin)
public java.lang.Object apply(java.lang.Object[] args)
throws WarpScriptException
apply in interface WarpScriptAggregatorFunctionWarpScriptExceptionpublic java.lang.String toString()
toString in class NamedWarpScriptFunction