Apache Ignite C++
Public Member Functions | List of all members
ignite::cache::query::SqlQuery Class Reference

Sql query. More...

#include <query_sql.h>

Public Member Functions

 SqlQuery (const std::string &type, const std::string &sql)
 Constructor. More...
 
 SqlQuery (const SqlQuery &other)
 Copy constructor. More...
 
SqlQueryoperator= (const SqlQuery &other)
 Assignment operator. More...
 
 ~SqlQuery ()
 Destructor.
 
void Swap (SqlQuery &other)
 Efficiently swaps contents with another SqlQuery instance. More...
 
const std::string & GetType () const
 Get type name. More...
 
void SetType (const std::string &type)
 Set type name. More...
 
const std::string & GetSql () const
 Get SQL string. More...
 
void SetSql (const std::string &sql)
 Set SQL string. More...
 
int32_t GetPageSize () const
 Get page size. More...
 
void SetPageSize (int32_t pageSize)
 Set page size. More...
 
bool IsLocal () const
 Get local flag. More...
 
void SetLocal (bool loc)
 Set local flag. More...
 
template<typename T >
void AddArgument (const T &arg)
 Add argument. More...
 
void Write (binary::BinaryRawWriter &writer) const
 Write query info to the stream. More...
 

Detailed Description

Sql query.

Constructor & Destructor Documentation

ignite::cache::query::SqlQuery::SqlQuery ( const std::string &  type,
const std::string &  sql 
)
inline

Constructor.

Parameters
typeType name.
sqlSQL string.
ignite::cache::query::SqlQuery::SqlQuery ( const SqlQuery other)
inline

Copy constructor.

Parameters
otherOther instance.

Member Function Documentation

template<typename T >
void ignite::cache::query::SqlQuery::AddArgument ( const T &  arg)
inline

Add argument.

Parameters
argArgument.
int32_t ignite::cache::query::SqlQuery::GetPageSize ( ) const
inline

Get page size.

Returns
Page size.
const std::string& ignite::cache::query::SqlQuery::GetSql ( ) const
inline

Get SQL string.

Returns
SQL string.
const std::string& ignite::cache::query::SqlQuery::GetType ( ) const
inline

Get type name.

Returns
Type name.
bool ignite::cache::query::SqlQuery::IsLocal ( ) const
inline

Get local flag.

Returns
Local flag.
SqlQuery& ignite::cache::query::SqlQuery::operator= ( const SqlQuery other)
inline

Assignment operator.

Parameters
otherOther instance.
void ignite::cache::query::SqlQuery::SetLocal ( bool  loc)
inline

Set local flag.

Parameters
locLocal flag.
void ignite::cache::query::SqlQuery::SetPageSize ( int32_t  pageSize)
inline

Set page size.

Parameters
pageSizePage size.
void ignite::cache::query::SqlQuery::SetSql ( const std::string &  sql)
inline

Set SQL string.

Parameters
sqlSQL string.
void ignite::cache::query::SqlQuery::SetType ( const std::string &  type)
inline

Set type name.

Parameters
sqlType name.
void ignite::cache::query::SqlQuery::Swap ( SqlQuery other)
inline

Efficiently swaps contents with another SqlQuery instance.

Parameters
otherOther instance.
void ignite::cache::query::SqlQuery::Write ( binary::BinaryRawWriter writer) const
inline

Write query info to the stream.

Parameters
writerWriter.

The documentation for this class was generated from the following file: