Class: NoSE::Plans::AbstractPlan

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

Overview

This superclass defines what is necessary for manually defined and automatically generated plans to provide for execution

Direct Known Subclasses

QueryExecutionPlan, QueryPlan, UpdatePlan

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



106
107
108
# File 'lib/nose/plans.rb', line 106

def group
  @group
end

#nameObject (readonly)

Returns the value of attribute name.



106
107
108
# File 'lib/nose/plans.rb', line 106

def name
  @name
end

#weightObject (readonly)

Returns the value of attribute weight.



106
107
108
# File 'lib/nose/plans.rb', line 106

def weight
  @weight
end

Instance Method Details

#paramsObject

This method is abstract.

Subclasses should produce the parameters

necessary for this plan



120
121
122
# File 'lib/nose/plans.rb', line 120

def params
  fail NotImplementedError
end

#select_fieldsObject

This method is abstract.

Subclasses should produce the fields selected by this plan



114
115
116
# File 'lib/nose/plans.rb', line 114

def select_fields
  []
end

#stepsObject

This method is abstract.

Subclasses should produce the steps for executing this query



109
110
111
# File 'lib/nose/plans.rb', line 109

def steps
  fail NotImplementedError
end