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

#include <lance/lance.h>

Public Attributes

int32_t has_before_timestamp
 
int64_t before_timestamp_seconds
 
uint32_t before_timestamp_nanos
 
int32_t has_before_version
 
uint64_t before_version
 
const uint64_t * versions
 
size_t num_versions
 
int32_t has_retain_versions
 
uint64_t retain_versions
 
int32_t has_delete_unverified
 
bool delete_unverified
 
int32_t has_error_if_tagged_old_versions
 
bool error_if_tagged_old_versions
 
int32_t has_clean_referenced_branches
 
bool clean_referenced_branches
 
int32_t has_delete_rate_limit
 
uint64_t delete_rate_limit
 

Detailed Description

Native manual cleanup policy with explicit presence for every optional selector. Zero-initialize this struct to leave every optional field unset and inherit native defaults. In particular, the native default error_if_tagged_old_versions is true; it is not the legacy writer's automatic 20-version / 14-day policy.

before_timestamp, before_version and versions are independent selectors. When more than one is set, a version is eligible only if it satisfies all of them (AND).

  • versions == NULL means no exact-version selector. A non-NULL pointer with num_versions == 0 is an explicit empty selection and Lance rejects it.
  • Set has_retain_versions to use the native asynchronous CleanupPolicyBuilder::retain_n_versions; zero is rejected by Lance. Do not set both has_before_version and has_retain_versions, because both set the same native field.
  • A present boolean may be true or false. The has_* field controls presence independently, so zero-initialized optional values preserve native defaults.
  • Timestamps use seconds plus a nanosecond component. They are not narrowed to the signed 64-bit nanosecond range.

The policy and versions array are copied before asynchronous work.

Definition at line 536 of file lance.h.

Member Data Documentation

◆ before_timestamp_nanos

uint32_t LanceCleanupPolicy::before_timestamp_nanos

Definition at line 539 of file lance.h.

◆ before_timestamp_seconds

int64_t LanceCleanupPolicy::before_timestamp_seconds

Definition at line 538 of file lance.h.

◆ before_version

uint64_t LanceCleanupPolicy::before_version

Definition at line 541 of file lance.h.

◆ clean_referenced_branches

bool LanceCleanupPolicy::clean_referenced_branches

Definition at line 551 of file lance.h.

◆ delete_rate_limit

uint64_t LanceCleanupPolicy::delete_rate_limit

Definition at line 553 of file lance.h.

◆ delete_unverified

bool LanceCleanupPolicy::delete_unverified

Definition at line 547 of file lance.h.

◆ error_if_tagged_old_versions

bool LanceCleanupPolicy::error_if_tagged_old_versions

Definition at line 549 of file lance.h.

◆ has_before_timestamp

int32_t LanceCleanupPolicy::has_before_timestamp

Definition at line 537 of file lance.h.

◆ has_before_version

int32_t LanceCleanupPolicy::has_before_version

Definition at line 540 of file lance.h.

◆ has_clean_referenced_branches

int32_t LanceCleanupPolicy::has_clean_referenced_branches

Definition at line 550 of file lance.h.

◆ has_delete_rate_limit

int32_t LanceCleanupPolicy::has_delete_rate_limit

Definition at line 552 of file lance.h.

◆ has_delete_unverified

int32_t LanceCleanupPolicy::has_delete_unverified

Definition at line 546 of file lance.h.

◆ has_error_if_tagged_old_versions

int32_t LanceCleanupPolicy::has_error_if_tagged_old_versions

Definition at line 548 of file lance.h.

◆ has_retain_versions

int32_t LanceCleanupPolicy::has_retain_versions

Definition at line 544 of file lance.h.

◆ num_versions

size_t LanceCleanupPolicy::num_versions

Definition at line 543 of file lance.h.

◆ retain_versions

uint64_t LanceCleanupPolicy::retain_versions

Definition at line 545 of file lance.h.

◆ versions

const uint64_t* LanceCleanupPolicy::versions

Definition at line 542 of file lance.h.


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