public static int getBucketHashCode(Object[] bucketFields, ObjectInspector[] bucketFieldInspectors) {
    int hashCode = 0;
    ByteBuffer b = ByteBuffer.allocate(8); // To be used with primitive types
    for (int i = 0; i < bucketFields.length; i++) {
      int fieldHash = ObjectInspectorUtils.hashCodeMurmur(
          bucketFields[i], bucketFieldInspectors[i], b);
      hashCode = 31 * hashCode + fieldHash;
    }
    return hashCode;
  }
Computes the hash code for the given bucketed fields
@param bucketFields
@param bucketFieldInspectors
@return
serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ObjectInspectorUtils.java