| 702 | } |
| 703 | |
| 704 | Optional<Reference<IndexInfo>> UnboundCollectionContext::getSimpleIndex(std::string simpleIndexMapKey) { |
| 705 | if (bannedFieldNames.find(simpleIndexMapKey) != bannedFieldNames.end()) |
| 706 | return Optional<Reference<IndexInfo>>(); |
| 707 | auto index = simpleIndexMap.find(simpleIndexMapKey); |
| 708 | if (index == simpleIndexMap.end()) { |
| 709 | return Optional<Reference<IndexInfo>>(); |
| 710 | } else { |
| 711 | return *index->second.begin(); |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | Optional<Reference<IndexInfo>> UnboundCollectionContext::getCompoundIndex(std::vector<std::string> const& prefix, |
| 716 | std::string nextIndexKey) { |