MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / get

Method get

src/Compression/CompressionFactory.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38CompressionCodecPtr CompressionCodecFactory::get(const String & family_name, std::optional<int> level) const
39{
40 if (level)
41 {
42 auto level_literal = make_intrusive<ASTLiteral>(static_cast<UInt64>(*level));
43 return get(makeASTFunction("CODEC", makeASTFunction(Poco::toUpper(family_name), level_literal)), {});
44 }
45
46 auto identifier = make_intrusive<ASTIdentifier>(Poco::toUpper(family_name));
47 return get(makeASTFunction("CODEC", identifier), {});
48}
49
50CompressionCodecPtr CompressionCodecFactory::get(const String & compression_codec) const
51{

Callers 15

readHeaderAndGetCodecFunction · 0.45
innerDataTypeIsFloatFunction · 0.45
encryptFunction · 0.45
decryptFunction · 0.45
getCurrentKeyAndNonceMethod · 0.45
getKeyMethod · 0.45
doDecompressDataMethod · 0.45
CompressedReadBufferMethod · 0.45
initInputMethod · 0.45

Calls 15

toUpperFunction · 0.85
parseQueryFunction · 0.85
ExceptionClass · 0.70
getFunction · 0.50
makeASTFunctionFunction · 0.50
toStringFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
nameMethod · 0.45
isGenericCompressionMethod · 0.45
emplace_backMethod · 0.45
backMethod · 0.45

Tested by 3

makeCodecFunction · 0.36
TEST_PFunction · 0.36
TESTFunction · 0.36