java.io.SerializableRestriction.AND, Restriction.ColumnQualifier, Restriction.ORpublic abstract class Restriction
extends java.lang.Object
implements java.io.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.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Restriction.AND |
An AND of two Restrictions
|
static class |
Restriction.ColumnQualifier |
A simple comparison of a column to a constant value.
|
static class |
Restriction.OR |
An OR of two Restrictions
|
| Constructor | Description |
|---|---|
Restriction() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String |
parenthesize(java.lang.String raw) |
Utility method to parenthesize an expression
|
abstract java.lang.String |
toSQL() |
Turn this Restriction into a string suitable for use in a WHERE clause.
|
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.