krati.store
Class DefaultDataStoreHandler

java.lang.Object
  extended by krati.store.DefaultDataStoreHandler
All Implemented Interfaces:
DataStoreHandler

public final class DefaultDataStoreHandler
extends Object
implements DataStoreHandler

DefaultDataStoreHandler

Author:
jwu

Constructor Summary
DefaultDataStoreHandler()
           
 
Method Summary
 byte[] assemble(byte[] key, byte[] value)
           
 byte[] assemble(byte[] key, byte[] value, byte[] data)
           
 int countCollisions(byte[] key, byte[] data)
           
 byte[] extractByKey(byte[] key, byte[] data)
           
 List<Map.Entry<byte[],byte[]>> extractEntries(byte[] data)
           
 List<byte[]> extractKeys(byte[] data)
           
 List<byte[]> extractValues(byte[] data)
           
 int removeByKey(byte[] key, byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataStoreHandler

public DefaultDataStoreHandler()
Method Detail

assemble

public final byte[] assemble(byte[] key,
                             byte[] value)
Specified by:
assemble in interface DataStoreHandler

assemble

public final byte[] assemble(byte[] key,
                             byte[] value,
                             byte[] data)
Specified by:
assemble in interface DataStoreHandler

countCollisions

public final int countCollisions(byte[] key,
                                 byte[] data)
Specified by:
countCollisions in interface DataStoreHandler

extractByKey

public final byte[] extractByKey(byte[] key,
                                 byte[] data)
Specified by:
extractByKey in interface DataStoreHandler

removeByKey

public final int removeByKey(byte[] key,
                             byte[] data)
Specified by:
removeByKey in interface DataStoreHandler

extractKeys

public final List<byte[]> extractKeys(byte[] data)
Specified by:
extractKeys in interface DataStoreHandler

extractValues

public final List<byte[]> extractValues(byte[] data)

extractEntries

public final List<Map.Entry<byte[],byte[]>> extractEntries(byte[] data)
Specified by:
extractEntries in interface DataStoreHandler


Copyright © 2011. All Rights Reserved.