GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gpudb::WorkerQueue Class Reference

#include <gpudb/utils/GPUdbMultiHeadIOUtils.h>

Public Types

typedef std::vector
< gpudb::GenericRecord
recordVector_T
 

Public Member Functions

 WorkerQueue (const std::string &url)
 
 WorkerQueue (const std::string &url, size_t capacity, bool has_primary_key, bool update_on_existing_pk)
 
 ~WorkerQueue ()
 
const gpudb::HttpUrlget_url () const
 Returns the URL in string format for this worker. More...
 
void flush (recordVector_T &flushed_records)
 Returns the current queue and creates a new internal queue. More...
 
bool insert (const gpudb::GenericRecord &record, const RecordKey &key, recordVector_T &flushed_records)
 Inserts a record into the queue. More...
 

Detailed Description

Definition at line 314 of file GPUdbMultiHeadIOUtils.h.

Member Typedef Documentation

Definition at line 319 of file GPUdbMultiHeadIOUtils.h.

Constructor & Destructor Documentation

gpudb::WorkerQueue::WorkerQueue ( const std::string &  url)
gpudb::WorkerQueue::WorkerQueue ( const std::string &  url,
size_t  capacity,
bool  has_primary_key,
bool  update_on_existing_pk 
)
gpudb::WorkerQueue::~WorkerQueue ( )

Member Function Documentation

void gpudb::WorkerQueue::flush ( recordVector_T flushed_records)

Returns the current queue and creates a new internal queue.

const gpudb::HttpUrl& gpudb::WorkerQueue::get_url ( ) const
inline

Returns the URL in string format for this worker.

Definition at line 349 of file GPUdbMultiHeadIOUtils.h.

bool gpudb::WorkerQueue::insert ( const gpudb::GenericRecord record,
const RecordKey key,
recordVector_T flushed_records 
)

Inserts a record into the queue.


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