krati.sos
Interface ObjectStore<K,V>

Type Parameters:
K - Key
V - Value
All Superinterfaces:
DataStore<K,V>, Iterable<Map.Entry<K,V>>
All Known Implementing Classes:
ObjectStoreAgent, SerializableObjectStore

public interface ObjectStore<K,V>
extends DataStore<K,V>

ObjectStore

Author:
jwu

Method Summary
 byte[] getBytes(byte[] keyBytes)
          Gets an object in the form of byte array from the store.
 byte[] getBytes(K key)
          Gets an object in the form of byte array from the store.
 
Methods inherited from interface krati.store.DataStore
clear, delete, get, keyIterator, persist, put, sync
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getBytes

byte[] getBytes(K key)
Gets an object in the form of byte array from the store.

Parameters:
key - the retrieving key.
Returns:
the retrieved object in raw bytes.

getBytes

byte[] getBytes(byte[] keyBytes)
Gets an object in the form of byte array from the store.

Parameters:
key - the retrieving key in raw bytes.
Returns:
the retrieved object in raw bytes.


Copyright © 2011. All Rights Reserved.