Пример #1
0
 RoundRobinQueryPlan(const CopyOnWriteHostVec& hosts, size_t start_index)
   : hosts_(hosts)
   , index_(start_index)
   , remaining_(hosts->size()) { }
Пример #2
0
 TokenAwareQueryPlan(LoadBalancingPolicy* child_policy, QueryPlan* child_plan, const CopyOnWriteHostVec& replicas, size_t start_index)
   : child_policy_(child_policy)
   , child_plan_(child_plan)
   , replicas_(replicas)
   , index_(start_index)
   , remaining_(replicas->size()) {}
Пример #3
0
// Helper method to prevent copy (Notice: "const CopyOnWriteHostVec&")
static size_t get_hosts_size(const CopyOnWriteHostVec& hosts) {
  return hosts->size();
}