Examples of scanTableWithStartId()


Examples of com.pardot.rhombus.ObjectMapper.scanTableWithStartId()

    // Get back the first 10
    List<Map<String, Object>> first10 = om.scanTableWithStartToken(objectType, Long.MIN_VALUE, Long.MAX_VALUE, 10l);
    assertEquals(10, first10.size());

    // Get back the rest, starting with the last id in the first set
    List<Map<String, Object>> next10 = om.scanTableWithStartId(objectType, String.valueOf(first10.get(first10.size()-1).get("id")), Long.MAX_VALUE, 100l);
    assertEquals(10, next10.size());
    for(Map<String, Object> value : next10) {
      assertFalse(valuesContainsId(first10, value.get("id")));
    }
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.