Class: CubeDataValue

Oracle® JavaScript Extension Toolkit (JET)
4.2.0

E91398-01

QuickNav

oj. CubeDataValue

Version:
  • 4.2.0
Since:
  • 1.1.0
Objects returned by oj.Cube.getValues() and representing a single cell within the cube's data body. Note that more functions or properties can be added to this object in the future as required

Constructor

new CubeDataValue(value, indices, aggType, rows, square)

Parameters:
Name Type Argument Description
value Object
indices Array.<number>
aggType string <optional>
rows Array.<Object> <optional>
square number <optional>
See:

Methods

getAggregation() → {string|undefined}

Get the aggregation type used to create this data value, if any
Returns:
the aggregation type used for this data value
Type
string | undefined

getIndices() → {Array.<number>}

Get the indices in axis order of the location of this data cell within the cube data body
Returns:
an array of numeric indices in axis order
Type
Array.<number>

getRows() → {Array.<Object>|null|undefined}

Get the attribute/value pairs of the rows that were aggregated to create this data value. The result may be a single row's set of attribute/value pairs if no aggregation took place
Returns:
the array of attribute/value pairs representing rows aggregated to create this data value
Type
Array.<Object> | null | undefined

getValue() → {Object|null|number}

Get the actual data value in this cell
Returns:
the data value
Type
Object | null | number