Class: Google::Apis::DatastoreV1beta3::Count
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta3::Count
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastore_v1beta3/classes.rb,
lib/google/apis/datastore_v1beta3/representations.rb,
lib/google/apis/datastore_v1beta3/representations.rb
Overview
Count of entities that match the query. The COUNT(*)
aggregation function
operates on the entire entity so it does not require a field reference.
Instance Attribute Summary collapse
-
#up_to ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Count
constructor
A new instance of Count.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Count
Returns a new instance of Count.
406 407 408 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 406 def initialize(**args) update!(**args) end |
Instance Attribute Details
#up_to ⇒ Fixnum
Optional. Optional constraint on the maximum number of entities to count. This
provides a way to set an upper bound on the number of entities to scan,
limiting latency, and cost. Unspecified is interpreted as no bound. If a zero
value is provided, a count result of zero should always be expected. High-
Level Example: AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
Requires: * Must be non-negative when present.
Corresponds to the JSON property upTo
404 405 406 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 404 def up_to @up_to end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
411 412 413 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 411 def update!(**args) @up_to = args[:up_to] if args.key?(:up_to) end |