Class: ConceptQL::Operators::Recall
- Defined in:
- lib/conceptql/operators/recall.rb
Overview
Mimics using a variable that has been set via “define” operator
The idea is that a concept might be very complex and it helps to break that complex concept into a set of sub-concepts to better understand it.
This operator will look for a sub-concept that has been created through the “define” operator and will fetch the results cached in the corresponding table
Constant Summary
Constants inherited from Operator
Instance Attribute Summary
Attributes inherited from Operator
#arguments, #options, #upstreams, #values
Instance Method Summary collapse
Methods inherited from Operator
#evaluate, #initialize, #label, #select_it, #set_values, #sql, #stream
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
Constructor Details
This class inherits a constructor from ConceptQL::Operators::Operator
Instance Method Details
#columns(query, local_type) ⇒ Object
24 25 26 |
# File 'lib/conceptql/operators/recall.rb', line 24 def columns(query, local_type) COLUMNS end |
#query(db) ⇒ Object
20 21 22 |
# File 'lib/conceptql/operators/recall.rb', line 20 def query(db) scope.from(db, source) end |
#source ⇒ Object
32 33 34 |
# File 'lib/conceptql/operators/recall.rb', line 32 def source arguments.first end |
#types ⇒ Object
28 29 30 |
# File 'lib/conceptql/operators/recall.rb', line 28 def types scope.types(source) end |