Class AbstractSpannerRequestOptions<A>
java.lang.Object
com.google.cloud.spring.data.spanner.core.AbstractSpannerRequestOptions<A>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SpannerQueryOptions
,SpannerReadOptions
Abstract class of common Read and Query request settings.
- See Also:
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA[]
com.google.cloud.Timestamp
com.google.cloud.spanner.TimestampBound
boolean
setAllowPartialRead
(boolean allowPartialRead) setIncludeProperties
(Set<String> includeProperties) setTimestamp
(com.google.cloud.Timestamp timestamp) setTimestampBound
(com.google.cloud.spanner.TimestampBound timestampBound) Set if this query should be executed with bounded staleness.
-
Field Details
-
requestOptions
-
requestOptionType
-
-
Constructor Details
-
AbstractSpannerRequestOptions
public AbstractSpannerRequestOptions()
-
-
Method Details
-
getIncludeProperties
-
setIncludeProperties
-
getTimestampBound
public com.google.cloud.spanner.TimestampBound getTimestampBound() -
setTimestampBound
public AbstractSpannerRequestOptions setTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound) Set if this query should be executed with bounded staleness.- Parameters:
timestampBound
- the timestamp bound. Can be exact or bounded staleness.- Returns:
- this options object.
-
getTimestamp
public com.google.cloud.Timestamp getTimestamp() -
setTimestamp
-
getOptions
-
isAllowPartialRead
public boolean isAllowPartialRead() -
setAllowPartialRead
-