Class: Turbopuffer::Models::NamespaceQueryResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/turbopuffer/models/namespace_query_response.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(billing: , performance: , aggregation_groups: nil, aggregations: nil, rows: nil) ⇒ Object

The result of a query.

Parameters:



# File 'lib/turbopuffer/models/namespace_query_response.rb', line 35

Instance Attribute Details

#aggregation_groupsArray<Hash{Symbol=>Object}>?

Returns:

  • (Array<Hash{Symbol=>Object}>, nil)


22
23
# File 'lib/turbopuffer/models/namespace_query_response.rb', line 22

optional :aggregation_groups,
Turbopuffer::Internal::Type::ArrayOf[Turbopuffer::Internal::Type::HashOf[Turbopuffer::Internal::Type::Unknown]]

#aggregationsHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


28
# File 'lib/turbopuffer/models/namespace_query_response.rb', line 28

optional :aggregations, Turbopuffer::Internal::Type::HashOf[Turbopuffer::Internal::Type::Unknown]

#billingTurbopuffer::Models::QueryBilling

The billing information for a query.



11
# File 'lib/turbopuffer/models/namespace_query_response.rb', line 11

required :billing, -> { Turbopuffer::QueryBilling }

#performanceTurbopuffer::Models::QueryPerformance

The performance information for a query.



17
# File 'lib/turbopuffer/models/namespace_query_response.rb', line 17

required :performance, -> { Turbopuffer::QueryPerformance }

#rowsArray<Turbopuffer::Models::Row>?

Returns:



33
# File 'lib/turbopuffer/models/namespace_query_response.rb', line 33

optional :rows, -> { Turbopuffer::Internal::Type::ArrayOf[Turbopuffer::Row] }