Class: Locomotive::RelationalAlgebra::PredGreaterThan

Inherits:
Predicate
  • Object
show all
Defined in:
lib/locomotive/relational_algebra/operators/join/predicates.rb

Instance Attribute Summary

Attributes inherited from Predicate

#first, #second

Instance Method Summary collapse

Methods inherited from Predicate

#clone, #initialize

Methods included from XML

included, #quote

Constructor Details

This class inherits a constructor from Locomotive::RelationalAlgebra::Predicate

Instance Method Details

#to_xmlObject



56
57
58
59
60
61
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 56

def to_xml
   comparison :kind => :gt do
    [column(:name => first.to_xml, :new => false, :position => 1),
     column(:name => second.to_xml, :new => false, :position => 2)].join
  end
end