Improve function naming

This commit is contained in:
ltrk2 2023-07-31 06:48:50 -07:00
parent 6c9a1b14ef
commit e869adf645
7 changed files with 10 additions and 10 deletions

View File

@ -229,7 +229,7 @@ IQueryTreeNode::Hash IQueryTreeNode::getTreeHash() const
}
}
return getSipHash128AsLoHi(hash_state);
return getSipHash128AsPair(hash_state);
}
QueryTreeNodePtr IQueryTreeNode::clone() const

View File

@ -521,7 +521,7 @@ void QueryFuzzer::fuzzCreateQuery(ASTCreateQuery & create)
if (create.storage)
create.storage->updateTreeHash(sip_hash);
const auto hash = getSipHash128AsLoHi(sip_hash);
const auto hash = getSipHash128AsPair(sip_hash);
/// Save only tables with unique definition.
if (created_tables_hashes.insert(hash).second)

View File

@ -249,7 +249,7 @@ inline std::array<char, 16> getSipHash128AsArray(SipHash & sip_hash)
return arr;
}
inline CityHash_v1_0_2::uint128 getSipHash128AsLoHi(SipHash & sip_hash)
inline CityHash_v1_0_2::uint128 getSipHash128AsPair(SipHash & sip_hash)
{
CityHash_v1_0_2::uint128 result;
sip_hash.get128(result.low64, result.high64);

View File

@ -118,7 +118,7 @@ IAST::Hash IAST::getTreeHash() const
{
SipHash hash_state;
updateTreeHash(hash_state);
return getSipHash128AsLoHi(hash_state);
return getSipHash128AsPair(hash_state);
}

View File

@ -402,7 +402,7 @@ size_t ConstantExpressionTemplate::TemplateStructure::getTemplateHash(const ASTP
/// Allows distinguish expression in the last column in Values format
hash_state.update(salt);
const auto res128 = getSipHash128AsLoHi(hash_state);
const auto res128 = getSipHash128AsPair(hash_state);
size_t res = 0;
boost::hash_combine(res, res128.low64);
boost::hash_combine(res, res128.high64);

View File

@ -323,7 +323,7 @@ MergeTreeDataPartChecksums::Checksum::uint128 MergeTreeDataPartChecksums::getTot
hash_of_all_files.update(checksum.file_hash);
}
return getSipHash128AsLoHi(hash_of_all_files);
return getSipHash128AsPair(hash_of_all_files);
}
void MinimalisticDataPartChecksums::serialize(WriteBuffer & to) const
@ -413,9 +413,9 @@ void MinimalisticDataPartChecksums::computeTotalChecksums(const MergeTreeDataPar
}
}
hash_of_all_files = getSipHash128AsLoHi(hash_of_all_files_state);
hash_of_uncompressed_files = getSipHash128AsLoHi(hash_of_uncompressed_files_state);
uncompressed_hash_of_compressed_files = getSipHash128AsLoHi(uncompressed_hash_of_compressed_files_state);
hash_of_all_files = getSipHash128AsPair(hash_of_all_files_state);
hash_of_uncompressed_files = getSipHash128AsPair(hash_of_uncompressed_files_state);
uncompressed_hash_of_compressed_files = getSipHash128AsPair(uncompressed_hash_of_compressed_files_state);
}
String MinimalisticDataPartChecksums::getSerializedString(const MergeTreeDataPartChecksums & full_checksums, bool minimalistic)

View File

@ -167,7 +167,7 @@ IMergeTreeDataPart::Checksum MergeTreeDataPartInMemory::calculateBlockChecksum()
column.column->updateHashFast(hash);
checksum.uncompressed_size = block.bytes();
checksum.uncompressed_hash = getSipHash128AsLoHi(hash);
checksum.uncompressed_hash = getSipHash128AsPair(hash);
return checksum;
}