626364656667686970
public int decr(String bucket, String key, int amount) throws InvalidBucketException, TException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); return 0; }
747576777879808182
* Get's a key from the bucket */ public byte[] get(String bucket, String key) throws InvalidBucketException, InvalidKeyException, TException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); return bucketMap.get(bucket).get(key); }
858687888990919293
return bucketMap.keySet(); } public int incr(String bucket, String key, int amount) throws TException, InvalidBucketException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); return bucketMap.get(bucket).incr(key, amount); }
9293949596979899100
return bucketMap.get(bucket).incr(key, amount); } public int length(String bucket, String key) throws TException, InvalidBucketException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); return bucketMap.get(bucket).length(key); }
99100101102103104105106107
return bucketMap.get(bucket).length(key); } public byte[] pop_back(String bucket, String key) throws TException, InvalidBucketException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); return bucketMap.get(bucket).pop_back(key); }
106107108109110111112113114
return bucketMap.get(bucket).pop_back(key); } public byte[] pop_front(String bucket, String key) throws TException, InvalidBucketException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); return bucketMap.get(bucket).pop_front(key); }
115116117118119120121122123124
public void push_back(String bucket, String key, byte[] value) throws ThrudocException, InvalidBucketException, TException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); bucketMap.get(bucket).push_back(key, value); }
125126127128129130131132133134
public void push_front(String bucket, String key, byte[] value) throws ThrudocException, TException, InvalidBucketException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); bucketMap.get(bucket).push_front(key, value); }
133134135136137138139140141142
} public void put(String bucket, String key, byte[] value) throws InvalidBucketException, TException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); bucketMap.get(bucket).put(key,value); }
142143144145146147148149150
} public List<byte[]> range(String bucket, String key, int start, int end) throws TException, InvalidBucketException { if(!isValidBucket(bucket)) throw new InvalidBucketException(); return bucketMap.get(bucket).range(key, start, end); }