Class: Alf::Algebra::Hierarchize
- Inherits:
-
Object
- Object
- Alf::Algebra::Hierarchize
- Includes:
- Experimental, Operator, Relational, Unary
- Defined in:
- lib/alf/algebra/operator/hierarchize.rb
Instance Attribute Summary
Attributes included from Operator
Instance Method Summary collapse
Methods included from Operator
#==, #dup, #hash, included, #initialize, #signature, #to_cog, #to_lispy, #to_relvar, #to_s, #type_check, #with_operands
Methods included from Support::Registry
#each, #listen, #listeners, #register, #registered
Methods included from TypeCheck
#joinable_headings!, #no_name_clash!, #same_heading!, #type_check_error!, #valid_ordering!
Methods included from Operand
#attr_list, coerce, #resulting_type, #to_ascii_tree, #to_cog, #to_relation, #type_check
Methods included from Relational
Methods included from Unary
included, #operand, #with_operand
Methods included from Experimental
Instance Method Details
#heading ⇒ Object
12 13 14 |
# File 'lib/alf/algebra/operator/hierarchize.rb', line 12 def heading @heading ||= Relation.type(operand.heading){|r| {as => r}}.heading end |
#keys ⇒ Object
16 17 18 |
# File 'lib/alf/algebra/operator/hierarchize.rb', line 16 def keys operand.keys end |