|
| virtual | ~HostBridge ()=default |
| |
| virtual absl::StatusOr< Value > | Coerce (std::string_view tag, const Value &value)=0 |
| | Make value a value of the type tag names.
|
| |
| virtual absl::StatusOr< Value > | FromChunk (const data::Chunk &chunk)=0 |
| | The value chunk holds.
|
| |
| virtual absl::StatusOr< data::Chunk > | ToChunk (const Value &value, std::string_view mimetype)=0 |
| | A chunk holding value, in mimetype when one is asked for.
|
| |
| virtual bool | CanPassChunkObject (const data::Chunk &chunk, std::string_view declared_type) const |
| | Whether a typed port can retain this local object without conversion.
|
| |
| virtual std::vector< absl::StatusOr< Value > > | FromChunks (absl::Span< const data::Chunk *const > chunks) |
| | Reads a batch in order, retaining a separate result for each chunk.
|
| |
| virtual std::vector< absl::StatusOr< data::Chunk > > | ToChunks (absl::Span< const Value *const > values, std::string_view mimetype) |
| | Chunks holding values, in order, each with its own outcome.
|
| |
| virtual absl::StatusOr< Value > | Adopt (const DtoPlan &shape, const Program &program, const Value &value) |
| | Adopts a validated value of a declared shape for the host.
|
| |
What the process running a flow knows and the language does not.
Three questions, all of them about types a serialisation registry has been told about: make a value one of them, read one out of a chunk, and write one into a chunk. The Python bindings answer them against the Python registry – which is where a pydantic model actually lives – and the standalone tool answers them with the C++ registry, so the same runtime drives both without either being the special case.