From a29c1d776830f9fd929bf7b8696774ad0d3d50d0 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Wed, 26 Jul 2023 09:47:34 -0400 Subject: Exposed epsilon configuration parameter for PGM --- include/shard/PGM.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/shard/PGM.h b/include/shard/PGM.h index 0d4268a..65d548e 100644 --- a/include/shard/PGM.h +++ b/include/shard/PGM.h @@ -53,12 +53,13 @@ struct PGMBufferState { }; -template +template class PGM { private: typedef decltype(R::key) K; typedef decltype(R::value) V; + public: // FIXME: there has to be a better way to do this @@ -112,7 +113,7 @@ public: } if (m_reccnt > 0) { - m_pgm = pgm::PGMIndex(keys); + m_pgm = pgm::PGMIndex(keys); } } @@ -175,7 +176,7 @@ public: } if (m_reccnt > 0) { - m_pgm = pgm::PGMIndex(keys); + m_pgm = pgm::PGMIndex(keys); } } @@ -270,7 +271,7 @@ private: size_t m_alloc_size; K m_max_key; K m_min_key; - pgm::PGMIndex m_pgm; + pgm::PGMIndex m_pgm; BloomFilter *m_bf; }; -- cgit v1.2.3