Class: Locomotive::RelationalAlgebra::RowId

Inherits:
Numbering show all
Defined in:
lib/locomotive/relational_algebra/operators/ranking/row_id.rb

Instance Attribute Summary

Attributes inherited from Numbering

#res, #sort_by

Attributes inherited from Operator

#schema

Attributes included from AstHelpers::AstNode

#kind, #left_child, #owner, #right_child, #value

Instance Method Summary collapse

Methods inherited from Numbering

#child=, #xml_content

Methods inherited from Operator

#bound, #free, #to_xml, #xml_content, #xml_kind, #xml_schema

Methods included from XML

included, #quote, #to_xml

Methods included from AstHelpers::Annotations

#method_missing, #respond_to?

Methods included from AstHelpers::AstNode

#has_left_child?, #has_right_child?, #is_leaf?, #traverse, #traverse_strategy=

Constructor Details

#initialize(op, res) ⇒ RowId

Returns a new instance of RowId.



6
7
8
# File 'lib/locomotive/relational_algebra/operators/ranking/row_id.rb', line 6

def initialize(op, res)
  super(op,res,{})
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Locomotive::AstHelpers::Annotations

Instance Method Details

#cloneObject



10
11
12
13
# File 'lib/locomotive/relational_algebra/operators/ranking/row_id.rb', line 10

def clone
  RowId.new(child.clone,
              res.clone)
end

#set(var, plan) ⇒ Object



15
16
17
18
19
# File 'lib/locomotive/relational_algebra/operators/ranking/row_id.rb', line 15

def set(var,plan)
  RowId.new(
    child.set(var,plan),
    res.clone)
end