voldemort.store
Class StoreBinaryFormat

java.lang.Object
  extended by voldemort.store.StoreBinaryFormat

public class StoreBinaryFormat
extends java.lang.Object


Constructor Summary
StoreBinaryFormat()
           
 
Method Summary
static byte[] extractKey(byte[] prefixedKeyArray)
           
static int extractPartition(byte[] prefixedKeyArray)
           
static java.util.List<Versioned<byte[]>> fromByteArray(byte[] bytes)
           
static byte[] makePartitionKey(int partitionId)
           
static byte[] makePrefixedKey(byte[] key, int partitionId)
           
static byte[] toByteArray(java.util.List<Versioned<byte[]>> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreBinaryFormat

public StoreBinaryFormat()
Method Detail

toByteArray

public static byte[] toByteArray(java.util.List<Versioned<byte[]>> values)

fromByteArray

public static java.util.List<Versioned<byte[]>> fromByteArray(byte[] bytes)

makePrefixedKey

public static byte[] makePrefixedKey(byte[] key,
                                     int partitionId)

makePartitionKey

public static byte[] makePartitionKey(int partitionId)

extractPartition

public static int extractPartition(byte[] prefixedKeyArray)

extractKey

public static byte[] extractKey(byte[] prefixedKeyArray)


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu