Class: ConceptQL::Operators::Concept
- Inherits:
-
Operator
- Object
- Operator
- ConceptQL::Operators::Concept
show all
- Defined in:
- lib/conceptql/operators/concept.rb
Constant Summary
Constants inherited
from Operator
Operator::COLUMNS
Instance Attribute Summary collapse
Attributes inherited from Operator
#arguments, #options, #values
Instance Method Summary
collapse
Methods inherited from Operator
#columns, #evaluate, #initialize, #label, #select_it, #set_values, #sql, #stream, #types
#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
Instance Attribute Details
#cql_query ⇒ Object
Returns the value of attribute cql_query.
8
9
10
|
# File 'lib/conceptql/operators/concept.rb', line 8
def cql_query
@cql_query
end
|
Instance Method Details
#build_temp_tables(db) ⇒ Object
33
34
35
36
|
# File 'lib/conceptql/operators/concept.rb', line 33
def build_temp_tables(db)
set_cql_query(db)
super
end
|
#ensure_temp_tables(db) ⇒ Object
28
29
30
31
|
# File 'lib/conceptql/operators/concept.rb', line 28
def ensure_temp_tables(db)
set_cql_query(db)
super
end
|
#graph_prep(db) ⇒ Object
18
19
20
21
22
|
# File 'lib/conceptql/operators/concept.rb', line 18
def graph_prep(db)
set_cql_query(db)
puts statement.inspect
@arguments = [description(db)]
end
|
#print_prep(db) ⇒ Object
24
25
26
|
# File 'lib/conceptql/operators/concept.rb', line 24
def print_prep(db)
set_cql_query(db)
end
|
#query(db) ⇒ Object
9
10
11
12
|
# File 'lib/conceptql/operators/concept.rb', line 9
def query(db)
set_cql_query(db)
db.from(cql_query.query.from_self)
end
|
#upstreams ⇒ Object
14
15
16
|
# File 'lib/conceptql/operators/concept.rb', line 14
def upstreams
@upstreams ||= cql_query.operators
end
|