org.springframework.data.redis.core.ZSetOperations.intersectAndStore()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(87)

本文整理了Java中org.springframework.data.redis.core.ZSetOperations.intersectAndStore()方法的一些代码示例,展示了ZSetOperations.intersectAndStore()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZSetOperations.intersectAndStore()方法的具体详情如下:
包路径:org.springframework.data.redis.core.ZSetOperations
类名称:ZSetOperations
方法名:intersectAndStore

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()));
}

相关文章