Class Distributions
Object
org.apache.spark.sql.connector.distributions.Distributions
Helper methods to create distributions to pass into Spark.
- Since:
- 3.2.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClusteredDistribution
clustered
(Expression[] clustering) Creates a distribution where tuples that share the same values for clustering expressions are co-located in the same partition.static OrderedDistribution
Creates a distribution where tuples have been ordered across partitions according to ordering expressions, but not necessarily within a given partition.static UnspecifiedDistribution
Creates a distribution where no promises are made about co-location of data.
-
Method Details
-
unspecified
Creates a distribution where no promises are made about co-location of data. -
clustered
Creates a distribution where tuples that share the same values for clustering expressions are co-located in the same partition. -
ordered
Creates a distribution where tuples have been ordered across partitions according to ordering expressions, but not necessarily within a given partition.
-