io.quarkus.redis.datasource.sortedset.ZRangeArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-redis-client Show documentation
Show all versions of quarkus-redis-client Show documentation
Connect to Redis in either imperative or reactive style
package io.quarkus.redis.datasource.sortedset;
import java.util.ArrayList;
import java.util.List;
import io.quarkus.redis.datasource.RedisCommandExtraArguments;
public class ZRangeArgs implements RedisCommandExtraArguments {
private boolean rev;
private long offset = -1;
private int count;
/**
* The REV argument reverses the ordering, so elements are ordered from highest to lowest score, and score ties are
* resolved by reverse lexicographical ordering.
*
* @return the current {@code ZRangeArgs}
**/
public ZRangeArgs rev() {
this.rev = true;
return this;
}
/**
* The LIMIT argument can be used to obtain a sub-range from the matching elements.
* A negative @{code count} returns all elements from the {@code offset}.
*
* @param offset the offset value
* @param count the count value
* @return the current {@code ZRangeArgs}
**/
public ZRangeArgs limit(long offset, int count) {
this.offset = offset;
this.count = count;
return this;
}
@Override
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy