Class SQLInOperation
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.sql.SQLNode
ortus.boxlang.compiler.ast.sql.select.expression.SQLExpression
ortus.boxlang.compiler.ast.sql.select.expression.operation.SQLInOperation
- All Implemented Interfaces:
BoxVisitable
Abstract Node class representing SQL IN operation
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSQLInOperation
(SQLExpression expression, List<SQLExpression> values, boolean not, Position position, String sourceText) Constructor -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.void
Accept method for visitor support.evaluate
(QoQSelectExecution QoQExec, int[] intersection) Evaluate the expressionevaluateAggregate
(QoQSelectExecution QoQExec, List<int[]> intersections) Evaluate the expression aginst a partition of dataGet the expressionGet the valuesboolean
isBoolean
(QoQSelectExecution QoQExec) Runtime check if the expression evaluates to a boolean value and works for columns as wellboolean
isNot()
Get the notvoid
setExpression
(SQLExpression expression) Set the expressionvoid
setNot
(boolean not) Set the notvoid
setValues
(List<SQLExpression> values) Set the valuestoMap()
Methods inherited from class ortus.boxlang.compiler.ast.sql.select.expression.SQLExpression
getType, isLiteral, isNumeric
Methods inherited from class ortus.boxlang.compiler.ast.BoxNode
addComment, associateComments, endsOnSameLineAs, enumToMap, getAncestors, getChildren, getComments, getDescendants, getDescendantsOfType, getDescendantsOfType, getDescription, getDocComment, getFirstAncestorOfType, getFirstAncestorOfType, getFirstNodeOfType, getFirstNodeOfType, getFirstNodeOfTypes, getParent, getPosition, getSourceText, isAfter, isBefore, isInside, replaceChildren, replaceChildren, setComments, setParent, setPosition, setSourceText, startsOnEndLineOf, toJSON, toString
-
Constructor Details
-
SQLInOperation
public SQLInOperation(SQLExpression expression, List<SQLExpression> values, boolean not, Position position, String sourceText) Constructor- Parameters:
position
- position of the statement in the source codesourceText
- source code of the statement
-
-
Method Details
-
getExpression
Get the expression -
setExpression
Set the expression -
getValues
Get the values -
setValues
Set the values -
isNot
public boolean isNot()Get the not -
setNot
public void setNot(boolean not) Set the not -
isBoolean
Runtime check if the expression evaluates to a boolean value and works for columns as well- Overrides:
isBoolean
in classSQLExpression
- Parameters:
QoQExec
- Query execution state- Returns:
- true if the expression evaluates to a boolean value
-
evaluate
Evaluate the expression- Specified by:
evaluate
in classSQLExpression
-
evaluateAggregate
Evaluate the expression aginst a partition of data- Specified by:
evaluateAggregate
in classSQLExpression
-
accept
Description copied from interface:BoxVisitable
Accept method for visitor support.- Parameters:
v
- the visitor implementation
-
accept
Description copied from interface:BoxVisitable
Accept method for replacing visitor support. Each accept returns the node, or a replacement node.- Parameters:
v
- the visitor implementation
-
toMap
-