当前位置: 首页>>代码示例>>Java>>正文


Java SortingParams.by方法代码示例

本文整理汇总了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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:8,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:11,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:14,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:8,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:15,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:8,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:11,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:14,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:9,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:15,代码来源:DefaultRedis.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:8,代码来源:DefaultRedisTransaction.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:11,代码来源:DefaultRedisTransaction.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:14,代码来源:DefaultRedisTransaction.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:8,代码来源:DefaultRedisTransaction.java

示例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);
}
 
开发者ID:mindwind,项目名称:craft-atom,代码行数:15,代码来源:DefaultRedisTransaction.java


注:本文中的redis.clients.jedis.SortingParams.by方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。