コード例 #1
0
ファイル: Slowlog.java プロジェクト: noshlin/jedis
  @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));
    }
  }
コード例 #2
0
ファイル: MurmurHash.java プロジェクト: AlfieC/HCTeams-1
 @Override
 public long hash(final String key) {
   return this.hash(SafeEncoder.encode(key));
 }
コード例 #3
0
 public static int getCRC16(String key) {
   return getCRC16(SafeEncoder.encode(key));
 }
コード例 #4
0
ファイル: Hashing.java プロジェクト: hurong053/goshopping
 public long hash(String key) {
   return hash(SafeEncoder.encode(key));
 }