protected static enum LegacyDeserializationObjectInputStream.LegacyFunctionType extends Enum<LegacyDeserializationObjectInputStream.LegacyFunctionType> implements AggregateFunction
FunctionType and
AggregateFunction interfaces which still adheres to the
constant/enum values of the old FunctionType definition. While
deserializing old FunctionType objects, we will convert them to this
enum.| Modifier and Type | Method and Description |
|---|---|
AggregateBuilder<?> |
createAggregateBuilder()
Creates a specific aggregate builder.
|
Object |
evaluate(Object... values)
Shorthand for creating an aggregate builder, adding all
the values and then calculating the value.
|
ColumnType |
getExpectedColumnType(ColumnType type)
Returns the function ColumnType.
|
String |
getFunctionName() |
static LegacyDeserializationObjectInputStream.LegacyFunctionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LegacyDeserializationObjectInputStream.LegacyFunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LegacyDeserializationObjectInputStream.LegacyFunctionType COUNT
public static final LegacyDeserializationObjectInputStream.LegacyFunctionType AVG
public static final LegacyDeserializationObjectInputStream.LegacyFunctionType SUM
public static final LegacyDeserializationObjectInputStream.LegacyFunctionType MAX
public static final LegacyDeserializationObjectInputStream.LegacyFunctionType MIN
public static LegacyDeserializationObjectInputStream.LegacyFunctionType[] values()
for (LegacyDeserializationObjectInputStream.LegacyFunctionType c : LegacyDeserializationObjectInputStream.LegacyFunctionType.values()) System.out.println(c);
public static LegacyDeserializationObjectInputStream.LegacyFunctionType 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)
AggregateFunctiongetExpectedColumnType in interface AggregateFunctiongetExpectedColumnType in interface FunctionTypepublic String getFunctionName()
getFunctionName in interface FunctionTypepublic AggregateBuilder<?> createAggregateBuilder()
AggregateFunctioncreateAggregateBuilder in interface AggregateFunctionpublic Object evaluate(Object... values)
AggregateFunctionevaluate in interface AggregateFunctionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.