Visitablepublic final class LikeEscapeOperatorNode extends TernaryOperatorNode
| Modifier and Type | Field | Description |
|---|---|---|
(package private) boolean |
addedEquals |
Fields of the class
|
(package private) java.lang.String |
escape |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEXK_LIKE, K_LOCATE, K_SUBSTRING, K_TIMESTAMPADD, K_TIMESTAMPDIFF, K_TRIM, kind, leftInterfaceType, leftOperand, methodName, operator, receiver, receiverInterfaceType, resultInterfaceType, rightInterfaceType, rightOperand, TernaryArgType, TernaryMethodNames, TernaryOperators, TernaryResultType, trimTypetransformed| Constructor | Description |
|---|---|
LikeEscapeOperatorNode(ValueNode receiver,
ValueNode leftOperand,
ValueNode rightOperand,
ContextManager cm) |
Constructor for a LikeEscapeOperatorNode
receiver like pattern [ escape escapeValue ]
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
bindComparisonOperator() |
Bind this operator
|
(package private) ValueNode |
bindExpression(FromList fromList,
SubqueryList subqueryList,
java.util.List<AggregateNode> aggregates) |
implement binding for like expressions.
|
private void |
finishBindExpr() |
|
(package private) void |
generateExpression(ExpressionClassBuilder acb,
MethodBuilder mb) |
Do code generation for this binary operator.
|
(package private) ValueNode |
preprocess(int numTables,
FromList outerFromList,
SubqueryList outerSubqueryList,
PredicateList outerPredicateList) |
Preprocess an expression tree.
|
private ValueNode |
setupOptimizeStringFromParameter(ValueNode parameterNode,
ValueNode escapeNode,
java.lang.String methodName,
int maxWidth) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpushSqlXmlUtilaccept, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExistacceptChildren, bindToBuiltIn, castArgToString, categorize, constantExpression, getLeftOperand, getReceiver, getRightOperand, isConstantExpression, isEquivalent, isSameNodeKind, locateBind, printSubNodes, remapColumnReferencesToExpressions, setLeftOperand, setRightOperand, substrBind, toStringbindExpression, changeToCNF, checkIsBoolean, checkTopPredicatesForEqualsConditions, copyFields, eliminateNots, evaluateConstantExpressions, genEqualsFalseTree, generate, genIsNullTree, genSQLJavaSQLTree, getClone, getColumnName, getConstantValueAsObject, getDataValueFactory, getOrderableVariantType, getSchemaName, getSourceResultColumn, getTableName, getTablesReferenced, getTransformed, getTypeCompiler, getTypeId, getTypeServices, isBinaryEqualsOperatorNode, isBooleanFalse, isBooleanTrue, isCloneable, isInListProbeNode, isParameterNode, isRelationalOperator, optimizableEqualityNode, putAndsOnTop, requiresTypeFromContext, selectivity, setCollationInfo, setCollationInfo, setCollationUsingCompilationSchema, setCollationUsingCompilationSchema, setNullability, setTransformed, setType, setType, setType, updatableByCursor, verifyChangeToCNF, verifyEliminateNots, verifyPutAndsOnTopLikeEscapeOperatorNode(ValueNode receiver, ValueNode leftOperand, ValueNode rightOperand, ContextManager cm)
receiver - The left operand of the like:
column, CharConstant or ParameterleftOperand - The right operand of the like: the patternrightOperand - The optional escape clause, null if not presentcm - The context managerValueNode bindExpression(FromList fromList, SubqueryList subqueryList, java.util.List<AggregateNode> aggregates) throws StandardException
overrides BindOperatorNode.bindExpression because like has special requirements for parameter binding.
bindExpression in class TernaryOperatorNodefromList - The FROM list for the query this
expression is in, for binding columns.subqueryList - The subquery list being built as we find SubqueryNodesaggregates - The aggregate list being built as we find AggregateNodesStandardException - thrown on failureprivate void finishBindExpr()
throws StandardException
StandardExceptionpublic void bindComparisonOperator()
throws StandardException
StandardException - Thrown on errorValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException
preprocess in class TernaryOperatorNodenumTables - Number of tables in the DML StatementouterFromList - FromList from outer query blockouterSubqueryList - SubqueryList from outer query blockouterPredicateList - PredicateList from outer query blockStandardException - Thrown on errorvoid generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
generateExpression in class TernaryOperatorNodeacb - The ExpressionClassBuilder for the class we're generatingmb - The method the code to place the codeStandardException - Thrown on errorprivate ValueNode setupOptimizeStringFromParameter(ValueNode parameterNode, ValueNode escapeNode, java.lang.String methodName, int maxWidth) throws StandardException
StandardExceptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.