com.basho.riak.client
Class RiakBucketInfo

java.lang.Object
  extended by com.basho.riak.client.RiakBucketInfo

Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved. Please use com.basho.riak.client.http.RiakBucketInfo instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
public class RiakBucketInfo
extends Object

Represents the metadata stored in a bucket including its schema and the list of keys contained in the bucket.

See Also:
RiakBucketInfo

Constructor Summary
RiakBucketInfo()
          Deprecated. Construct a bucket info to populate for a writeSchema request.
RiakBucketInfo(JSONObject schema, Collection<String> keys)
          Deprecated. Construct a bucket info using the JSON data from a listBucket() response.
 
Method Summary
 Boolean getAllowMult()
          Deprecated.  
 String getCHashFun()
          Deprecated. The chash_keyfun property as <module>:<function>
 Collection<String> getKeys()
          Deprecated. The object keys in this bucket.
 String getLinkFun()
          Deprecated. The linkfun property as <module>:<function>
 Integer getNVal()
          Deprecated.  
 JSONObject getSchema()
          Deprecated. Returns the bucket's properties.
 void setAllowMult(boolean allowMult)
          Deprecated. Allow siblings to be returned for an object.
 void setCHashFun(String mod, String fun)
          Deprecated. Erlang module and name of the function to use to hash object keys.
 void setLinkFun(String mod, String fun)
          Deprecated. Erlang module and name of the function to use to walk object links.
 void setNVal(int n)
          Deprecated. Number of replicas per object in this bucket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiakBucketInfo

public RiakBucketInfo()
Deprecated. 
Construct a bucket info to populate for a writeSchema request.


RiakBucketInfo

public RiakBucketInfo(JSONObject schema,
                      Collection<String> keys)
Deprecated. 
Construct a bucket info using the JSON data from a listBucket() response.

Parameters:
schema - The JSON object containing the bucket's schema
keys - The keys in the bucket
Method Detail

getSchema

public JSONObject getSchema()
Deprecated. 
Returns the bucket's properties.


getKeys

public Collection<String> getKeys()
Deprecated. 
The object keys in this bucket.


setAllowMult

public void setAllowMult(boolean allowMult)
Deprecated. 
Allow siblings to be returned for an object. If false, last write wins.


getAllowMult

public Boolean getAllowMult()
Deprecated. 

setNVal

public void setNVal(int n)
Deprecated. 
Number of replicas per object in this bucket.


getNVal

public Integer getNVal()
Deprecated. 

setCHashFun

public void setCHashFun(String mod,
                        String fun)
Deprecated. 
Erlang module and name of the function to use to hash object keys. See Riak's documentation.


getCHashFun

public String getCHashFun()
Deprecated. 
The chash_keyfun property as <module>:<function>


setLinkFun

public void setLinkFun(String mod,
                       String fun)
Deprecated. 
Erlang module and name of the function to use to walk object links. See Riak's documentation.


getLinkFun

public String getLinkFun()
Deprecated. 
The linkfun property as <module>:<function>



Copyright © 2012. All Rights Reserved.