hashBucket

Syntax

hashBucket(X, buckets)

Arguments

X is a scalar/vector.

buckets is a positive integer.

Details

Compute the hash value of X. The HASH partition is based on the hash value of the partitioning column elements.

Examples

$ hashBucket(34 45 67, 10);
[4,5,7]

$ hashBucket(`AAPL`TSLA`GS`MS`GE`BA`UAL`WMT, 10);
[9,4,1,8,3,7,5,2]