หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Returns the bucket number for the given input column.
Syntax
from pyspark.sql import functions as sf
sf.bitmap_bucket_number(col)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
The input column. |
Examples
Example 1: Get bucket number for a value
from pyspark.sql import functions as sf
df = spark.createDataFrame([(123,)], ['a'])
df.select('*', sf.bitmap_bucket_number('a')).show()
+---+-----------------------+
| a|bitmap_bucket_number(a)|
+---+-----------------------+
|123| 1|
+---+-----------------------+