Functions.Bucket Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Bucket(Column, Column) |
A transform for any type that partitions by a hash of the input column. |
Bucket(Int32, Column) |
A transform for any type that partitions by a hash of the input column. |
Bucket(Column, Column)
A transform for any type that partitions by a hash of the input column.
[Microsoft.Spark.Since("3.0.0")]
public static Microsoft.Spark.Sql.Column Bucket(Microsoft.Spark.Sql.Column numBuckets, Microsoft.Spark.Sql.Column column);
[<Microsoft.Spark.Since("3.0.0")>]
static member Bucket : Microsoft.Spark.Sql.Column * Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function Bucket (numBuckets As Column, column As Column) As Column
Parameters
- numBuckets
- Column
A column containing number of buckets
- column
- Column
Column to apply
Returns
Column object
- Attributes
Applies to
Bucket(Int32, Column)
A transform for any type that partitions by a hash of the input column.
[Microsoft.Spark.Since("3.0.0")]
public static Microsoft.Spark.Sql.Column Bucket(int numBuckets, Microsoft.Spark.Sql.Column column);
[<Microsoft.Spark.Since("3.0.0")>]
static member Bucket : int * Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function Bucket (numBuckets As Integer, column As Column) As Column
Parameters
- numBuckets
- Int32
Number of buckets
- column
- Column
Column to apply
Returns
Column object
- Attributes