Skip to content

ClusterBySpec

To be removed

They say the following:

This class will be removed when we integrate with OSS Spark's CLUSTER BY implementation.

See https://github.com/apache/spark/pull/42577

Creating Instance

ClusterBySpec takes the following to be created:

  • Column names (NamedReferences)

ClusterBySpec is created when:

Creating ClusterBySpec

apply[_: ClassTag](
  columnNames: Seq[Seq[String]]): ClusterBySpec

apply creates a ClusterBySpec for the given columnNames (converted to FieldReferences).

No usage found

(Re)Creating ClusterBySpec from Table Property

fromProperty(
  columns: String): ClusterBySpec

fromProperty creates a ClusterBySpec for the given columns (being a JSON-ified ClusterBySpec).

Note

fromProperty does the opposite to toProperty.


fromProperty is used when:

Converting ClusterBySpec to Table Property

toProperty(
  clusterBySpec: ClusterBySpec): (String, String)

toProperty gives a pair of clusteringColumns and the given ClusterBySpec (in JSON format).

Note

toProperty does the opposite to fromProperty.


toProperty is used when: