Package org.jredis

Examples of org.jredis.Sort.exec()


  @Override
  public List<byte[]> sort(byte[] key, SortParameters params) {
    Sort sort = jredis.sort(JredisUtils.decode(key));
    JredisUtils.applySortingParams(sort, params, null);
    try {
      return sort.exec();
    } catch (Exception ex) {
      throw convertJredisAccessException(ex);
    }
  }
View Full Code Here


  @Override
  public Long sort(byte[] key, SortParameters params, byte[] storeKey) {
    Sort sort = jredis.sort(JredisUtils.decode(key));
    JredisUtils.applySortingParams(sort, params, null);
    try {
      return Support.unpackValue(sort.exec());
    } catch (Exception ex) {
      throw convertJredisAccessException(ex);
    }
  }
View Full Code Here

  public List<byte[]> sort(byte[] key, SortParameters params) {
    Sort sort = jredis.sort(key);
    JredisUtils.applySortingParams(sort, params, null);
    try {
      return sort.exec();
    } catch (Exception ex) {
      throw convertJredisAccessException(ex);
    }
  }
View Full Code Here

  public Long sort(byte[] key, SortParameters params, byte[] storeKey) {
    Sort sort = jredis.sort(key);
    JredisUtils.applySortingParams(sort, params, storeKey);
    try {
      return Support.unpackValue(sort.exec());
    } catch (Exception ex) {
      throw convertJredisAccessException(ex);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.