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

Method fillCodecDescriptions

src/Compression/CompressionFactory.cpp:119–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void CompressionCodecFactory::fillCodecDescriptions(MutableColumns & res_columns) const
120{
121 std::for_each(
122 family_name_with_codec.begin(),
123 family_name_with_codec.end(),
124 [&](const auto &it)
125 {
126 const std::string &name = it.first;
127 CompressionCodecPtr tmp = it.second({}, nullptr);
128
129 res_columns[0]->insert(name);
130 res_columns[1]->insert(tmp->getMethodByte());
131 res_columns[2]->insert(tmp->isCompression());
132 res_columns[3]->insert(tmp->isGenericCompression());
133 res_columns[4]->insert(tmp->isEncryption());
134 res_columns[5]->insert(tmp->isFloatingPointTimeSeriesCodec());
135 res_columns[6]->insert(tmp->isExperimental());
136 res_columns[7]->insert(tmp->getDescription());
137 }
138 );
139}
140
141CompressionCodecPtr CompressionCodecFactory::getImpl(const String & family_name, const ASTPtr & arguments, const IDataType * column_type) const
142{

Callers 1

fillDataMethod · 0.80

Calls 11

beginMethod · 0.45
endMethod · 0.45
secondMethod · 0.45
insertMethod · 0.45
getMethodByteMethod · 0.45
isCompressionMethod · 0.45
isGenericCompressionMethod · 0.45
isEncryptionMethod · 0.45
isExperimentalMethod · 0.45
getDescriptionMethod · 0.45

Tested by

no test coverage detected