RowView

View as Markdown

Java package: com.nvidia.cuvs

public interface RowView

Represent a contiguous list of elements backed by off-heap memory.

Public Members

getAsInt

int getAsInt(long index)

Returns the integer element at the given position. Asserts that the data type of the dataset on top of which this view is instantiates is CuVSMatrix.DataType#INT

Parameters

NameDescription
indexthe element index

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/RowView.java:22

getAsFloat

float getAsFloat(long index)

Returns the integer element at the given position. Asserts that the data type of the dataset on top of which this view is instantiates is CuVSMatrix.DataType#FLOAT

Parameters

NameDescription
indexthe element index

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/RowView.java:31

getAsByte

byte getAsByte(long index)

Returns the integer element at the given position. Asserts that the data type of the dataset on top of which this view is instantiates is CuVSMatrix.DataType#BYTE

Parameters

NameDescription
indexthe element index

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/RowView.java:40

toArray

void toArray(int[] array)

Copies the content of this row to an on-heap Java array.

Parameters

NameDescription
arraythe destination array. Must be of length RowView#size() or bigger.

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/RowView.java:47

toArray

void toArray(float[] array)

Copies the content of this row to an on-heap Java array.

Parameters

NameDescription
arraythe destination array. Must be of length RowView#size() or bigger.

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/RowView.java:54

toArray

void toArray(byte[] array)

Copies the content of this row to an on-heap Java array.

Parameters

NameDescription
arraythe destination array. Must be of length RowView#size() or bigger.

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/RowView.java:61

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/RowView.java:12