Package org.idevlab.rjc

Examples of org.idevlab.rjc.ZParams


  @Override
  public Long zInterStore(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) {
    String stringKey = RjcUtils.decode(destKey);
    String[] stringKeys = RjcUtils.decodeMultiple(sets);

    ZParams zparams = RjcUtils.toZParams(aggregate, weights);

    try {
      if (isPipelined()) {
        pipeline.zinterstore(stringKey, zparams, stringKeys);
        return null;
View Full Code Here


  @Override
  public Long zUnionStore(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) {
    String stringKey = RjcUtils.decode(destKey);
    String[] stringKeys = RjcUtils.decodeMultiple(destKey);

    ZParams zparams = RjcUtils.toZParams(aggregate, weights);

    try {
      if (isPipelined()) {
        pipeline.zunionstore(stringKey, zparams, stringKeys);
        return null;
View Full Code Here

    }
    return null;
  }

  static ZParams toZParams(Aggregate aggregate, int[] weights) {
    return new ZParams().weights(weights).aggregate(ZParams.Aggregate.valueOf(aggregate.name()));
  }
View Full Code Here

TOP

Related Classes of org.idevlab.rjc.ZParams

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.