Class Restriction

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    Restriction.AND, Restriction.ColumnQualifier, Restriction.OR

    public abstract class Restriction
    extends Object
    implements Serializable

    An expression to be pushed into a Table Function so that the Table Function can short-circuit its processing and return fewer rows. A restriction is represented as a binary tree. The non-leaf nodes are ANDs and ORs. The leaf nodes are ColumnQualifiers. A ColumnQualifier is a simple expression comparing a constant value to a column in the Table Function.

    See Also:
    Serialized Form
    • Constructor Detail

      • Restriction

        public Restriction()
    • Method Detail

      • toSQL

        public abstract String toSQL()
        Turn this Restriction into a string suitable for use in a WHERE clause.
        Returns:
        this Restriction as a string suitable for use in a WHERE clause.