private int hashToInt(String value) {
        return hasher.hashString(value, StandardCharsets.UTF_8).asInt();
    }
Hashes a string value to a long or int (by type inference on the target value).

@author bratseth
indexinglanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/HashExpression.java