![]() |
rasdaman client API
10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
The global function r_oql_execute() is used to invoke RasML queries. More...
#include <oqlquery.hh>
Public Member Functions | |
| r_OQL_Query ()=default | |
| default constructor More... | |
| r_OQL_Query (const char *s) | |
| constructor getting the query string More... | |
| r_OQL_Query (const r_OQL_Query &q) | |
| copy constructor More... | |
| ~r_OQL_Query () | |
| destructor More... | |
| const r_OQL_Query & | operator= (const r_OQL_Query &q) |
| assignment operator More... | |
| r_OQL_Query & | operator<< (const char *s) |
| r_OQL_Query & | operator<< (r_Char c) |
| r_OQL_Query & | operator<< (r_Short s) |
| r_OQL_Query & | operator<< (r_UShort us) |
| r_OQL_Query & | operator<< (r_Long l) |
| r_OQL_Query & | operator<< (r_ULong ul) |
| r_OQL_Query & | operator<< (r_Point pt) |
| r_OQL_Query & | operator<< (r_Sinterval in) |
| r_OQL_Query & | operator<< (r_Minterval in) |
| r_OQL_Query & | operator<< (r_GMarray &in) |
| int | is_update_query () const |
| returns true if the current query is an update / delete one More... | |
| int | is_insert_query () const |
| returns true if the current query is an insert one More... | |
| int | is_retrieval_query () const |
| returns true if the current query is an retrieval query (select) More... | |
| void | reset_query () |
| resets the expandation of the query string More... | |
| const char * | get_query () const |
| gets the expanded query string More... | |
| const r_Set< r_GMarray * > * | get_constants () const |
| get mdd constants More... | |
| const char * | get_parameterized_query () const |
| gets the parameterized query string More... | |
The global function r_oql_execute() is used to invoke RasML queries.
The query statement is represented through an object of class r_OQL_Query which is the first argument of the function. The constructor gets a parameterized query string where $i indicates the i-th parameter. The overloaded stream input operators allows to insert the parameter values to the query, at the same time preserving their respective types. If any of the $i are not followed by a right operant construction argument at the point r_oql_execute is called, a r_Error exception object of kind r_Error_QueryParameterCountInvalid is thrown. Once a query has been executed via r_oql_execute(), the arguments associated with the $i parameters are cleared and new arguments must be supplied.
The copy constructor and assignment operator copy all the underlying data structures associated with the query, based upon the parameters that have been passed to the query at the point the operation is performed.
The stream operators raise a r_Error exception of type r_Error_QueryParameterCountInvalid if the number of arguments is exceeded.
|
default |
default constructor
|
explicit |
constructor getting the query string
| r_OQL_Query::r_OQL_Query | ( | const r_OQL_Query & | q | ) |
copy constructor
| r_OQL_Query::~r_OQL_Query | ( | ) |
destructor
| const char* r_OQL_Query::get_parameterized_query | ( | ) | const |
gets the parameterized query string
| const char* r_OQL_Query::get_query | ( | ) | const |
gets the expanded query string
| int r_OQL_Query::is_insert_query | ( | ) | const |
returns true if the current query is an insert one
| int r_OQL_Query::is_retrieval_query | ( | ) | const |
returns true if the current query is an retrieval query (select)
| int r_OQL_Query::is_update_query | ( | ) | const |
returns true if the current query is an update / delete one
| r_OQL_Query& r_OQL_Query::operator<< | ( | const char * | s | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_Char | c | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_GMarray & | in | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_Long | l | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_Minterval | in | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_Point | pt | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_Short | s | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_Sinterval | in | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_ULong | ul | ) |
| r_OQL_Query& r_OQL_Query::operator<< | ( | r_UShort | us | ) |
| const r_OQL_Query& r_OQL_Query::operator= | ( | const r_OQL_Query & | q | ) |
assignment operator
| void r_OQL_Query::reset_query | ( | ) |
resets the expandation of the query string
1.8.17