public final class BitFunction extends Function1_2
| Modifier and Type | Field and Description |
|---|---|
static int |
BITAND
BITAND() (non-standard).
|
static int |
BITCOUNT
BITCOUNT() (non-standard).
|
static int |
BITGET
BITGET() (non-standard).
|
static int |
BITNAND
BITNAND() (non-standard).
|
static int |
BITNOR
BITNOR() (non-standard).
|
static int |
BITNOT
BITNOT() (non-standard).
|
static int |
BITOR
BITOR() (non-standard).
|
static int |
BITXNOR
BITXNOR() (non-standard).
|
static int |
BITXOR
BITXOR() (non-standard).
|
static int |
LSHIFT
LSHIFT() (non-standard).
|
static int |
ROTATELEFT
ROTATELEFT() (non-standard).
|
static int |
ROTATERIGHT
ROTATERIGHT() (non-standard).
|
static int |
RSHIFT
RSHIFT() (non-standard).
|
static int |
ULSHIFT
ULSHIFT() (non-standard).
|
static int |
URSHIFT
URSHIFT() (non-standard).
|
left, right, typeAUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESESADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
BitFunction(Expression arg1,
Expression arg2,
int function) |
| Modifier and Type | Method and Description |
|---|---|
static TypeInfo |
checkArgType(Expression arg)
|
static Value |
getBitwise(int function,
TypeInfo type,
Value v1,
Value v2)
Computes the value of bitwise function.
|
java.lang.String |
getName()
Get the name.
|
Value |
getValue(SessionLocal session,
Value v1,
Value v2)
Returns the value of this function.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
getUnenclosedSQL, getValuegetCost, getSubexpression, getSubexpressionCount, getType, isEverything, mapColumns, setEvaluatable, updateAggregateaddFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNotIfPossible, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getTableAlias, getTableName, getWhenSQL, getWhenValue, isConstant, isIdentity, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic static final int BITAND
public static final int BITOR
public static final int BITXOR
public static final int BITNOT
public static final int BITNAND
public static final int BITNOR
public static final int BITXNOR
public static final int BITGET
public static final int BITCOUNT
public static final int LSHIFT
public static final int RSHIFT
public static final int ULSHIFT
public static final int URSHIFT
public static final int ROTATELEFT
public static final int ROTATERIGHT
public BitFunction(Expression arg1, Expression arg2, int function)
public Value getValue(SessionLocal session, Value v1, Value v2)
Function1_2getValue in class Function1_2session - the sessionv1 - the value of first argumentv2 - the value of second argument, or nullpublic static Value getBitwise(int function, TypeInfo type, Value v1, Value v2)
public Expression optimize(SessionLocal session)
Expressionoptimize in class Expressionsession - the sessionpublic static TypeInfo checkArgType(Expression arg)
BITAND, BITOR, BITXOR, BITNOT,
BITNAND, BITNOR, BITXNOR).arg - the argumentDbException - if argument type is not supported by bitwise functionspublic java.lang.String getName()
NamedExpression