hashCode: Compute the hashCode of an object

Description Usage Arguments Details Examples

Description

Java-style function to compute the hashCode for the given object. Returns an integer value.

Usage

1
hashCode(key)

Arguments

key

the object to be hashed

Details

This only works for integer, numeric and character types.

Examples

1
2
3
4
5
6
7
8
## Not run: 

hashCode(1L) # 1
hashCode(1.0) # 1072693248
hashCode("1") # 49


## End(Not run)

danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.