Class RexNode

    • Field Detail

      • digest

        protected String digest
    • Constructor Detail

      • RexNode

        public RexNode()
    • Method Detail

      • isAlwaysTrue

        public boolean isAlwaysTrue()
        Returns whether this expression always returns true. (Such as if this expression is equal to the literal TRUE.)
      • isAlwaysFalse

        public boolean isAlwaysFalse()
        Returns whether this expression always returns false. (Such as if this expression is equal to the literal FALSE.)
      • isA

        public boolean isA​(SqlKind kind)
      • getKind

        public SqlKind getKind()
        Returns the kind of node this is.
        Returns:
        Node kind, never null
      • nodeCount

        public int nodeCount()
        Returns the number of nodes in this expression.

        Leaf nodes, such as RexInputRef or RexLiteral, have a count of 1. Calls have a count of 1 plus the sum of their operands.

        Node count is a measure of expression complexity that is used by some planner rules to prevent deeply nested expressions.