public class LogicalExpressions
extends Object
Factory methods can be used when referencing the logical expression nodes is ambiguous because logical and internal expressions are used.
Constructor and Description |
---|
LogicalExpressions() |
Modifier and Type | Method and Description |
---|---|
static Transform |
apply(String name,
scala.collection.Seq<Expression> arguments) |
static org.apache.spark.sql.connector.expressions.BucketTransform |
bucket(int numBuckets,
NamedReference[] references) |
static org.apache.spark.sql.connector.expressions.SortedBucketTransform |
bucket(int numBuckets,
NamedReference[] references,
NamedReference[] sortedCols) |
static org.apache.spark.sql.connector.expressions.DaysTransform |
days(NamedReference reference) |
static org.apache.spark.sql.connector.expressions.HoursTransform |
hours(NamedReference reference) |
static org.apache.spark.sql.connector.expressions.IdentityTransform |
identity(NamedReference reference) |
static <T> org.apache.spark.sql.connector.expressions.LiteralValue<T> |
literal(T value) |
static <T> org.apache.spark.sql.connector.expressions.LiteralValue<T> |
literal(T value,
DataType dataType) |
static org.apache.spark.sql.connector.expressions.MonthsTransform |
months(NamedReference reference) |
static NamedReference |
parseReference(String name) |
static NamedReference |
reference(scala.collection.Seq<String> nameParts) |
static SortOrder |
sort(Expression reference,
SortDirection direction,
NullOrdering nullOrdering) |
static org.apache.spark.sql.connector.expressions.YearsTransform |
years(NamedReference reference) |
public static <T> org.apache.spark.sql.connector.expressions.LiteralValue<T> literal(T value)
public static <T> org.apache.spark.sql.connector.expressions.LiteralValue<T> literal(T value, DataType dataType)
public static NamedReference parseReference(String name)
public static NamedReference reference(scala.collection.Seq<String> nameParts)
public static Transform apply(String name, scala.collection.Seq<Expression> arguments)
public static org.apache.spark.sql.connector.expressions.BucketTransform bucket(int numBuckets, NamedReference[] references)
public static org.apache.spark.sql.connector.expressions.SortedBucketTransform bucket(int numBuckets, NamedReference[] references, NamedReference[] sortedCols)
public static org.apache.spark.sql.connector.expressions.IdentityTransform identity(NamedReference reference)
public static org.apache.spark.sql.connector.expressions.YearsTransform years(NamedReference reference)
public static org.apache.spark.sql.connector.expressions.MonthsTransform months(NamedReference reference)
public static org.apache.spark.sql.connector.expressions.DaysTransform days(NamedReference reference)
public static org.apache.spark.sql.connector.expressions.HoursTransform hours(NamedReference reference)
public static SortOrder sort(Expression reference, SortDirection direction, NullOrdering nullOrdering)