|
Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
|
#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 |
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.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.has_* field controls presence independently, so zero-initialized optional values preserve native defaults.The policy and versions array are copied before asynchronous work.
| int32_t LanceCleanupPolicy::has_error_if_tagged_old_versions |