View source on GitHub |
Normalizes compiled cursors in place.
google.appengine.datastore.datastore_stub_util.NormalizeCursors(
query, first_sort_direction
)
Any position specified in the position group is moved to either the postfix_position or absolute_position field and the position group is cleared.
If the cursor position does not specify before_ascending, populate it. If before_ascending is already populated, use it and the sort direction from the query to set an appropriate value for before.
Args | |
---|---|
query
|
datastore_pb.Query |
first_sort_direction
|
first sort direction as returned by _GuessOrders |