Class: CubeAxis

Oracle® JavaScript Extension Toolkit (JET)
3.2.0

E87541-01

QuickNav

oj. CubeAxis

Version:
  • 3.2.0
Since:
  • 1.1.0
Represents an axis (a collection of levels) in a cube. There is a set of oj.CubeAxisValues at each index within an axis, up to one per oj.CubeLevel on the axis

Constructor

new CubeAxis()

Source:

Methods

getExtent() → {number}

Gets the total number of indices (data value locations) along this axis
Source:
Returns:
the total number of indices along the axis
Type
number

getIndex(key) → {number}

Return the index of the given key within the axis. Return -1 if not found.
Parameters:
Name Type Description
key string
Source:
Returns:
index of value found using key, -1 if not found
Type
number

getLevels() → {Array}

Gets an ordered list (slowest to fastest varying) of all the levels represented within the axis. Some indices along the axis may not be represented by every level
Source:
Returns:
an ordered array of oj.CubeLevel
Type
Array

getValues(index) → {Array}

Get the oj.CubeAxisValue objects at the given index, one for each level represented at this index within the axis. Note that the number of oj.CubeAxisValues returned may not match the overall oj.CubeLevel count on the axis
Parameters:
Name Type Description
index {number} index for which to get the oj.CubeAxisValues
Source:
Returns:
the ordered list of oj.CubeAxisValues at this index (slowest to fastest varying).
Type
Array