Class ClusterByTransform
Object
org.apache.spark.sql.connector.expressions.ClusterByTransform
- All Implemented Interfaces:
Serializable
,Expression
,RewritableTransform
,Transform
,scala.Equals
,scala.Product
public final class ClusterByTransform
extends Object
implements 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:
-
Field Summary
Fields inherited from interface org.apache.spark.sql.connector.expressions.Expression
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
-
Constructor Summary
ConstructorDescriptionClusterByTransform
(scala.collection.immutable.Seq<NamedReference> columnNames) -
Method Summary
Modifier and TypeMethodDescriptionReturns the arguments passed to the transform function.scala.collection.immutable.Seq<NamedReference>
name()
Returns the transform function name.List of fields or columns that are referenced by this expression.toString()
static scala.Option<scala.collection.immutable.Seq<NamedReference>>
withReferences
(scala.collection.immutable.Seq<NamedReference> newReferences) Creates a copy of this transform with the new analyzed references.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface org.apache.spark.sql.connector.expressions.Expression
describe
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
ClusterByTransform
-
-
Method Details
-
unapply
public static scala.Option<scala.collection.immutable.Seq<NamedReference>> unapply(Transform transform) -
columnNames
-
name
Description copied from interface:Transform
Returns the transform function name. -
references
Description copied from interface:Expression
List of fields or columns that are referenced by this expression.- Specified by:
references
in interfaceExpression
-
arguments
Description copied from interface:Transform
Returns the arguments passed to the transform function. -
toString
-
withReferences
Description copied from interface:RewritableTransform
Creates a copy of this transform with the new analyzed references.- Specified by:
withReferences
in interfaceRewritableTransform
-