| 828 | } |
| 829 | |
| 830 | Index* NodeTable::tryGetPrimaryKeyIndex() const { |
| 831 | if (auto* pkIndex = tryGetPKIndex()) { |
| 832 | return pkIndex; |
| 833 | } |
| 834 | for (auto& indexHolder : indexes) { |
| 835 | if (!indexHolder.isLoaded()) { |
| 836 | continue; |
| 837 | } |
| 838 | auto* loadedIndex = indexHolder.getIndex(); |
| 839 | if (loadedIndex->isPrimary()) { |
| 840 | return loadedIndex; |
| 841 | } |
| 842 | } |
| 843 | return nullptr; |
| 844 | } |
| 845 | |
| 846 | bool NodeTable::lookupPK(const Transaction* transaction, ValueVector* keyVector, uint64_t vectorPos, |
| 847 | offset_t& result) const { |
no test coverage detected