MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / getSimpleIndex

Method getSimpleIndex

src/QLContext.actor.cpp:704–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704Optional<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
715Optional<Reference<IndexInfo>> UnboundCollectionContext::getCompoundIndex(std::vector<std::string> const& prefix,
716 std::string nextIndexKey) {

Callers 1

push_downMethod · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected