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

Function commitStrategyToString

bolt/connectors/Connector.cpp:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152std::string commitStrategyToString(CommitStrategy commitStrategy) {
153 switch (commitStrategy) {
154 case CommitStrategy::kNoCommit:
155 return "NO_COMMIT";
156 case CommitStrategy::kTaskCommit:
157 return "TASK_COMMIT";
158 default:
159 BOLT_UNREACHABLE(
160 "UNKNOWN COMMIT STRATEGY: {}", static_cast<int>(commitStrategy));
161 }
162}
163
164CommitStrategy stringToCommitStrategy(const std::string& strategy) {
165 if (strategy == "NO_COMMIT") {

Callers 6

serializeMethod · 0.85
toStringMethod · 0.85
TEST_PFunction · 0.85
Connector.hFile · 0.85
HiveDataSinkMethod · 0.85

Calls

no outgoing calls

Tested by 2

toStringMethod · 0.68
TEST_PFunction · 0.68