Class: Google::Apis::DatastoreV1beta3::QueryResultBatch
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DatastoreV1beta3::QueryResultBatch
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/datastore_v1beta3/classes.rb,
generated/google/apis/datastore_v1beta3/representations.rb,
generated/google/apis/datastore_v1beta3/representations.rb 
Overview
A batch of results produced by a query.
Instance Attribute Summary collapse
- 
  
    
      #end_cursor  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A cursor that points to the position after the last result in the batch.
 - 
  
    
      #entity_result_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The result type for every entity in
entity_results. - 
  
    
      #entity_results  ⇒ Array<Google::Apis::DatastoreV1beta3::EntityResult> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The results for this batch.
 - 
  
    
      #more_results  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The state of the query after the current batch.
 - 
  
    
      #skipped_cursor  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A cursor that points to the position after the last skipped result.
 - 
  
    
      #skipped_results  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The number of results skipped, typically because of an offset.
 - 
  
    
      #snapshot_version  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The version number of the snapshot this batch was returned from.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ QueryResultBatch 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of QueryResultBatch.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QueryResultBatch
Returns a new instance of QueryResultBatch
      1515 1516 1517  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1515 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#end_cursor ⇒ String
A cursor that points to the position after the last result in the batch.
Corresponds to the JSON property endCursor
NOTE: Values are automatically base64 encoded/decoded in the client library.
      1474 1475 1476  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1474 def end_cursor @end_cursor end  | 
  
#entity_result_type ⇒ String
The result type for every entity in entity_results.
Corresponds to the JSON property entityResultType
      1479 1480 1481  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1479 def entity_result_type @entity_result_type end  | 
  
#entity_results ⇒ Array<Google::Apis::DatastoreV1beta3::EntityResult>
The results for this batch.
Corresponds to the JSON property entityResults
      1484 1485 1486  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1484 def entity_results @entity_results end  | 
  
#more_results ⇒ String
The state of the query after the current batch.
Corresponds to the JSON property moreResults
      1489 1490 1491  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1489 def more_results @more_results end  | 
  
#skipped_cursor ⇒ String
A cursor that points to the position after the last skipped result.
Will be set when skipped_results != 0.
Corresponds to the JSON property skippedCursor
NOTE: Values are automatically base64 encoded/decoded in the client library.
      1496 1497 1498  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1496 def skipped_cursor @skipped_cursor end  | 
  
#skipped_results ⇒ Fixnum
The number of results skipped, typically because of an offset.
Corresponds to the JSON property skippedResults
      1501 1502 1503  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1501 def skipped_results @skipped_results end  | 
  
#snapshot_version ⇒ Fixnum
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.
Corresponds to the JSON property snapshotVersion
      1513 1514 1515  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1513 def snapshot_version @snapshot_version end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1520 1521 1522 1523 1524 1525 1526 1527 1528  | 
    
      # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1520 def update!(**args) @end_cursor = args[:end_cursor] if args.key?(:end_cursor) @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type) @entity_results = args[:entity_results] if args.key?(:entity_results) @more_results = args[:more_results] if args.key?(:more_results) @skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor) @skipped_results = args[:skipped_results] if args.key?(:skipped_results) @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version) end  |