Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package apache
    Definition Classes
    org
  • package spark

    Core Spark functionality.

    Core Spark functionality. org.apache.spark.SparkContext serves as the main entry point to Spark, while org.apache.spark.rdd.RDD is the data type representing a distributed collection, and provides most parallel operations.

    In addition, org.apache.spark.rdd.PairRDDFunctions contains operations available only on RDDs of key-value pairs, such as groupByKey and join; org.apache.spark.rdd.DoubleRDDFunctions contains operations available only on RDDs of Doubles; and org.apache.spark.rdd.SequenceFileRDDFunctions contains operations available on RDDs that can be saved as SequenceFiles. These operations are automatically available on any RDD of the right type (e.g. RDD[(Int, Int)] through implicit conversions.

    Java programmers should reference the org.apache.spark.api.java package for Spark programming APIs in Java.

    Classes and methods marked with Experimental are user-facing features which have not been officially adopted by the Spark project. These are subject to change or removal in minor releases.

    Classes and methods marked with Developer API are intended for advanced users want to extend Spark through lower level interfaces. These are subject to changes or removal in minor releases.

    Definition Classes
    apache
  • package sql

    Allows the execution of relational queries, including those expressed in SQL using Spark.

    Allows the execution of relational queries, including those expressed in SQL using Spark.

    Definition Classes
    spark
  • package connector
    Definition Classes
    sql
  • package expressions
    Definition Classes
    connector
  • package filter
    Definition Classes
    expressions
  • AlwaysFalse
  • AlwaysTrue
  • And
  • Not
  • Or
  • Predicate

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
Annotations
@Evolving()
Source
Predicate.java
Since

3.3.0

Linear Supertypes
GeneralScalarExpression, ExpressionWithToString, Serializable, Expression, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Predicate
  2. GeneralScalarExpression
  3. ExpressionWithToString
  4. Serializable
  5. Expression
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Predicate(name: String, children: Array[Expression])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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
    GeneralScalarExpressionExpression
    Annotations
    @Override()
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. 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
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(o: AnyRef): Boolean
    Definition Classes
    GeneralScalarExpression → AnyRef → Any
    Annotations
    @Override()
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    GeneralScalarExpression → AnyRef → Any
    Annotations
    @Override()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def name(): String
    Definition Classes
    GeneralScalarExpression
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. 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
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    ExpressionWithToString → AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from ExpressionWithToString

Inherited from Serializable

Inherited from Expression

Inherited from AnyRef

Inherited from Any

Ungrouped