Ql_multiple_scanop Class Reference

#include <Ql_multiple_scanop.hxx>

Inherits Ql_scanop.

Inheritance diagram for Ql_multiple_scanop:

[legend]
Collaboration diagram for Ql_multiple_scanop:
[legend]
List of all members.

Public Member Functions

int evaluate ()
int type_infer (int *)
int scan_open ()
int scan_next ()
int scan_next_sfw (int)
void scan_close ()
Ql_scanop * scan_vars (int i)
Ql_scanop ** scan_vars ()
int nb_scan_vars ()
Ql_operation * criteria (int i)
Ql_operation ** criteria ()
int nb_criteria ()

Detailed Description

Class Ql_multiple_scanop is a subclass of Ql_scanop, representing a list of scan variables that can be pushed together to one SQL query.

Author:
Grigoris Karvounarakis
Version:
1.0


Member Function Documentation

int Ql_multiple_scanop::evaluate (  )  [inline, virtual]

Dummy function - the evaluation is performed by scan_next and the result is stored

Implements Ql_scanop.

int Ql_multiple_scanop::type_infer ( int *   )  [inline, virtual]

Virtual method, implemented for each of the more specific subclasses of Ql_scanop

Implements Ql_scanop.

int Ql_multiple_scanop::scan_open (  )  [virtual]

Open multiple scans on the collection specified by the domain of definition of this scan variable

Returns:
OK (0) or error code

Implements Ql_scanop.

int Ql_multiple_scanop::scan_next (  )  [virtual]

Get the next value of the scanned collection. Stores the value in the result of this scan operation.

Returns:
OK or SCAN_END, if the scan reached the end of the collection

Implements Ql_scanop.

int Ql_multiple_scanop::scan_next_sfw ( int  where_satisfied  ) 

Used only for sf or sfw scans: if existential var and the where clause has been satisfied scan_end else check the condition on the variable if there is one. Scan until the condition is true

Parameters:
where_satisfied indicates if the conditions on this scan have already been satisfied (so that if "this" is an existential variable, we do not need to scan any more values)
Returns:
OK, error_code or SCAN_END, if the scan reached the end of the collection

Reimplemented from Ql_scanop.

void Ql_multiple_scanop::scan_close (  )  [virtual]

Close an open static scan

Implements Ql_scanop.

Ql_scanop* Ql_multiple_scanop::scan_vars ( int  i  )  [inline]

Returns:
the ith scan variable defined in this iterator

Ql_scanop** Ql_multiple_scanop::scan_vars (  )  [inline]

Returns:
the array of scan variables defined in this iterator

int Ql_multiple_scanop::nb_scan_vars (  )  [inline]

Returns:
the number of scan variables defined in this iterator

Ql_operation* Ql_multiple_scanop::criteria ( int  i  )  [inline]

Returns:
the criteria (filtering conditions) that depend only on the (i-1)th variable (position 0 holds join conditions)

Ql_operation** Ql_multiple_scanop::criteria (  )  [inline]

Returns:
the array of criteria of this iterator

int Ql_multiple_scanop::nb_criteria (  )  [inline]

Returns:
the number of criteria


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 17:13:00 2006 for rql by  doxygen 1.5.0