private long getThreshold() {
    return (long) (HLLConstants.thresholdData[p - 4] + 0.5);
  }
Java's default charset will be used for strings.
@param val
         - input string
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/common/ndv/hll/HyperLogLog.java