Representing the operator 'LIKE'. More...
#include <qExpr.h>
Public Member Functions | |
const char * | colName () const |
Name of the column to be searched. | |
virtual qLike * | dup () const |
Duplicate this query expression. Return the pointer to the new object. | |
virtual void | getTableNames (std::set< std::string > &plist) const |
Identify the data partitions involved in the query expression. | |
const char * | pattern () const |
The string form of the pattern. | |
virtual void | print (std::ostream &) const |
Print out the node in the string form. | |
virtual void | printFull (std::ostream &out) const |
Print out the full expression. | |
qLike () | |
Default constructor. | |
qLike (const char *ls, const char *rs) | |
Constructor. | |
virtual | ~qLike () |
Destructor. |
Representing the operator 'LIKE'.
ibis::qLike::qLike | ( | const char * | ls, |
const char * | rs | ||
) |
Constructor.
For convenience of inputting patterns, this function allows the back slash to be used as escape characters for the second argument, and attempts to remove them before passing the pattern expression to later operations.
References ibis::gVerbose.
void ibis::qLike::getTableNames | ( | std::set< std::string > & | plist | ) | const [virtual] |
Identify the data partitions involved in the query expression.
Return the list of data partition names in a set.
It records a '*' for the variables without explicit partition names.
Reimplemented from ibis::qExpr.
References ibis::qExpr::extractTableName().
void ibis::qLike::print | ( | std::ostream & | out | ) | const [virtual] |
Print out the node in the string form.
The short-form of the print function.
It only prints information about the current node of the query expression tree.
Reimplemented from ibis::qExpr.
virtual void ibis::qLike::printFull | ( | std::ostream & | out | ) | const [inline, virtual] |
Print out the full expression.
The long form of the print function.
It recursively prints out the whole query expression tree, which can be quite long.
Reimplemented from ibis::qExpr.
References ibis::qExpr::print().
![]() |