libfoedus-core
FOEDUS Core Library
hash_combo.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
3  * This program is free software; you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by the Free
5  * Software Foundation; either version 2 of the License, or (at your option)
6  * any later version.
7  *
8  * This program is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11  * more details. You should have received a copy of the GNU General Public
12  * License along with this program; if not, write to the Free Software
13  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14  *
15  * HP designates this particular file as subject to the "Classpath" exception
16  * as provided by HP in the LICENSE.txt file that accompanied this code.
17  */
18 #ifndef FOEDUS_STORAGE_HASH_HASH_COMBO_HPP_
19 #define FOEDUS_STORAGE_HASH_HASH_COMBO_HPP_
20 
21 #include <stdint.h>
22 
23 #include <iosfwd>
24 
28 
29 namespace foedus {
30 namespace storage {
31 namespace hash {
32 
48 struct HashCombo {
53 
54  HashCombo(const void* key, uint16_t key_length, const HashMetadata& meta);
55 
56  friend std::ostream& operator<<(std::ostream& o, const HashCombo& v);
57 };
58 
59 } // namespace hash
60 } // namespace storage
61 } // namespace foedus
62 #endif // FOEDUS_STORAGE_HASH_HASH_COMBO_HPP_
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Definition: assert_nd.hpp:44
Compactly represents the route of intermediate pages to reach the given hash bin. ...
HashCombo(const void *key, uint16_t key_length, const HashMetadata &meta)
Definition: hash_combo.cpp:29
Independent utility methods/classes for hashination, or hash functions.
A set of information that are used in many places, extracted from the given key.
Definition: hash_combo.hpp:48
BloomFilterFingerprint fingerprint_
Definition: hash_combo.hpp:51
uint64_t HashBin
Represents a bin of a hash value.
Definition: hash_id.hpp:142
A fingerprint for bloom filter in each HashDataPage.
Metadata of an hash storage.
friend std::ostream & operator<<(std::ostream &o, const HashCombo &v)
Definition: hash_combo.cpp:37
Definitions of IDs in this package and a few related constant values.
Forward declarations of classes in hash storage package.
uint64_t HashValue
Represents a full 64-bit hash value calculated from a key.
Definition: hash_id.hpp:129