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);
    }

    @JsonCreator @ThriftConstructor public  PrestoThriftId(@JsonProperty("id") byte[] id);

}