irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods::query_processor< ConnectionType > Class Template Reference

#include <query_processor.hpp>

Collaboration diagram for irods::query_processor< ConnectionType >:
[legend]

Classes

class  future
 

Public Types

using error = std::tuple< int, std::string >
 
using errors = std::vector< error >
 
using result_row = typename query< ConnectionType >::value_type
 
using job = std::function< void(const result_row &)>
 
using query_type = typename query< ConnectionType >::query_type
 

Public Member Functions

 query_processor (const std::string &_query, job _job, uint32_t _limit=0, query_type _type=query_type::GENERAL)
 
 query_processor (const query_processor &)=delete
 
query_processoroperator= (const query_processor &)=delete
 
uint32_t size ()
 
auto execute (thread_pool &_thread_pool, ConnectionType &_conn)
 

Private Attributes

uint32_t size_
 
std::string query_
 
job job_
 
uint32_t limit_
 
query_type type_
 

Detailed Description

template<typename ConnectionType>
class irods::query_processor< ConnectionType >

Definition at line 19 of file query_processor.hpp.

Member Typedef Documentation

◆ error

template<typename ConnectionType >
using irods::query_processor< ConnectionType >::error = std::tuple<int, std::string>

Definition at line 23 of file query_processor.hpp.

◆ errors

template<typename ConnectionType >
using irods::query_processor< ConnectionType >::errors = std::vector<error>

Definition at line 24 of file query_processor.hpp.

◆ job

template<typename ConnectionType >
using irods::query_processor< ConnectionType >::job = std::function<void (const result_row&)>

Definition at line 26 of file query_processor.hpp.

◆ query_type

template<typename ConnectionType >
using irods::query_processor< ConnectionType >::query_type = typename query<ConnectionType>::query_type

Definition at line 27 of file query_processor.hpp.

◆ result_row

template<typename ConnectionType >
using irods::query_processor< ConnectionType >::result_row = typename query<ConnectionType>::value_type

Definition at line 25 of file query_processor.hpp.

Constructor & Destructor Documentation

◆ query_processor() [1/2]

template<typename ConnectionType >
irods::query_processor< ConnectionType >::query_processor ( const std::string &  _query,
job  _job,
uint32_t  _limit = 0,
query_type  _type = query_type::GENERAL 
)
inline

Definition at line 30 of file query_processor.hpp.

◆ query_processor() [2/2]

template<typename ConnectionType >
irods::query_processor< ConnectionType >::query_processor ( const query_processor< ConnectionType > &  )
delete

Member Function Documentation

◆ execute()

template<typename ConnectionType >
auto irods::query_processor< ConnectionType >::execute ( thread_pool _thread_pool,
ConnectionType &  _conn 
)
inline

◆ operator=()

template<typename ConnectionType >
query_processor& irods::query_processor< ConnectionType >::operator= ( const query_processor< ConnectionType > &  )
delete

◆ size()

template<typename ConnectionType >
uint32_t irods::query_processor< ConnectionType >::size ( )
inline

Member Data Documentation

◆ job_

template<typename ConnectionType >
job irods::query_processor< ConnectionType >::job_
private

◆ limit_

template<typename ConnectionType >
uint32_t irods::query_processor< ConnectionType >::limit_
private

◆ query_

template<typename ConnectionType >
std::string irods::query_processor< ConnectionType >::query_
private

◆ size_

template<typename ConnectionType >
uint32_t irods::query_processor< ConnectionType >::size_
private

◆ type_

template<typename ConnectionType >
query_type irods::query_processor< ConnectionType >::type_
private

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