Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.DocumentList.checkpoint()


    trav.setBatchHint(halfSize);
    DocumentList docList = trav.startTraversal();
    testUserProfiles(docList, names);
    assertEquals(EXPECTED_NAMES.subList(0, halfSize), names);

    String checkpoint = docList.checkpoint();
    JSONObject jo = new
        JSONObject(checkpoint.substring(CHECKPOINT_PREFIX.length()));
    assertTrue(jo.has("userProfileChangeToken"));
    assertTrue(jo.has("userProfileLastFullSync"));
    assertTrue(jo.has("userProfileNextIndex"));
View Full Code Here


    // which includes 66 with its original ModifyDate, since that was
    // in the candidates.
    // TODO(jlacey): We could query these values as the max(ModifyDate)
    // from DTree when it matches WebNodes, and from DAuditNew.
    assertEquals("2002-02-02 00:00:00,66,2013-04-24 08:00:00.000,10042",
        list.checkpoint());
  }

  public void testStartTraversalWithDTreeAncestors()
      throws SQLException, RepositoryException {
    testStartTraversal(true);
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.