public class DefaultBucketProperties extends Object implements BucketProperties
BucketProperties.
Use BucketPropertiesBuilder if you really have to make one, but your
better to fetch one like with IRiakClient.fetchBucket(String) or create one with
IRiakClient.createBucket(String)
IRiakClient,
WriteBucket,
FetchBucket| Constructor and Description |
|---|
DefaultBucketProperties(Boolean allowSiblings,
Boolean lastWriteWins,
Integer nVal,
String backend,
VClockPruneProps vclockProps,
Collection<NamedFunction> precommitHooks,
Collection<NamedErlangFunction> postcommitHooks,
TunableCAPProps capProps,
NamedErlangFunction chashKeyFunction,
NamedErlangFunction linkWalkFunction,
Boolean search)
Use the Builder
BucketPropertiesBuilder instead of calling this constructor directly |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static BucketPropertiesBuilder |
from(DefaultBucketProperties properties)
Create a
BucketPropertiesBuilder populated from the given
DefaultBucketProperties. |
BucketPropertiesBuilder |
fromMe()
Create a
BucketPropertiesBuilder populated with my values. |
Boolean |
getAllowSiblings()
The allow_mult value for the bucket.
|
String |
getBackend()
The backend used by this bucket.
|
Boolean |
getBasicQuorum()
Should a read request return early in some failure cases?
E.g.
|
Integer |
getBigVClock()
the big_vclock property for this bucket.
|
NamedErlangFunction |
getChashKeyFunction()
The chash_keyfun for this bucket.
|
Quorum |
getDW()
The default
dw quorum for this bucket. |
Boolean |
getLastWriteWins()
The last_write_wins value for the bucket.
|
NamedErlangFunction |
getLinkWalkFunction()
The linkwalk_fun for this bucket.
|
Boolean |
getNotFoundOK()
True if a vnode returning notfound for a key increments the r tally.
|
Integer |
getNVal()
This bucket's n_val.
|
Long |
getOldVClock()
the old_vclock property for this bucket.
|
Collection<NamedErlangFunction> |
getPostcommitHooks()
The set of postcommit hooks for this bucket.
|
Quorum |
getPR()
The default
pr quorum for this bucket. |
Collection<NamedFunction> |
getPrecommitHooks()
The set of precommit_hooks for this bucket.
|
Quorum |
getPW()
The default
pw quorum for this bucket. |
Quorum |
getR()
The default
r quorum for this bucket. |
Quorum |
getRW()
The default
rw quorum for this bucket. |
Boolean |
getSearch()
The search property
|
Integer |
getSmallVClock()
the small_vclock property for this bucket.
|
Quorum |
getW()
The default
w quorum for this bucket. |
Long |
getYoungVClock()
The young_vclcok property for this bucket.
|
int |
hashCode() |
boolean |
isSearchEnabled()
Is search enabled on this bucket
|
String |
toString() |
public DefaultBucketProperties(Boolean allowSiblings, Boolean lastWriteWins, Integer nVal, String backend, VClockPruneProps vclockProps, Collection<NamedFunction> precommitHooks, Collection<NamedErlangFunction> postcommitHooks, TunableCAPProps capProps, NamedErlangFunction chashKeyFunction, NamedErlangFunction linkWalkFunction, Boolean search)
BucketPropertiesBuilder instead of calling this constructor directlyallowSiblings - lastWriteWins - nVal - backend - vclockProps - precommitHooks - postcommitHooks - capProps - chashKeyFunction - linkWalkFunction - search - public Boolean getAllowSiblings()
BucketPropertiesgetAllowSiblings in interface BucketPropertiespublic Boolean getLastWriteWins()
BucketPropertiesgetLastWriteWins in interface BucketPropertiespublic Integer getNVal()
BucketPropertiesgetNVal in interface BucketPropertiespublic String getBackend()
BucketPropertiesgetBackend in interface BucketPropertiespublic Integer getSmallVClock()
BucketPropertiesgetSmallVClock in interface BucketPropertiespublic Integer getBigVClock()
BucketPropertiesgetBigVClock in interface BucketPropertiespublic Long getYoungVClock()
BucketPropertiesgetYoungVClock in interface BucketPropertiespublic Long getOldVClock()
BucketPropertiesgetOldVClock in interface BucketPropertiespublic Collection<NamedFunction> getPrecommitHooks()
BucketPropertiesgetPrecommitHooks in interface BucketPropertiespublic Collection<NamedErlangFunction> getPostcommitHooks()
BucketPropertiesgetPostcommitHooks in interface BucketPropertiespublic Quorum getR()
BucketPropertiesr quorum for this bucket.getR in interface BucketPropertiespublic Quorum getW()
BucketPropertiesw quorum for this bucket.getW in interface BucketPropertiespublic Quorum getRW()
BucketPropertiesrw quorum for this bucket.getRW in interface BucketPropertiespublic Quorum getDW()
BucketPropertiesdw quorum for this bucket.getDW in interface BucketPropertiespublic Quorum getPR()
BucketPropertiespr quorum for this bucket.getPR in interface BucketPropertiespublic Quorum getPW()
BucketPropertiespw quorum for this bucket.getPW in interface BucketPropertiespublic Boolean getBasicQuorum()
BucketPropertiesgetBasicQuorum in interface BucketPropertiespublic Boolean getNotFoundOK()
BucketPropertiesgetNotFoundOK in interface BucketPropertiespublic NamedErlangFunction getChashKeyFunction()
BucketPropertiesgetChashKeyFunction in interface BucketPropertiespublic NamedErlangFunction getLinkWalkFunction()
BucketPropertiesgetLinkWalkFunction in interface BucketPropertiespublic BucketPropertiesBuilder fromMe()
BucketPropertiesBuilder populated with my values.public static BucketPropertiesBuilder from(DefaultBucketProperties properties)
BucketPropertiesBuilder populated from the given
DefaultBucketProperties.properties - public Boolean getSearch()
BucketPropertiesgetSearch in interface BucketPropertiespublic boolean isSearchEnabled()
BucketPropertiesisSearchEnabled in interface BucketPropertiesCopyright © 2014. All Rights Reserved.