Skip to content

Conversation

@jackye1995
Copy link
Contributor

@jackye1995 jackye1995 commented Dec 9, 2025

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@github-actions github-actions bot added enhancement New feature or request java labels Dec 9, 2025
@jackye1995 jackye1995 changed the title feat: add additional index APIs to support split plan feat: add additional index APIs to support count rows split plan Dec 10, 2025
@jackye1995 jackye1995 requested a review from majin1102 December 10, 2025 00:24
Copy link
Contributor

@majin1102 majin1102 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this. Left some comments.
Please take a look

*
* @return list of Index objects with complete metadata including index type and fragment coverage
*/
public List<org.lance.index.Index> getIndexes() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could use the short name and import it

}
}

private native List<org.lance.index.Index> nativeGetIndexes();
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Ok(array_list)
}

fn create_java_index<'local>(
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this is duplicated with https://github.com/majin1102/lance/blob/772c6d87a5b1d9530b5f3772fba7c33cf5c55b3a/java/lance-jni/src/transaction.rs#L81-L170

Maybe we should move that code here and add this index_type

*
* @return a new Index instance
*/
public static Index create(
Copy link
Contributor

@majin1102 majin1102 Dec 10, 2025

Choose a reason for hiding this comment

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

I wonder this should be a "create". It doesn't look like not a create index but only generate an object.

I think we could just use the private constructor in JNI?

Copy link
Contributor

@majin1102 majin1102 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jackye1995 jackye1995 merged commit e9be2eb into lance-format:main Dec 11, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants