You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hiroki-nishimoto-fixstars
changed the title
[QST] How to update Table.column value in libcudf JAVA API
[QST] How to update Table.column value in libcudf Java API
Dec 23, 2024
No, cudf Java provides the function getColumn(int index) that allows accessing to the table columns and you already used it in your example. Your example above is almost correct. Look at the documentation of Table.getColumn:
* .....If you want to keep a reference to
* the column around past the life time of the table, you will need to increment the reference
* count on the column yourself.
That means, this is needed when calling getColumn:
if( i != 0 ){
cols[i] = df.getColumn[i];
cols[i].incRefCount();
}
Add that second line to your example. That's all you need. When the original table is destroyed, the reused columns are not destroyed but moved to be managed by the new table because their reference counts have been increased.
What is your question?
2 Questions.
Hi. I'm trying to rewrite cudf(Python) code to libcudf(Java) code.
In my understanding, they are implemented diffrenct concept. So, I do not believe that they are completely compatible, of course.
How can I write a process in libcudf(Java) that corresponds to the following process of updating a Series in a cudf.DataFrame?
libcudf(Java) prohibit to access
Table.columns
and don't have update column API. ex)setColumn(index, value)
A simple implementation would yield the following code, which does not seem very smart.
Also, I know there is libcudf(C++) documentation, but I could not find any Java documentation or example code. Is there somewhere I can find it?
Now I'm trying to implement with reading Test code and API implementation...
The text was updated successfully, but these errors were encountered: