1 #ifndef __RECORD_RETRIEVER_HPP__ 2 #define __RECORD_RETRIEVER_HPP__ 15 #include <boost/noncopyable.hpp> 16 #include <boost/shared_ptr.hpp> 43 const std::string& table_name,
47 const std::string& table_name );
50 const std::string& table_name,
52 const std::map<std::string, std::string>& retrieval_options );
55 const std::string& table_name,
56 const std::map<std::string, std::string>& retrieval_options );
79 const std::map<std::string, std::string>&
getOptions()
const {
return m_retrieval_options; }
88 void setOptions(
const std::map<std::string, std::string>& options );
112 const std::string& expression =
"" );
117 typedef std::map<std::string, std::string> str_to_str_map_t;
118 typedef boost::shared_ptr<gpudb::WorkerQueue> worker_queue_ptr_t;
125 const std::string& table_name,
127 const std::map<std::string, std::string>& retrieval_options );
130 std::string m_table_name;
133 std::vector<int32_t> m_routing_table;
134 std::vector<worker_queue_ptr_t> m_worker_queues;
135 str_to_str_map_t m_retrieval_options;
145 #endif // __RECORD_RETRIEVER_HPP__
const std::map< std::string, std::string > & getOptions() const
Gets the options currently used for the retriever methods.
GetRecordsResponse< gpudb::GenericRecord > getRecordsByKey(const gpudb::GenericRecord &record, const std::string &expression="")
Retrieves records for a shard key, based on the shard key values populated in the given GenericRecord...
void setOptions(const std::map< std::string, std::string > &options)
Returns the options currently used for the retriever methods.
const std::string & getTableName() const
Returns the name of the table on which this class operates.
The multi-head record retriever class.
A set of results returned by GPUdb::getRecords.
const gpudb::GPUdb & getGPUdb() const
Returns the GPUdb client handle that this class uses internally.