summaryrefslogtreecommitdiffstats
path: root/include/shard
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-03-22 15:35:14 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2024-03-22 15:35:14 -0400
commitfb4312a883dd0e382ecbcfe1119479e6f44d32a6 (patch)
tree0dfee95bbb83fbdd35a9502ce77cd4a6fa221b24 /include/shard
parent7619c90e10adc441e525c98ad068a3639096d0c9 (diff)
downloaddynamic-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.h6
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;
}