Codota Logo
RedisZSetCommands$Limit
Code IndexAdd Codota to your IDE (free)

How to use
RedisZSetCommands$Limit
in
org.springframework.data.redis.connection

Best Java code snippets using org.springframework.data.redis.connection.RedisZSetCommands$Limit (Showing top 20 results out of 315)

Refine searchRefine arrow

  • Assert
  • RedisZSetCommands.Range
  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: redisson/redisson

@Override
public Set<byte[]> zRangeByScore(byte[] key, double min, double max, long offset, long count) {
  return zRangeByScore(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<byte[]> zRangeByLex(byte[] key, Range range, Limit limit) {
  String min = value(range.getMin().getValue(), range.getMin().isIncluding(), "-");
  String max = value(range.getMax().getValue(), range.getMax().isIncluding(), "+");
  
  List<Object> args = new ArrayList<Object>();
  args.add(key);
  args.add(min);
  args.add(max);
  
  if (limit != null) {
    args.add("LIMIT");
    args.add(limit.getOffset());
    args.add(limit.getCount());
  }
  
  return read(key, ByteArrayCodec.INSTANCE, ZRANGEBYLEX, args.toArray());
}
origin: spring-projects/spring-data-redis

/**
 * Creates a new {@link ZRangeByLexCommand} given a {@link Range} of {@link String} to retrieve elements
 * lexicographical ordering.
 *
 * @param range must not be {@literal null}.
 * @return a new {@link ZRangeByLexCommand} for {@link Tuple}.
 */
public static ZRangeByLexCommand stringsWithin(Range<String> range) {
  Assert.notNull(range, "Range must not be null!");
  return new ZRangeByLexCommand(null, range, Direction.ASC, Limit.unlimited());
}
origin: redisson/redisson

@Override
public Set<byte[]> zRevRangeByScore(byte[] key, double min, double max, long offset, long count) {
  return zRevRangeByScore(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<byte[]> zRevRangeByScore(byte[] key, double min, double max, long offset, long count) {
  return zRevRangeByScore(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<Tuple> zRevRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) {
  return zRevRangeByScoreWithScores(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<byte[]> zRevRangeByScore(byte[] key, double min, double max, long offset, long count) {
  return zRevRangeByScore(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<Tuple> zRevRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) {
  return zRevRangeByScoreWithScores(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<Tuple> zRevRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) {
  return zRevRangeByScoreWithScores(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<Tuple> zRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) {
  return zRangeByScoreWithScores(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}

origin: redisson/redisson

@Override
public Set<byte[]> zRangeByScore(byte[] key, double min, double max, long offset, long count) {
  return zRangeByScore(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<Tuple> zRevRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) {
  return zRevRangeByScoreWithScores(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<Tuple> zRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) {
  return zRangeByScoreWithScores(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}

origin: redisson/redisson

@Override
public Set<byte[]> zRangeByScore(byte[] key, double min, double max, long offset, long count) {
  return zRangeByScore(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<Tuple> zRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) {
  return zRangeByScoreWithScores(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}

origin: redisson/redisson

@Override
public Set<byte[]> zRangeByScore(byte[] key, double min, double max, long offset, long count) {
  return zRangeByScore(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<byte[]> zRevRangeByScore(byte[] key, double min, double max, long offset, long count) {
  return zRevRangeByScore(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}
origin: redisson/redisson

@Override
public Set<Tuple> zRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) {
  return zRangeByScoreWithScores(key, new Range().gte(min).lte(max),
      new Limit().offset(Long.valueOf(offset).intValue()).count(Long.valueOf(count).intValue()));
}

origin: redisson/redisson

@Override
public Set<byte[]> zRangeByScore(byte[] key, Range range, Limit limit) {
  String min = value(range.getMin().getValue(), range.getMin().isIncluding(), "-inf");
  String max = value(range.getMax().getValue(), range.getMax().isIncluding(), "+inf");
  
  List<Object> args = new ArrayList<Object>();
  args.add(key);
  args.add(min);
  args.add(max);
  
  if (limit != null) {
    args.add("LIMIT");
    args.add(limit.getOffset());
    args.add(limit.getCount());
  }
  
  return read(key, ByteArrayCodec.INSTANCE, RedisCommands.ZRANGEBYSCORE, args.toArray());
}
origin: redisson/redisson

@Override
public Set<byte[]> zRevRangeByScore(byte[] key, Range range, Limit limit) {
  String min = value(range.getMin().getValue(), range.getMin().isIncluding(), "-inf");
  String max = value(range.getMax().getValue(), range.getMax().isIncluding(), "+inf");
  
  List<Object> args = new ArrayList<Object>();
  args.add(key);
  args.add(max);
  args.add(min);
  
  if (limit != null) {
    args.add("LIMIT");
    args.add(limit.getOffset());
    args.add(limit.getCount());
  }
  
  return read(key, ByteArrayCodec.INSTANCE, ZREVRANGEBYSCORE, args.toArray());
}
org.springframework.data.redis.connectionRedisZSetCommands$Limit

Most used methods

  • <init>
  • count
  • getCount
  • getOffset
  • offset
  • isUnlimited
  • unlimited

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now