Class: ConceptQL::Operators::After

Inherits:
TemporalOperator show all
Defined in:
lib/conceptql/operators/after.rb

Constant Summary

Constants inherited from Operator

Operator::COLUMNS

Instance Attribute Summary

Attributes inherited from Operator

#arguments, #options, #upstreams, #values

Instance Method Summary collapse

Methods inherited from TemporalOperator

#inclusive?, #left_stream, #query

Methods inherited from BinaryOperatorOperator

#display_name, #graph_it, #upstreams

Methods inherited from Operator

#columns, #evaluate, #initialize, #label, #select_it, #set_values, #sql, #stream, #types

Methods included from Metadatable

#allows_many_upstreams, #allows_one_upstream, #argument, #category, #desc, #humanized_class_name, #inherited, #just_class_name, #option, #predominant_types, #preferred_name, #reset_categories, #to_metadata, #types

Constructor Details

This class inherits a constructor from ConceptQL::Operators::Operator

Instance Method Details

#right_stream(db) ⇒ Object



15
16
17
# File 'lib/conceptql/operators/after.rb', line 15

def right_stream(db)
  right.evaluate(db).from_self.group_by(:person_id).select(:person_id, Sequel.function(:min, :end_date).as(:end_date)).as(:r)
end

#where_clauseObject



19
20
21
# File 'lib/conceptql/operators/after.rb', line 19

def where_clause
  Proc.new { l__start_date > r__end_date }
end