|
@@ -40,7 +40,7 @@ public class ItemFeatureToRedisLoader {
|
|
public void loadFeatureToRedis(String table, String dt) {
|
|
public void loadFeatureToRedis(String table, String dt) {
|
|
RedisTemplate<String, String> redisTemplate = buildRedisTemplate();
|
|
RedisTemplate<String, String> redisTemplate = buildRedisTemplate();
|
|
String sql = String.format("select * from %s where dt ='%s';", table, dt);
|
|
String sql = String.format("select * from %s where dt ='%s';", table, dt);
|
|
- TunnelRecordReader reader = FeatureConstructor.loadDataFromOSSSession(sql, table, dt);
|
|
|
|
|
|
+ TunnelRecordReader reader = FeatureConstructor.loadDataFromOSSSession(sql);
|
|
Record record;
|
|
Record record;
|
|
Map<String, String> userFeaRedisFormat = new HashMap<String, String>();
|
|
Map<String, String> userFeaRedisFormat = new HashMap<String, String>();
|
|
int count = 0;
|
|
int count = 0;
|
|
@@ -54,7 +54,7 @@ public class ItemFeatureToRedisLoader {
|
|
count++;
|
|
count++;
|
|
} else if (count == 200) {
|
|
} else if (count == 200) {
|
|
redisTemplate.opsForValue().multiSet(userFeaRedisFormat);
|
|
redisTemplate.opsForValue().multiSet(userFeaRedisFormat);
|
|
- System.out.println("------succes add 2000-----");
|
|
|
|
|
|
+ System.out.println("------succes add 200-----");
|
|
userFeaRedisFormat = new HashMap<String, String>();
|
|
userFeaRedisFormat = new HashMap<String, String>();
|
|
count = 0;
|
|
count = 0;
|
|
break;
|
|
break;
|