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 );
110 const std::string& expression =
"" );
115 typedef std::map<std::string, std::string> str_to_str_map_t;
116 typedef boost::shared_ptr<gpudb::WorkerQueue> worker_queue_ptr_t;
123 const std::string& table_name,
125 const std::map<std::string, std::string>& retrieval_options );
128 std::string m_table_name;
131 std::vector<int32_t> m_routing_table;
132 std::vector<worker_queue_ptr_t> m_worker_queues;
133 str_to_str_map_t m_retrieval_options;
143 #endif // __RECORD_RETRIEVER_HPP__
GetRecordsResponse< gpudb::GenericRecord > getRecordsByKey(const gpudb::GenericRecord &record, const std::string &expression="")
Retrieves records for a given shard key, optionally further limited by an additional expression...
void setOptions(const std::map< std::string, std::string > &options)
Returns the options currently used for the retriever methods.
The multi-head record retriever class.
const std::string & getTableName() const
Returns the name of the table on which this class operates.
const std::map< std::string, std::string > & getOptions() const
Gets the options currently used for the retriever methods.
const gpudb::GPUdb & getGPUdb() const
Returns the GPUdb client handle that this class uses internally.
A set of output parameters for const.