Sql query.
More...
#include <query_sql.h>
Sql query.
- Deprecated:
- Will be removed in future releases. Use SqlFieldsQuery instead.
◆ SqlQuery() [1/2]
ignite::cache::query::SqlQuery::SqlQuery |
( |
const std::string & |
type, |
|
|
const std::string & |
sql |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
type | Type name. |
sql | SQL string. |
◆ SqlQuery() [2/2]
ignite::cache::query::SqlQuery::SqlQuery |
( |
const SqlQuery & |
other | ) |
|
|
inline |
Copy constructor.
- Parameters
-
◆ AddArgument()
template<typename T >
void ignite::cache::query::SqlQuery::AddArgument |
( |
const T & |
arg | ) |
|
|
inline |
Add argument.
Template argument type should be copy-constructable and assignable. Also BinaryType class template should be specialized for this type.
- Parameters
-
◆ GetPageSize()
int32_t ignite::cache::query::SqlQuery::GetPageSize |
( |
| ) |
const |
|
inline |
Get page size.
- Returns
- Page size.
◆ GetSql()
const std::string& ignite::cache::query::SqlQuery::GetSql |
( |
| ) |
const |
|
inline |
Get SQL string.
- Returns
- SQL string.
◆ GetType()
const std::string& ignite::cache::query::SqlQuery::GetType |
( |
| ) |
const |
|
inline |
Get type name.
- Returns
- Type name.
◆ IsDistributedJoins()
bool ignite::cache::query::SqlQuery::IsDistributedJoins |
( |
| ) |
const |
|
inline |
Check if distributed joins are enabled for this query.
- Returns
- True If distributed joind enabled.
◆ IsLocal()
bool ignite::cache::query::SqlQuery::IsLocal |
( |
| ) |
const |
|
inline |
Get local flag.
- Returns
- Local flag.
◆ operator=()
Assignment operator.
- Parameters
-
◆ SetDistributedJoins()
void ignite::cache::query::SqlQuery::SetDistributedJoins |
( |
bool |
enabled | ) |
|
|
inline |
Specify if distributed joins are enabled for this query.
When disabled, join results will only contain colocated data (joins work locally). When enabled, joins work as expected, no matter how the data is distributed.
- Parameters
-
enabled | Distributed joins enabled. |
◆ SetLocal()
void ignite::cache::query::SqlQuery::SetLocal |
( |
bool |
loc | ) |
|
|
inline |
Set local flag.
- Parameters
-
val | Value of the flag. If true, query will be executed only on local node, so only local entries will be returned as query result. |
◆ SetPageSize()
void ignite::cache::query::SqlQuery::SetPageSize |
( |
int32_t |
pageSize | ) |
|
|
inline |
Set page size.
- Parameters
-
◆ SetSql()
void ignite::cache::query::SqlQuery::SetSql |
( |
const std::string & |
sql | ) |
|
|
inline |
Set SQL string.
- Parameters
-
◆ SetType()
void ignite::cache::query::SqlQuery::SetType |
( |
const std::string & |
type | ) |
|
|
inline |
Set type name.
- Parameters
-
◆ Swap()
void ignite::cache::query::SqlQuery::Swap |
( |
SqlQuery & |
other | ) |
|
|
inline |
Efficiently swaps contents with another SqlQuery instance.
- Parameters
-
◆ Write()
Write query info to the stream.
- Parameters
-
The documentation for this class was generated from the following file: