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

Method commit

libminifi/src/provenance/Provenance.cpp:383–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void ProvenanceReporter::commit() {
384 if (repo_->isNoop()) {
385 return;
386 }
387
388 if (repo_->isFull()) {
389 logger_->log_debug("Provenance Repository is full");
390 return;
391 }
392
393 std::vector<std::pair<std::string, std::unique_ptr<io::BufferStream>>> flowData;
394
395 for (auto& event : _events) {
396 std::unique_ptr<io::BufferStream> stramptr(new io::BufferStream());
397 event->Serialize(*stramptr.get());
398
399 flowData.emplace_back(event->getUUIDStr(), std::move(stramptr));
400 }
401 repo_->MultiPut(flowData);
402}
403
404void ProvenanceReporter::create(std::shared_ptr<core::FlowFile> flow, std::string detail) {
405 auto event = allocate(ProvenanceEventRecord::CREATE, flow);

Callers

nothing calls this directly

Calls 7

log_debugMethod · 0.80
isNoopMethod · 0.45
isFullMethod · 0.45
SerializeMethod · 0.45
getMethod · 0.45
getUUIDStrMethod · 0.45
MultiPutMethod · 0.45

Tested by

no test coverage detected