Skip to content

Commit

Permalink
Java: Make ColumnVector.fromViewWithContiguousAllocation public (#16784)
Browse files Browse the repository at this point in the history
Exposes ColumnVector's fromViewWithContiguousAllocation method so code outside of cudf that builds contiguous table views can expose those columns in Java.

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

Approvers:
  - Alessandro Bellina (https://github.com/abellina)

URL: #16784
  • Loading branch information
jlowe authored Sep 16, 2024
1 parent 124d3e3 commit 4033385
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion java/src/main/java/ai/rapids/cudf/ColumnVector.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,13 @@ static long initViewHandle(DType type, int numRows, int nullCount,
od, vd, nullCount, numRows, childHandles);
}

static ColumnVector fromViewWithContiguousAllocation(long columnViewAddress, DeviceMemoryBuffer buffer) {
/**
* Creates a ColumnVector from a native column_view using a contiguous device allocation.
*
* @param columnViewAddress address of the native column_view
* @param buffer device buffer containing the data referenced by the column view
*/
public static ColumnVector fromViewWithContiguousAllocation(long columnViewAddress, DeviceMemoryBuffer buffer) {
return new ColumnVector(columnViewAddress, buffer);
}

Expand Down

0 comments on commit 4033385

Please sign in to comment.