Package com.urbanairship.datacube.bucketers

Examples of com.urbanairship.datacube.bucketers.StringToBytesBucketer


                "nonexistentTable".getBytes(), "nonexistentCf".getBytes(), LongOp.DESERIALIZER,
                idService, CommitType.INCREMENT, 5, 2, 2, null);
       
        DataCube<LongOp> cube;
       
        Dimension<String> zipcode = new Dimension<String>("zipcode", new StringToBytesBucketer(),
                true, 5);

        Rollup zipRollup = new Rollup(zipcode);
       
        List<Dimension<?>> dimensions =  ImmutableList.<Dimension<?>>of(zipcode);
View Full Code Here


        DbHarness<LongOp> hbaseDbHarness = new HBaseDbHarness<LongOp>(pool,
                ArrayUtils.EMPTY_BYTE_ARRAY, CUBE_DATA_TABLE, CF, LongOp.DESERIALIZER,
                idService, CommitType.INCREMENT);
       
        Dimension<String> onlyDimension = new Dimension<String>("mydimension",
                new StringToBytesBucketer(), true, 2);
       
        Rollup rollup = new Rollup(onlyDimension, BucketType.IDENTITY);
        List<Dimension<?>> dims = ImmutableList.<Dimension<?>>of(onlyDimension);
        List<Rollup> rollups = ImmutableList.of(rollup);
        DataCube<LongOp> cube = new DataCube<LongOp>(dims, rollups);
View Full Code Here

     */
    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);
       
        DataCubeIo<LongOp> cubeIo = null;
        DataCube<LongOp> cube;
       
View Full Code Here

    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);

        DataCubeIo<LongOp> cubeIo = null;
        DataCube<LongOp> cube;
View Full Code Here

    @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);
        Rollup hourRollup = new Rollup(time, HourDayMonthBucketer.hours);
        Rollup dayRollup = new Rollup(time, HourDayMonthBucketer.days);
View Full Code Here

    @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);
        Rollup hourRollup = new Rollup(time, HourDayMonthBucketer.hours);
        Rollup dayRollup = new Rollup(time, HourDayMonthBucketer.days);
View Full Code Here

TOP

Related Classes of com.urbanairship.datacube.bucketers.StringToBytesBucketer

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.