Class: Locomotive::RelationalAlgebra::PredLessThan

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



47
48
49
50
51
52
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 47

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