|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.bucket.DefaultBucketProperties
public class DefaultBucketProperties
An immutable implementation of 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 Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 directly
allowSiblings - lastWriteWins - nVal - backend - vclockProps - precommitHooks - postcommitHooks - capProps - chashKeyFunction - linkWalkFunction - search - | Method Detail |
|---|
public Boolean getAllowSiblings()
BucketProperties
getAllowSiblings in interface BucketPropertiespublic Boolean getLastWriteWins()
BucketProperties
getLastWriteWins in interface BucketPropertiespublic Integer getNVal()
BucketProperties
getNVal in interface BucketPropertiespublic String getBackend()
BucketProperties
getBackend in interface BucketPropertiespublic Integer getSmallVClock()
BucketProperties
getSmallVClock in interface BucketPropertiespublic Integer getBigVClock()
BucketProperties
getBigVClock in interface BucketPropertiespublic Long getYoungVClock()
BucketProperties
getYoungVClock in interface BucketPropertiespublic Long getOldVClock()
BucketProperties
getOldVClock in interface BucketPropertiespublic Collection<NamedFunction> getPrecommitHooks()
BucketProperties
getPrecommitHooks in interface BucketPropertiespublic Collection<NamedErlangFunction> getPostcommitHooks()
BucketProperties
getPostcommitHooks 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()
BucketProperties
getBasicQuorum in interface BucketPropertiespublic Boolean getNotFoundOK()
BucketProperties
getNotFoundOK in interface BucketPropertiespublic NamedErlangFunction getChashKeyFunction()
BucketProperties
getChashKeyFunction in interface BucketPropertiespublic NamedErlangFunction getLinkWalkFunction()
BucketProperties
getLinkWalkFunction 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()
BucketProperties
getSearch in interface BucketPropertiespublic boolean isSearchEnabled()
BucketProperties
isSearchEnabled in interface BucketPropertiespublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||