說明:
Java-style 函數計算給定對象的 hashCode。返回一個整數值。
用法:
hashCode(key)
參數:
key
要散列的對象
細節:
目前這隻適用於整數、數字和字符類型。
返回:
哈希碼為整數
注意:
hashCode 自 1.4.0 起
例子:
hashCode(1L) # 1
hashCode(1.0) # 1072693248
hashCode("1") # 49
相關用法
- R SparkR hint用法及代碼示例
- R SparkR histogram用法及代碼示例
- R SparkR head用法及代碼示例
- R matrix轉list用法及代碼示例
- R SparkR freqItems用法及代碼示例
- R SparkR intersectAll用法及代碼示例
- R SparkR spark.decisionTree用法及代碼示例
- R SparkR sparkR.callJMethod用法及代碼示例
- R SparkR sample用法及代碼示例
- R SparkR approxQuantile用法及代碼示例
- R SparkR glm用法及代碼示例
- R SparkR randomSplit用法及代碼示例
- R SparkR describe用法及代碼示例
- R SparkR withColumn用法及代碼示例
- R SparkR read.stream用法及代碼示例
- R SparkR join用法及代碼示例
- R SparkR rbind用法及代碼示例
- R SparkR windowPartitionBy用法及代碼示例
- R SparkR count用法及代碼示例
- R SparkR column用法及代碼示例
注:本文由純淨天空篩選整理自spark.apache.org大神的英文原創作品 Compute the hashCode of an object。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。