Examples of inc()


Examples of com.codahale.metrics.Counter.inc()

        Long increment = endpoint.getIncrement();
        Long decrement = endpoint.getDecrement();
        Long finalIncrement = getLongHeader(in, HEADER_COUNTER_INCREMENT, increment);
        Long finalDecrement = getLongHeader(in, HEADER_COUNTER_DECREMENT, decrement);
        if (finalIncrement != null) {
            counter.inc(finalIncrement);
        } else if (finalDecrement != null) {
            counter.dec(finalDecrement);
        } else {
            counter.inc();
        }
View Full Code Here

Examples of com.googlecode.mjorm.query.DaoModifier.inc()

      switch(modiferTree.getType()) {
        case MqlParser.INC:
          field = child(modiferTree, 0).getText();
          value = readVariableLiteral(child(modiferTree, 1), ctx);
          assertType(value, modiferTree, Number.class);
          modifier.inc(field, Number.class.cast(value));
          break;
        case MqlParser.SET:
          field = child(modiferTree, 0).getText();
          value = readVariableLiteral(child(modiferTree, 1), ctx);
          modifier.set(field, value);
View Full Code Here

Examples of com.yammer.metrics.core.Counter.inc()

  @Override
  public void sendWritableRequest(Integer destTaskId,
                                  WritableRequest request) {
    Counter counter = superstepRequestCounters.get(request.getType());
    if (counter != null) {
      counter.inc();
    }
    nettyClient.sendWritableRequest(destTaskId, request);
  }

  @Override
View Full Code Here

Examples of de.jetwick.tw.cmd.StringFreqMap.inc()

            }
            b.field("tag", tagList);

            StringFreqMap langs = new StringFreqMap();
            for (JTweet tw : tweets) {
                langs.inc(tw.getLanguage(), 1);
            }

            List<String> langList = new ArrayList<String>();
            for (Entry<String, Integer> lang : langs.getSorted()) {
                langList.add(lang.getKey());
View Full Code Here

Examples of edu.stanford.nlp.sempre.fbalignment.utils.DoubleContainer.inc()

    MapUtils.putIfAbsent(contextToBinaryCounter, c, new HashMap<Formula,DoubleContainer>());
    Map<Formula,DoubleContainer> formulaMap = contextToBinaryCounter.get(c); //guaranteed to exist

    MapUtils.putIfAbsent(formulaMap, f, new DoubleContainer(0.0));
    DoubleContainer currValue = formulaMap.get(f);
    currValue.inc(value);

  }

  public void normalize() {
    normalized = true;
View Full Code Here

Examples of net.yacy.kelondro.data.word.Word.inc()

                currsentwords.add(word);
                wsp = words.get(word);
                if (wsp != null) {
                    // word already exists
                    wordHandle = wsp.posInText;
                    wsp.inc();
                } else {
                    // word does not yet exist, create new word entry
                    wordHandle = wordHandleCount++;
                    wsp = new Word(wordHandle, wordInSentenceCounter, sentences.size() + 100);
                    wsp.flags = RESULT_FLAGS.clone();
View Full Code Here

Examples of net.yacy.kelondro.index.HandleMap.inc()

        System.gc(); // for resource measurement
        long a = MemoryControl.available();
        HandleMap idx = new HandleMap(12, Base64Order.enhancedCoder, 4, 150000, "test");
        for (int i = 0; i < count; i++) {
            try {
                idx.inc(FlatWordPartitionScheme.positionToHash(r.nextInt(count)));
            } catch (RowSpaceExceededException e) {
                Log.logException(e);
                break;
            }
        }
View Full Code Here

Examples of net.yacy.kelondro.index.HandleMap.inc()

                while (refi.hasNext()) {
                  reference = refi.next();
                  if (reference == null) continue;
                  mh = reference.urlhash();
                  if (mh == null) continue;
                    references.inc(mh);
                }
                count++;
                // write a log
                if (System.currentTimeMillis() - lastlog > 30000) {
                    System.out.println("CELL REFERENCE COLLECTION scanned " + count + " RWI index entries. ");
View Full Code Here

Examples of org.apache.bookkeeper.client.SyncCounter.inc()

   */

  public LedgerHandle openLedger(long lId, DigestType digestType, byte passwd[])
      throws BKException, InterruptedException {
    SyncCounter counter = new SyncCounter();
    counter.inc();

    /*
     * Calls async open ledger
     */
    asyncOpenLedger(lId, digestType, passwd, this, counter);
View Full Code Here

Examples of org.apache.bookkeeper.client.SyncCounter.inc()

   */
  public LedgerHandle createLedger(int ensSize, int qSize,
      DigestType digestType, byte passwd[]) throws KeeperException,
      InterruptedException, IOException, BKException {
    SyncCounter counter = new SyncCounter();
    counter.inc();
    /*
     * Calls asynchronous version
     */
    asyncCreateLedger(ensSize, qSize, digestType, passwd, this, counter);

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.