Class: Sparkql::Evaluator::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/sparkql/evaluator.rb

Overview

The struct here mimics some of the parser information about an expression, but should not be confused for an expression. Nodes reduce the expressions to a result based on conjunction logic, and only one exists per block group.

Instance Attribute Summary collapse

Instance Attribute Details

#block_groupObject

Returns the value of attribute block_group

Returns:

  • (Object)

    the current value of block_group



11
12
13
# File 'lib/sparkql/evaluator.rb', line 11

def block_group
  @block_group
end

#conjunctionObject

Returns the value of attribute conjunction

Returns:

  • (Object)

    the current value of conjunction



11
12
13
# File 'lib/sparkql/evaluator.rb', line 11

def conjunction
  @conjunction
end

#conjunction_levelObject

Returns the value of attribute conjunction_level

Returns:

  • (Object)

    the current value of conjunction_level



11
12
13
# File 'lib/sparkql/evaluator.rb', line 11

def conjunction_level
  @conjunction_level
end

#expressionsObject

Returns the value of attribute expressions

Returns:

  • (Object)

    the current value of expressions



11
12
13
# File 'lib/sparkql/evaluator.rb', line 11

def expressions
  @expressions
end

#good_orsObject

Returns the value of attribute good_ors

Returns:

  • (Object)

    the current value of good_ors



11
12
13
# File 'lib/sparkql/evaluator.rb', line 11

def good_ors
  @good_ors
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



11
12
13
# File 'lib/sparkql/evaluator.rb', line 11

def level
  @level
end

#matchObject

Returns the value of attribute match

Returns:

  • (Object)

    the current value of match



11
12
13
# File 'lib/sparkql/evaluator.rb', line 11

def match
  @match
end

#unaryObject

Returns the value of attribute unary

Returns:

  • (Object)

    the current value of unary



11
12
13
# File 'lib/sparkql/evaluator.rb', line 11

def unary
  @unary
end