Skip to content

Commit

Permalink
Load native dependencies when Java ColumnView is loaded (#9800)
Browse files Browse the repository at this point in the history
The Java ColumnView class has native methods but does not ensure the corresponding native libraries that implement those methods are loaded.  This adds a static code block to the ColumnView class to load the native libraries when the ColumnView class is loaded.

Authors:
  - Jason Lowe (https://github.com/jlowe)

Approvers:
  - Robert (Bobby) Evans (https://github.com/revans2)
  - Kuhu Shukla (https://github.com/kuhushukla)

URL: #9800
  • Loading branch information
jlowe authored Nov 30, 2021
1 parent 00a8845 commit 554ac81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/src/main/java/ai/rapids/cudf/ColumnView.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
*/
public class ColumnView implements AutoCloseable, BinaryOperable {

static {
NativeDepsLoader.loadNativeDeps();
}

public static final long UNKNOWN_NULL_COUNT = -1;

protected long viewHandle;
Expand Down

0 comments on commit 554ac81

Please sign in to comment.