Skip to content

feat(java): expose vector distance bounds - #9374

Open
nyl3532016 wants to merge 1 commit into
lance-format:mainfrom
nyl3532016:codex/java-distance-range
Open

nyl3532016 wants to merge 1 commit into
lance-format:mainfrom
nyl3532016:codex/java-distance-range

Conversation

@nyl3532016

Copy link
Copy Markdown
Contributor

Summary

  • add optional lower and upper distance bounds to the Java Query builder
  • pass both bounds through the Java/JNI scanner paths
  • verify half-open distance range behavior for brute-force and IVF_FLAT searches

Testing

  • ./mvnw -Dtest=JNITest,VectorSearchTest test
  • ./mvnw spotless:check
  • cargo clippy --tests --manifest-path ./lance-jni/Cargo.toml

@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 exposes the existing half-open Rust distance-range contract through the Java builder and JNI paths. Routing the bounds into the native range query preserves lower-inclusive, upper-exclusive behavior for both flat and IVF_FLAT execution while leaving existing queries unbounded by default.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 18, 2026
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.

1 participant