MCPcopy Create free account
hub / github.com/bytedance/bolt / createTableCommitContext

Method createTableCommitContext

bolt/exec/TableWriter.cpp:247–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247std::string TableWriter::createTableCommitContext(bool lastOutput) {
248 // clang-format off
249 return folly::toJson(
250 folly::dynamic::object
251 (TableWriteTraits::kLifeSpanContextKey, "TaskWide")
252 (TableWriteTraits::kTaskIdContextKey, connectorQueryCtx_->taskId())
253 (TableWriteTraits::kCommitStrategyContextKey, commitStrategyToString(commitStrategy_))
254 (TableWriteTraits::klastPageContextKey, lastOutput));
255 // clang-format on
256}
257
258void TableWriter::updateStats(const connector::DataSink::Stats& stats) {
259 {

Callers

nothing calls this directly

Calls 2

toJsonFunction · 0.85
commitStrategyToStringFunction · 0.85

Tested by

no test coverage detected