public enum Reduction extends java.lang.Enum<Reduction>
The INDEX reduction is equivalent to the SQL GROUP BY CLAUSE, when combined with other Reductions it requests that multiple results should be returned, with reductions only happending across sets of records where the INDEX property is the same.
AVG is a mean value except when doing overlap mapping when it becomes a time average
Enum Constant and Description |
---|
AVG
values are averaged
|
DISTINCT
Count distinct values.
|
INDEX
The INDEX reduction is equivalent to the SQL GROUP BY CLAUSE, when combined with other
Reductions it requests that multiple results should be returned, with reductions only happening
across sets of records where the INDEX property is the same.
|
MAX
maximum value taken.
|
MEDIAN
median value of values is calcualted
|
MIN
minimum value taken
|
SELECT
SELECT just selects a value without adding to the SQL GROUP BY.
|
SUM
values are summed
|
Modifier and Type | Method and Description |
---|---|
boolean |
customNumber()
Can these reductions reductions be implemented by a custom number type
|
Operator |
operator()
get a
Operator suitable for combing partial results. |
static Reduction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Reduction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Reduction SUM
public static final Reduction AVG
public static final Reduction MEDIAN
public static final Reduction MIN
public static final Reduction MAX
public static final Reduction INDEX
public static final Reduction SELECT
public static final Reduction DISTINCT
public static Reduction[] values()
for (Reduction c : Reduction.values()) System.out.println(c);
public static Reduction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Operator operator()
Operator
suitable for combing partial results.Operator
public boolean customNumber()