Java* API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

Classes | List of all members
NumericTable Class Referenceabstract

Class for the data management component responsible for the representation of the data in a numerical format. More...

Detailed Description

Member Function Documentation

◆ allocateDataMemory()

void allocateDataMemory ( )

Allocates memory for a data set

◆ freeDataMemory()

void freeDataMemory ( )

Deallocates the memory allocated for a data set

◆ 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
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

◆ 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
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

◆ 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
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

◆ 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
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

◆ 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
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

◆ 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
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

◆ getCNumericTable()

long getCNumericTable ( )

Returns the address of the native object

Returns
Address of the native object

◆ getCObject()

long getCObject ( )

Returns the address of the native object

Returns
Address of the native object

◆ getDataLayout()

StorageLayout getDataLayout ( )

Return data storage layout

Returns
Data storage Layout

◆ getDataMemoryStatus()

MemoryStatus getDataMemoryStatus ( )

Return the status of the memory used by a data set connected with a Numeric Table

Returns
Status of the memory used by a data set connected with a Numeric Table

◆ getDictionary()

DataDictionary getDictionary ( )

Returns the data dictionary

Returns
Data dictionary

◆ getDoubleValue()

double getDoubleValue ( long  column,
long  row 
)

Returns value by given column and row from the numeric table

Parameters
columnColumn
rowRow
Returns
Value from numeric table

◆ getFeatureType()

DataFeature getFeatureType ( int  idx)

Returns the type of a given feature

Parameters
idxFeature index
Returns
Feature type

◆ getFloatValue()

float getFloatValue ( long  column,
long  row 
)

Returns value by given column and row from the numeric table

Parameters
columnColumn
rowRow
Returns
Value from numeric table

◆ getIntValue()

int getIntValue ( long  column,
long  row 
)

Returns value by given column and row from the numeric table

Parameters
columnColumn
rowRow
Returns
Value from numeric table

◆ getNumberOfColumns()

long getNumberOfColumns ( )

Gets number of columns in the table

Returns
Number of columns in the table

◆ getNumberOfRows()

long getNumberOfRows ( )

Gets number of rows in the table

Returns
Number of rows in the table

◆ isNormalized()

boolean isNormalized ( NormalizationType  flag)

Checks if dataset stored in the numeric table is normalized, according to the given normalization flag

Parameters
flagNormalization flag to check
Returns
Check result

◆ 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
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

◆ 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
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

◆ 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
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

◆ 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
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

◆ 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
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

◆ 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
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

◆ setDictionary()

void setDictionary ( DataDictionary  ddict)

Sets a data dictionary in the Numeric Table

Parameters
ddictPointer to the data dictionary

◆ setNormalizationFlag()

NormalizationType setNormalizationFlag ( NormalizationType  flag)

Sets the normalization flag for dataset stored in the numeric table

Parameters
flagNormalization flag
Returns
Previous value of the normalization flag

◆ setNumberOfColumns()

void setNumberOfColumns ( long  nCol)

Sets number of columns in the table

Parameters
nColNumber of columns

◆ setNumberOfRows()

void setNumberOfRows ( long  nRow)

Sets number of rows in the table

Parameters
nRowNumber of rows

Classes

class  AllocationFlag
 
class  MemoryStatus
 
class  NormalizationType
 
class  StorageLayout
 

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

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