Cloud Spanner V1 API - Module Google::Cloud::Spanner::V1::ReadRequest::OrderBy (v1.0.1)

Reference documentation and code samples for the Cloud Spanner V1 API module Google::Cloud::Spanner::V1::ReadRequest::OrderBy.

An option to control the order in which rows are returned from a read.

Constants

ORDER_BY_UNSPECIFIED

value: 0
Default value.

ORDER_BY_UNSPECIFIED is equivalent to ORDER_BY_PRIMARY_KEY.

ORDER_BY_PRIMARY_KEY

value: 1
Read rows are returned in primary key order.

In the event that this option is used in conjunction with the partition_token field, the API will return an INVALID_ARGUMENT error.

ORDER_BY_NO_ORDER

value: 2
Read rows are returned in any order.