MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / lookupIndexRange

Method lookupIndexRange

src/storage/table/node_table.cpp:881–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881bool NodeTable::lookupIndexRange(const Transaction* transaction, const std::string& indexName,
882 ValueVector* lowerBoundVector, uint64_t lowerBoundPos, bool lowerInclusive,
883 ValueVector* upperBoundVector, uint64_t upperBoundPos, bool upperInclusive, idx_t maxResults,
884 std::vector<offset_t>& results) const {
885 auto index = getIndex(indexName);
886 if (!index.has_value()) {
887 return false;
888 }
889 return index.value()->scanPrimaryKeyRange(lowerBoundVector, lowerBoundPos, lowerInclusive,
890 upperBoundVector, upperBoundPos, upperInclusive, maxResults, results,
891 [&](offset_t offset) { return isVisibleNoLock(transaction, offset); });
892}
893
894bool NodeTable::lookupIndex(const Transaction* transaction, const std::string& indexName,
895 ValueVector* keyVector, uint64_t keyPos, std::vector<offset_t>& results) const {

Callers 1

lookupRangeMethod · 0.80

Calls 1

scanPrimaryKeyRangeMethod · 0.80

Tested by

no test coverage detected