Java* API Reference for Intel® Data Analytics Acceleration Library 2019 Update 4

List of all members
AOSNumericTableImpl Class Reference

Class that provides methods to access data that is stored as a contiguous array of heterogeneous feature vectors, and each feature vector is represented with a data structure. Therefore, the data is represented as an Array Of Structures(AOS). More...

Class Constructor

AOSNumericTableImpl ( DaalContext  context,
Class<?>  cls,
long  nVectors 
)

Constructor for empty Numeric Table with predefined class for the feature vectors and given number of feature vectors

Parameters
contextContext to manage created AOS numeric table
clsClass containing expected array elements
nVectorsThe number of rows in the table
AOSNumericTableImpl ( DaalContext  context,
Object[]  ptr 
)

Constructs Numeric Table from the array of objects representing feature vectors

Parameters
contextContext to manage created AOS numeric table
ptrArray of objects to associate with the Numeric Table

Detailed Description

Member Function Documentation

Object [] getArray ( )

Returns the array of objects associated with the table

Returns
Array of objects
DoubleBuffer getBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
DoubleBuffer  buf 
)

Gets block of values for a given feature and returns it to java.nio.DoubleBuffer. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufBuffer to store results
Returns
Block of values of the feature packed into the DoubleBuffer
FloatBuffer getBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
FloatBuffer  buf 
)

Gets block of values for a given feature and returns it to java.nio.FloatBuffer. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufBuffer to store results
Returns
Block of values of the feature packed into the FloatBuffer
IntBuffer getBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
IntBuffer  buf 
)

Gets block of values for a given feature and returns it to java.nio.IntBuffer. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufBuffer to store results
Returns
Block of values of the feature packed into the IntBuffer
DoubleBuffer getBlockOfRows ( long  vectorIndex,
long  vectorNum,
DoubleBuffer  buf 
)

Reads block of rows from the table and returns it to java.nio.DoubleBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufBuffer to store results
Returns
Block of table rows packed into DoubleBuffer
FloatBuffer getBlockOfRows ( long  vectorIndex,
long  vectorNum,
FloatBuffer  buf 
)

Reads block of rows from the table and returns it to java.nio.FloatBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufBuffer to store results
Returns
Block of table rows packed into FloatBuffer
IntBuffer getBlockOfRows ( long  vectorIndex,
long  vectorNum,
IntBuffer  buf 
)

Reads block of rows from the table and returns it to java.nio.IntBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufBuffer to store results
Returns
Block of table rows packed into IntBuffer
DataDictionary getDictionary ( )

Returns the data dictionary

Returns
Data dictionary
void initDataDictionary ( )
protected

Initializes Dictionary based on object class of known feature vectors

void releaseBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
DoubleBuffer  buf 
)

Transfers the values of a given feature from the input DoubleBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufInput DoubleBuffer of size vectorNum
void releaseBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
FloatBuffer  buf 
)

Transfers the values of a given feature from the input FloatBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufInput FloatBuffer of size vectorNum
void releaseBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
IntBuffer  buf 
)

Transfers the values of a given feature from the input IntBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufInput IntBuffer of size vectorNum
void releaseBlockOfRows ( long  vectorIndex,
long  vectorNum,
DoubleBuffer  buf 
)

Transfers the data from the input DoubleBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufInput DoubleBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table
void releaseBlockOfRows ( long  vectorIndex,
long  vectorNum,
FloatBuffer  buf 
)

Transfers the data from the input FloatBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufInput FloatBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table
void releaseBlockOfRows ( long  vectorIndex,
long  vectorNum,
IntBuffer  buf 
)

Transfers the data from the input IntBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufInput IntBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table
void setArray ( Object[]  arr)

Array of objects associated with the table


The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.