Package org.dashbuilder.dataset.group
Enum AggregateFunctionType
- java.lang.Object
-
- java.lang.Enum<AggregateFunctionType>
-
- org.dashbuilder.dataset.group.AggregateFunctionType
-
- All Implemented Interfaces:
Serializable,Comparable<AggregateFunctionType>
public enum AggregateFunctionType extends Enum<AggregateFunctionType>
List of available aggregate functions used in data set group operations.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AggregateFunctionTypegetByIndex(int index)static AggregateFunctionTypegetByName(String str)intgetIndex()ColumnTypegetResultType(ColumnType columnType)booleansupportType(ColumnType type)static AggregateFunctionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AggregateFunctionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COUNT
public static final AggregateFunctionType COUNT
-
DISTINCT
public static final AggregateFunctionType DISTINCT
-
AVERAGE
public static final AggregateFunctionType AVERAGE
-
SUM
public static final AggregateFunctionType SUM
-
MIN
public static final AggregateFunctionType MIN
-
MAX
public static final AggregateFunctionType MAX
-
-
Method Detail
-
values
public static AggregateFunctionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AggregateFunctionType c : AggregateFunctionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AggregateFunctionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()
-
supportType
public boolean supportType(ColumnType type)
-
getResultType
public ColumnType getResultType(ColumnType columnType)
-
getByIndex
public static AggregateFunctionType getByIndex(int index)
-
getByName
public static AggregateFunctionType getByName(String str)
-
-