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