public enum FunctionType extends Enum<FunctionType>
SelectItem
Modifier and Type | Method and Description |
---|---|
abstract AggregateBuilder<?> |
build() |
SelectItem |
createSelectItem(Column column) |
SelectItem |
createSelectItem(String expression,
String alias) |
Object |
evaluate(Iterable<?> values) |
Object |
evaluate(Object... values)
Executes the function
|
static FunctionType |
get(String functionName) |
ColumnType |
getExpectedColumnType(ColumnType type) |
static FunctionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FunctionType COUNT
public static final FunctionType AVG
public static final FunctionType SUM
public static final FunctionType MAX
public static final FunctionType MIN
public static FunctionType[] values()
for (FunctionType c : FunctionType.values()) System.out.println(c);
public static FunctionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic ColumnType getExpectedColumnType(ColumnType type)
public SelectItem createSelectItem(Column column)
public SelectItem createSelectItem(String expression, String alias)
public Object evaluate(Object... values)
values
- the values to be evaluated. If a value is null it won't be
evaluatedpublic abstract AggregateBuilder<?> build()
public static FunctionType get(String functionName)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.