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

Method isVisible

src/storage/local_storage/local_node_table.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44bool LocalNodeTable::isVisible(const Transaction* transaction, offset_t offset) const {
45 auto [nodeGroupIdx, offsetInGroup] =
46 StorageUtils::getNodeGroupIdxAndOffsetInChunk(offset - startOffset);
47 auto* nodeGroup = nodeGroups.getNodeGroup(nodeGroupIdx);
48 if (nodeGroup->isDeleted(transaction, offsetInGroup)) {
49 return false;
50 }
51 return nodeGroup->isInserted(transaction, offsetInGroup);
52}
53
54offset_t LocalNodeTable::validateUniquenessConstraint(const Transaction* transaction,
55 const ValueVector& pkVector) const {

Callers

nothing calls this directly

Calls 3

getNodeGroupMethod · 0.45
isDeletedMethod · 0.45
isInsertedMethod · 0.45

Tested by

no test coverage detected