case class In(attribute: String, values: Array[Any]) extends Filter with Product with Serializable
A filter that evaluates to true
iff the attribute evaluates to one of the values in the array.
- attribute
of the column to be evaluated;
dots
are used as separators for nested columns. If any part of the names containsdots
, it is quoted to avoid confusion.
- Annotations
- @Stable()
- Source
- filters.scala
- Since
1.3.0
- Alphabetic
- By Inheritance
- In
- Serializable
- Serializable
- Product
- Equals
- Filter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
In(attribute: String, values: Array[Any])
- attribute
of the column to be evaluated;
dots
are used as separators for nested columns. If any part of the names containsdots
, it is quoted to avoid confusion.
Value Members
- val attribute: String
-
def
equals(o: Any): Boolean
- Definition Classes
- In → Equals → AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- In → AnyRef → Any
-
def
references: Array[String]
List of columns that are referenced by this 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. -
def
toString(): String
- Definition Classes
- In → AnyRef → Any
-
def
toV2: Predicate
Converts V1 filter to V2 filter
-
def
v2references: Array[Array[String]]
List of columns that are referenced by this filter.
List of columns that are referenced by this filter.
- returns
each element is a column name as an array of string multi-identifier
- Definition Classes
- Filter
- Since
3.0.0
- val values: Array[Any]