MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / toolboxAppendArrowStream

Function toolboxAppendArrowStream

pj_datastore/src/plugin_data_host.cpp:1464–1478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1462}
1463
1464bool toolboxAppendArrowStream(
1465 void* ctx, TopicHandle topic, struct ArrowArrayStream* stream, PJ_string_view_t timestamp_column,
1466 PJ_error_t* out_error) noexcept {
1467 return guardHostCallback(out_error, [&] {
1468 auto* impl = static_cast<DatastoreToolboxHostState*>(ctx);
1469 if (!impl->core.write.appendArrowStream(topic, stream, timestamp_column)) {
1470 propagateError(out_error, impl->core.write.lastError());
1471 return false;
1472 }
1473 if (stream != nullptr && stream->release != nullptr) {
1474 stream->release(stream);
1475 }
1476 return true;
1477 });
1478}
1479
1480bool toolboxAcquireCatalogSnapshot(void* ctx, PJ_catalog_snapshot_t* out_snapshot, PJ_error_t* out_error) noexcept {
1481 return guardHostCallback(out_error, [&] {

Callers

nothing calls this directly

Calls 4

guardHostCallbackFunction · 0.85
propagateErrorFunction · 0.85
appendArrowStreamMethod · 0.80
lastErrorMethod · 0.80

Tested by

no test coverage detected