Package org.thrudb.thrudoc

Examples of org.thrudb.thrudoc.InvalidBucketException


    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

  }

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

    return bucketMap.get(bucket).remove_at(key, pos);
  }

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

  public void insert_at(String bucket, String key, byte[] value, int pos)
      throws ThrudocException, InvalidBucketException, TException {

    if(!isValidBucket(bucket))
      throw new InvalidBucketException();
   
    bucketMap.get(bucket).insert_at(key, value, pos);   
  }
View Full Code Here

  public void replace_at(String bucket, String key, byte[] value, int pos)
      throws ThrudocException, InvalidBucketException, TException {
   
    if(!isValidBucket(bucket))
      throw new InvalidBucketException();
   
    bucketMap.get(bucket).replace_at(key, value, pos);   
  }
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.