class NoSE::Cost::EntityCountCost
A cost model which estimates the number of entities transferred
Public Instance Methods
delete_cost(step)
click to toggle source
Cost
estimate as number of entities deleted
# File lib/nose/cost/entity_count.rb, line 17 def delete_cost(step) step.state.cardinality end
index_lookup_cost(step)
click to toggle source
Rough cost estimate as the number of entities retrieved at each step @return [Numeric]
# File lib/nose/cost/entity_count.rb, line 11 def index_lookup_cost(step) # Simply count the number of entities at each step step.state.cardinality end
insert_cost(step)
click to toggle source
Cost
estimate as number of entities inserted
# File lib/nose/cost/entity_count.rb, line 22 def insert_cost(step) step.state.cardinality end