1 #ifndef __GPUDB_INGESTOR_HPP__
2 #define __GPUDB_INGESTOR_HPP__
8 #include <boost/noncopyable.hpp>
23 std::vector<std::string> m_worker_urls;
25 static std::vector<std::string>& split_string(
const std::string &in_string,
27 std::vector<std::string> &elements );
41 unsigned char *m_buffer;
43 int64_t m_routing_hash;
94 std::vector<int32_t> m_pk_shard_key_indices;
95 std::vector<ColumnType_T> m_column_types;
96 size_t m_key_buffer_size;
121 bool m_has_primary_key;
122 bool m_update_on_existing_pk;
123 std::vector<T> m_queue;
125 typedef std::map<RecordKey, size_t> primary_key_map_t;
126 primary_key_map_t m_primary_key_map;
132 WorkerQueue( std::string url,
size_t capacity,
bool has_primary_key,
133 bool update_on_existing_pk );
136 std::vector<T>&
flush();
168 #endif // __GPUDB_INGESTOR_HPP__
std::vector< T > & flush()
Returns the current queue and creates a new internal queue.
WorkerList(const GPUdb &gpudb)
std::vector< T > & insert(T record, RecordKey key)
Inserts a record into the queue.