Skip to content

Add toArray method to existing VectorFloat<?> to access underlying float[] vectors representation#697

Open
reta wants to merge 1 commit into
datastax:mainfrom
reta:issue-696
Open

Add toArray method to existing VectorFloat<?> to access underlying float[] vectors representation#697
reta wants to merge 1 commit into
datastax:mainfrom
reta:issue-696

Conversation

@reta

@reta reta commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Add toArray method to existing VectorFloat<?>API. This is simpler change (since we could provide the default implementation using length() + get(index) but we cannot guarantee that every toArray implementation is going to be zero copy, although we could document that.

Closes #696

…oat[] vectors representation

Signed-off-by: Andriy Redko <drreta@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Before you submit for review:

  • Does your PR follow guidelines from CONTRIBUTIONS.md?
  • Did you summarize what this PR does clearly and concisely?
  • Did you include performance data for changes which may be performance impacting?
  • Did you include useful docs for any user-facing changes or features?
  • Did you include useful javadocs for developer oriented changes, explaining new concepts or key changes?
  • Did you rebase your branch onto the latest main for regression testing and PR submission?
  • Did you trigger regression testing via Run Bench Main and review results?
  • Did you adhere to the code formatting guidelines (TBD)
  • Did you group your changes for easy review, providing meaningful descriptions for each commit?
  • Did you ensure that all files contain the correct copyright header?
  • Did you add documentation for this feature to the release notes directory?

If you did not complete any of these, then please explain below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zero-copy access to VectorFloat<?> vectors backed by float[] arrays

1 participant