Package com.urbanairship.datacube.idservices

Examples of com.urbanairship.datacube.idservices.MapIdService


        List<Dimension<?>> dimensions = ImmutableList.<Dimension<?>>of(time, zipcode);
        List<Rollup> rollups = ImmutableList.of(hourAndZipRollup, dayAndZipRollup, hourRollup, dayRollup);

        DataCube<LongOp> dataCube = new DataCube<LongOp>(dimensions, rollups);
        IdService idService = new MapIdService();
        Semaphore s = new Semaphore(1);
        s.acquire();

        HTablePool pool = new HTablePool(getTestUtil().getConfiguration(), Integer.MAX_VALUE);
        DbHarness<LongOp> hbaseDbHarness = new HBaseDbHarness<LongOp>(pool,
View Full Code Here


    public static final Dimension<Long> Z = new Dimension<Long>("Z", new BigEndianLongBucketer(), false, 8, true);

    @Test
    public void testAddress() throws Exception {
        ConcurrentMap<BoxedByteArray, byte[]> backingMap = Maps.newConcurrentMap();
        IdService idService = new CachingIdService(4, new MapIdService(), "test");
        DbHarness<LongOp> dbHarness = new MapDbHarness<LongOp>(backingMap, LongOp.DESERIALIZER, CommitType.OVERWRITE, idService);

        List<Dimension<?>> dims = ImmutableList.<Dimension<?>>of(X, Y, Z);
        List<Rollup> rollups = ImmutableList.of(new Rollup(X, Y), new Rollup(Y, Z));
View Full Code Here

TOP

Related Classes of com.urbanairship.datacube.idservices.MapIdService

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.