wf-connector-api
Minimal Arrow-native connector API for warp-fusion.
Overview
use ;
use RecordBatch;
use async_trait;
;
Lifecycle
start() → receive_batch() loop → close()
start()— initialize (connect, subscribe, bind)receive_batch()— pull data; empty Vec = no data right now,EOFerror = stream endedclose()— release resources; idempotent
Relationship with wp-connector-api
| wp-connector-api | wf-connector-api | |
|---|---|---|
| Source data | SourceEvent { payload: RawData } |
RecordBatch (Arrow columnar) |
| Consumer | parse pipeline (WPL) | CEP engine (warp-fusion) |
| Lifecycle | start() / receive() / close() |
start() / receive_batch() / close() |
| Error model | SourceResult<T> (orion-error) |
SourceResult<T> (orion-error) |
wp-connectors can implement both traits for the same connector, sharing connection logic.
License
Apache-2.0