| 892 | } |
| 893 | |
| 894 | bool NodeTable::lookupIndex(const Transaction* transaction, const std::string& indexName, |
| 895 | ValueVector* keyVector, uint64_t keyPos, std::vector<offset_t>& results) const { |
| 896 | auto index = getIndex(indexName); |
| 897 | if (!index.has_value()) { |
| 898 | return false; |
| 899 | } |
| 900 | return index.value()->lookupAll(transaction, keyVector, keyPos, results, |
| 901 | [&](offset_t offset) { return isVisibleNoLock(transaction, offset); }); |
| 902 | } |
| 903 | |
| 904 | bool NodeTable::scanPKColumn(const Transaction* transaction, const Value& keyToLookup, |
| 905 | std::vector<ColumnPredicateSet> columnPredicateSets, offset_t& result) const { |