public class RiakBucketInfo extends Object
Constructor and Description |
---|
RiakBucketInfo()
Construct a bucket info to populate for a writeSchema request.
|
RiakBucketInfo(org.json.JSONObject schema,
Collection<String> keys)
Construct a bucket info using the JSON data from a listBucket() response.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getAllowMult() |
String |
getCHashFun()
The chash_keyfun property as <module>:<function>
|
Collection<String> |
getKeys()
The object keys in this bucket.
|
String |
getLinkFun()
The linkfun property as <module>:<function>
|
Integer |
getNVal() |
org.json.JSONObject |
getSchema()
Returns the bucket's properties.
|
void |
setAllowMult(boolean allowMult)
Allow siblings to be returned for an object.
|
void |
setCHashFun(String mod,
String fun)
Erlang module and name of the function to use to hash object keys.
|
void |
setLinkFun(String mod,
String fun)
Erlang module and name of the function to use to walk object links.
|
void |
setNVal(int n)
Number of replicas per object in this bucket.
|
public RiakBucketInfo()
public RiakBucketInfo(org.json.JSONObject schema, Collection<String> keys)
schema
- The JSON object containing the bucket's schemakeys
- The keys in the bucketpublic org.json.JSONObject getSchema()
public Collection<String> getKeys()
public void setAllowMult(boolean allowMult)
public Boolean getAllowMult()
public void setNVal(int n)
public Integer getNVal()
public void setCHashFun(String mod, String fun)
public String getCHashFun()
public void setLinkFun(String mod, String fun)
public String getLinkFun()
Copyright © 2013. All Rights Reserved.