gpt4 book ai didi

org.apache.spark.sql.catalyst.expressions.XXH64.fmix()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 13:40:40 26 4
gpt4 key购买 nike

本文整理了Java中org.apache.spark.sql.catalyst.expressions.XXH64.fmix()方法的一些代码示例,展示了XXH64.fmix()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XXH64.fmix()方法的具体详情如下:
包路径:org.apache.spark.sql.catalyst.expressions.XXH64
类名称:XXH64
方法名:fmix

XXH64.fmix介绍

暂无

代码示例

代码示例来源:origin: org.apache.spark/spark-catalyst_2.11

public static long hashInt(int input, long seed) {
 long hash = seed + PRIME64_5 + 4L;
 hash ^= (input & 0xFFFFFFFFL) * PRIME64_1;
 hash = Long.rotateLeft(hash, 23) * PRIME64_2 + PRIME64_3;
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

public static long hashUnsafeWords(Object base, long offset, int length, long seed) {
 assert (length % 8 == 0) : "lengthInBytes must be a multiple of 8 (word-aligned)";
 long hash = hashBytesByWords(base, offset, length, seed);
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.11

public static long hashUnsafeWords(Object base, long offset, int length, long seed) {
 assert (length % 8 == 0) : "lengthInBytes must be a multiple of 8 (word-aligned)";
 long hash = hashBytesByWords(base, offset, length, seed);
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst

public static long hashUnsafeWords(Object base, long offset, int length, long seed) {
 assert (length % 8 == 0) : "lengthInBytes must be a multiple of 8 (word-aligned)";
 long hash = hashBytesByWords(base, offset, length, seed);
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

public static long hashInt(int input, long seed) {
 long hash = seed + PRIME64_5 + 4L;
 hash ^= (input & 0xFFFFFFFFL) * PRIME64_1;
 hash = Long.rotateLeft(hash, 23) * PRIME64_2 + PRIME64_3;
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst

public static long hashInt(int input, long seed) {
 long hash = seed + PRIME64_5 + 4L;
 hash ^= (input & 0xFFFFFFFFL) * PRIME64_1;
 hash = Long.rotateLeft(hash, 23) * PRIME64_2 + PRIME64_3;
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.11

public static long hashLong(long input, long seed) {
 long hash = seed + PRIME64_5 + 8L;
 hash ^= Long.rotateLeft(input * PRIME64_2, 31) * PRIME64_1;
 hash = Long.rotateLeft(hash, 27) * PRIME64_1 + PRIME64_4;
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst

public static long hashLong(long input, long seed) {
 long hash = seed + PRIME64_5 + 8L;
 hash ^= Long.rotateLeft(input * PRIME64_2, 31) * PRIME64_1;
 hash = Long.rotateLeft(hash, 27) * PRIME64_1 + PRIME64_4;
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

public static long hashLong(long input, long seed) {
 long hash = seed + PRIME64_5 + 8L;
 hash ^= Long.rotateLeft(input * PRIME64_2, 31) * PRIME64_1;
 hash = Long.rotateLeft(hash, 27) * PRIME64_1 + PRIME64_4;
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

public static long hashUnsafeBytes(Object base, long offset, int length, long seed) {
 assert (length >= 0) : "lengthInBytes cannot be negative";
 long hash = hashBytesByWords(base, offset, length, seed);
 long end = offset + length;
 offset += length & -8;
 if (offset + 4L <= end) {
  hash ^= (Platform.getInt(base, offset) & 0xFFFFFFFFL) * PRIME64_1;
  hash = Long.rotateLeft(hash, 23) * PRIME64_2 + PRIME64_3;
  offset += 4L;
 }
 while (offset < end) {
  hash ^= (Platform.getByte(base, offset) & 0xFFL) * PRIME64_5;
  hash = Long.rotateLeft(hash, 11) * PRIME64_1;
  offset++;
 }
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst

public static long hashUnsafeBytes(Object base, long offset, int length, long seed) {
 assert (length >= 0) : "lengthInBytes cannot be negative";
 long hash = hashBytesByWords(base, offset, length, seed);
 long end = offset + length;
 offset += length & -8;
 if (offset + 4L <= end) {
  hash ^= (Platform.getInt(base, offset) & 0xFFFFFFFFL) * PRIME64_1;
  hash = Long.rotateLeft(hash, 23) * PRIME64_2 + PRIME64_3;
  offset += 4L;
 }
 while (offset < end) {
  hash ^= (Platform.getByte(base, offset) & 0xFFL) * PRIME64_5;
  hash = Long.rotateLeft(hash, 11) * PRIME64_1;
  offset++;
 }
 return fmix(hash);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.11

public static long hashUnsafeBytes(Object base, long offset, int length, long seed) {
 assert (length >= 0) : "lengthInBytes cannot be negative";
 long hash = hashBytesByWords(base, offset, length, seed);
 long end = offset + length;
 offset += length & -8;
 if (offset + 4L <= end) {
  hash ^= (Platform.getInt(base, offset) & 0xFFFFFFFFL) * PRIME64_1;
  hash = Long.rotateLeft(hash, 23) * PRIME64_2 + PRIME64_3;
  offset += 4L;
 }
 while (offset < end) {
  hash ^= (Platform.getByte(base, offset) & 0xFFL) * PRIME64_5;
  hash = Long.rotateLeft(hash, 11) * PRIME64_1;
  offset++;
 }
 return fmix(hash);
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com