public static class BucketProperties.Builder extends Object
| Constructor and Description |
|---|
Builder() |
public BucketProperties.Builder withAllowMulti(boolean allow)
allow - whether to allow sibling objects to be created.public BucketProperties.Builder withBackend(String backend)
riak_kv_multi_backend in Riak.backend - the name of the backend to use.public BucketProperties.Builder withBasicQuorum(boolean use)
use - the basic_quorum value.public BucketProperties.Builder withBigVClock(long bigVClock)
bigVClock - a long representing a epoch time value.public BucketProperties.Builder withChashkeyFunction(Function func)
func - a Function representing the Erlang func to use.public BucketProperties.Builder withLastWriteWins(boolean wins)
wins - whether to ignore vector clocks when writing.public BucketProperties.Builder withLinkwalkFunction(Function func)
func - a Function representing the Erlang func to use.public BucketProperties.Builder withRw(int rw)
rw - the rw value as an integer.public BucketProperties.Builder withRw(Quorum rw)
rw - the rw value as a Quorum.public BucketProperties.Builder withDw(int dw)
dw - the dw value as an integer.public BucketProperties.Builder withW(int w)
w - the w value as an integer.public BucketProperties.Builder withW(Quorum w)
w - the w value as a Quorum.public BucketProperties.Builder withR(int r)
r - the r value as an integer.public BucketProperties.Builder withR(Quorum r)
r - the r value as a Quorum.public BucketProperties.Builder withPr(int pr)
pr - the pr value as an integer.public BucketProperties.Builder withPr(Quorum pr)
pr - the pr value as a Quorum.public BucketProperties.Builder withPw(int pw)
pw - the pw value as an integer.public BucketProperties.Builder withPw(Quorum pw)
pw - the pw value as a Quorum.public BucketProperties.Builder withNotFoundOk(boolean ok)
ok - the not_found_ok value.public BucketProperties.Builder withPrecommitHook(Function hook)
hook - the Function to add.public BucketProperties.Builder withPostcommitHook(Function hook)
hook - the Function to add.public BucketProperties.Builder withOldVClock(long oldVClock)
oldVClock - an long representing a epoch time value.public BucketProperties.Builder withYoungVClock(long youngVClock)
youngVClock - a long representing a epoch time value.public BucketProperties.Builder withSmallVClock(long smallVClock)
smallVClock - a long representing a epoch time value.public BucketProperties.Builder withNVal(int nVal)
nVal - the number of replicas.public BucketProperties.Builder withLegacyRiakSearchEnabled(boolean enable)
enable - add/remove (true/false) the pre-commit hook for Riak
Search.public BucketProperties.Builder withSearchIndex(String indexName)
indexName - The name of the Yokozuna Index to use.public BucketProperties.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 BucketProperties build()
Copyright © 2016. All rights reserved.