本文整理汇总了Java中redis.clients.jedis.SortingParams.by方法的典型用法代码示例。如果您正苦于以下问题:Java SortingParams.by方法的具体用法?Java SortingParams.by怎么用?Java SortingParams.by使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类redis.clients.jedis.SortingParams
的用法示例。
在下文中一共展示了SortingParams.by方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sort_by_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private List<String> sort_by_get(Jedis j, String key, String bypattern, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
return j.sort(key, sp);
}
示例2: sort_by_desc_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private List<String> sort_by_desc_get(Jedis j, String key, String bypattern, boolean desc, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
if (desc) {
sp.desc();
}
return j.sort(key, sp);
}
示例3: sort_by_alpha_desc_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private List<String> sort_by_alpha_desc_get(Jedis j, String key, String bypattern, boolean alpha, boolean desc, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
if (alpha) {
sp.alpha();
}
if (desc) {
sp.desc();
}
return j.sort(key, sp);
}
示例4: sort_by_offset_count_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private List<String> sort_by_offset_count_get(Jedis j, String key, String bypattern, int offset, int count, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
sp.limit(offset, count);
return j.sort(key, sp);
}
示例5: sort_by_offset_count_alpha_desc_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private List<String> sort_by_offset_count_alpha_desc_get(Jedis j, String key, String bypattern, int offset, int count, boolean alpha, boolean desc, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
sp.limit(offset, count);
if (alpha) {
sp.alpha();
}
if (desc) {
sp.desc();
}
return j.sort(key, sp);
}
示例6: sort_by_destination_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private Long sort_by_destination_get(Jedis j, String key, String bypattern, String destination, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
return j.sort(key, sp, destination);
}
示例7: sort_by_desc_destination_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private Long sort_by_desc_destination_get(Jedis j, String key, String bypattern, boolean desc, String destination, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
if (desc) {
sp.desc();
}
return j.sort(key, sp, destination);
}
示例8: sort_by_alpha_desc_destination_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private Long sort_by_alpha_desc_destination_get(Jedis j, String key, String bypattern, boolean alpha, boolean desc, String destination, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
if (alpha) {
sp.alpha();
}
if (desc) {
sp.desc();
}
return j.sort(key, sp, destination);
}
示例9: sort_by_offset_count_destination_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private Long sort_by_offset_count_destination_get(Jedis j, String key, String bypattern, int offset, int count, String destination, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
sp.limit(offset, count);
return j.sort(key, sp, destination);
}
示例10: sort_by_offset_count_alpha_desc_destination_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private Long sort_by_offset_count_alpha_desc_destination_get(Jedis j, String key, String bypattern, int offset, int count, boolean alpha, boolean desc, String destination, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
sp.limit(offset, count);
if (alpha) {
sp.alpha();
}
if (desc) {
sp.desc();
}
return j.sort(key, sp, destination);
}
示例11: sort_by_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private void sort_by_get(String key, String bypattern, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
t.sort(key, sp);
}
示例12: sort_by_desc_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private void sort_by_desc_get(String key, String bypattern, boolean desc, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
if (desc) {
sp.desc();
}
t.sort(key, sp);
}
示例13: sort_by_alpha_desc_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private void sort_by_alpha_desc_get(String key, String bypattern, boolean alpha, boolean desc, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
if (alpha) {
sp.alpha();
}
if (desc) {
sp.desc();
}
t.sort(key, sp);
}
示例14: sort_by_offset_count_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private void sort_by_offset_count_get(String key, String bypattern, int offset, int count, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
sp.limit(offset, count);
t.sort(key, sp);
}
示例15: sort_by_offset_count_alpha_desc_get
import redis.clients.jedis.SortingParams; //导入方法依赖的package包/类
private void sort_by_offset_count_alpha_desc_get(String key, String bypattern, int offset, int count, boolean alpha, boolean desc, String... getpatterns) {
SortingParams sp = new SortingParams();
sp.by(bypattern);
sp.get(getpatterns);
sp.limit(offset, count);
if (alpha) {
sp.alpha();
}
if (desc) {
sp.desc();
}
t.sort(key, sp);
}