Example #1
0
  @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));
    }
  }
Example #2
0
 @Override
 public long hash(final String key) {
   return this.hash(SafeEncoder.encode(key));
 }
Example #3
0
 public static int getCRC16(String key) {
   return getCRC16(SafeEncoder.encode(key));
 }
Example #4
0
 public long hash(String key) {
   return hash(SafeEncoder.encode(key));
 }