/** * Constructs a new {@link DefaultRedisZSet} instance. * * @param boundOps {@link BoundZSetOperations} for the value type of this set. * @param defaultScore */ public DefaultRedisZSet(BoundZSetOperations<String, E> boundOps, double defaultScore) { super(boundOps.getKey(), boundOps.getOperations()); this.boundZSetOps = boundOps; this.defaultScore = defaultScore; }
@Override public RedisZSet<E> intersectAndStore(Collection<? extends RedisZSet<?>> sets, String destKey) { boundZSetOps.intersectAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> unionAndStore(RedisZSet<?> set, String destKey) { boundZSetOps.unionAndStore(set.getKey(), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> unionAndStore(Collection<? extends RedisZSet<?>> sets, String destKey) { boundZSetOps.unionAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> intersectAndStore(RedisZSet<?> set, String destKey) { boundZSetOps.intersectAndStore(set.getKey(), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
/** * Constructs a new {@link DefaultRedisZSet} instance. * * @param boundOps {@link BoundZSetOperations} for the value type of this set. * @param defaultScore */ public DefaultRedisZSet(BoundZSetOperations<String, E> boundOps, double defaultScore) { super(boundOps.getKey(), boundOps.getOperations()); this.boundZSetOps = boundOps; this.defaultScore = defaultScore; }
/** * Constructs a new {@link DefaultRedisZSet} instance. * * @param boundOps {@link BoundZSetOperations} for the value type of this set. * @param defaultScore */ public DefaultRedisZSet(BoundZSetOperations<String, E> boundOps, double defaultScore) { super(boundOps.getKey(), boundOps.getOperations()); this.boundZSetOps = boundOps; this.defaultScore = defaultScore; }
@Override public RedisZSet<E> unionAndStore(RedisZSet<?> set, String destKey) { boundZSetOps.unionAndStore(set.getKey(), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> unionAndStore(Collection<? extends RedisZSet<?>> sets, String destKey) { boundZSetOps.unionAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> intersectAndStore(RedisZSet<?> set, String destKey) { boundZSetOps.intersectAndStore(set.getKey(), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> unionAndStore(RedisZSet<?> set, String destKey) { boundZSetOps.unionAndStore(set.getKey(), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> intersectAndStore(Collection<? extends RedisZSet<?>> sets, String destKey) { boundZSetOps.intersectAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> intersectAndStore(Collection<? extends RedisZSet<?>> sets, String destKey) { boundZSetOps.intersectAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> unionAndStore(Collection<? extends RedisZSet<?>> sets, String destKey) { boundZSetOps.unionAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }
@Override public RedisZSet<E> intersectAndStore(RedisZSet<?> set, String destKey) { boundZSetOps.intersectAndStore(set.getKey(), destKey); return new DefaultRedisZSet<>(boundZSetOps.getOperations().boundZSetOps(destKey), getDefaultScore()); }