diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2024-03-22 15:35:14 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2024-03-22 15:35:14 -0400 |
| commit | fb4312a883dd0e382ecbcfe1119479e6f44d32a6 (patch) | |
| tree | 0dfee95bbb83fbdd35a9502ce77cd4a6fa221b24 /include/shard | |
| parent | 7619c90e10adc441e525c98ad068a3639096d0c9 (diff) | |
| download | dynamic-extension-fb4312a883dd0e382ecbcfe1119479e6f44d32a6.tar.gz | |
PointLookup: added a point lookup query for unique indexes, and some tests
Diffstat (limited to 'include/shard')
| -rw-r--r-- | include/shard/FSTrie.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/shard/FSTrie.h b/include/shard/FSTrie.h index aa3c9f4..50bf982 100644 --- a/include/shard/FSTrie.h +++ b/include/shard/FSTrie.h @@ -160,6 +160,12 @@ public: return nullptr; } + // FIXME: for convenience, I'm treating this Trie as a unique index + // for now, so no need to scan forward and/or check values. This + // also makes the point lookup query class a lot easier to make. + // Ultimately, though, we can support non-unique indexes with some + // extra work. + return m_data + idx; } |