|
quasardb C API
|
ArrowArrayStream type description. More...
#include <arrow_abi.h>
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. | |
ArrowArrayStream type description.
| 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.
Return value: pointer to a null-terminated character array describing the last error, or NULL if no description is available.
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)
Return value: 0 if successful, an 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).
Return value: 0 if successful, an 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.
1.8.5