public static String computeQueryHash(String query)
    {
        requireNonNull(query, "query is null");

        if (query.isEmpty()) {
            return "";
        }

        byte[] queryBytes = query.getBytes(UTF_8);
        long queryHash = new XxHash64().update(queryBytes).hash();
        return toHexString(queryHash);
    }
@Test
    public void testComputeQueryHash()
    {
        String query = "SELECT * FROM CUSTOMER LIMIT 5";
        assertEquals(computeQueryHash(query), "7f3325a942b43504");
    }