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...
◆ AOSNumericTableImpl() [1/2]
Constructor for empty Numeric Table with predefined class for the feature vectors and given number of feature vectors
- Parameters
-
context | Context to manage created AOS numeric table |
cls | Class containing expected array elements |
nVectors | The number of rows in the table |
◆ AOSNumericTableImpl() [2/2]
Constructs Numeric Table from the array of objects representing feature vectors
- Parameters
-
context | Context to manage created AOS numeric table |
ptr | Array of objects to associate with the Numeric Table |
◆ getArray()
Returns the array of objects associated with the table
- Returns
- Array of objects
◆ getBlockOfColumnValues() [1/3]
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
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the DoubleBuffer
◆ getBlockOfColumnValues() [2/3]
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
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the FloatBuffer
◆ getBlockOfColumnValues() [3/3]
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
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the IntBuffer
◆ getBlockOfRows() [1/3]
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
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into DoubleBuffer
◆ getBlockOfRows() [2/3]
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
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into FloatBuffer
◆ getBlockOfRows() [3/3]
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
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into IntBuffer
◆ getDictionary()
Returns the data dictionary
- Returns
- Data dictionary
◆ initDataDictionary()
void initDataDictionary |
( |
| ) |
|
|
protected |
Initializes Dictionary based on object class of known feature vectors
◆ releaseBlockOfColumnValues() [1/3]
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
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input DoubleBuffer of size vectorNum |
◆ releaseBlockOfColumnValues() [2/3]
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
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input FloatBuffer of size vectorNum |
◆ releaseBlockOfColumnValues() [3/3]
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
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input IntBuffer of size vectorNum |
◆ releaseBlockOfRows() [1/3]
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
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input DoubleBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
◆ releaseBlockOfRows() [2/3]
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
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input FloatBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
◆ releaseBlockOfRows() [3/3]
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
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input IntBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
◆ setArray()
void setArray |
( |
Object [] |
arr | ) |
|
Array of objects associated with the table
The documentation for this class was generated from the following file: