Skip to content

Predicate Expressions

Predicate is an extension of the Expression abstraction for predicate expressions that evaluate to a value of BooleanType type.

Implementations

DataType

dataType: DataType

dataType is part of the Expression abstraction.


dataType is always BooleanType.

Creating BasePredicate for Bound Expression

create(
  e: Expression): BasePredicate
create(
  e: Expression,
  inputSchema: Seq[Attribute]): BasePredicate

create creates a BasePredicate for the given Expression that is bound to the input schema (Attributes).