Sql fields query.
More...
#include <query_sql_fields.h>
ignite::cache::query::SqlFieldsQuery::SqlFieldsQuery |
( |
const std::string & |
sql | ) |
|
|
inline |
ignite::cache::query::SqlFieldsQuery::SqlFieldsQuery |
( |
const std::string & |
sql, |
|
|
bool |
loc |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
sql | SQL string. |
loc | Whether query should be executed locally. |
ignite::cache::query::SqlFieldsQuery::SqlFieldsQuery |
( |
const SqlFieldsQuery & |
other | ) |
|
|
inline |
Copy constructor.
- Parameters
-
template<typename T >
void ignite::cache::query::SqlFieldsQuery::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
-
int32_t ignite::cache::query::SqlFieldsQuery::GetPageSize |
( |
| ) |
const |
|
inline |
Get page size.
- Returns
- Page size.
const std::string& ignite::cache::query::SqlFieldsQuery::GetSql |
( |
| ) |
const |
|
inline |
Get SQL string.
- Returns
- SQL string.
bool ignite::cache::query::SqlFieldsQuery::IsDistributedJoins |
( |
| ) |
const |
|
inline |
Check if distributed joins are enabled for this query.
- Returns
- True If distributed joind enabled.
bool ignite::cache::query::SqlFieldsQuery::IsEnforceJoinOrder |
( |
| ) |
const |
|
inline |
Checks if join order of tables if enforced.
- Returns
- Flag value.
bool ignite::cache::query::SqlFieldsQuery::IsLocal |
( |
| ) |
const |
|
inline |
Get local flag.
- Returns
- Local flag.
Assignment operator.
- Parameters
-
void ignite::cache::query::SqlFieldsQuery::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. |
void ignite::cache::query::SqlFieldsQuery::SetEnforceJoinOrder |
( |
bool |
enforce | ) |
|
|
inline |
Sets flag to enforce join order of tables in the query.
If set to true query optimizer will not reorder tables in join. By default is false.
It is not recommended to enable this property unless you are sure that your indexes and the query itself are correct and tuned as much as possible but query optimizer still produces wrong join order.
- Parameters
-
void ignite::cache::query::SqlFieldsQuery::SetLocal |
( |
bool |
loc | ) |
|
|
inline |
Set local flag.
- Parameters
-
void ignite::cache::query::SqlFieldsQuery::SetPageSize |
( |
int32_t |
pageSize | ) |
|
|
inline |
Set page size.
- Parameters
-
void ignite::cache::query::SqlFieldsQuery::SetSql |
( |
const std::string & |
sql | ) |
|
|
inline |
Set SQL string.
- Parameters
-
void ignite::cache::query::SqlFieldsQuery::Swap |
( |
SqlFieldsQuery & |
other | ) |
|
|
inline |
Efficiently swaps contents with another SqlQuery instance.
- Parameters
-
Write query info to the stream.
- Parameters
-
The documentation for this class was generated from the following file: