Class Matrix
java.lang.Object
org.pentaho.di.trans.steps.olapinput.olap4jhelper.Matrix
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(int x, int y) Returns the cell at a particular coordinate.getMap()
Return the generated hashmap.int
Return the height of the matrix.int
Return the width of the created matrix.int
Return the header/row data offset.void
Sets the value at a particular coordinatevoid
set
(int x, int y, MemberCell value) Sets the value at a particular coordinatevoid
setOffset
(int offset) Set the header/row data offset.
-
Constructor Details
-
Matrix
public Matrix() -
Matrix
public Matrix(int width, int height) Creats a Matrix.- Parameters:
width
- Width of matrixheight
- Height of matrix
-
-
Method Details
-
set
Sets the value at a particular coordinate- Parameters:
x
- X coordinatey
- Y coordinatevalue
- Valueright
- Whether value is right-justifiedsameAsPrev
- Whether value is the same as the previous value. If true, some formats separators between cells
-
set
Sets the value at a particular coordinate- Parameters:
x
- X coordinatey
- Y coordinatevalue
- Valueright
- Whether value is right-justifiedsameAsPrev
- Whether value is the same as the previous value. If true, some formats separators between cells
-
get
Returns the cell at a particular coordinate.- Parameters:
x
- X coordinatey
- Y coordinate- Returns:
- Cell
-
getMatrixWidth
public int getMatrixWidth()Return the width of the created matrix.- Returns:
- the width
-
getMatrixHeight
public int getMatrixHeight()Return the height of the matrix.- Returns:
- the height
-
getMap
Return the generated hashmap.- Returns:
- the map
-
setOffset
public void setOffset(int offset) Set the header/row data offset.- Parameters:
offset
-
-
getOffset
public int getOffset()Return the header/row data offset.- Returns:
- offset
-