Examples of reduce()


Examples of com.hazelcast.concurrent.semaphore.Permit.reduce()

    }

    @Override
    public void run() throws Exception {
        Permit permit = getPermit();
        permit.reduce(permitCount);
        response = true;
    }

    @Override
    public int getFactoryId() {
View Full Code Here

Examples of com.hazelcast.concurrent.semaphore.Permit.reduce()

    }

    @Override
    public void run() throws Exception {
        Permit permit = getPermit();
        response = permit.reduce(permitCount);
    }

    @Override
    public boolean shouldBackup() {
        return Boolean.TRUE.equals(response);
View Full Code Here

Examples of com.hazelcast.mapreduce.Reducer.reduce()

            Reducer reducer = supervisor.getReducerByKey(entry.getKey());
            if (reducer != null) {
                Chunk chunkValue = entry.getValue();
                if (chunkValue instanceof List) {
                    for (Object value : (List) chunkValue) {
                        reducer.reduce(value);
                    }
                } else {
                    reducer.reduce(chunkValue);
                }
            }
View Full Code Here

Examples of com.hazelcast.mapreduce.Reducer.reduce()

                if (chunkValue instanceof List) {
                    for (Object value : (List) chunkValue) {
                        reducer.reduce(value);
                    }
                } else {
                    reducer.reduce(chunkValue);
                }
            }
        }
    }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFList.reduce()

      }
    };

    Assert.assertEquals(
        "Result of reduce should be concatentation of local names",
        "abcde", root.reduce(f, ""));
  }

  public void testRemove()
  {
View Full Code Here

Examples of dk.brics.automaton.Automaton.reduce()

                    }
                }
            }
        }
        b.setDeterministic(false);
        b.reduce();
        b.minimize();
        return b;
    }
   
    @Override
View Full Code Here

Examples of ij.plugin.HyperStackReducer.reduce()

      ImagePlus imp2 = new ImagePlus("C"+c+"-"+imp.getTitle(), stack2);
      stack2.setPixels(null, 1);
      imp.setPosition(c, 1, 1);
      imp2.setDimensions(1, slices, frames);
      imp2.setCalibration(imp.getCalibration());
      reducer.reduce(imp2);
      if (imp.isComposite() && ((CompositeImage)imp).getMode()==CompositeImage.GRAYSCALE)
        IJ.run(imp2, "Grays", "");
      if (imp2.getNDimensions()>3)
        imp2.setOpenAsHyperStack(true);
      imp2.show();
View Full Code Here

Examples of io.crate.executor.transport.task.elasticsearch.facet.InternalUpdateFacet.reduce()

        }

        @Override
        public void onResponse(SearchResponse searchResponse) {
            InternalUpdateFacet facet = searchResponse.getFacets().facet(InternalUpdateFacet.class, UpdateFacet.TYPE);
            facet.reduce();
            future.set(new RowCountResult(facet.rowCount()));
        }

        @Override
        public void onFailure(Throwable e) {
View Full Code Here

Examples of nexj.core.persistence.Query.reduce()

      }

      Query query = Query.createRead(metaclass, attributes, where, null, -1, 0, false, Query.SEC_NONE, m_context);

      query.setLimit(-1);
      query.reduce();

      return query.read();
   }

   /**
 
View Full Code Here

Examples of no.uib.cipr.matrix.distributed.Communicator.reduce()

        for (int i = 0; i < t.length; ++i) {
            final int rank = i;
            t[i] = new Thread(new Runnable() {
                public void run() {
                    Communicator comm = coll.createCommunicator(rank);
                    comm.reduce(send[rank], recv, Reductions.sum(), 0);
                }
            });

            t[i].start();
        }
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.