Class: Rafflesia::SearchPhysicalPlanBudget

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/search_physical_plan_budget.rb

Constant Summary collapse

HASH_ATTRS =
{
  is_configured: :is_configured,
  is_within_budget: :is_within_budget,
  max_blocks: :max_blocks,
  max_exact_shards: :max_exact_shards,
  max_materialized_bytes: :max_materialized_bytes,
  max_object_bytes: :max_object_bytes,
  max_object_reads: :max_object_reads,
  planned_block_count: :planned_block_count,
  planned_exact_shard_count: :planned_exact_shard_count,
  planned_materialized_bytes: :planned_materialized_bytes,
  planned_object_bytes: :planned_object_bytes,
  planned_object_read_count: :planned_object_read_count,
  planned_uses_routing: :planned_uses_routing,
  reasons: :reasons,
  require_routing: :require_routing,
  require_zero_materialization: :require_zero_materialization
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SearchPhysicalPlanBudget

Returns a new instance of SearchPhysicalPlanBudget.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 45

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @is_configured = hash[:is_configured]
  @is_within_budget = hash[:is_within_budget]
  @max_blocks = hash[:max_blocks]
  @max_exact_shards = hash[:max_exact_shards]
  @max_materialized_bytes = hash[:max_materialized_bytes]
  @max_object_bytes = hash[:max_object_bytes]
  @max_object_reads = hash[:max_object_reads]
  @planned_block_count = hash[:planned_block_count]
  @planned_exact_shard_count = hash[:planned_exact_shard_count]
  @planned_materialized_bytes = hash[:planned_materialized_bytes]
  @planned_object_bytes = hash[:planned_object_bytes]
  @planned_object_read_count = hash[:planned_object_read_count]
  @planned_uses_routing = hash[:planned_uses_routing]
  @reasons = (hash[:reasons] || [])
  @require_routing = hash[:require_routing]
  @require_zero_materialization = hash[:require_zero_materialization]
end

Instance Attribute Details

#is_configuredObject

Returns the value of attribute is_configured.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def is_configured
  @is_configured
end

#is_within_budgetObject

Returns the value of attribute is_within_budget.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def is_within_budget
  @is_within_budget
end

#max_blocksObject

Returns the value of attribute max_blocks.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def max_blocks
  @max_blocks
end

#max_exact_shardsObject

Returns the value of attribute max_exact_shards.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def max_exact_shards
  @max_exact_shards
end

#max_materialized_bytesObject

Returns the value of attribute max_materialized_bytes.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def max_materialized_bytes
  @max_materialized_bytes
end

#max_object_bytesObject

Returns the value of attribute max_object_bytes.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def max_object_bytes
  @max_object_bytes
end

#max_object_readsObject

Returns the value of attribute max_object_reads.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def max_object_reads
  @max_object_reads
end

#planned_block_countObject

Returns the value of attribute planned_block_count.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def planned_block_count
  @planned_block_count
end

#planned_exact_shard_countObject

Returns the value of attribute planned_exact_shard_count.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def planned_exact_shard_count
  @planned_exact_shard_count
end

#planned_materialized_bytesObject

Returns the value of attribute planned_materialized_bytes.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def planned_materialized_bytes
  @planned_materialized_bytes
end

#planned_object_bytesObject

Returns the value of attribute planned_object_bytes.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def planned_object_bytes
  @planned_object_bytes
end

#planned_object_read_countObject

Returns the value of attribute planned_object_read_count.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def planned_object_read_count
  @planned_object_read_count
end

#planned_uses_routingObject

Returns the value of attribute planned_uses_routing.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def planned_uses_routing
  @planned_uses_routing
end

#reasonsObject

Returns the value of attribute reasons.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def reasons
  @reasons
end

#require_routingObject

Returns the value of attribute require_routing.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def require_routing
  @require_routing
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



27
28
29
# File 'lib/rafflesia/proteins/search_physical_plan_budget.rb', line 27

def require_zero_materialization
  @require_zero_materialization
end