Class that provides methods to access data that is stored as a Structure Of Arrays(SOA), where each contiguous array represents values corresponding to a specific feature.
More...
◆ SOANumericTableImpl()
Constructs a Structure Of Arrays(SOA) numeric table
- Parameters
-
context | Context to manage created numeric table |
nFeatures | Number of features in numeric table |
nVectors | Number of feature vectors in numeric table |
◆ 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
◆ 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() [1/4]
void setArray |
( |
double [] |
arr, |
|
|
long |
idx |
|
) |
| |
Sets array of doubles of the feature to the table
- Parameters
-
arr | Array of values of the feature |
idx | Index of the feature |
◆ setArray() [2/4]
void setArray |
( |
float [] |
arr, |
|
|
long |
idx |
|
) |
| |
Sets array of floats of the feature to the table
- Parameters
-
arr | Array of values of the feature |
idx | Index of the feature |
◆ setArray() [3/4]
void setArray |
( |
long [] |
arr, |
|
|
long |
idx |
|
) |
| |
Sets array of longs of the feature to the table
- Parameters
-
arr | Array of values of the feature |
idx | Index of the feature |
◆ setArray() [4/4]
void setArray |
( |
int [] |
arr, |
|
|
long |
idx |
|
) |
| |
Sets array of integers of the feature to the table
- Parameters
-
arr | Array of values of the feature |
idx | Index of the feature |
◆ setNumberOfColumns()
void setNumberOfColumns |
( |
long |
nCol | ) |
|
Sets number of columns in the table
- Parameters
-
- Returns
- Execution status
The documentation for this class was generated from the following file: