public static class StoreBucketProperties.Builder extends Object
public Builder(Namespace namespace)
public StoreBucketProperties.Builder withAllowMulti(boolean allow)
allow
- whether to allow sibling objects to be created.public StoreBucketProperties.Builder withBackend(String backend)
riak_kv_multi_backend
in Riak.backend
- the name of the backend to use.public StoreBucketProperties.Builder withBasicQuorum(boolean use)
use
- the basic_quorum value.public StoreBucketProperties.Builder withBigVClock(Long bigVClock)
bigVClock
- a long representing a epoch time value.public StoreBucketProperties.Builder withChashkeyFunction(Function func)
func
- a Function representing the Erlang func to use.public StoreBucketProperties.Builder withLastWriteWins(boolean wins)
wins
- whether to ignore vector clocks when writing.public StoreBucketProperties.Builder withLinkwalkFunction(Function func)
func
- a Function representing the Erlang func to use.public StoreBucketProperties.Builder withRw(int rw)
rw
- the rw value as an integer.public StoreBucketProperties.Builder withDw(int dw)
dw
- the dw value as an integer.public StoreBucketProperties.Builder withW(int w)
w
- the w value as an integer.public StoreBucketProperties.Builder withR(int r)
r
- the r value as an integer.public StoreBucketProperties.Builder withPr(int pr)
pr
- the pr value as an integer.public StoreBucketProperties.Builder withPw(int pw)
pw
- the pw value as an integer.public StoreBucketProperties.Builder withNotFoundOk(boolean ok)
ok
- the not_found_ok value.public StoreBucketProperties.Builder withPrecommitHook(Function hook)
hook
- the Function to add.public StoreBucketProperties.Builder withPostcommitHook(Function hook)
hook
- the Function to add.public StoreBucketProperties.Builder withOldVClock(Long oldVClock)
oldVClock
- an long representing a epoch time value.public StoreBucketProperties.Builder withYoungVClock(Long youngVClock)
youngVClock
- a long representing a epoch time value.public StoreBucketProperties.Builder withSmallVClock(Long smallVClock)
smallVClock
- a long representing a epoch time value.public StoreBucketProperties.Builder withNVal(int nVal)
nVal
- the number of replicas.public StoreBucketProperties.Builder withLegacyRiakSearchEnabled(boolean enable)
enable
- add/remove (true/false) the pre-commit hook for Legacy
Riak Search.public StoreBucketProperties.Builder withSearchIndex(String indexName)
indexName
- The name of the search index to use.public StoreBucketProperties.Builder withHllPrecision(int precision)
precision
- the number of bits to use in the HyperLogLog precision.
Valid values are [4 - 16] inclusive, default is 14 on new buckets.
NOTE: When changing precision, it may only be reduced from
it's current value, and never increased.public StoreBucketProperties build()
Copyright © 2016. All rights reserved.