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

#include <lance/lance.h>

Public Attributes

int32_t kind
 
uint64_t size_bytes
 
const char * backend_uri
 
const char * backend_kind
 
const char *const * option_keys
 
const char *const * option_values
 
size_t option_count
 

Detailed Description

Description of one session cache tier.

Only the field selected by kind is read:

  • DEFAULT reads no additional fields.
  • SIZE reads size_bytes. Zero is an explicit zero capacity, not DEFAULT.
  • URI reads backend_uri.
  • CONFIG reads backend_kind, then option_count entries from the parallel option_keys and option_values arrays.

All strings must be NUL-terminated UTF-8. option_count is an exact count, not a NULL-terminated sentinel: when it is non-zero, both option arrays must be non-NULL and each selected key/value must be non-NULL. Duplicate option keys are rejected. Unused fields are ignored.

Every buffer is borrowed only for the duration of lance_session_new_with_cache_specs(). Backend construction happens before it returns, and the caller retains ownership of all buffers.

Definition at line 387 of file lance.h.

Member Data Documentation

◆ backend_kind

const char* LanceSessionCacheSpec::backend_kind

Definition at line 395 of file lance.h.

◆ backend_uri

const char* LanceSessionCacheSpec::backend_uri

Definition at line 393 of file lance.h.

◆ kind

int32_t LanceSessionCacheSpec::kind

Definition at line 389 of file lance.h.

◆ option_count

size_t LanceSessionCacheSpec::option_count

Definition at line 401 of file lance.h.

◆ option_keys

const char* const* LanceSessionCacheSpec::option_keys

Definition at line 397 of file lance.h.

◆ option_values

const char* const* LanceSessionCacheSpec::option_values

Definition at line 399 of file lance.h.

◆ size_bytes

uint64_t LanceSessionCacheSpec::size_bytes

Definition at line 391 of file lance.h.


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