Examples of HBaseIdService


Examples of com.urbanairship.datacube.idservices.HBaseIdService

    }
   
    @BeforeClass
    public static void init() throws Exception {
        Configuration conf = getTestUtil().getConfiguration();
        idService = new HBaseIdService(conf, IDSERVICE_LOOKUP_TABLE, IDSERVICE_COUNTER_TABLE, CF,
                ArrayUtils.EMPTY_BYTE_ARRAY);
       
        Rollup hourRollup = new Rollup(timeDimension, HourDayMonthBucketer.hours);
        Rollup hourColorRollup = new Rollup(colorDimension, timeDimension, HourDayMonthBucketer.hours);
        Rollup dayRollup = new Rollup(timeDimension, HourDayMonthBucketer.days);
View Full Code Here

Examples of com.urbanairship.datacube.idservices.HBaseIdService

    @Test
    public void testBackfillIdempotence() throws Exception {
        Configuration conf = getTestUtil().getConfiguration();
        HTablePool pool = new HTablePool(conf, Integer.MAX_VALUE);
       
        IdService idService = new HBaseIdService(conf, IDSERVICE_LOOKUP_TABLE,
                IDSERVICE_COUNTER_TABLE, CF, ArrayUtils.EMPTY_BYTE_ARRAY);
        DbHarness<LongOp> hbaseDbHarness = new HBaseDbHarness<LongOp>(pool,
                ArrayUtils.EMPTY_BYTE_ARRAY, CUBE_DATA_TABLE, CF, LongOp.DESERIALIZER,
                idService, CommitType.INCREMENT);
       
View Full Code Here

Examples of com.urbanairship.datacube.idservices.HBaseIdService

    @Test
    public void testBackfillingWithEmpty() throws Exception {
        Configuration conf = getTestUtil().getConfiguration();
        HTablePool pool = new HTablePool(conf, Integer.MAX_VALUE);
       
        IdService idService = new HBaseIdService(conf, IDSERVICE_LOOKUP_TABLE,
                IDSERVICE_COUNTER_TABLE, CF, ArrayUtils.EMPTY_BYTE_ARRAY);
        DbHarness<LongOp> hbaseDbHarness = new HBaseDbHarness<LongOp>(pool,
                ArrayUtils.EMPTY_BYTE_ARRAY, CUBE_DATA_TABLE, CF, LongOp.DESERIALIZER,
                idService, CommitType.INCREMENT);
       
View Full Code Here

Examples of com.urbanairship.datacube.idservices.HBaseIdService

    @Test
    public void testMutationsWhileBackfilling() throws Exception {
        Configuration conf = getTestUtil().getConfiguration();
        HTablePool pool = new HTablePool(conf, Integer.MAX_VALUE);
       
        IdService idService = new HBaseIdService(conf, IDSERVICE_LOOKUP_TABLE,
                IDSERVICE_COUNTER_TABLE, CF, ArrayUtils.EMPTY_BYTE_ARRAY);
        DbHarness<LongOp> hbaseDbHarness = new HBaseDbHarness<LongOp>(pool,
                ArrayUtils.EMPTY_BYTE_ARRAY, CUBE_DATA_TABLE, CF, LongOp.DESERIALIZER,
                idService, CommitType.INCREMENT);
       
View Full Code Here

Examples of com.urbanairship.datacube.idservices.HBaseIdService

    }
   
    @BeforeClass
    public static void init() throws Exception {
        Configuration conf = getTestUtil().getConfiguration();
        idService = new HBaseIdService(conf, IDSERVICE_LOOKUP_TABLE, IDSERVICE_COUNTER_TABLE, CF,
                ArrayUtils.EMPTY_BYTE_ARRAY);
       
        Rollup hourRollup = new Rollup(timeDimension, HourDayMonthBucketer.hours);
        Rollup dayRollup = new Rollup(timeDimension, HourDayMonthBucketer.days);
       
View Full Code Here

Examples of com.urbanairship.datacube.idservices.HBaseIdService

    }


    @Test
    public void basicIdServiceTest() throws Exception {
        IdService idService = new HBaseIdService(getTestUtil().getConfiguration(),
                IDSERVICE_LOOKUP_TABLE, IDSERVICE_COUNTER_TABLE, CF,
                "basicIdServiceTest".getBytes());
       
        IdServiceTests.basicTest(idService);
    }
View Full Code Here

Examples of com.urbanairship.datacube.idservices.HBaseIdService

        IdServiceTests.basicTest(idService);
    }

    @Test
    public void exhaustionIdServiceTest() throws Exception {
        IdService idService = new HBaseIdService(getTestUtil().getConfiguration(),
                IDSERVICE_LOOKUP_TABLE, IDSERVICE_COUNTER_TABLE, CF,
                "exhaustionIdServiceTest".getBytes());
        IdServiceTests.testExhaustion(idService, 1, 1);
    }
View Full Code Here

Examples of com.urbanairship.datacube.idservices.HBaseIdService

    getTestUtil().createTable(CUBE_TABLE, CF);
    getTestUtil().createTable(IDSERVICE_LOOKUP_TABLE, CF);
    getTestUtil().createTable(IDSERVICE_COUNTER_TABLE, CF);
    HTablePool hTablePool = new HTablePool(conf, Integer.MAX_VALUE);
   
    IdService idService = new HBaseIdService(conf,
        IDSERVICE_LOOKUP_TABLE,  // The first of two tables, maps shortId->fullValue
        IDSERVICE_COUNTER_TABLE, // The second table, gives the next shortId for each dimension
        CF,
        "".getBytes()); // The unique cube name lets multiple cubes share the same table
   
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.