Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
lance::callback_detail Namespace Reference

Classes

struct  BatchUDFCall
 
struct  CheckpointContext
 
struct  CheckpointContextV2
 
struct  MapperContext
 
struct  MapperContextV2
 

Functions

void release_owned_string (LanceOwnedString *value) noexcept
 
void set_callback_error (LanceCallbackError *target, int32_t code, const char *message) noexcept
 
void release_array_after_exception (ArrowArray *value) noexcept
 
void release_schema_after_exception (ArrowSchema *value) noexcept
 
template<typename Context >
int32_t mapper_trampoline (void *callback_ctx, const ArrowArray *input, const ArrowSchema *input_schema, ArrowArray *output, LanceCallbackError *error) noexcept
 
int32_t get_batch_trampoline (void *callback_ctx, const LanceUDFBatchInfo *raw_info, ArrowArray *output, LanceCallbackError *error) noexcept
 
int32_t get_batch_v2_trampoline (void *callback_ctx, const LanceUDFBatchInfo *raw_info, ArrowArray *output, ArrowSchema *output_schema, LanceCallbackError *error) noexcept
 
template<typename Context >
int32_t insert_batch_trampoline (void *callback_ctx, const LanceUDFBatchInfo *raw_info, ArrowArray *batch, ArrowSchema *batch_schema, LanceCallbackError *error) noexcept
 
template<typename Context >
int32_t get_fragment_trampoline (void *callback_ctx, uint32_t fragment_id, LanceOwnedString *out_json, LanceCallbackError *error) noexcept
 
template<typename Context >
int32_t insert_fragment_trampoline (void *callback_ctx, uint64_t fragment_id, const char *fragment_json, LanceCallbackError *error) noexcept
 

Function Documentation

◆ get_batch_trampoline()

int32_t lance::callback_detail::get_batch_trampoline ( void * callback_ctx,
const LanceUDFBatchInfo * raw_info,
ArrowArray * output,
LanceCallbackError * error )
noexcept

◆ get_batch_v2_trampoline()

int32_t lance::callback_detail::get_batch_v2_trampoline ( void * callback_ctx,
const LanceUDFBatchInfo * raw_info,
ArrowArray * output,
ArrowSchema * output_schema,
LanceCallbackError * error )
noexcept

◆ get_fragment_trampoline()

template<typename Context >
int32_t lance::callback_detail::get_fragment_trampoline ( void * callback_ctx,
uint32_t fragment_id,
LanceOwnedString * out_json,
LanceCallbackError * error )
inlinenoexcept

Definition at line 1739 of file declarations.hpp.

◆ insert_batch_trampoline()

template<typename Context >
int32_t lance::callback_detail::insert_batch_trampoline ( void * callback_ctx,
const LanceUDFBatchInfo * raw_info,
ArrowArray * batch,
ArrowSchema * batch_schema,
LanceCallbackError * error )
inlinenoexcept

Definition at line 1715 of file declarations.hpp.

◆ insert_fragment_trampoline()

template<typename Context >
int32_t lance::callback_detail::insert_fragment_trampoline ( void * callback_ctx,
uint64_t fragment_id,
const char * fragment_json,
LanceCallbackError * error )
inlinenoexcept

Definition at line 1773 of file declarations.hpp.

◆ mapper_trampoline()

template<typename Context >
int32_t lance::callback_detail::mapper_trampoline ( void * callback_ctx,
const ArrowArray * input,
const ArrowSchema * input_schema,
ArrowArray * output,
LanceCallbackError * error )
inlinenoexcept

Definition at line 1676 of file declarations.hpp.

◆ release_array_after_exception()

void lance::callback_detail::release_array_after_exception ( ArrowArray * value)
noexcept

◆ release_owned_string()

void lance::callback_detail::release_owned_string ( LanceOwnedString * value)
noexcept

◆ release_schema_after_exception()

void lance::callback_detail::release_schema_after_exception ( ArrowSchema * value)
noexcept

◆ set_callback_error()

void lance::callback_detail::set_callback_error ( LanceCallbackError * target,
int32_t code,
const char * message )
noexcept