public class SpannerPageableQueryOptions extends SpannerQueryOptions
requestOptions, requestOptionType| Constructor and Description |
|---|
SpannerPageableQueryOptions() |
| Modifier and Type | Method and Description |
|---|---|
SpannerPageableQueryOptions |
addQueryOption(com.google.cloud.spanner.Options.QueryOption queryOption) |
Integer |
getLimit() |
Long |
getOffset() |
org.springframework.data.domain.Sort |
getSort() |
SpannerPageableQueryOptions |
setAllowPartialRead(boolean allowPartialRead) |
SpannerPageableQueryOptions |
setIncludeProperties(Set<String> includeProperties) |
SpannerPageableQueryOptions |
setLimit(Integer limit) |
SpannerPageableQueryOptions |
setOffset(Long offset) |
SpannerPageableQueryOptions |
setSort(org.springframework.data.domain.Sort sort) |
SpannerPageableQueryOptions |
setTimestamp(com.google.cloud.Timestamp timestamp) |
SpannerPageableQueryOptions |
setTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
Set if this query should be executed with bounded staleness.
|
getIncludeProperties, getOptions, getTimestamp, getTimestampBound, isAllowPartialReadpublic Integer getLimit()
public SpannerPageableQueryOptions setLimit(Integer limit)
public Long getOffset()
public SpannerPageableQueryOptions setOffset(Long offset)
public org.springframework.data.domain.Sort getSort()
public SpannerPageableQueryOptions setSort(org.springframework.data.domain.Sort sort)
public SpannerPageableQueryOptions addQueryOption(com.google.cloud.spanner.Options.QueryOption queryOption)
addQueryOption in class SpannerQueryOptionspublic SpannerPageableQueryOptions setIncludeProperties(Set<String> includeProperties)
setIncludeProperties in class SpannerQueryOptionspublic SpannerPageableQueryOptions setTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
AbstractSpannerRequestOptionssetTimestampBound in class SpannerQueryOptionstimestampBound - the timestamp bound. Can be exact or bounded staleness.public SpannerPageableQueryOptions setTimestamp(com.google.cloud.Timestamp timestamp)
setTimestamp in class SpannerQueryOptionspublic SpannerPageableQueryOptions setAllowPartialRead(boolean allowPartialRead)
setAllowPartialRead in class SpannerQueryOptionsCopyright © 2023. All rights reserved.