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

Method IndexInfo

src/QLContext.actor.cpp:791–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791IndexInfo::IndexInfo(std::string indexName,
792 std::vector<std::pair<std::string, int>> indexKeys,
793 Reference<UnboundCollectionContext> collectionCx,
794 IndexStatus status,
795 Optional<UID> buildId,
796 bool isUniqueIndex)
797 : indexName(indexName), indexKeys(indexKeys), status(status), buildId(buildId), isUniqueIndex(isUniqueIndex) {
798 indexCx =
799 collectionCx->getIndexesContext()->getSubContext(DataValue(indexName, DVTypeCode::STRING).encode_key_part());
800 multikey = true;
801}
802
803// SOMEDAY: If we store the index name as Tuple encoded bytes, prefix comparision would be faster
804bool IndexInfo::hasPrefix(std::vector<std::string> const& prefix) {

Callers

nothing calls this directly

Calls 4

DataValueClass · 0.85
getIndexesContextMethod · 0.80
encode_key_partMethod · 0.80
getSubContextMethod · 0.45

Tested by

no test coverage detected