Cloud Datastore Client - Class Cursor (2.0.3) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Datastore Client class Cursor.
Represents a Cursor value.
A cursor points to a position within a set of entities. Cloud Datastore usesCursors for paginating query results.
Example:
use Google\Cloud\Datastore\DatastoreClient;$datastore = new DatastoreClient();$cursor = $datastore->cursor($cursorValue);$query = $datastore->gqlQuery('SELECT * FROM Companies OFFSET @cursor', [ 'bindings' => [ 'cursor' => $cursor ]]);Namespace
Google \ Cloud \ DatastoreMethods
__construct
| Parameter | |
|---|---|
| Name | Description |
cursor | string|intThe cursor value. |
cursor
| Returns | |
|---|---|
| Type | Description |
string|int | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-24 UTC.