Skip to content

jvm: feasibility and binding plan for Java/Kotlin hosts #139

Description

Summary

Research and plan a JVM binding surface for Java/Kotlin/Scala hosts.

This is an ecosystem compatibility issue, especially for JVM search stacks. The goal is not to build a vector database adapter; it is to make ordvec's primitive scoring and persisted-index loading available to JVM hosts that own storage, filtering, sharding, and query planning.

Proposed scope

Design an ordvec-jvm approach over either the C ABI or direct JNI/JNA. Initial surface should be read-only:

Acceptance criteria

  • Feasibility doc compares C ABI, JNI, JNA, and Panama-style options where relevant.
  • Java smoke test loads a persisted fixture and matches Rust conformance results once implemented.
  • Native resource lifecycle is deterministic.
  • Packaging plan states supported platforms and native library loading strategy.
  • Docs explicitly leave metadata, filters, and database semantics to the host JVM system.

Non-goals

  • No Lucene/Elastic plugin.
  • No search server.
  • No metadata/payload integration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestffiFFI / C ABI / cross-language bindings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions