Permalink
Browse files

Change binarytree multi index to use stx::btree.

  • Loading branch information...
1 parent f39751d commit 87465c61593c51f424e359d35d739be1f9647c02 @malin1993ml malin1993ml committed Sep 13, 2015
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/ee/indexes/BinaryTreeMultiMapIndex.h
@@ -50,7 +50,7 @@
#include <iostream>
#include "indexes/tableindex.h"
#include "common/tabletuple.h"
-#include "stx/btree_map.h"
+#include "stx/btree_multimap.h"
namespace voltdb {
@@ -67,7 +67,8 @@ class BinaryTreeMultiMapIndex : public TableIndex
//typedef std::multimap<KeyType, const void*, KeyComparator> MapType;
typedef h_index::AllocatorTracker<pair<const KeyType, const void*> > AllocatorType;
- typedef std::multimap<KeyType, const void*, KeyComparator, AllocatorType> MapType;
+ //typedef std::multimap<KeyType, const void*, KeyComparator, AllocatorType> MapType;
+ typedef stx::btree_multimap<KeyType, const void*, KeyComparator, stx::btree_default_map_traits<KeyType, const void*>, AllocatorType> MapType;
typedef typename MapType::const_iterator MMCIter;
typedef typename MapType::iterator MMIter;
typedef typename MapType::const_reverse_iterator MMCRIter;

0 comments on commit 87465c6

Please sign in to comment.