Class ClusterByTransform

Object
org.apache.spark.sql.connector.expressions.ClusterByTransform
All Implemented Interfaces:
Serializable, Expression, org.apache.spark.sql.connector.expressions.RewritableTransform, Transform, scala.Equals, scala.Product

public final class ClusterByTransform extends Object implements org.apache.spark.sql.connector.expressions.RewritableTransform, scala.Product, Serializable
This class represents a transform for ClusterBySpec. This is used to bundle ClusterBySpec in CreateTable's partitioning transforms to pass it down to analyzer.
See Also:
  • Constructor Details

    • ClusterByTransform

      public ClusterByTransform(scala.collection.immutable.Seq<NamedReference> columnNames)
  • Method Details

    • unapply

      public static scala.Option<scala.collection.immutable.Seq<NamedReference>> unapply(Transform transform)
    • columnNames

      public scala.collection.immutable.Seq<NamedReference> columnNames()
    • name

      public String name()
      Description copied from interface: Transform
      Returns the transform function name.
      Specified by:
      name in interface Transform
    • references

      public NamedReference[] references()
      Description copied from interface: Expression
      List of fields or columns that are referenced by this expression.
      Specified by:
      references in interface Expression
    • arguments

      public Expression[] arguments()
      Description copied from interface: Transform
      Returns the arguments passed to the transform function.
      Specified by:
      arguments in interface Transform
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withReferences

      public Transform withReferences(scala.collection.immutable.Seq<NamedReference> newReferences)
      Specified by:
      withReferences in interface org.apache.spark.sql.connector.expressions.RewritableTransform