public class SpannerQueryOptions extends AbstractSpannerRequestOptions<Options.QueryOption>
requestOptions, requestOptionType
Constructor and Description |
---|
SpannerQueryOptions()
Constructor to create an instance.
|
Modifier and Type | Method and Description |
---|---|
SpannerQueryOptions |
addQueryOption(Options.QueryOption queryOption) |
SpannerQueryOptions |
setAllowPartialRead(boolean allowPartialRead) |
SpannerQueryOptions |
setIncludeProperties(Set<String> includeProperties) |
SpannerQueryOptions |
setTimestamp(com.google.cloud.Timestamp timestamp) |
SpannerQueryOptions |
setTimestampBound(TimestampBound timestampBound)
Set if this query should be executed with bounded staleness.
|
getIncludeProperties, getOptions, getTimestamp, getTimestampBound, isAllowPartialRead
public SpannerQueryOptions()
public SpannerQueryOptions addQueryOption(Options.QueryOption queryOption)
public SpannerQueryOptions setIncludeProperties(Set<String> includeProperties)
setIncludeProperties
in class AbstractSpannerRequestOptions<Options.QueryOption>
public SpannerQueryOptions setTimestampBound(TimestampBound timestampBound)
AbstractSpannerRequestOptions
setTimestampBound
in class AbstractSpannerRequestOptions<Options.QueryOption>
timestampBound
- the timestamp bound. Can be exact or bounded staleness.public SpannerQueryOptions setTimestamp(com.google.cloud.Timestamp timestamp)
setTimestamp
in class AbstractSpannerRequestOptions<Options.QueryOption>
public SpannerQueryOptions setAllowPartialRead(boolean allowPartialRead)
setAllowPartialRead
in class AbstractSpannerRequestOptions<Options.QueryOption>
Copyright © 2021. All rights reserved.