public class FunctionSQL
extends com.streamscape.ds.parser.expression.Expression
Title: Data Space Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static int |
FUNC_CURRENT_DATE |
static int |
FUNC_CURRENT_TIME |
static int |
FUNC_CURRENT_TIMESTAMP |
static int |
FUNC_GET_ASSIGNED_TYPE |
static int |
FUNC_GET_DOMAIN_TYPE |
static int |
FUNC_IS_TYPE |
static int |
FUNC_LOCALTIME |
static int |
FUNC_LOCALTIMESTAMP |
static int |
FUNC_VALUE |
int |
funcType |
short[] |
parseList |
short[] |
parseListAlt |
BINARY, collation, columnExpressionSet, columnIndex, dataType, emptyArray, emptyExpressionSet, EXPR_FALSE, EXPR_TRUE, exprSubType, isColumnEqual, isSingleColumnCondition, LEFT, metaResultObject, nodes, opType, parameterIndex, rangePosition, RIGHT, subQuery, TERNARY, UNARY, unresolvedExpressions, valueData
Constructor and Description |
---|
FunctionSQL(int id) |
Modifier and Type | Method and Description |
---|---|
void |
collectObjectNames(com.streamscape.ds.lib.Set set)
collects all schema objects
|
java.lang.String |
describe(com.streamscape.ds.session.Session session,
int blanks)
Returns a String representation of this object.
|
java.util.Map |
describeJson(com.streamscape.ds.session.Session session) |
boolean |
equals(com.streamscape.ds.parser.expression.Expression other) |
java.lang.String |
getFunctionDefinition() |
com.streamscape.ds.parser.expression.Expression |
getFunctionExpression() |
static SQLFunctionsMetaData.SQLFunctionMetaData |
getFunctionMetaData(java.lang.String functionName) |
java.lang.String |
getName() |
java.lang.String |
getSQL()
For use with CHECK constraints.
|
java.lang.Object |
getValue(com.streamscape.ds.session.Session session)
Evaluates and returns this Function in the context of the session.
|
int |
hashCode() |
boolean |
isDeterministic() |
boolean |
isValueFunction() |
static java.util.List |
listFunctions() |
static FunctionSQL |
newSQLFunction(java.lang.String token,
com.streamscape.ds.parser.ParserDQL.CompileContext context) |
void |
resolveTypes(com.streamscape.ds.session.Session session,
com.streamscape.ds.parser.expression.Expression parent) |
void |
setArguments(com.streamscape.ds.parser.expression.Expression[] newNodes) |
checkValidCheckConstraint, collectAllExpressions, collectAllSubqueries, collectRangeVariables, costFactor, duplicate, equals, getAggregatedValue, getCheckSelect, getColumn, getColumnIndex, getColumnName, getCondition, getConstantValueNoCheck, getDataType, getDegree, getIndexableExpression, getJoinRangeVariables, getLeftNode, getNodeDataType, getNodeDataTypes, getRangeVariable, getResult, getRightNode, getRowValue, getSubqueries, getTable, getType, getUnkeyedColumns, getValue, hasCondition, isAggregate, isCorrelated, isDynamicParam, isFutureFunctionSensitive, isIndexable, isUnresolvedParam, materialise, prepareTable, replaceColumnReferences, replaceRangeVariables, resetColumnReferences, resolveCheckOrGenExpression, resolveColumnReferences, resolveColumnReferences, resolveColumnSet, setAlias, setAttributesAsColumn, setCollation, setCondition, setDataType, setLeftNode, setRightNode, setSubType, testCondition, toString, updateAggregatingValue
public static final int FUNC_CURRENT_DATE
public static final int FUNC_CURRENT_TIME
public static final int FUNC_CURRENT_TIMESTAMP
public static final int FUNC_LOCALTIME
public static final int FUNC_LOCALTIMESTAMP
public static final int FUNC_VALUE
public static final int FUNC_IS_TYPE
public static final int FUNC_GET_DOMAIN_TYPE
public static final int FUNC_GET_ASSIGNED_TYPE
public int funcType
public short[] parseList
public short[] parseListAlt
public static SQLFunctionsMetaData.SQLFunctionMetaData getFunctionMetaData(java.lang.String functionName)
public static FunctionSQL newSQLFunction(java.lang.String token, com.streamscape.ds.parser.ParserDQL.CompileContext context)
public void setArguments(com.streamscape.ds.parser.expression.Expression[] newNodes)
public com.streamscape.ds.parser.expression.Expression getFunctionExpression()
public java.lang.Object getValue(com.streamscape.ds.session.Session session)
getValue
in class com.streamscape.ds.parser.expression.Expression
public void resolveTypes(com.streamscape.ds.session.Session session, com.streamscape.ds.parser.expression.Expression parent)
resolveTypes
in class com.streamscape.ds.parser.expression.Expression
public java.lang.String getSQL()
com.streamscape.ds.parser.expression.Expression
getSQL
in class com.streamscape.ds.parser.expression.Expression
public boolean equals(com.streamscape.ds.parser.expression.Expression other)
equals
in class com.streamscape.ds.parser.expression.Expression
public int hashCode()
hashCode
in class com.streamscape.ds.parser.expression.Expression
public static java.util.List listFunctions()
public java.lang.String getName()
public java.util.Map describeJson(com.streamscape.ds.session.Session session)
describeJson
in class com.streamscape.ds.parser.expression.Expression
public java.lang.String describe(com.streamscape.ds.session.Session session, int blanks)
describe
in class com.streamscape.ds.parser.expression.Expression
public boolean isDeterministic()
public boolean isValueFunction()
public java.lang.String getFunctionDefinition()
public void collectObjectNames(com.streamscape.ds.lib.Set set)
com.streamscape.ds.parser.expression.Expression
collectObjectNames
in class com.streamscape.ds.parser.expression.Expression
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.