class ConceptQL::Operators::After
Public Instance Methods
compare_all?()
click to toggle source
# File lib/conceptql/operators/after.rb, line 36 def compare_all? !(options.keys & [:within, :at_least, :occurrences]).empty? end
occurrences_column()
click to toggle source
# File lib/conceptql/operators/after.rb, line 28 def occurrences_column :end_date end
right_stream(db)
click to toggle source
# File lib/conceptql/operators/after.rb, line 20 def right_stream(db) unless compare_all? right.evaluate(db).from_self.group_by(:person_id).select(:person_id, Sequel.function(:min, :end_date).as(:end_date)).as(:r) else right.evaluate(db).from_self.as(:r) end end
where_clause()
click to toggle source
# File lib/conceptql/operators/after.rb, line 32 def where_clause Proc.new { l__start_date > r__end_date } end