@SuppressWarnings("unchecked") private Slowlog(List<Object> properties) { super(); this.id = (Long) properties.get(0); this.timeStamp = (Long) properties.get(1); this.executionTime = (Long) properties.get(2); List<byte[]> bargs = (List<byte[]>) properties.get(3); this.args = new ArrayList<String>(bargs.size()); for (byte[] barg : bargs) { this.args.add(SafeEncoder.encode(barg)); } }
@Override public long hash(final String key) { return this.hash(SafeEncoder.encode(key)); }
public static int getCRC16(String key) { return getCRC16(SafeEncoder.encode(key)); }
public long hash(String key) { return hash(SafeEncoder.encode(key)); }