Documentation of 'org.apache.derby.impl.sql.compile.ValueNode' Java class
ValueNode
org.apache.derby.impl.sql.compile

Class ValueNode

    • Method Detail

      • toString

        public java.lang.String toString()
        Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.
        Overrides:
        toString in class QueryTreeNode
        Returns:
        This object as a String
      • setCollationInfo

        public void setCollationInfo(DataTypeDescriptor collationInfoType)
                              throws StandardException
        Set the collation type and derivation of this node based upon the collation information in the passed in type. Note that the base type of this node is not changed (e.g. INTEGER), only its collation settings. This may result in a different object being returned from getTypeServices().
        Parameters:
        collationInfoType - Type to take collation type and derivation from.
        Throws:
        StandardException - Error setting type.
      • setCollationInfo

        public void setCollationInfo(int collationType,
                                     int collationDerivation)
                              throws StandardException
        Set the collation type and derivation of this node based upon the collation information passed in. This may result in a different object being returned from getTypeServices().
        Parameters:
        collationType - Collation type
        collationDerivation - Collation derivation
        Throws:
        StandardException - Error setting type
      • updatableByCursor

        public boolean updatableByCursor()
        Returns:
        the default updatability for an expression - false
      • checkIsBoolean

        public ValueNode checkIsBoolean()
                                 throws StandardException
        Bind time logic. Raises an error if this ValueNode does not resolve to a boolean value. This method is called by WHERE clauses.
        Returns:
        bound coercion of this node to a builtin type as necessary
        Throws:
        StandardException - Thrown on error
      • selectivity

        public double selectivity(Optimizable optTable)
                           throws StandardException
        The default selectivity for value nodes is 50%. This is overridden in specific cases, such as the RelationalOperators.
        Throws:
        StandardException

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.