RoundRobinQueryPlan(const CopyOnWriteHostVec& hosts, size_t start_index) : hosts_(hosts) , index_(start_index) , remaining_(hosts->size()) { }
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()) {}
// Helper method to prevent copy (Notice: "const CopyOnWriteHostVec&") static size_t get_hosts_size(const CopyOnWriteHostVec& hosts) { return hosts->size(); }