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

Method lookupPKRange

src/storage/table/node_table.cpp:868–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866}
867
868bool NodeTable::lookupPKRange(const Transaction* transaction, ValueVector* lowerBoundVector,
869 uint64_t lowerBoundPos, bool lowerInclusive, ValueVector* upperBoundVector,
870 uint64_t upperBoundPos, bool upperInclusive, idx_t maxResults,
871 std::vector<offset_t>& results) const {
872 auto* pkIndex = tryGetPrimaryKeyIndex();
873 if (pkIndex == nullptr) {
874 return false;
875 }
876 return pkIndex->scanPrimaryKeyRange(lowerBoundVector, lowerBoundPos, lowerInclusive,
877 upperBoundVector, upperBoundPos, upperInclusive, maxResults, results,
878 [&](offset_t offset) { return isVisibleNoLock(transaction, offset); });
879}
880
881bool NodeTable::lookupIndexRange(const Transaction* transaction, const std::string& indexName,
882 ValueVector* lowerBoundVector, uint64_t lowerBoundPos, bool lowerInclusive,

Callers 1

lookupRangeMethod · 0.80

Calls 1

scanPrimaryKeyRangeMethod · 0.80

Tested by

no test coverage detected