Class Restriction
java.lang.Object
org.apache.derby.vti.Restriction
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Restriction.AND, Restriction.ColumnQualifier, Restriction.OR
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn AND of two Restrictionsstatic classA simple comparison of a column to a constant value.static classAn OR of two Restrictions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringparenthesize(String raw) Utility method to parenthesize an expressionabstract StringtoSQL()Turn this Restriction into a string suitable for use in a WHERE clause.
-
Constructor Details
-
Restriction
public Restriction()
-
-
Method Details
-
toSQL
Turn this Restriction into a string suitable for use in a WHERE clause. -
parenthesize
-