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

Sql fields query. More...

#include <query_sql_fields.h>

Public Member Functions

 SqlFieldsQuery (const std::string &sql)
 Constructor. More...
 
 SqlFieldsQuery (const std::string &sql, bool loc)
 Constructor. More...
 
 SqlFieldsQuery (const SqlFieldsQuery &other)
 Copy constructor. More...
 
SqlFieldsQueryoperator= (const SqlFieldsQuery &other)
 Assignment operator. More...
 
 ~SqlFieldsQuery ()
 Destructor.
 
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 fields query.

Constructor & Destructor Documentation

ignite::cache::query::SqlFieldsQuery::SqlFieldsQuery ( const std::string &  sql)
inline

Constructor.

Parameters
sqlSQL string.
ignite::cache::query::SqlFieldsQuery::SqlFieldsQuery ( const std::string &  sql,
bool  loc 
)
inline

Constructor.

Parameters
sqlSQL string.
locWhether query should be executed locally.
ignite::cache::query::SqlFieldsQuery::SqlFieldsQuery ( const SqlFieldsQuery other)
inline

Copy constructor.

Parameters
otherOther instance.

Member Function Documentation

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

Add argument.

Parameters
argArgument.
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::IsLocal ( ) const
inline

Get local flag.

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

Assignment operator.

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

Set local flag.

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

Set page size.

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

Set SQL string.

Parameters
sqlSQL string.
void ignite::cache::query::SqlFieldsQuery::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: