|
Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
|
#include <lance/lance.h>
Public Attributes | |
| char * | result_json |
| uint8_t * | result_bytes |
| size_t | result_bytes_len |
| int32_t | has_namespace_error |
| uint32_t | namespace_error_code |
| char * | namespace_error_message |
Result of one native namespace operation.
Zero-initialize this structure. Release it exactly once with lance_namespace_result_close, including after a failed call.
result_json encodes the native response model, except that unit operations leave it NULL, count_table_rows stores a JSON number, and explain/analyze_table_query_plan store a JSON string. query_table leaves result_json NULL and returns the native Arrow IPC stream in result_bytes.
On failure has_namespace_error is nonzero and the native NamespaceError is preserved separately from the generic C error code. Native Unsupported is code 0; the generic return value is still a failure and is never LANCE_OK.