Package com.urbanairship.datacube.bucketers

Source Code of com.urbanairship.datacube.bucketers.BigEndianIntBucketer

/*
Copyright 2012 Urban Airship and Contributors
*/

package com.urbanairship.datacube.bucketers;

import java.util.List;

import com.google.common.collect.ImmutableList;
import com.urbanairship.datacube.BucketType;
import com.urbanairship.datacube.CSerializable;
import com.urbanairship.datacube.serializables.IntSerializable;

/**
* You can use this when one of your dimension coordinate types is a straightforward Integer.
*/
public class BigEndianIntBucketer extends AbstractIdentityBucketer<Integer> {
    private final static List<BucketType> bucketTypes = ImmutableList.of(BucketType.IDENTITY);

    @Override
    public CSerializable makeSerializable(Integer coord) {
        return new IntSerializable(coord);
    }
}
TOP

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

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.