public final class GetCurrentConnectionNode extends JavaValueNode
QueryTreeNode.WordUtils
forCallStatement, jsqlType
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, depth, isPrivilegeCollectionRequired
Constructor and Description |
---|
GetCurrentConnectionNode()
Constructor for a GetCurrentConnectionNode
|
Modifier and Type | Method and Description |
---|---|
JavaValueNode |
bindExpression(FromList fromList,
SubqueryList subqueryList,
java.util.List<AggregateNode> aggregateVector)
Bind this operator
|
(package private) void |
bindParameter()
Bind a ? parameter operand of the char_length function.
|
boolean |
categorize(JBitSet referencedTabs,
boolean simplePredsOnly)
Categorize this predicate.
|
void |
checkReliability(ValueNode sqlNode)
Check the reliability type of this java value.
|
void |
generateExpression(ExpressionClassBuilder acb,
MethodBuilder mb)
General logic shared by Core compilation and by the Replication Filter
compiler.
|
protected int |
getOrderableVariantType()
Return the variant type for the underlying expression.
|
void |
preprocess(int numTables,
FromList outerFromList,
SubqueryList outerSubqueryList,
PredicateList outerPredicateList)
Preprocess an expression tree.
|
JavaValueNode |
remapColumnReferencesToExpressions()
Remap all ColumnReferences in this tree to be clones of the
underlying expression.
|
castToPrimitive, generate, generateReceiver, generateReceiver, getCollationType, getConstantValueAsObject, getDataType, getJavaTypeName, getJSQLType, getPrimitiveTypeName, getReceiverExpression, isPrimitiveType, mapToTypeID, markForCallStatement, markReturnValueDiscarded, mustCastToPrimitive, returnValueDiscarded, returnValueToSQLDomain, setCollationType, setJavaTypeName, valueReturnedToSQLDomain
accept, accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, buildTree, checkReliability, checkReliability, childParentMap, collectReferencedColumns, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getConstantNode, getConstantNodeType, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getExtraInformation, getGenericConstantActionFactory, getHashableJoinColumnReference, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, markReferencedResultColumns, nodeHeader, orReliability, parseStatement, printExplainInformation, printExplainInformation, printExplainInformation, printExplainInformationForActivation, printLabel, printRuntimeInformation, printSubNodes, projectionListPruning, referencesSessionSchema, resolveTableToSynonym, rsnChainMap, setBeginOffset, setContextManager, setDepth, setEndOffset, setHashableJoinColumnReference, setNodeType, setRefActionInfo, spaceToLevel, toHTMLString, toString, treePrint, treePrint, verifyClassExist
public GetCurrentConnectionNode()
public JavaValueNode bindExpression(FromList fromList, SubqueryList subqueryList, java.util.List<AggregateNode> aggregateVector) throws StandardException
bindExpression
in class JavaValueNode
fromList
- The query's FROM listsubqueryList
- The subquery list being built as we find SubqueryNodesaggregateVector
- The aggregate vector being built as we find AggregateNodesStandardException
- Thrown on errorValueNode.bindExpression(com.splicemachine.db.impl.sql.compile.FromList, com.splicemachine.db.impl.sql.compile.SubqueryList, java.util.List<com.splicemachine.db.impl.sql.compile.AggregateNode>)
public void preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException
preprocess
in class JavaValueNode
numTables
- Number of tables in the DML StatementouterFromList
- FromList from outer query blockouterSubqueryList
- SubqueryList from outer query blockouterPredicateList
- PredicateList from outer query blockStandardException
- Thrown on errorValueNode.preprocess(int, com.splicemachine.db.impl.sql.compile.FromList, com.splicemachine.db.impl.sql.compile.SubqueryList, com.splicemachine.db.impl.sql.compile.PredicateList)
public boolean categorize(JBitSet referencedTabs, boolean simplePredsOnly)
categorize
in class JavaValueNode
referencedTabs
- JBitSet with bit map of referenced FromTablessimplePredsOnly
- Whether or not to consider method
calls, field references and conditional nodes
when building bit mapValueNode.categorize(com.splicemachine.db.iapi.util.JBitSet, boolean)
public JavaValueNode remapColumnReferencesToExpressions()
remapColumnReferencesToExpressions
in class JavaValueNode
ValueNode.remapColumnReferencesToExpressions()
void bindParameter()
protected int getOrderableVariantType()
getOrderableVariantType
in class JavaValueNode
public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
JavaValueNode
generateExpression
in class JavaValueNode
acb
- The ExpressionClassBuilder for the class being builtmb
- The method the code to place the codeStandardException
- Thrown on errorConstantNode.generateExpression(com.splicemachine.db.impl.sql.compile.ExpressionClassBuilder, com.splicemachine.db.iapi.services.compiler.MethodBuilder)
public void checkReliability(ValueNode sqlNode) throws StandardException
checkReliability
in class JavaValueNode
StandardException
- Thrown on errorCompilerContext