blueflood-core/src/main/java/com/rackspacecloud/blueflood/service/RollupRunnable.java
public static Rollup.Type getRollupComputer(RollupType srcType, Granularity srcGran) {
        switch (srcType) {
            case COUNTER:
                return Rollup.CounterFromCounter;
            case TIMER:
                return Rollup.TimerFromTimer;
            case GAUGE:
                return Rollup.GaugeFromGauge;
            case BF_BASIC:
                return srcGran == Granularity.FULL ? Rollup.BasicFromRaw : Rollup.BasicFromBasic;
            case SET:
                return Rollup.SetFromSet;
            default:
                break;
        }
        throw new IllegalArgumentException(String.format("Cannot compute rollups for %s from %s", srcType.name(), srcGran.shortName()));
    }
public static Rollup.Type getRollupComputer(RollupType srcType, Granularity srcGran) {
        switch (srcType) {
            case COUNTER:
                return Rollup.CounterFromCounter;
            case TIMER:
                return Rollup.TimerFromTimer;
            case GAUGE:
                return Rollup.GaugeFromGauge;
            case BF_BASIC:
                return srcGran == Granularity.FULL ? Rollup.BasicFromRaw : Rollup.BasicFromBasic;
            case SET:
                return Rollup.SetFromSet;
            default:
                break;
        }
        throw new IllegalArgumentException(String.format("Cannot compute rollups for %s from %s", srcType.name(), srcGran.shortName()));
    }
public static Rollup . Type getRollupComputer ( RollupType srcType , Granularity srcGran ) { switch ( srcType ) { case COUNTER : return Rollup . CounterFromCounter ; case TIMER : return Rollup . TimerFromTimer ; case GAUGE : return Rollup . GaugeFromGauge ; case BF_BASIC : return srcGran == Granularity . FULL ? Rollup . BasicFromRaw : Rollup . BasicFromBasic ; case SET : return Rollup . SetFromSet ; default : break ; } throw new IllegalArgumentException ( String . format ( "Cannot compute rollups for %s from %s" , srcType . name ( ) , srcGran . shortName ( ) ) ) ; }
determine which DataType to use for serialization.
determine which DataType to use for serialization .