public static final class ImmutableQueryOptions.Builder extends Object
ImmutableQueryOptions.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableQueryOptions |
build()
Builds a new
ImmutableQueryOptions. |
ImmutableQueryOptions.Builder |
consistencyMode(ConsistencyMode consistencyMode)
Initializes the value for the
consistencyMode attribute. |
ImmutableQueryOptions.Builder |
from(QueryOptions instance)
Fill a builder with attribute values from the provided
QueryOptions instance. |
ImmutableQueryOptions.Builder |
index(BigInteger index)
Initializes the optional value
index to index. |
ImmutableQueryOptions.Builder |
index(com.google.common.base.Optional<BigInteger> index)
Initializes the optional value
index to index. |
ImmutableQueryOptions.Builder |
near(com.google.common.base.Optional<String> near)
Initializes the optional value
near to near. |
ImmutableQueryOptions.Builder |
near(String near)
Initializes the optional value
near to near. |
ImmutableQueryOptions.Builder |
token(com.google.common.base.Optional<String> token)
Initializes the optional value
token to token. |
ImmutableQueryOptions.Builder |
token(String token)
Initializes the optional value
token to token. |
ImmutableQueryOptions.Builder |
wait(com.google.common.base.Optional<String> wait)
Initializes the optional value
wait to wait. |
ImmutableQueryOptions.Builder |
wait(String wait)
Initializes the optional value
wait to wait. |
public final ImmutableQueryOptions.Builder from(QueryOptions instance)
QueryOptions instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableQueryOptions.Builder wait(String wait)
wait to wait.wait - The value for waitthis builder for chained invocationpublic final ImmutableQueryOptions.Builder wait(com.google.common.base.Optional<String> wait)
wait to wait.wait - The value for waitthis builder for use in a chained invocationpublic final ImmutableQueryOptions.Builder token(String token)
token to token.token - The value for tokenthis builder for chained invocationpublic final ImmutableQueryOptions.Builder token(com.google.common.base.Optional<String> token)
token to token.token - The value for tokenthis builder for use in a chained invocationpublic final ImmutableQueryOptions.Builder index(BigInteger index)
index to index.index - The value for indexthis builder for chained invocationpublic final ImmutableQueryOptions.Builder index(com.google.common.base.Optional<BigInteger> index)
index to index.index - The value for indexthis builder for use in a chained invocationpublic final ImmutableQueryOptions.Builder near(String near)
near to near.near - The value for nearthis builder for chained invocationpublic final ImmutableQueryOptions.Builder near(com.google.common.base.Optional<String> near)
near to near.near - The value for nearthis builder for use in a chained invocationpublic final ImmutableQueryOptions.Builder consistencyMode(ConsistencyMode consistencyMode)
consistencyMode attribute.
If not set, this attribute will have a default value as returned by the initializer of consistencyMode.
consistencyMode - The value for consistencyModethis builder for use in a chained invocationpublic ImmutableQueryOptions build()
ImmutableQueryOptions.IllegalStateException - if any required attributes are missingCopyright © 2016. All rights reserved.