Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
LanceNamespaceResult Struct Reference

#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
 

Detailed Description

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.

Definition at line 9707 of file lance.h.

Member Data Documentation

◆ has_namespace_error

int32_t LanceNamespaceResult::has_namespace_error

Definition at line 9711 of file lance.h.

◆ namespace_error_code

uint32_t LanceNamespaceResult::namespace_error_code

Definition at line 9712 of file lance.h.

◆ namespace_error_message

char* LanceNamespaceResult::namespace_error_message

Definition at line 9713 of file lance.h.

◆ result_bytes

uint8_t* LanceNamespaceResult::result_bytes

Definition at line 9709 of file lance.h.

◆ result_bytes_len

size_t LanceNamespaceResult::result_bytes_len

Definition at line 9710 of file lance.h.

◆ result_json

char* LanceNamespaceResult::result_json

Definition at line 9708 of file lance.h.


The documentation for this struct was generated from the following file: