Examples of HourDayMonthBucketer


Examples of com.urbanairship.datacube.bucketers.HourDayMonthBucketer

     * To do a basic test of DbHarness implementation, you can instantiate a cube and pass it
     * to this function. It will do some gets and sets and throw junit assertions if anything
     * isn't behaving correctly.
     */
    public static void basicTest(DbHarness<LongOp> dbHarness) throws Exception {
        HourDayMonthBucketer hourDayMonthBucketer = new HourDayMonthBucketer();

        Dimension<DateTime> time = new Dimension<DateTime>("time", hourDayMonthBucketer, false, 8);
        Dimension<String> zipcode = new Dimension<String>("zipcode", new StringToBytesBucketer(),
                true, 5);
       
View Full Code Here

Examples of com.urbanairship.datacube.bucketers.HourDayMonthBucketer

        Assert.assertTrue(todayCount.isPresent());
        Assert.assertEquals(15L, todayCount.get().getLong());
    }

    public static void multiGetTest(DbHarness<LongOp> dbHarness) throws Exception {
        HourDayMonthBucketer hourDayMonthBucketer = new HourDayMonthBucketer();

        Dimension<DateTime> time = new Dimension<DateTime>("time", hourDayMonthBucketer, false, 8);
        Dimension<String> zipcode = new Dimension<String>("zipcode", new StringToBytesBucketer(),
                true, 5);
View Full Code Here

Examples of com.urbanairship.datacube.bucketers.HourDayMonthBucketer

        getTestUtil().createTable(DATA_CUBE_TABLE, CF);
    }

    @Test
    public void basicCallbackTest() throws Exception {
        HourDayMonthBucketer hourDayMonthBucketer = new HourDayMonthBucketer();
        Dimension<DateTime> time = new Dimension<DateTime>("time", hourDayMonthBucketer, false, 8);
        Dimension<String> zipcode = new Dimension<String>("zipcode", new StringToBytesBucketer(), true, 5);

        Rollup hourAndZipRollup = new Rollup(zipcode, time, HourDayMonthBucketer.hours);
        Rollup dayAndZipRollup = new Rollup(zipcode, time, HourDayMonthBucketer.days);
View Full Code Here

Examples of com.urbanairship.datacube.bucketers.HourDayMonthBucketer

        Assert.assertTrue(callbackCalled);
    }

    @Test
    public void noCallbackTest() throws Exception {
        HourDayMonthBucketer hourDayMonthBucketer = new HourDayMonthBucketer();
        Dimension<DateTime> time = new Dimension<DateTime>("time", hourDayMonthBucketer, false, 8);
        Dimension<String> zipcode = new Dimension<String>("zipcode", new StringToBytesBucketer(), true, 5);

        Rollup hourAndZipRollup = new Rollup(zipcode, time, HourDayMonthBucketer.hours);
        Rollup dayAndZipRollup = new Rollup(zipcode, time, HourDayMonthBucketer.days);
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.