class Predicate extends GeneralScalarExpression
The general representation of predicate expressions, which contains the upper-cased expression
name and all the children expressions. You can also use these concrete subclasses for better
type safety: And, Or, Not, AlwaysTrue, AlwaysFalse.
The currently supported predicate expressions:
- Name:
IS_NULL - SQL semantic:
expr IS NULL - Since version: 3.3.0
- Name:
IS_NOT_NULL - SQL semantic:
expr IS NOT NULL - Since version: 3.3.0
- Name:
STARTS_WITH - SQL semantic:
expr1 LIKE 'expr2%' - Since version: 3.3.0
- Name:
ENDS_WITH - SQL semantic:
expr1 LIKE '%expr2' - Since version: 3.3.0
- Name:
CONTAINS - SQL semantic:
expr1 LIKE '%expr2%' - Since version: 3.3.0
- Name:
IN - SQL semantic:
expr IN (expr1, expr2, ...) - Since version: 3.3.0
- Name:
= - SQL semantic:
expr1 = expr2 - Since version: 3.3.0
- Name:
<> - SQL semantic:
expr1 <> expr2 - Since version: 3.3.0
- Name:
<=> - SQL semantic: null-safe version of
expr1 = expr2 - Since version: 3.3.0
- Name:
< - SQL semantic:
expr1 < expr2 - Since version: 3.3.0
- Name:
<= - SQL semantic:
expr1 <= expr2 - Since version: 3.3.0
- Name:
> - SQL semantic:
expr1 > expr2 - Since version: 3.3.0
- Name:
>= - SQL semantic:
expr1 >= expr2 - Since version: 3.3.0
- Name:
AND - SQL semantic:
expr1 AND expr2 - Since version: 3.3.0
- Name:
OR - SQL semantic:
expr1 OR expr2 - Since version: 3.3.0
- Name:
NOT - SQL semantic:
NOT expr - Since version: 3.3.0
- Name:
ALWAYS_TRUE - SQL semantic:
TRUE - Since version: 3.3.0
- Name:
ALWAYS_FALSE - SQL semantic:
FALSE - Since version: 3.3.0
- Name:
BOOLEAN_EXPRESSION - A simple wrapper for any expression that returns boolean type.
- Since version: 4.1.0
- Annotations
- @Evolving()
- Source
- Predicate.java
- Since
3.3.0
- Alphabetic
- By Inheritance
- Predicate
- GeneralScalarExpression
- ExpressionWithToString
- Serializable
- Expression
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Predicate(name: String, children: Array[Expression])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def children(): Array[Expression]
Returns an array of the children of this node.
Returns an array of the children of this node. Children should not change.
- Definition Classes
- GeneralScalarExpression → Expression
- Annotations
- @Override()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def describe(): String
Format the expression as a human readable SQL-like string.
Format the expression as a human readable SQL-like string.
- Definition Classes
- Expression
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: AnyRef): Boolean
- Definition Classes
- GeneralScalarExpression → AnyRef → Any
- Annotations
- @Override()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- GeneralScalarExpression → AnyRef → Any
- Annotations
- @Override()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def name(): String
- Definition Classes
- GeneralScalarExpression
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def references(): Array[NamedReference]
List of fields or columns that are referenced by this expression.
List of fields or columns that are referenced by this expression.
- Definition Classes
- Expression
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ExpressionWithToString → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)