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

Function getWriterFactory

bolt/dwio/common/WriterFactory.cpp:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63std::shared_ptr<WriterFactory> getWriterFactory(FileFormat format) {
64 auto it = writerFactories().find(format);
65 BOLT_CHECK(
66 it != writerFactories().end(),
67 "WriterFactory is not registered for format {}",
68 toString(format));
69 return it->second;
70}
71
72bool hasWriterFactory(FileFormat format) {
73 return (writerFactories().count(format) == 1);

Callers 2

writeToFileFunction · 0.85
HiveDataSinkMethod · 0.85

Calls 3

toStringFunction · 0.70
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected