Class DoubleConstantFunction

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable
Direct Known Subclasses:
E, Pi, Tau

public abstract class DoubleConstantFunction extends ScalarFunction
Function that emits constants, like Euler’s number.
  • Constructor Details

    • DoubleConstantFunction

      protected DoubleConstantFunction(Source source)
  • Method Details

    • foldable

      public final boolean foldable()
      Description copied from class: Expression
      Whether the expression can be evaluated statically, aka "folded", or not.
      Overrides:
      foldable in class Expression
    • dataType

      public final DataType dataType()
      Description copied from class: Expression
      The DataType returned by executing the tree rooted at this expression. If Expression.typeResolved() returns an error then the behavior of this method is undefined. It may return a valid type. Or it may throw an exception. Or it may return a totally nonsensical type.
      Specified by:
      dataType in class Expression
    • info

      protected final NodeInfo<? extends Expression> info()
      Description copied from class: Node
      Normally, you want to use one of the static create methods to implement this.

      For QueryPlans, it is very important that the properties contain all of the expressions and references relevant to this node, and that all the properties are used in the provided constructor; otherwise query plan transformations like QueryPlan#transformExpressionsOnly(Function) will not have an effect.

      Specified by:
      info in class Node<Expression>