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

#include <lance/lance.h>

Public Attributes

uint64_t interval
 
int64_t older_than_seconds
 
int32_t older_than_nanos
 

Detailed Description

Native auto-cleanup parameters for lance_dataset_write_with_options.

interval is the number of committed versions between cleanup runs; 0 is a valid native value that considers cleanup on every commit. It is narrowed to the native usize type; values that do not fit return LANCE_ERR_INVALID_ARGUMENT.

older_than_seconds and older_than_nanos express the native chrono::TimeDelta retention window as older_than_seconds + older_than_nanos / 1000000000. Both fields carry the sign, and older_than_nanos preserves subsecond precision. It must be in [-999999999, 999999999], and the combined value must fit in the native TimeDelta range (about +/-292 million years). Negative durations are forwarded to Lance, which rejects them when it builds the write transaction because the persisted config uses std::time::Duration.

Definition at line 6504 of file lance.h.

Member Data Documentation

◆ interval

uint64_t LanceAutoCleanupParams::interval

Definition at line 6506 of file lance.h.

◆ older_than_nanos

int32_t LanceAutoCleanupParams::older_than_nanos

Definition at line 6510 of file lance.h.

◆ older_than_seconds

int64_t LanceAutoCleanupParams::older_than_seconds

Definition at line 6508 of file lance.h.


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