Class: Sparkql::ExpressionResolver

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

Overview

Base class for handling expression resolution

Constant Summary collapse

VALID_RESULTS =

Accepted results from the resolve method:

  • true and false reflect the expression’s boolean result (as all expressions should).

  • :drop is a special symbol indicating that the expression should be omitted from the filter. Special rules apply for a dropped expression, such as keeping the conjunction of the dropped expression.

[true, false, :drop].freeze

Instance Method Summary collapse

Instance Method Details

#resolve(_expression) ⇒ Object

Evaluate the result of this expression. Allows for any of the values in VALID_RESULTS



13
14
15
# File 'lib/sparkql/expression_resolver.rb', line 13

def resolve(_expression)
  true
end