Send feedback
google.appengine.datastore.datastore_stub_util.BaseCursor
Stay organized with collections
Save and categorize content based on your preferences.
A base query cursor over a list of entities.
Inherits From: expected_type
google . appengine . datastore . datastore_stub_util . BaseCursor (
query , dsquery , orders , index_list
)
Public properties:
cursor : the integer cursor.
app : the app for which this cursor was created.
keys_only : whether the query is keys_only.
Class attributes:
_next_cursor : the next cursor to allocate.
_next_cursor_lock : protects _next_cursor.
Args
query
the query request proto.
dsquery
a datastore_query.Query over query.
orders
the orders of query as returned by _GuessOrders.
index_list
the list of indexes used by the query.
Methods
PopulateQueryResult
View source
PopulateQueryResult (
result , count , deprecated_offset , compile = False , first_result = False
)
Populates a QueryResult with this cursor and the given number of results.
Args
result
datastore_pb.QueryResult
count
integer of how many results to return, or None if not specified
deprecated_offset
integer of how many results to skip, deprecated.
compile
boolean, whether we are compiling this query
first_result
whether the query result is the first for this query
Raises
datastore_errors.BadArgumentError
if the offset doesn't match the
original offset from the RunQuery call.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[],[]]