Examples of result()


Examples of io.crate.executor.Task.result()

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

Examples of io.crate.operation.merge.MergeOperation.result()

                clusterService, settings, transportActionProvider, symbolVisitor, mergeNode);
        final AtomicInteger countdown = new AtomicInteger(upstreamResults.size());
        final UUID operationId = UUID.randomUUID();
        statsTables.operationStarted(operationId, mergeNode.contextId(), mergeNode.id());

        Futures.addCallback(mergeOperation.result(), new FutureCallback<Object[][]>() {
            @Override
            public void onSuccess(@Nullable Object[][] rows) {
                statsTables.operationFinished(operationId, null);
                result.set(new QueryResult(rows));
            }
View Full Code Here

Examples of io.crate.operation.projectors.CollectingProjector.result()

    @Test
    public void testCollectFromS3Uri() throws Throwable {
        // this test just verifies the s3 schema detection and bucketName / prefix extraction from the uri.
        // real s3 interaction is mocked completely.
        CollectingProjector projector = getObjects("s3://fakebucket/foo");
        projector.result().get();
    }

    @Test
    public void testNoErrorIfNoSuchFile() throws Throwable {
        // no error, -> don't want to fail just because one node doesn't have a file
View Full Code Here

Examples of io.crate.operation.projectors.FlatProjectorChain.result()

        } catch (CollectionTerminatedException ex) {
            // ignore
        } catch (Exception e) {
            return Futures.immediateFailedFuture(e);
        }
        return projectorChain.result();
    }

    private CrateCollector getCollector(CollectNode collectNode,
                                        FlatProjectorChain projectorChain) throws Exception {
        if (collectNode instanceof FileUriCollectNode) {
View Full Code Here

Examples of it.polito.appeal.traci.protocol.StatusResponse.result()

    for (int i=0; i<commands.size(); i++) {
      Command cmd = commands.get(i);
      ResponseContainer responsePair = responses.get(i);
      StatusResponse statusResp = responsePair.getStatus();
      verify("command and status IDs match", cmd.id(), statusResp.id());
      if (statusResp.result() != Constants.RTYPE_OK)
        throw new TraCIException("SUMO error for command "
            + statusResp.id() + ": " + statusResp.description());
    }
   
    return respMsg;
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.GanttDialogPerson.result()

                .newHumanResource();
        people.setRole(getRoleManager().getDefaultRole());
        GanttDialogPerson dp = new GanttDialogPerson(getUIFacade(), getLanguage(),
                people);
        dp.setVisible(true);
        if (dp.result()) {

            getUndoManager().undoableEdit("new Resource", new Runnable() {
                public void run() {
                    getHumanResourceManager().add(people);
                }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.GanttDialogPerson.result()

  public void actionPerformed(ActionEvent arg0) {
        if (getSelectedResource()!=null) {
            GanttDialogPerson dp = new GanttDialogPerson(getUIFacade(), GanttLanguage.getInstance(), getSelectedResource());
            dp.setVisible(true);
            if (dp.result()) {
                getProject().setModified(true);
            }           
        }
  }
View Full Code Here

Examples of net.yacy.search.query.SearchEvent.result()

            // set statistic details of search result and find best result index set
            joincount = theSearch.getRankingResult().getLocalIndexCount() - theSearch.getRankingResult().getMissCount() - theSearch.getRankingResult().getSortOutCount();
            prop.put("joincount", Integer.toString(joincount));
            if (joincount != 0) {
                accu = theSearch.result().completeResults(maxtime);
            }
            if (joincount <= 0 || abstracts.length() == 0) {
                prop.put("indexcount", "");
            } else {
                // attach information about index abstracts
View Full Code Here

Examples of org.apache.pig.tools.pigstats.PigStats.result()

                    "-Dtfile.io.chunk.size=100", "tfile2.pig" };
            PigStats stats2 = PigRunner.run(args2, null);

            assertTrue(stats2.isSuccessful());
           
            OutputStats os = stats2.result("B");
            Iterator<Tuple> iter = os.iterator();
            int count = 0;
            String expected = "(1,this is a test for compression of temp files)";
            while (iter.hasNext()) {
                count++;
View Full Code Here

Examples of org.apache.sling.event.jobs.consumer.JobExecutionContext.result()

                                    if ( oldConsumer.equals(info) && oldConsumer.executor != null ) {
                                        // notify listener
                                        for(final Object[] listenerObjects : this.listenerMap.values()) {
                                            if ( listenerObjects[0] == oldConsumer.executor ) {
                                                final JobExecutionContext context = (JobExecutionContext)listenerObjects[1];
                                                context.asyncProcessingFinished(context.result().failed());
                                                break;
                                            }
                                        }
                                    }
                                }
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.