Interface QueryValueEvaluationStep

All Known Implementing Classes:
QueryValueEvaluationStep.ConstantQueryValueEvaluationStep, QueryValueEvaluationStep.Minimal

public interface QueryValueEvaluationStep
A step in the query evaluation that works on ValueExpresions.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A QueryValueEvalationStep that will return the same constant value throughout the query execution.
    static final class 
    A minimal implementation that falls back to calling evaluate in the strategy.
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(BindingSet bindings)
     
    default boolean
    If an value expression results in a constant then it may be executed once per query invocation.
  • Method Details

    • evaluate

      Value evaluate(BindingSet bindings) throws QueryEvaluationException
      Throws:
      QueryEvaluationException
    • isConstant

      default boolean isConstant()
      If an value expression results in a constant then it may be executed once per query invocation. This can reduce computation time significantly.
      Returns:
      if this ValueExpresionStep will always return the same value