Class Expression

    • Field Detail

      • singleQuotes

        protected Boolean singleQuotes
      • doubleQuotes

        protected Boolean doubleQuotes
      • isNull

        protected boolean isNull
      • rid

        protected Rid rid
      • json

        protected Json json
      • booleanValue

        protected Boolean booleanValue
    • Method Detail

      • isBaseIdentifier

        public boolean isBaseIdentifier()
      • isEarlyCalculated

        public boolean isEarlyCalculated()
      • getDefaultAlias

        public Identifier getDefaultAlias()
      • supportsBasicCalculation

        public boolean supportsBasicCalculation()
      • isIndexedFunctionCal

        public boolean isIndexedFunctionCal()
      • encodeSingle

        public static String encodeSingle​(String s)
      • canExecuteIndexedFunctionWithoutIndex

        public boolean canExecuteIndexedFunctionWithoutIndex​(FromClause target,
                                                             CommandContext context,
                                                             BinaryCompareOperator operator,
                                                             Object right)
        tests if current expression is an indexed function AND that function can also be executed without using the index
        Parameters:
        target - the query target
        context - the execution context
        operator -
        right -
        Returns:
        true if current expression is an indexed funciton AND that function can also be executed without using the index, false otherwise
      • allowsIndexedFunctionExecutionOnTarget

        public boolean allowsIndexedFunctionExecutionOnTarget​(FromClause target,
                                                              CommandContext context,
                                                              BinaryCompareOperator operator,
                                                              Object right)
        tests if current expression is an indexed function AND that function can be used on this target
        Parameters:
        target - the query target
        context - the execution context
        operator -
        right -
        Returns:
        true if current expression involves an indexed function AND that function can be used on this target, false otherwise
      • executeIndexedFunctionAfterIndexSearch

        public boolean executeIndexedFunctionAfterIndexSearch​(FromClause target,
                                                              CommandContext context,
                                                              BinaryCompareOperator operator,
                                                              Object right)
        tests if current expression is an indexed function AND the function has also to be executed after the index search. In some cases, the index search is accurate, so this condition can be excluded from further evaluation. In other cases the result from the index is a superset of the expected result, so the function has to be executed anyway for further filtering
        Parameters:
        target - the query target
        context - the execution context
        Returns:
        true if current expression involves an indexed function AND the function has also to be executed after the index search.
      • isExpand

        public boolean isExpand()
      • getExpandContent

        public Expression getExpandContent()
      • needsAliases

        public boolean needsAliases​(Set<String> aliases)
      • isAggregate

        public boolean isAggregate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setMathExpression

        public void setMathExpression​(MathExpression mathExpression)
      • refersToParent

        public boolean refersToParent()
      • getRid

        public Rid getRid()
      • setRid

        public void setRid​(Rid rid)
      • isCount

        public boolean isCount()
      • setArrayConcatExpression

        public void setArrayConcatExpression​(ArrayConcatExpression arrayConcatExpression)
      • serialize

        public Result serialize()
      • deserialize

        public void deserialize​(Result fromResult)
      • isDefinedFor

        public boolean isDefinedFor​(Result currentRecord)
      • isDefinedFor

        public boolean isDefinedFor​(Record currentRecord)
      • isCacheable

        public boolean isCacheable()