My Project 1.7.4
C++ Distributed Hash Table
|
Describes a query destined to another peer. More...
#include <value.h>
Public Member Functions | |
Query (Select s={}, Where w={}, bool none=false) | |
Query (std::string q_str) | |
bool | isSatisfiedBy (const Query &q) const |
template<typename Packer > | |
void | msgpack_pack (Packer &pk) const |
void | msgpack_unpack (const msgpack::object &o) |
std::string | toString () const |
Public Attributes | |
Select | select {} |
Where | where {} |
bool | none {false} |
Static Public Attributes | |
static const std::string | QUERY_PARSE_ERROR |
Friends | |
OPENDHT_PUBLIC friend std::ostream & | operator<< (std::ostream &s, const dht::Query &q) |
Describes a query destined to another peer.
This class describes the list of filters on field values and the field itselves to include in the peer response to a GET operation. See FieldValue.
|
inline |
Initializes a query based on a SQL-ish formatted string. The abstract form of such a string is the following:
[SELECT $field$ [WHERE $field$=$value$]]
where
bool dht::Query::isSatisfiedBy | ( | const Query & | q | ) | const |
Tell if the query is satisfied by another query.
|
inline |
|
friend |