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

Method fill

src/Functions/FunctionsStringHash.cpp:383–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 }
382
383 void fill(ColumnTuple & strings)
384 {
385 auto it = values.begin();
386 for (size_t i = 0; i < strings.tupleSize(); ++i)
387 {
388 auto & col_string = static_cast<ColumnString &>(strings.getColumn(i));
389 if (it != values.end())
390 {
391 col_string.insertData(reinterpret_cast<const char *>(it->second.data), it->second.size);
392 ++it;
393 }
394 else
395 col_string.insertDefault();
396 }
397 }
398
399 MapWithMemoryTracking<UInt64, BytesRef, Comp> values;
400 };

Callers 5

writeImageSixelFunction · 0.45
applyMethod · 0.45
encodeCoordinateFunction · 0.45
mergeFunction · 0.45
splitFunction · 0.45

Calls 6

beginMethod · 0.45
tupleSizeMethod · 0.45
getColumnMethod · 0.45
endMethod · 0.45
insertDataMethod · 0.45
insertDefaultMethod · 0.45

Tested by

no test coverage detected