quasardb C API
|
Data Fields | |
int(* | get_schema )(struct ArrowArrayStream *, struct ArrowSchema *out) |
int(* | get_next )(struct ArrowArrayStream *, struct ArrowArray *out) |
const char *(* | get_last_error )(struct ArrowArrayStream *) |
void(* | release )(struct ArrowArrayStream *) |
void * | private_data |
Opaque producer-specific data. | |
const char*(* ArrowArrayStream::get_last_error)(struct ArrowArrayStream *) |
Callback to get optional detailed error information. This must only be called if the last stream operation failed with a non-0 return code.
The returned pointer is only valid until the next operation on this stream (including release).
int(* ArrowArrayStream::get_next)(struct ArrowArrayStream *, struct ArrowArray *out) |
Callback to get the next array (if no error and the array is released, the stream has ended)
errno
-compatible error code otherwise.If successful, the ArrowArray must be released independently from the stream.
int(* ArrowArrayStream::get_schema)(struct ArrowArrayStream *, struct ArrowSchema *out) |
Callback to get the stream type (will be the same for all arrays in the stream).
errno
-compatible error code otherwise.If successful, the ArrowSchema must be released independently from the stream.
void(* ArrowArrayStream::release)(struct ArrowArrayStream *) |
Release callback: release the stream's own resources. Note that arrays returned by get_next
must be individually released.