Class InPredicate
- java.lang.Object
-
- com.exasol.sql.expression.predicate.AbstractPredicate
-
- com.exasol.sql.expression.predicate.InPredicate
-
- All Implemented Interfaces:
BooleanExpression
,Predicate
,ValueExpression
public class InPredicate extends AbstractPredicate
A class that represents a[NOT] IN
predicate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InPredicate.Builder
A builder forInPredicate
.static class
InPredicate.InPredicateOperator
A class that representsInPredicate
operator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(PredicateVisitor visitor)
AcceptsPredicateVisitor
.static InPredicate.Builder
builder()
Creates a new builder forInPredicate
.ValueExpression
getExpression()
Returns the left expression in the[NOT] IN
predicate.List<ValueExpression>
getOperands()
Returns the value expressions in the[NOT] IN
predicate.Select
getSelectQuery()
Returns the sub select query in the[NOT] IN
predicate.boolean
hasSelectQuery()
Checks ifInPredicate
has a sub query.-
Methods inherited from class com.exasol.sql.expression.predicate.AbstractPredicate
accept, accept, getOperator
-
-
-
-
Method Detail
-
hasSelectQuery
public boolean hasSelectQuery()
Checks ifInPredicate
has a sub query.- Returns:
true
if predicate has a sub query, otherwise returnfalse
-
getExpression
public ValueExpression getExpression()
Returns the left expression in the[NOT] IN
predicate.- Returns:
- expression in predicate
-
getOperands
public List<ValueExpression> getOperands()
Returns the value expressions in the[NOT] IN
predicate.- Returns:
- value expression operands
-
getSelectQuery
public Select getSelectQuery()
Returns the sub select query in the[NOT] IN
predicate.- Returns:
- sub select query
-
builder
public static InPredicate.Builder builder()
Creates a new builder forInPredicate
.- Returns:
- new
InPredicate.Builder
-
accept
public void accept(PredicateVisitor visitor)
Description copied from interface:Predicate
AcceptsPredicateVisitor
.- Parameters:
visitor
- predicate visitor to accept
-
-