MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / read

Method read

libminifi/src/core/ContentSession.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59std::shared_ptr<io::BaseStream> ContentSession::read(const std::shared_ptr<ResourceClaim>& resourceId) {
60 // TODO(adebreceni):
61 // after the stream refactor is merged we should be able to share the underlying buffer
62 // between multiple InputStreams, moreover create a ConcatInputStream
63 if (managedResources_.find(resourceId) != managedResources_.end() || extendedResources_.find(resourceId) != extendedResources_.end()) {
64 throw Exception(REPOSITORY_EXCEPTION, "Can only read non-modified resource");
65 }
66 return repository_->read(*resourceId);
67}
68
69void ContentSession::commit() {
70 for (const auto& resource : managedResources_) {

Callers 3

processMethod · 0.45
fetchFlowMethod · 0.45
initializeMethod · 0.45

Calls 3

ExceptionClass · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected