mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Improve function naming
This commit is contained in:
parent
6c9a1b14ef
commit
e869adf645
@ -229,7 +229,7 @@ IQueryTreeNode::Hash IQueryTreeNode::getTreeHash() const
|
||||
}
|
||||
}
|
||||
|
||||
return getSipHash128AsLoHi(hash_state);
|
||||
return getSipHash128AsPair(hash_state);
|
||||
}
|
||||
|
||||
QueryTreeNodePtr IQueryTreeNode::clone() const
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -118,7 +118,7 @@ IAST::Hash IAST::getTreeHash() const
|
||||
{
|
||||
SipHash hash_state;
|
||||
updateTreeHash(hash_state);
|
||||
return getSipHash128AsLoHi(hash_state);
|
||||
return getSipHash128AsPair(hash_state);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user