RowView

View as Markdown

Java package: com.nvidia.cuvs

1public interface RowView

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

Public Members

getAsInt

1int 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

1float 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

1byte 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

1void 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

1void 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

1void 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