public static class StoreBucketPropsOperation.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected RiakPB.RpbBucketProps.Builder |
propsBuilder |
Constructor and Description |
---|
Builder(Namespace namespace)
Constructs a builder for a StoreBucketPropsOperation.
|
Modifier and Type | Method and Description |
---|---|
StoreBucketPropsOperation |
build() |
protected StoreBucketPropsOperation.Builder |
self() |
T |
withAllowMulti(boolean allow)
Set the allow_multi value.
|
T |
withBackend(String backend)
Set the backend used by this bucket.
|
T |
withBasicQuorum(boolean use)
Set the basic_quorum value.
|
T |
withBigVClock(Long bigVClock)
Set the big_vclock value.
|
T |
withChashkeyFunction(Function func)
Set the chash_keyfun value.
|
T |
withDw(int dw)
Set the dw value.
|
T |
withHllPrecision(int precision)
Set the HyperLogLog Precision.
|
T |
withLastWriteWins(boolean wins)
Set the last_write_wins value.
|
T |
withLegacyRiakSearchEnabled(boolean enable)
Enable Legacy Riak Search.
|
T |
withLinkwalkFunction(Function func)
Set the linkfun value.
|
T |
withNotFoundOk(boolean ok)
Set the not_found_ok value.
|
T |
withNVal(int nVal)
Set the nVal.
|
T |
withOldVClock(Long oldVClock)
Set the old_vclock value.
|
T |
withPostcommitHook(Function hook)
Add a post-commit hook.
|
T |
withPr(int pr)
Set the pr value.
|
T |
withPrecommitHook(Function hook)
Add a pre-commit hook.
|
T |
withPw(int pw)
Set the pw value.
|
T |
withR(int r)
Set the r value.
|
T |
withRw(int rw)
Set the rw value.
|
T |
withSearchIndex(String indexName)
Associate a Search Index.
|
T |
withSmallVClock(Long smallVClock)
Set the small_vclock value.
|
T |
withW(int w)
Set the w value.
|
T |
withYoungVClock(Long youngVClock)
Set the young_vclock value.
|
protected final RiakPB.RpbBucketProps.Builder propsBuilder
public Builder(Namespace namespace)
namespace
- The namespace in Riak.protected StoreBucketPropsOperation.Builder self()
public StoreBucketPropsOperation build()
public T withAllowMulti(boolean allow)
allow
- whether to allow sibling objects to be created.public T withBackend(String backend)
riak_kv_multi_backend
in Riak.backend
- the name of the backend to use.public T withBasicQuorum(boolean use)
use
- the basic_quorum value.public T withBigVClock(Long bigVClock)
bigVClock
- a long representing a epoch time value.public T withChashkeyFunction(Function func)
func
- a Function representing the Erlang func to use.public T withLastWriteWins(boolean wins)
wins
- whether to ignore vector clocks when writing.public T withLinkwalkFunction(Function func)
func
- a Function representing the Erlang func to use.public T withRw(int rw)
rw
- the rw value as an integer.public T withDw(int dw)
dw
- the dw value as an integer.public T withW(int w)
w
- the w value as an integer.public T withR(int r)
r
- the r value as an integer.public T withPr(int pr)
pr
- the pr value as an integer.public T withPw(int pw)
pw
- the pw value as an integer.public T withNotFoundOk(boolean ok)
ok
- the not_found_ok value.public T withPrecommitHook(Function hook)
hook
- the Function to add.public T withPostcommitHook(Function hook)
hook
- the Function to add.public T withOldVClock(Long oldVClock)
oldVClock
- an long representing a epoch time value.public T withYoungVClock(Long youngVClock)
youngVClock
- a long representing a epoch time value.public T withSmallVClock(Long smallVClock)
smallVClock
- a long representing a epoch time value.public T withNVal(int nVal)
nVal
- the number of replicas.public T withLegacyRiakSearchEnabled(boolean enable)
enable
- add/remove (true/false) the pre-commit hook for Legacy
Riak Search.public T withSearchIndex(String indexName)
indexName
- The name of the search index to use.public T 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.Copyright © 2016. All rights reserved.