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

Method getSplitInputStream

bolt/exec/OperatorTraceReader.cpp:134–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134std::unique_ptr<common::FileInputStream>
135OperatorTraceSplitReader::getSplitInputStream(
136 const std::string& traceDir) const {
137 auto splitInfoFile = fs_->openFileForRead(getOpTraceSplitFilePath(traceDir));
138 if (splitInfoFile->size() == 0) {
139 LOG(WARNING) << "Split info is empty in " << traceDir;
140 return nullptr;
141 }
142 // TODO: Make the buffer size configurable.
143 return std::make_unique<common::FileInputStream>(
144 std::move(splitInfoFile), 1 << 20, pool_);
145}
146
147// static
148std::vector<std::string> OperatorTraceSplitReader::deserialize(

Callers

nothing calls this directly

Calls 3

getOpTraceSplitFilePathFunction · 0.85
openFileForReadMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected