Skip to content

docs(java): replace the Java API example that no longer compiles - #9635

Open
jackylee-ch wants to merge 1 commit into
vortex-data:developfrom
jackylee-ch:java-api-docs-example
Open

docs(java): replace the Java API example that no longer compiles#9635
jackylee-ch wants to merge 1 commit into
vortex-data:developfrom
jackylee-ch:java-api-docs-example

Conversation

@jackylee-ch

Copy link
Copy Markdown
Contributor

The only Java example on the docs site cannot compile: dev.vortex.api.File and
dev.vortex.api.Array were removed in #7527, and the page has not been touched since. Nothing in
it points at the API that replaced them.

Replaced with the read path that exists today — SessionDataSource.openscan
Partition.scanArrow — following the same loop the JNI tests use.

Tests

Compiled both snippets as a scratch class under vortex-jni/src/test: the published one fails with
five cannot find symbol errors for File and Array, the new one compiles. make -C docs html
succeeds under the repo's --fail-on-warning.

AI assistance

Written with agentic AI assistance; I compiled the replacement snippet before publishing it.

The example imported dev.vortex.api.File and dev.vortex.api.Array, both
removed in vortex-data#7527. The page predates that removal and offers no pointer to
the API that replaced them, so the first thing a JNI user copies fails to
compile.

Rewritten around the read path that exists today: Session, DataSource.open,
scan, and Partition.scanArrow, following the loop the vortex-jni tests use.

Signed-off-by: jackylee <qcsd2011@gmail.com>
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.

1 participant