Examples of tasks()


Examples of io.crate.executor.Job.tasks()

        Plan plan = new Plan();
        plan.add(updateNode);
        plan.expectsAffectedRows(true);

        Job job = executor.newJob(plan);
        assertThat(job.tasks().get(0), instanceOf(ESUpdateByQueryTask.class));
        List<ListenableFuture<TaskResult>> result = executor.execute(job);
        assertThat(result.get(0).get().errorMessage(), is(nullValue()));
        assertThat(result.get(0).get().rowCount(), is(1L));

        List<Symbol> outputs = Arrays.<Symbol>asList(id_ref, name_ref, version_ref);
View Full Code Here

Examples of io.crate.executor.Job.tasks()

        Plan plan = new Plan();
        plan.add(updateNode);
        plan.expectsAffectedRows(true);

        Job job = executor.newJob(plan);
        assertThat(job.tasks().get(0), instanceOf(ESUpdateByQueryTask.class));
        List<ListenableFuture<TaskResult>> result = executor.execute(job);
        assertThat(result.get(0).get().rowCount(), is(2L));

        refresh();
View Full Code Here

Examples of org.syrup.Workflow.tasks()

            // PTasks.
            if (r instanceof Workflow)
            {
                Workflow w = (Workflow) r;

                Task[] tt = w.tasks();
                Link[] ll = w.links();

                Hashtable tkeyMap = new Hashtable();

                // For each newly created PTask there is an associated key.
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.