本文整理了Java中org.springframework.data.redis.core.ZSetOperations.intersectAndStore()
方法的一些代码示例,展示了ZSetOperations.intersectAndStore()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZSetOperations.intersectAndStore()
方法的具体详情如下:
包路径:org.springframework.data.redis.core.ZSetOperations
类名称:ZSetOperations
方法名:intersectAndStore
[英]Intersect sorted sets at key and otherKeys and store result in destination destKey.
[中]在键和其他键处相交排序集,并将结果存储在目标键中。
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Long intersectAndStore(K otherKey, K destKey) {
return ops.intersectAndStore(getKey(), otherKey, destKey);
}
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey) {
return ops.intersectAndStore(getKey(), otherKeys, destKey);
}
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey, Aggregate aggregate) {
return ops.intersectAndStore(getKey(), otherKeys, destKey, aggregate);
}
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey, Aggregate aggregate, Weights weights) {
return ops.intersectAndStore(getKey(), otherKeys, destKey, aggregate, weights);
}
代码示例来源:origin: spring-projects/spring-data-redis
/**
* Intersect sorted sets at {@code key} and {@code otherKeys} and store result in destination {@code destKey}.
*
* @param key must not be {@literal null}.
* @param otherKeys must not be {@literal null}.
* @param destKey must not be {@literal null}.
* @param aggregate must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.1
* @see <a href="http://redis.io/commands/zinterstore">Redis Documentation: ZINTERSTORE</a>
*/
@Nullable
default Long intersectAndStore(K key, Collection<K> otherKeys, K destKey, Aggregate aggregate) {
return intersectAndStore(key, otherKeys, destKey, aggregate, Weights.fromSetCount(1 + otherKeys.size()));
}
代码示例来源:origin: whvcse/EasyWeb
/**
* 交集
*
* @param key
* @param otherKey
* @param destKey
* @return
*/
public Long zIntersectAndStore(String key, String otherKey,
String destKey) {
return redisTemplate.opsForZSet().intersectAndStore(key, otherKey,
destKey);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey) {
return ops.intersectAndStore(getKey(), otherKeys, destKey);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey, Aggregate aggregate) {
return ops.intersectAndStore(getKey(), otherKeys, destKey, aggregate);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey, Aggregate aggregate, Weights weights) {
return ops.intersectAndStore(getKey(), otherKeys, destKey, aggregate, weights);
}
代码示例来源:origin: whvcse/EasyWeb
/**
* 交集
*
* @param key
* @param otherKeys
* @param destKey
* @return
*/
public Long zIntersectAndStore(String key, Collection<String> otherKeys,
String destKey) {
return redisTemplate.opsForZSet().intersectAndStore(key, otherKeys,
destKey);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Long intersectAndStore(K otherKey, K destKey) {
return ops.intersectAndStore(getKey(), otherKey, destKey);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey, Aggregate aggregate, Weights weights) {
return ops.intersectAndStore(getKey(), otherKeys, destKey, aggregate, weights);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Long intersectAndStore(K otherKey, K destKey) {
return ops.intersectAndStore(getKey(), otherKey, destKey);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey) {
return ops.intersectAndStore(getKey(), otherKeys, destKey);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Long intersectAndStore(Collection<K> otherKeys, K destKey, Aggregate aggregate) {
return ops.intersectAndStore(getKey(), otherKeys, destKey, aggregate);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
/**
* Intersect sorted sets at {@code key} and {@code otherKeys} and store result in destination {@code destKey}.
*
* @param key must not be {@literal null}.
* @param otherKeys must not be {@literal null}.
* @param destKey must not be {@literal null}.
* @param aggregate must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.1
* @see <a href="http://redis.io/commands/zinterstore">Redis Documentation: ZINTERSTORE</a>
*/
@Nullable
default Long intersectAndStore(K key, Collection<K> otherKeys, K destKey, Aggregate aggregate) {
return intersectAndStore(key, otherKeys, destKey, aggregate, Weights.fromSetCount(1 + otherKeys.size()));
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Intersect sorted sets at {@code key} and {@code otherKeys} and store result in destination {@code destKey}.
*
* @param key must not be {@literal null}.
* @param otherKeys must not be {@literal null}.
* @param destKey must not be {@literal null}.
* @param aggregate must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @since 2.1
* @see <a href="http://redis.io/commands/zinterstore">Redis Documentation: ZINTERSTORE</a>
*/
@Nullable
default Long intersectAndStore(K key, Collection<K> otherKeys, K destKey, Aggregate aggregate) {
return intersectAndStore(key, otherKeys, destKey, aggregate, Weights.fromSetCount(1 + otherKeys.size()));
}
内容来源于网络,如有侵权,请联系作者删除!