31 o << HashMetadataSerializer(const_cast<HashMetadata*>(
this));
35 o << HashMetadataSerializer(const_cast<HashMetadata*>(&v));
52 if (expected_records == 0) {
55 if (preferred_records_per_bin < 1) {
56 preferred_records_per_bin = 1;
58 uint64_t bin_count = expected_records / preferred_records_per_bin;
60 for (bits = 0; bits <
kHashMaxBinBits && ((1ULL << bits) < bin_count); ++bits) {
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Brings error stacktrace information as return value of functions.
std::ostream & operator<<(std::ostream &o, const HashCombo &v)
const uint8_t kHashMinBinBits
Minimum number allowed for bin-bits.
#define CHECK_ERROR(x)
This macro calls x and checks its returned value.
const ErrorStack kRetOk
Normal return value for no-error case.
static ErrorStack get_element(tinyxml2::XMLElement *parent, const std::string &tag, T *out, bool optional=false, T value=0)
Only declaration in header.
const uint8_t kHashMaxBinBits
Maximum number allowed for bin-bits.
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...
static ErrorStack add_element(tinyxml2::XMLElement *parent, const std::string &tag, const std::string &comment, T value)
Only declaration in header.