public abstract class AggregateFcts
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static AggregateFunction |
avgFunctionForByte
AVG function for byte values (tinyint).
|
static AggregateFunction |
avgFunctionForCounter
AVG function for counter column values.
|
static AggregateFunction |
avgFunctionForDecimal
The AVG function for decimal values.
|
static AggregateFunction |
avgFunctionForDouble
AVG function for double values.
|
static AggregateFunction |
avgFunctionForFloat
AVG function for float values.
|
static AggregateFunction |
avgFunctionForInt32
AVG function for int32 values.
|
static AggregateFunction |
avgFunctionForLong
AVG function for long values.
|
static AggregateFunction |
avgFunctionForShort
AVG function for for short values (smallint).
|
static AggregateFunction |
avgFunctionForVarint
The AVG function for varint values.
|
static AggregateFunction |
countRowsFunction
The function used to count the number of rows of a result set.
|
static AggregateFunction |
maxFunctionForCounter
MAX function for counter column values.
|
static AggregateFunction |
minFunctionForCounter
The MIN function for counter column values.
|
static AggregateFunction |
sumFunctionForByte
The SUM function for byte values (tinyint).
|
static AggregateFunction |
sumFunctionForCounter
The SUM function for counter column values.
|
static AggregateFunction |
sumFunctionForDecimal
The SUM function for decimal values.
|
static AggregateFunction |
sumFunctionForDouble
The SUM function for double values.
|
static AggregateFunction |
sumFunctionForFloat
The SUM function for float values.
|
static AggregateFunction |
sumFunctionForInt32
The SUM function for int32 values.
|
static AggregateFunction |
sumFunctionForLong
The SUM function for long values.
|
static AggregateFunction |
sumFunctionForShort
The SUM function for short values (smallint).
|
static AggregateFunction |
sumFunctionForVarint
The SUM function for varint values.
|
Constructor and Description |
---|
AggregateFcts() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<AggregateFunction> |
all() |
static boolean |
isCountRows(Function function)
Checks if the specified function is the count rows (e.g.
|
static AggregateFunction |
makeCountFunction(AbstractType<?> inputType)
Creates a COUNT function for the specified type.
|
static AggregateFunction |
makeMaxFunction(AbstractType<?> inputType)
Creates a MAX function for the specified type.
|
static AggregateFunction |
makeMinFunction(AbstractType<?> inputType)
Creates a MIN function for the specified type.
|
public static final AggregateFunction countRowsFunction
public static final AggregateFunction sumFunctionForDecimal
public static final AggregateFunction avgFunctionForDecimal
public static final AggregateFunction sumFunctionForVarint
public static final AggregateFunction avgFunctionForVarint
public static final AggregateFunction sumFunctionForByte
public static final AggregateFunction avgFunctionForByte
public static final AggregateFunction sumFunctionForShort
public static final AggregateFunction avgFunctionForShort
public static final AggregateFunction sumFunctionForInt32
public static final AggregateFunction avgFunctionForInt32
public static final AggregateFunction sumFunctionForLong
public static final AggregateFunction avgFunctionForLong
public static final AggregateFunction sumFunctionForFloat
public static final AggregateFunction avgFunctionForFloat
public static final AggregateFunction sumFunctionForDouble
public static final AggregateFunction avgFunctionForDouble
public static final AggregateFunction sumFunctionForCounter
public static final AggregateFunction avgFunctionForCounter
public static final AggregateFunction minFunctionForCounter
public static final AggregateFunction maxFunctionForCounter
public static java.util.Collection<AggregateFunction> all()
public static boolean isCountRows(Function function)
function
- the function to checktrue
if the specified function is the count rows one, false
otherwise.public static AggregateFunction makeMaxFunction(AbstractType<?> inputType)
inputType
- the function input and output typepublic static AggregateFunction makeMinFunction(AbstractType<?> inputType)
inputType
- the function input and output typepublic static AggregateFunction makeCountFunction(AbstractType<?> inputType)
inputType
- the function input typeCopyright © 2017 The Apache Software Foundation