Skip to content

Commit

Permalink
Enable grnxx::map::ArrayMap.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed May 16, 2013
1 parent 1c0ffa0 commit 32750e2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/grnxx/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 32750e2

Please sign in to comment.