Examples of checkPoint()


Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.checkpoint()

     * {@link CoreOperatorFactory#checkpoint(Source)}のテスト。
     */
    @Test
    public void checkpoint() {
        CoreOperatorFactory f = new CoreOperatorFactory();
        Checkpoint<String> cp = f.checkpoint(in);
        out.add(cp);

        Graph<String> graph = toGraph();
        assertThat(
                graph.getConnected("in"),
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.checkpoint()

                UpdateFlowFactory uf = new UpdateFlowFactory();
                ExOperatorFactory f = new ExOperatorFactory();
                CoreOperatorFactory c = new CoreOperatorFactory();
                Confluent<Ex1> in = c.confluent(pIn1, pIn2);
                Simple simple = uf.simple(in);
                Checkpoint<Ex1> cp = c.checkpoint(simple.out);
                Cogroup cog = f.cogroup(cp, c.empty(Ex2.class));
                c.stop(cog.r2);
                pOut1.add(cog.r1);
            }
        });
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.checkpoint()

    @Override
    protected void describe() {
        CoreOperatorFactory op = new CoreOperatorFactory();
        Restructure<Dummy> first = op.restructure(in, Dummy.class);
        Restructure<Dummy> second = op.restructure(op.checkpoint(first), Dummy.class);
        Restructure<Dummy> last = op.restructure(op.checkpoint(second), Dummy.class);
        out.add(last);
    }
}
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.checkpoint()

    @Override
    protected void describe() {
        CoreOperatorFactory op = new CoreOperatorFactory();
        Restructure<Dummy> first = op.restructure(in, Dummy.class);
        Restructure<Dummy> second = op.restructure(op.checkpoint(first), Dummy.class);
        Restructure<Dummy> last = op.restructure(op.checkpoint(second), Dummy.class);
        out.add(last);
    }
}
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.checkpoint()

    @Override
    protected void describe() {
        ExOperatorFactory f = new ExOperatorFactory();
        CoreOperatorFactory core = new CoreOperatorFactory();
        Update update0 = f.update(in1, 1);
        Update update1 = f.update(core.checkpoint(update0.out), 2);
        Cogroup cog1 = f.cogroup(update1.out, core.empty(Ex2.class));
        core.stop(cog1.r2);
        Cogroup cog2 = f.cogroup(update1.out, core.empty(Ex2.class));
        core.stop(cog2.r2);
        out1.add(cog1.r1);
View Full Code Here

Examples of com.google.enterprise.connector.otex.LivelinkDocumentList.checkpoint()

    System.out.println("============ startTraversal ============");
    LivelinkDocumentList docList = (LivelinkDocumentList) mgr.startTraversal();
    while (docList != null) {
      processResultSet(docList);
      String checkpoint = docList.checkpoint();
      System.out.println("============ resumeTraversal ============");
      docList = (LivelinkDocumentList) mgr.resumeTraversal(checkpoint);
    }
  }
View Full Code Here

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

    while (docList != null) {
      Document doc;
      while (null != (doc = docList.nextDocument())) {
        documents.add((NotesConnectorDocument) doc);
      }
      String checkpoint = docList.checkpoint();
      // Resume traversal.
      tm.setBatchHint(20);
      docList = tm.resumeTraversal(checkpoint);
    }
    return documents;
View Full Code Here

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

      String docId = doc.findProperty(SpiConstants.PROPNAME_DOCID)
          .nextValue().toString();
      assertNotNull("Missing doc id", docId);
      docIdList.add(docId);
    }
    checkpoint = docList.checkpoint();
    assertNotNull("Checkpoint was null", checkpoint);
    assertTrue("No docs found", docIdList.size() > 0);

    // Resume traversal.
    tm.setBatchHint(5);
View Full Code Here

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

            nextValue().toString();
        if (!docIdListFirstTraversal.add(docId)) {
          duplicatesFirstTraversal.add(docId);
        }
      }
      String checkpoint = docList.checkpoint();
      assertNotNull("Checkpoint was null", checkpoint);

      // Resume traversal.
      tm.setBatchHint(20);
      docList = tm.resumeTraversal(checkpoint);
View Full Code Here

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

            nextValue().toString();
        if (!docIdListSecondTraversal.add(docId)) {
          duplicatesSecondTraversal.add(docId);
        }
      }
      String checkpoint = docList.checkpoint();
      assertNotNull("Checkpoint was null", checkpoint);

      // Resume traversal.
      tm.setBatchHint(20);
      docList = tm.resumeTraversal(checkpoint);
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.