Package org.vertx.java.core.json

Examples of org.vertx.java.core.json.JsonArray.toList()


      String sdata = map.get(key);
      if (sdata == null) {
        return null;
      }
      JsonArray data = new JsonArray(sdata);
      return data.toList();
    }

    @Override
    public LocalMultiMapStats getLocalMultiMapStats() {
      throw new UnsupportedOperationException("getLocalMultiMapStats not supported.");
View Full Code Here


        String sdata = map.remove(key);
        if (sdata == null) {
          return null;
        }
        JsonArray data = new JsonArray(sdata);
        return data.toList();
      }
    }

    @Override
    @SuppressWarnings("unchecked")
View Full Code Here

              // No data in redis. Punt to the persistant oplog.
              result =
                  new JsonObject().putNumber(Key.VERSION, null).putArray(Key.OPS, new JsonArray());
            } else {
              // Version of the document is at the end of the results list.
              List<?> list = value.toList();
              Long docVersion = (Long) list.remove(list.size() - 1);
              @SuppressWarnings("unchecked")
              JsonArray ops = processRedisOps(docVersion, (List<String>) list);
              result = new JsonObject().putNumber(Key.VERSION, docVersion).putArray(Key.OPS, ops);
            }
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.