-
Notifications
You must be signed in to change notification settings - Fork 519
feat: add additional index APIs to support count rows split plan #5447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
majin1102
left a comment
There was a problem hiding this 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() { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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>( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
majin1102
left a comment
There was a problem hiding this 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
Related to lance-format/lance-spark#140