DataFrameWriter.BucketBy(Int32, String, String[]) 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.
Buckets the output by the given columns. If specified, the output is laid out on the file system similar to Hive's bucketing scheme.
public Microsoft.Spark.Sql.DataFrameWriter BucketBy (int numBuckets, string colName, params string[] colNames);
member this.BucketBy : int * string * string[] -> Microsoft.Spark.Sql.DataFrameWriter
Public Function BucketBy (numBuckets As Integer, colName As String, ParamArray colNames As String()) As DataFrameWriter
Parameters
- numBuckets
- Int32
Number of buckets to save
- colName
- String
A column name
- colNames
- String[]
Additional column names
Returns
This DataFrameWriter object