| 784 | } |
| 785 | |
| 786 | Future<Reference<Plan>> getIndexesForCollectionPlan(Namespace const& ns, |
| 787 | Reference<DocTransaction> tr, |
| 788 | Reference<MetadataManager> mm) { |
| 789 | std::string nsStr = ns.first + "." + ns.second; |
| 790 | Future<Reference<UnboundCollectionContext>> unbound = mm->indexesCollection(tr, ns.first); |
| 791 | return map(unbound, [nsStr](Reference<UnboundCollectionContext> unbound) { |
| 792 | Reference<IPredicate> pred = |
| 793 | any_predicate(DocLayerConstants::NS_FIELD, ref(new EqPredicate(DataValue(nsStr))), false); |
| 794 | return FilterPlan::construct_filter_plan_no_pushdown(unbound, ref(new TableScanPlan(unbound)), pred); |
| 795 | }); |
| 796 | } |
| 797 | |
| 798 | Reference<Plan> getIndexesForCollectionPlan(Reference<UnboundCollectionContext> indexesCollection, |
| 799 | Namespace const& ns) { |
no test coverage detected