public class Distributions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ClusteredDistribution |
clustered(org.apache.spark.sql.connector.expressions.Expression[] clustering)
Creates a distribution where tuples that share the same values for clustering expressions are
co-located in the same partition.
|
static OrderedDistribution |
ordered(SortOrder[] ordering)
Creates a distribution where tuples have been ordered across partitions according
to ordering expressions, but not necessarily within a given partition.
|
static UnspecifiedDistribution |
unspecified()
Creates a distribution where no promises are made about co-location of data.
|
public static UnspecifiedDistribution unspecified()
public static ClusteredDistribution clustered(org.apache.spark.sql.connector.expressions.Expression[] clustering)
public static OrderedDistribution ordered(SortOrder[] ordering)