Package org.thrudb.thrudoc

Examples of org.thrudb.thrudoc.InvalidBucketException


 
  public int decr(String bucket, String key, int amount) throws InvalidBucketException, TException {
   
    if(!isValidBucket(bucket))
      throw new InvalidBucketException();
   
    return 0;
  }
View Full Code Here


   * 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);
  }
View Full Code Here

    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);
  }
View Full Code Here

    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);
  }
View Full Code Here

    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);
  }
View Full Code Here

    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);
  }
View Full Code Here

  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);
   
  }
View Full Code Here

  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);
   
  }
View Full Code Here

   
  }

  public void put(String bucket, String key, byte[] value) throws InvalidBucketException, TException {
    if(!isValidBucket(bucket))
      throw new InvalidBucketException();
   
    bucketMap.get(bucket).put(key,value);
   
  }
View Full Code Here

  }

  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);
  }
View Full Code Here

TOP

Related Classes of org.thrudb.thrudoc.InvalidBucketException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.