google_api_datastore v0.4.0 GoogleApi.Datastore.V1.Model.QueryResultBatch View Source

A batch of results produced by a query.

Attributes

  • endCursor (String.t): A cursor that points to the position after the last result in the batch. Defaults to nil.
  • entityResultType (String.t): The result type for every entity in entity_results. Defaults to nil.
  • entityResults (list(GoogleApi.Datastore.V1.Model.EntityResult.t)): The results for this batch. Defaults to nil.
  • moreResults (String.t): The state of the query after the current batch. Defaults to nil.
  • skippedCursor (String.t): A cursor that points to the position after the last skipped result. Will be set when skipped_results != 0. Defaults to nil.
  • skippedResults (integer()): The number of results skipped, typically because of an offset. Defaults to nil.
  • snapshotVersion (String.t): The version number of the snapshot this batch was returned from. This applies to the range of results from the query's start_cursor (or the beginning of the query if no cursor was given) to this batch's end_cursor (not the query's end_cursor).

In a single transaction, subsequent query result batches for the same query can have a greater snapshot version number. Each batch's snapshot version is valid for all preceding batches. The value will be zero for eventually consistent queries. Defaults to nil.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.Datastore.V1.Model.QueryResultBatch{
  endCursor: String.t(),
  entityResultType: String.t(),
  entityResults: [GoogleApi.Datastore.V1.Model.EntityResult.t()],
  moreResults: String.t(),
  skippedCursor: String.t(),
  skippedResults: integer(),
  snapshotVersion: String.t()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.