예제 #1
0
 public Future<Long> sortStore(K key, SortArgs sortArgs, K destination) {
   CommandArgs<K, V> args = new CommandArgs<K, V>(codec).addKey(key);
   sortArgs.build(args, destination);
   return dispatch(SORT, new IntegerOutput<K, V>(codec), args);
 }
예제 #2
0
 public Future<List<V>> sort(K key, SortArgs sortArgs) {
   CommandArgs<K, V> args = new CommandArgs<K, V>(codec).addKey(key);
   sortArgs.build(args, null);
   return dispatch(SORT, new ValueListOutput<K, V>(codec), args);
 }