A cardinality constraint. More...
#include <sqludr.h>
Public Member Functions | |
CardinalityConstraintInfo (long minNumRows=0, long maxNumRows=-1) | |
long | getMinNumRows () const |
long | getMaxNumRows () const |
A cardinality constraint.
Upper and/or lower bounds for the cardinality of a table. Note that unlike cardinality estimates, this is a hard constraint that must be followed by the table, otherwise incorrect results and errors may occur.
CardinalityConstraintInfo::CardinalityConstraintInfo | ( | long | minNumRows = 0 , |
|
long | maxNumRows = -1 | |||
) |
Construct a new cardinality constraint.
A cardinality constraint allows to specify a lower and/or an upper limit for the number of rows in a table.
minNumRows | The minimum number of rows in the table, 0 or a positive number. | |
maxNumRows | The maximum number of rows in the table, or -1 if there is no upper bound. If it is not -1, maxNumRows must be greater or equal minNumRows. |
UDRException |
long CardinalityConstraintInfo::getMaxNumRows | ( | ) | const |
Return the maximum number of rows in a table.
long CardinalityConstraintInfo::getMinNumRows | ( | ) | const |
Return the minimum number of rows in a table.