Examples of hgetAll()


Examples of redis.clients.jedis.Jedis.hgetAll()

    List<Map<String,String>> list = new ArrayList<Map<String,String>>();
    Jedis jedis = redisPool.getResource();
    try {
      List<String> sids = jedis.lrange("meeting:" + meetingId + ":subscriptions", 0 , -1);
      for(int i=0; i<sids.size(); i++){
        Map<String,String> props = jedis.hgetAll("meeting:" + meetingId + ":subscription:" + sids.get(i));
        list.add(props)
      }
       
    } catch (Exception e){
      log.warn("Cannot list subscriptions:" + meetingId, e);
View Full Code Here

Examples of redis.clients.jedis.Jedis.hgetAll()

    public Map<String, Object> hGetAll(String key) throws Exception {
        Jedis jedis = null;
        try {
            jedis = this.jedisPool.getResource();
            Map<byte[], byte[]> hgetAll = jedis
                    .hgetAll(SafeEncoder.encode(key));
            LOG.info("hgetAll key:" + key);

            return decodeMap(hgetAll);
        } catch (Exception e) {
View Full Code Here

Examples of redis.clients.jedis.Jedis.hgetAll()

    _inMemoryStore.clear();
    Jedis jedis = getJedisPool().getResource();
    try {
      // TODO kirk 2012-07-16 -- Give this a FudgeContext.
      MutableFudgeMsg fudgeMsg = OpenGammaFudgeContext.getInstance().newMessage();
      Map<String, String> allFields = jedis.hgetAll(getJedisKey());
      s_logger.debug("Updating {} from Jedis: {}", getJedisKey(), allFields);
      for (Map.Entry<String, String> fieldEntry : allFields.entrySet()) {
        Object parsedRedisObject = fromRedisTextValue(fieldEntry.getValue());
        fudgeMsg.add(fieldEntry.getKey(), parsedRedisObject);
      }
View Full Code Here

Examples of redis.clients.jedis.Jedis.hgetAll()

 
  public Map<String, UniqueId> getAllPortfolioNames() {
    Map<String, UniqueId> result = new TreeMap<String, UniqueId>();
    Jedis jedis = getJedisPool().getResource();
    try {
      Map<String, String> portfolioNames = jedis.hgetAll(_portfoliosHashKeyName);
      for (Map.Entry<String, String> entry : portfolioNames.entrySet()) {
        result.put(entry.getKey(), UniqueId.parse(entry.getValue()));
      }

      getJedisPool().returnResource(jedis);
View Full Code Here

Examples of redis.clients.jedis.Jedis.hgetAll()

          if (uniqueIdText == null) {
            continue;
          }
          UniqueId uniqueId = UniqueId.parse(uniqueIdText);
          String uniqueIdKey = toRedisKey(uniqueId);
          Map<String, String> hash = jedis.hgetAll(uniqueIdKey);
          if (holidayType.name().equals(hash.get(TYPE))) {
            foundHoliday = true;
            String daysKey = uniqueIdKey + "-DAYS";
            if (jedis.zscore(daysKey, dateToCheck.toString()) != null) {
              result = true;
View Full Code Here

Examples of redis.clients.jedis.Jedis.hgetAll()

            try {
                info.setTotal(Integer.parseInt(stotal));
            } catch (NumberFormatException e) {
                info.setTotal(0);
            }
            final Map<String, String> facets = shard.hgetAll(idx.cat(Seek.INFO)
                    .key());
            Pipeline p = shard.pipelined();
            for (String facetField : facets.keySet()) {
                p.hgetAll(idx.cat(Seek.INFO).cat(facetField).key());
            }
View Full Code Here

Examples of redis.clients.jedis.Jedis.hgetAll()

        final Nest idx = base.fork();
        ShardedJedis jedis = getPool().getResource();
        try {
            final Jedis shard = jedis.getShard(idx.key());
            shard.del(idx.cat(Seek.INFO).cat(Seek.TOTAL).key());
            final Map<String, String> facets = shard.hgetAll(idx.cat(Seek.INFO)
                    .key());
            Pipeline p = shard.pipelined();
            for (String facetField : facets.keySet()) {
                p.del(idx.cat(Seek.INFO).cat(facetField).key());
            }
View Full Code Here

Examples of redis.clients.jedis.Pipeline.hgetAll()

  Pipeline pipeline = jedis.pipelined();
  pipeline.multi();

  pipeline.get(key1);
  pipeline.hgetAll(key2);
  pipeline.hgetAll(key3);
  pipeline.get(key4);

  Response<List<Object>> response = pipeline.exec();
  pipeline.sync();
View Full Code Here

Examples of redis.clients.jedis.Pipeline.hgetAll()

  Pipeline pipeline = jedis.pipelined();
  pipeline.multi();

  pipeline.get(key1);
  pipeline.hgetAll(key2);
  pipeline.hgetAll(key3);
  pipeline.get(key4);

  Response<List<Object>> response = pipeline.exec();
  pipeline.sync();
View Full Code Here

Examples of redis.clients.jedis.Pipeline.hgetAll()

  Response<Boolean> blist = p.exists("list");
  Response<Double> zincrby = p.zincrby("zset", 1, "foo");
  Response<Long> zcard = p.zcard("zset");
  p.lpush("list", "bar");
  Response<List<String>> lrange = p.lrange("list", 0, -1);
  Response<Map<String, String>> hgetAll = p.hgetAll("hash");
  p.sadd("set", "foo");
  Response<Set<String>> smembers = p.smembers("set");
  Response<Set<Tuple>> zrangeWithScores = p.zrangeWithScores("zset", 0,
    -1);
  Response<String> getrange = p.getrange("setrange", 1, 3);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.