voldemort.store.gzip
Class GzipStore<K>

java.lang.Object
  extended by voldemort.store.AbstractStore<K,V,T>
      extended by voldemort.store.DelegatingStore<K,byte[],byte[]>
          extended by voldemort.store.gzip.GzipStore<K>
All Implemented Interfaces:
Store<K,byte[],byte[]>

public class GzipStore<K>
extends DelegatingStore<K,byte[],byte[]>

A Store decorator that gzips and ungzips its contents as it stores them


Constructor Summary
GzipStore(Store<K,byte[],byte[]> innerStore)
           
 
Method Summary
 java.util.List<Versioned<byte[]>> get(K key, byte[] transforms)
          Get the value associated with the given key
 void put(K key, Versioned<byte[]> value, byte[] transforms)
          Associate the value with the key and version in this store
 
Methods inherited from class voldemort.store.DelegatingStore
close, delete, delete, get, getAll, getAll, getCapability, getInnerStore, getVersions, put, toString
 
Methods inherited from class voldemort.store.AbstractStore
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GzipStore

public GzipStore(Store<K,byte[],byte[]> innerStore)
Method Detail

get

public java.util.List<Versioned<byte[]>> get(K key,
                                             byte[] transforms)
                                      throws VoldemortException
Description copied from interface: Store
Get the value associated with the given key

Specified by:
get in interface Store<K,byte[],byte[]>
Overrides:
get in class DelegatingStore<K,byte[],byte[]>
Parameters:
key - The key to check for
Returns:
The value associated with the key or an empty list if no values are found.
Throws:
VoldemortException

put

public void put(K key,
                Versioned<byte[]> value,
                byte[] transforms)
         throws VoldemortException
Description copied from interface: Store
Associate the value with the key and version in this store

Specified by:
put in interface Store<K,byte[],byte[]>
Overrides:
put in class DelegatingStore<K,byte[],byte[]>
Parameters:
key - The key to use
value - The value to store and its version.
Throws:
VoldemortException


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