All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.astyanax.partitioner.OrderedBigIntegerPartitioner Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
package com.netflix.astyanax.partitioner;

import java.nio.ByteBuffer;

import com.netflix.astyanax.serializers.BigIntegerSerializer;

public class OrderedBigIntegerPartitioner extends BigInteger127Partitioner {

    private static final OrderedBigIntegerPartitioner instance = new OrderedBigIntegerPartitioner();
    public static Partitioner get() {
        return instance;
    }

    protected OrderedBigIntegerPartitioner() {
        
    }
    
    @Override
    public String getTokenForKey(ByteBuffer key) {
        return BigIntegerSerializer.get().fromByteBuffer(key).toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy