sha2 {SparkR}R Documentation

sha2

Description

Calculates the SHA-2 family of hash functions of a binary column and returns the value as a hex string.

Usage

## S4 method for signature 'Column,numeric'
sha2(y, x)

sha2(y, x)

Arguments

y

column to compute SHA-2 on.

x

one of 224, 256, 384, or 512.

Note

sha2 since 1.5.0

See Also

Other misc_funcs: crc32, crc32, crc32,Column-method; hash, hash, hash,Column-method; md5, md5, md5,Column-method; monotonically_increasing_id, monotonically_increasing_id, monotonically_increasing_id,missing-method; sha1, sha1, sha1,Column-method

Examples

## Not run: sha2(df$c, 256)

[Package SparkR version 2.0.0 Index]