presto-thrift-api/src/main/java/io/prestosql/plugin/thrift/api/PrestoThriftId.java/PrestoThriftId/summarize
class PrestoThriftId:    @VisibleForTesting
    static String summarize(byte[] value)
    {
        if (value.length * 2 <= MAX_DISPLAY_CHARACTERS) {
            return BaseEncoding.base16().encode(value);
        }
        return BaseEncoding.base16().encode(value, 0, PREFIX_SUFFIX_BYTES)
                + FILLER
                + BaseEncoding.base16().encode(value, value.length - PREFIX_SUFFIX_BYTES, PREFIX_SUFFIX_BYTES);
    }