[Groonga-commit] groonga/grnxx at 32750e2 [master] Enable grnxx::map::ArrayMap.

アーカイブの一覧に戻る

susumu.yata null+****@clear*****
Thu May 16 20:03:10 JST 2013


susumu.yata	2013-05-16 20:03:10 +0900 (Thu, 16 May 2013)

  New Revision: 32750e2c9bed8e69ef130172b4fb6aa06d55f497
  https://github.com/groonga/grnxx/commit/32750e2c9bed8e69ef130172b4fb6aa06d55f497

  Message:
    Enable grnxx::map::ArrayMap.

  Modified files:
    lib/grnxx/map.cpp

  Modified: lib/grnxx/map.cpp (+5 -3)
===================================================================
--- lib/grnxx/map.cpp    2013-05-16 18:54:55 +0900 (2900767)
+++ lib/grnxx/map.cpp    2013-05-16 20:03:10 +0900 (4ea6931)
@@ -24,6 +24,7 @@
 #include "grnxx/logger.hpp"
 #include "grnxx/storage.hpp"
 #include "grnxx/string_builder.hpp"
+#include "grnxx/map/array_map.hpp"
 #include "grnxx/map/header.hpp"
 #include "grnxx/map/helper.hpp"
 #include "grnxx/map/scanner.hpp"
@@ -94,7 +95,7 @@ Map<T> *Map<T>::create(Storage *storage, uint32_t storage_node_id,
   }
   switch (type) {
     case MAP_ARRAY: {
-      // TODO: Not supported yet.
+      return map::ArrayMap<T>::create(storage, storage_node_id, options);
     }
     case MAP_DOUBLE_ARRAY: {
       // TODO: Not supported yet.
@@ -126,7 +127,7 @@ Map<T> *Map<T>::open(Storage *storage, uint32_t storage_node_id) {
       static_cast<const map::Header *>(storage_node.body());
   switch (header->type) {
     case MAP_ARRAY: {
-      // TODO: Not supported yet.
+      return map::ArrayMap<T>::open(storage, storage_node_id);
     }
     case MAP_DOUBLE_ARRAY: {
       // TODO: Not supported yet.
@@ -322,6 +323,7 @@ template class Map<int64_t>;
 template class Map<uint64_t>;
 template class Map<double>;
 template class Map<GeoPoint>;
-template class Map<Bytes>;
+// TODO: To be enabled
+//template class Map<Bytes>;
 
 }  // namespace grnxx
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る