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()
BucketProperties
getAllowSiblings
in interface BucketProperties
public Boolean getLastWriteWins()
BucketProperties
getLastWriteWins
in interface BucketProperties
public Integer getNVal()
BucketProperties
getNVal
in interface BucketProperties
public String getBackend()
BucketProperties
getBackend
in interface BucketProperties
public Integer getSmallVClock()
BucketProperties
getSmallVClock
in interface BucketProperties
public Integer getBigVClock()
BucketProperties
getBigVClock
in interface BucketProperties
public Long getYoungVClock()
BucketProperties
getYoungVClock
in interface BucketProperties
public Long getOldVClock()
BucketProperties
getOldVClock
in interface BucketProperties
public Collection<NamedFunction> getPrecommitHooks()
BucketProperties
getPrecommitHooks
in interface BucketProperties
public Collection<NamedErlangFunction> getPostcommitHooks()
BucketProperties
getPostcommitHooks
in interface BucketProperties
public Quorum getR()
BucketProperties
r
quorum for this bucket.getR
in interface BucketProperties
public Quorum getW()
BucketProperties
w
quorum for this bucket.getW
in interface BucketProperties
public Quorum getRW()
BucketProperties
rw
quorum for this bucket.getRW
in interface BucketProperties
public Quorum getDW()
BucketProperties
dw
quorum for this bucket.getDW
in interface BucketProperties
public Quorum getPR()
BucketProperties
pr
quorum for this bucket.getPR
in interface BucketProperties
public Quorum getPW()
BucketProperties
pw
quorum for this bucket.getPW
in interface BucketProperties
public Boolean getBasicQuorum()
BucketProperties
getBasicQuorum
in interface BucketProperties
public Boolean getNotFoundOK()
BucketProperties
getNotFoundOK
in interface BucketProperties
public NamedErlangFunction getChashKeyFunction()
BucketProperties
getChashKeyFunction
in interface BucketProperties
public NamedErlangFunction getLinkWalkFunction()
BucketProperties
getLinkWalkFunction
in interface BucketProperties
public 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 BucketProperties
public boolean isSearchEnabled()
BucketProperties
isSearchEnabled
in interface BucketProperties
Copyright © 2013. All Rights Reserved.