Examples of decr()


Examples of com.google.code.hs4j.ModifyStatement.decr()

      assertEquals(107, rs.getInt("age"));
    }
    // decrement 100
    sum = 100;
    for (i = 0; i < sum; i++) {
      result=stmt.decr(keys, FindOperator.EQ);
      assertTrue(result == 1);
    }
    rs = session.find(keys);
    while(rs.next()){
      System.out.println("decrement age is: "+rs.getInt("age"));
View Full Code Here

Examples of dovetaildb.util.MutableInt.decr()

        int curVal = val.get();
        if (curVal == -1) {
          val.set(0);
          val.notify();
        } else {
          val.decr();
          if (curVal == 1)
          val.notify();
        }
      }
    }
View Full Code Here

Examples of net.spy.memcached.MemcachedClient.decr()

            }
            for (int i = 100; i < 120; i++) {
                assertEquals(-1, client.incr(String.valueOf(i), i));
            }
            for (int i = 0; i < 100; i++) {
                assertEquals(i, client.decr(String.valueOf(i), i));
            }
            for (int i = 100; i < 130; i++) {
                assertEquals(-1, client.decr(String.valueOf(i), i));
            }
            for (int i = 0; i < 100; i++) {
View Full Code Here

Examples of net.spy.memcached.MemcachedClient.decr()

            }
            for (int i = 0; i < 100; i++) {
                assertEquals(i, client.decr(String.valueOf(i), i));
            }
            for (int i = 100; i < 130; i++) {
                assertEquals(-1, client.decr(String.valueOf(i), i));
            }
            for (int i = 0; i < 100; i++) {
                assertEquals(i, client.get(String.valueOf(i)));
            }
            final Map<String, String> stats = client.getStats().get(instance.getCluster().getLocalMember().getInetSocketAddress());
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong.decr()

   * @param delta the ammount to subtract from a gauge value.
   */
  public void decGauge(String gaugeName, long delta) {
    MetricMutableGaugeLong gaugeInt = metricsRegistry.getLongGauge(gaugeName,
        0l);
    gaugeInt.decr(delta);
  }

  /**
   * Increment a named counter by some value.
   *
 
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MutableGaugeLong.decr()

   * @param gaugeName The name of the gauge.
   * @param delta     the ammount to subtract from a gauge value.
   */
  public void decGauge(String gaugeName, long delta) {
    MutableGaugeLong gaugeInt = metricsRegistry.getLongGauge(gaugeName, 0l);
    gaugeInt.decr(delta);
  }

  /**
   * Increment a named counter by some value.
   *
 
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MutableGaugeLong.decr()

   * @param gaugeName The name of the gauge.
   * @param delta     the ammount to subtract from a gauge value.
   */
  public void decGauge(String gaugeName, long delta) {
    MutableGaugeLong gaugeInt = metricsRegistry.getLongGauge(gaugeName, 0l);
    gaugeInt.decr(delta);
  }

  /**
   * Increment a named counter by some value.
   *
 
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MutableGaugeLong.decr()

   * @param gaugeName The name of the gauge.
   * @param delta     the ammount to subtract from a gauge value.
   */
  public void decGauge(String gaugeName, long delta) {
    MutableGaugeLong gaugeInt = metricsRegistry.getLongGauge(gaugeName, 0l);
    gaugeInt.decr(delta);
  }

  /**
   * Increment a named counter by some value.
   *
 
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MutableGaugeLong.decr()

   * @param gaugeName The name of the gauge.
   * @param delta     the ammount to subtract from a gauge value.
   */
  public void decGauge(String gaugeName, long delta) {
    MutableGaugeLong gaugeInt = metricsRegistry.getLongGauge(gaugeName, 0l);
    gaugeInt.decr(delta);
  }

  /**
   * Increment a named counter by some value.
   *
 
View Full Code Here

Examples of redis.clients.jedis.Pipeline.decr()

            List<byte[]> indexes = (List<byte[]>) data.get(0);
            List<byte[]> fields = (List<byte[]>) data.get(1);
            List<byte[]> tags = (List<byte[]>) data.get(2);

            p = shard.pipelined();
            p.decr(ndx.cat(Seek.INFO).cat(Seek.TOTAL).key());
            for (byte[] index : indexes) {
                p.zrem(SafeEncoder.encode(index), id);
            }
            p.del(idx.key());
            for (byte[] tag : tags) {
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.