GPUdb C++ API  Version 6.2.0.3
gpudb::WorkerQueue Class Reference

#include <gpudb/utils/GPUdbMultiHeadIOUtils.h>

Public Types

typedef std::vector< gpudb::GenericRecordrecordVector_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 306 of file GPUdbMultiHeadIOUtils.h.

Member Typedef Documentation

◆ recordVector_T

Definition at line 311 of file GPUdbMultiHeadIOUtils.h.

Constructor & Destructor Documentation

◆ WorkerQueue() [1/2]

gpudb::WorkerQueue::WorkerQueue ( const std::string &  url)

◆ WorkerQueue() [2/2]

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

◆ ~WorkerQueue()

gpudb::WorkerQueue::~WorkerQueue ( )

Member Function Documentation

◆ flush()

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

Returns the current queue and creates a new internal queue.

◆ get_url()

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

Returns the URL in string format for this worker.

Definition at line 341 of file GPUdbMultiHeadIOUtils.h.

◆ insert()

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: