JoinEncodedWithMeta.h File
Stage executor to join encoded payload with metadata into a Bundle. More...
Included Headers
#include "graph/StageExecutor.h"
#include "graph/nodes/StageNode.h"
#include <cstddef>
#include <cstdint>
#include <deque>
#include <memory>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | graph |
| namespace | nodes |
Classes Index
| struct | JoinEncodedWithMetaOptions |
| class | JoinEncodedWithMeta |
Description
Stage executor to join encoded payload with metadata into a Bundle.
File Listing
The file content with the documentation metadata removed is:
8#include "graph/StageExecutor.h"
9#include "graph/nodes/StageNode.h"
20namespace simaai::neat::graph::nodes {
22struct JoinEncodedWithMetaOptions {
24 PortId encoded_port = kInvalidPort;
26 std::unordered_map<PortId, std::string> port_names;
28 std::string encoded_name = "encoded";
30 std::size_t max_pending = 1024;
32 bool emit_partial = true;
35class JoinEncodedWithMeta final : public simaai::neat::graph::StageExecutor {
37 explicit JoinEncodedWithMeta(JoinEncodedWithMetaOptions opt);
39 void set_ports(const StagePorts& ports) override;
44 std::string make_key_(const Sample& sample) const;
49 JoinEncodedWithMetaOptions opt_;
52 PortId out_port_ = kInvalidPort;
56std::shared_ptr<simaai::neat::graph::Node> JoinEncodedWithMetaNode(std::vector<std::string> inputs,
58 std::string output = "bundle");
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.