Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
212 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /* | ||
| Copyright (C) 2012-2013 Brazil, Inc. | ||
| This library is free software; you can redistribute it and/or | ||
| modify it under the terms of the GNU Lesser General Public | ||
| License as published by the Free Software Foundation; either | ||
| version 2.1 of the License, or (at your option) any later version. | ||
| This library is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| Lesser General Public License for more details. | ||
| You should have received a copy of the GNU Lesser General Public | ||
| License along with this library; if not, write to the Free Software | ||
| Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| */ | ||
| #include "grnxx/map/array_map/header.hpp" | ||
|
|
||
| #include "grnxx/storage.hpp" | ||
|
|
||
| namespace grnxx { | ||
| namespace map { | ||
| namespace array_map { | ||
|
|
||
| Header::Header() | ||
| : map_type(MAP_ARRAY), | ||
| keys_storage_node_id(STORAGE_INVALID_NODE_ID), | ||
| bits_storage_node_id(STORAGE_INVALID_NODE_ID), | ||
| max_key_id(MAP_MIN_KEY_ID - 1), | ||
| num_keys(0) {} | ||
|
|
||
| } // namespace array_map | ||
| } // namespace map | ||
| } // namespace grnxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| /* | ||
| Copyright (C) 2012-2013 Brazil, Inc. | ||
| This library is free software; you can redistribute it and/or | ||
| modify it under the terms of the GNU Lesser General Public | ||
| License as published by the Free Software Foundation; either | ||
| version 2.1 of the License, or (at your option) any later version. | ||
| This library is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| Lesser General Public License for more details. | ||
| You should have received a copy of the GNU Lesser General Public | ||
| License along with this library; if not, write to the Free Software | ||
| Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| */ | ||
| #ifndef GRNXX_MAP_ARRAY_MAP_HEADER_HPP | ||
| #define GRNXX_MAP_ARRAY_MAP_HEADER_HPP | ||
|
|
||
| #include "grnxx/features.hpp" | ||
|
|
||
| #include "grnxx/map.hpp" | ||
| #include "grnxx/types.hpp" | ||
|
|
||
| namespace grnxx { | ||
| namespace map { | ||
| namespace array_map { | ||
|
|
||
| struct Header { | ||
| MapType map_type; | ||
| uint32_t keys_storage_node_id; | ||
| uint32_t bits_storage_node_id; | ||
| int64_t max_key_id; | ||
| uint64_t num_keys; | ||
|
|
||
| Header(); | ||
| }; | ||
|
|
||
| } // namespace array_map | ||
| } // namespace map | ||
| } // namespace grnxx | ||
|
|
||
| #endif // GRNXX_MAP_ARRAY_MAP_HEADER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| /* | ||
| Copyright (C) 2012-2013 Brazil, Inc. | ||
| This library is free software; you can redistribute it and/or | ||
| modify it under the terms of the GNU Lesser General Public | ||
| License as published by the Free Software Foundation; either | ||
| version 2.1 of the License, or (at your option) any later version. | ||
| This library is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| Lesser General Public License for more details. | ||
| You should have received a copy of the GNU Lesser General Public | ||
| License along with this library; if not, write to the Free Software | ||
| Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| */ | ||
| #include "grnxx/map/hash_table/header.hpp" | ||
|
|
||
| #include "grnxx/map/hash_table/link_array.hpp" | ||
| #include "grnxx/storage.hpp" | ||
|
|
||
| namespace grnxx { | ||
| namespace map { | ||
| namespace hash_table { | ||
|
|
||
| Header::Header() | ||
| : map_type(MAP_HASH_TABLE), | ||
| key_ids_storage_node_id(STORAGE_INVALID_NODE_ID), | ||
| old_key_ids_storage_node_id(STORAGE_INVALID_NODE_ID), | ||
| keys_storage_node_id(STORAGE_INVALID_NODE_ID), | ||
| bits_storage_node_id(STORAGE_INVALID_NODE_ID), | ||
| links_storage_node_id(STORAGE_INVALID_NODE_ID), | ||
| max_key_id(MAP_MIN_KEY_ID - 1), | ||
| num_keys(0), | ||
| num_key_ids(0), | ||
| latest_link(INVALID_LINK), | ||
| mutex(MUTEX_UNLOCKED) {} | ||
|
|
||
| } // namespace hash_table | ||
| } // namespace map | ||
| } // namespace grnxx |
Oops, something went wrong.