public class EqualNullSafe extends Filter implements scala.Product, scala.Serializable
EqualTo
. However, this differs from EqualTo
in that it returns true
(rather than NULL) if both inputs are NULL, and false
(rather than NULL) if one of the input is NULL and the other is not NULL.
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.
Constructor and Description |
---|
EqualNullSafe(String attribute,
Object value) |
Modifier and Type | Method and Description |
---|---|
abstract static R |
apply(T1 v1,
T2 v2) |
String |
attribute() |
String[] |
references()
List of columns that are referenced by this filter.
|
static String |
toString() |
org.apache.spark.sql.connector.expressions.filter.Predicate |
toV2()
Converts V1 filter to V2 filter
|
Object |
value() |
v2references
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract static R apply(T1 v1, T2 v2)
public static String toString()
public String attribute()
public Object value()
public String[] references()
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.
references
in class Filter
public org.apache.spark.sql.connector.expressions.filter.Predicate toV2()
Filter