Class: NoSE::Plans::UpdateState

Inherits:
Object
  • Object
show all
Defined in:
lib/nose/plans/update_planner.rb

Overview

A simple state class to hold the cardinality for updates

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement, cardinality) ⇒ UpdateState

Returns a new instance of UpdateState.



9
10
11
12
# File 'lib/nose/plans/update_planner.rb', line 9

def initialize(statement, cardinality)
  @statement = statement
  @cardinality = cardinality
end

Instance Attribute Details

#cardinalityObject (readonly)

Returns the value of attribute cardinality.



7
8
9
# File 'lib/nose/plans/update_planner.rb', line 7

def cardinality
  @cardinality
end

#statementObject (readonly)

Returns the value of attribute statement.



7
8
9
# File 'lib/nose/plans/update_planner.rb', line 7

def statement
  @statement
end

Instance Method Details

#answered?Boolean

XXX This is just a placeholder since this is

currently used by the query planner

Returns:

  • (Boolean)


17
18
19
# File 'lib/nose/plans/update_planner.rb', line 17

def answered?
  true
end