blueflood-core/src/main/java/com/rackspacecloud/blueflood/types/BaseRollup.java
protected void computeFromSimpleMetrics(Points<SimpleNumber> input) throws IOException {
        if (input == null) {
            throw new IOException("Null input to create rollup from");
        }

        if (input.isEmpty()) {
            return;
        }

        Map<Long, Points.Point<SimpleNumber>> points = input.getPoints();
        for (Map.Entry<Long, Points.Point<SimpleNumber>> item : points.entrySet()) {
            this.count += 1;
            SimpleNumber numericMetric = item.getValue().getData();
            average.handleFullResMetric(numericMetric.getValue());
            variance.handleFullResMetric(numericMetric.getValue());
            minValue.handleFullResMetric(numericMetric.getValue());
            maxValue.handleFullResMetric(numericMetric.getValue());
        }
    }
protected void computeFromSimpleMetrics(Points<SimpleNumber> input) throws IOException {
        if (input == null) {
            throw new IOException("Null input to create rollup from");
        }

        if (input.isEmpty()) {
            return;
        }

        Map<Long, Points.Point<SimpleNumber>> points = input.getPoints();
        for (Map.Entry<Long, Points.Point<SimpleNumber>> item : points.entrySet()) {
            this.count += 1;
            SimpleNumber numericMetric = item.getValue().getData();
            average.handleFullResMetric(numericMetric.getValue());
            variance.handleFullResMetric(numericMetric.getValue());
            minValue.handleFullResMetric(numericMetric.getValue());
            maxValue.handleFullResMetric(numericMetric.getValue());
        }
    }
protected void computeFromSimpleMetrics ( Points < SimpleNumber > input ) throws IOException { if ( input == null ) { throw new IOException ( "Null input to create rollup from" ) ; } if ( input . isEmpty ( ) ) { return ; } Map < Long , Points . Point < SimpleNumber > > points = input . getPoints ( ) ; for ( Map . Entry < Long , Points . Point < SimpleNumber > > item : points . entrySet ( ) ) { this . count += 1 ; SimpleNumber numericMetric = item . getValue ( ) . getData ( ) ; average . handleFullResMetric ( numericMetric . getValue ( ) ) ; variance . handleFullResMetric ( numericMetric . getValue ( ) ) ; minValue . handleFullResMetric ( numericMetric . getValue ( ) ) ; maxValue . handleFullResMetric ( numericMetric . getValue ( ) ) ; } }
merge simple numbers with this rollup.
merge simple numbers with this rollup .