Package io.crate.executor

Examples of io.crate.executor.Task


    @Override
    @SuppressWarnings("unchecked")
    public List<ListenableFuture<TaskResult>> execute(Job job) {
        assert job.tasks().size() > 0;

        Task lastTask = null;
        for (Task task : job.tasks()) {
            // chaining tasks
            if (lastTask != null) {
                task.upstreamResult(lastTask.result());
            }
            task.start();
            lastTask = task;
        }

        assert lastTask != null;
        return (List<ListenableFuture<TaskResult>>)lastTask.result();
    }
View Full Code Here

TOP

Related Classes of io.crate.executor.Task

Copyright © 2018 www.massapicom. 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.