Skip to content

feat(java): support cache backend register and switch - #8446

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
yanghua:feat/java-cache-backend
Aug 11, 2026
Merged

feat(java): support cache backend register and switch#8446
Xuanwo merged 1 commit into
lance-format:mainfrom
yanghua:feat/java-cache-backend

Conversation

@yanghua

@yanghua yanghua commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add Java APIs to select registered native cache backends using either
    backend URIs or structured CacheBackendConfig.

  • Allow index and metadata caches to switch backends independently while
    preserving existing size-based and default configurations.

  • Bridge backend configuration through JNI to Lance’s cache registry, with
    validation and tests for conflicting or invalid settings.

@github-actions github-actions Bot added A-java Java bindings + JNI enhancement New feature or request labels Aug 10, 2026
@yanghua
yanghua marked this pull request as ready for review August 11, 2026 00:29

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gate recommendation: approve.

This closes the Java binding gap through the existing native URI/config registry while preserving independent size and default behavior for each cache tier. The typed immutable configuration keeps Java thin and leaves backend parsing and validation in the Rust core.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 11, 2026
@Xuanwo
Xuanwo merged commit 9f96c3a into lance-format:main Aug 11, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-java Java bindings + JNI enhancement New feature or request K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants