Package eu.stratosphere.api.common.accumulators

Examples of eu.stratosphere.api.common.accumulators.DoubleCounter


      IntCounter simpleCounter2 = getRuntimeContext().getIntCounter("simple-counter");
      Assert.assertEquals(simpleCounter.getLocalValue(), simpleCounter2.getLocalValue());

      // Should fail if we request it with different type
      try {
        @SuppressWarnings("unused")
        DoubleCounter simpleCounter3 = getRuntimeContext().getDoubleCounter("simple-counter");
        // DoubleSumAggregator longAggregator3 = (DoubleSumAggregator)
        // getRuntimeContext().getAggregator("custom",
        // DoubleSumAggregator.class);
        Assert.fail("Should not be able to obtain previously created counter with different type");
View Full Code Here

TOP

Related Classes of eu.stratosphere.api.common.accumulators.DoubleCounter

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.