IBM DB2 Information Integrator
Java API Reference
for Developing Wrappers

com.ibm.db2.wrapper
Class PredicateList

java.lang.Object
  extended bycom.ibm.db2.wrapper.PredicateList

public final class PredicateList
extends java.lang.Object

The PredicateList describes two lists of predicates to estimate the selectivity factor. Instances of this class are used as input to UnfencedGenericServer.getSelectivity, the selectivity estimation function.

The two predicate lists are:

The result selectivity is conditional selectivity:

selectivity (P/AP)

If you need unconditional selectivity, the AP can be null. If the implementation cannot support this framework, the implementation can be set to ignore the AP. The lists of predicates are similar to the list of predicates in the Request class and are manipulated with similar methods.

Since:
IBM DB2 Information Integrator Version 8.2

Method Summary
 RequestExp getAppliedPredicate(int position)
          Retrieve a RequestExp object that describes the applied predicate at the specified position.
 int getNumberOfAppliedPredicates()
          Retrieve the number of applied predicates.
 int getNumberOfPredicates()
          Retrieve the number of predicates in the list.
 RequestExp getPredicate(int position)
          Retrieve a RequestExp object that describes the predicate at the specified position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAppliedPredicate

public RequestExp getAppliedPredicate(int position)
Retrieve a RequestExp object that describes the applied predicate at the specified position.

Parameters:
position - The predicate position. The first predicate is at position 1.
Returns:
The applied predicate expression.
Since:
IBM DB2 Information Integrator Version 8.2

getNumberOfAppliedPredicates

public int getNumberOfAppliedPredicates()
Retrieve the number of applied predicates.

Returns:
The number of applied predicates.
Since:
IBM DB2 Information Integrator Version 8.2

getNumberOfPredicates

public int getNumberOfPredicates()
Retrieve the number of predicates in the list.

Returns:
The number of predicates.
Since:
IBM DB2 Information Integrator Version 8.2

getPredicate

public RequestExp getPredicate(int position)
Retrieve a RequestExp object that describes the predicate at the specified position.

Parameters:
position - The predicate position. The first predicate is at position 1.
Returns:
The predicate expression.
Since:
IBM DB2 Information Integrator Version 8.2

IBM DB2 Information Integrator
Java API Reference
for Developing Wrappers

(C)Copyright IBM Corp. 2002. All rights reserved.

Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.