Package com.urbanairship.datacube

Examples of com.urbanairship.datacube.BoxedByteArray


   
   
    @Override
    public byte[] getId(int dimensionNum, byte[] bytes, int numIdBytes) throws IOException, InterruptedException {
        try {
            return readThroughCache.get(new Key(dimensionNum, new BoxedByteArray(bytes),
                    numIdBytes));
        } catch (ExecutionException e) {
            Throwable cause = e.getCause();
            if(cause instanceof IOException) {
                throw (IOException)cause;
View Full Code Here


            }
            idMapForDimension = Maps.newHashMap();
            idMap.put(dimensionNum, idMapForDimension);
        }
       
        BoxedByteArray inputBytes = new BoxedByteArray(bytes);
        Long id = idMapForDimension.get(inputBytes);
       
        if(id == null) {
            // We have never seen this input before. Assign it a new ID.
            id = nextIds.get(dimensionNum);
View Full Code Here

       
        for(Map.Entry<Address,T> entry: batch.getMap().entrySet()) {
            Address address = entry.getKey();
            T opFromBatch = entry.getValue();

            BoxedByteArray mapKey;
            try {
                mapKey = new BoxedByteArray(address.toKey(idService));
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
           
            if(commitType == CommitType.READ_COMBINE_CAS) {
View Full Code Here

        try {
            mapKey = address.toKey(idService);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        byte[] bytes = map.get(new BoxedByteArray(mapKey));
        if(log.isDebugEnabled()) {
            log.debug("getRaw for key " + Hex.encodeHexString(mapKey) + " returned " +
                    Arrays.toString(bytes));
        }
        if(bytes == null) {
View Full Code Here

TOP

Related Classes of com.urbanairship.datacube.BoxedByteArray

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.