congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RedisZSetCommands$Limit
Code IndexAdd Tabnine 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
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> 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[]> 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[]> 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<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, 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());
}
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());
}
org.springframework.data.redis.connectionRedisZSetCommands$Limit

Most used methods

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

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Permission (java.security)
    Legacy security code; do not use.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Option (scala)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now