예제 #1
0
 private static SqlVarbinary expectedChecksum(Type type, Block block) {
   long result = 0;
   for (int i = 0; i < block.getPositionCount(); i++) {
     if (block.isNull(i)) {
       result += PRIME64;
     } else {
       result += type.hash(block, i) * PRIME64;
     }
   }
   return new SqlVarbinary(wrappedLongArray(result).getBytes());
 }