public class Function extends Expression
Modifier and Type | Field and Description |
---|---|
static String |
AVG
The AVG function.
|
static String |
COUNT
The COUNT function.
|
static Set<String> |
FUNCTIONS
The list of functions.
|
static String |
LOWER
The LOWER function.
|
static String |
MAX
The MAX function.
|
static String |
MIN
The MIN function.
|
static String |
STDDEV
The STDDEV function.
|
static String |
SUM
The SUM function.
|
static String |
UPPER
The UPPER function.
|
alias, enclosed, joins, ordering, properties, quotes, translator, withNoLock
Constructor and Description |
---|
Function(String function)
Creates a new instance of
Function . |
Function(String function,
Expression exp)
Creates a new instance of
Function . |
Modifier and Type | Method and Description |
---|---|
Expression |
getExp()
Gets the expression in the function.
|
String |
getFunction()
Gets the function.
|
boolean |
isUDF()
Checks if this function is a UDF.
|
String |
translate()
Translates the expression.
|
alias, asc, desc, enclose, fullOuterJoin, getAlias, getJoins, getOrdering, innerJoin, isAliased, isEnclosed, isQuote, isQuotes, isWithNoLock, leftOuterJoin, rightOuterJoin, unquote, withNoLock
public static final String MAX
public static final String MIN
public static final String AVG
public static final String COUNT
public static final String STDDEV
public static final String SUM
public static final String UPPER
public static final String LOWER
public Function(String function)
Function
.function
- The function.public Function(String function, Expression exp)
Function
.function
- The function.exp
- The expression.public String getFunction()
public Expression getExp()
public String translate()
Expression
translate
in class Expression
public boolean isUDF()
true
if the function is user defined, false
otherwise.Copyright © 2014 Feedzai. All Rights Reserved.