Class In

Object
org.apache.spark.sql.sources.Filter
org.apache.spark.sql.sources.In
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class In extends Filter implements scala.Product, Serializable
A filter that evaluates to true iff the attribute evaluates to one of the values in the array.

param: attribute of the column to be evaluated; dots are used as separators for nested columns. If any part of the names contains dots, it is quoted to avoid confusion.

Since:
1.3.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    In(String attribute, Object[] values)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract static R
    apply(T1 v1, T2 v2)
     
     
    boolean
     
    int
     
    List of columns that are referenced by this filter.
     
     
     

    Methods inherited from class org.apache.spark.sql.sources.Filter

    v2references

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface scala.Equals

    canEqual

    Methods inherited from interface scala.Product

    productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
  • Constructor Details

  • Method Details

    • apply

      public abstract static R apply(T1 v1, T2 v2)
    • attribute

      public String attribute()
    • values

      public Object[] values()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • references

      public String[] references()
      Description copied from class: Filter
      List of columns that are referenced by this filter.

      Note that, each element in references represents a column. The column name follows ANSI SQL names and identifiers: dots are used as separators for nested columns, name will be quoted if it contains special chars.

      Specified by:
      references in class Filter
      Returns:
      (undocumented)
    • toV2

      public Predicate toV2()