Class Matrix
java.lang.Object
org.pentaho.di.trans.steps.olapinput.olap4jhelper.Matrix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(int x, int y) Returns the cell at a particular coordinate.getMap()Return the generated hashmap.intReturn the height of the matrix.intReturn the width of the created matrix.intReturn the header/row data offset.voidSets the value at a particular coordinatevoidset(int x, int y, MemberCell value) Sets the value at a particular coordinatevoidsetOffset(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
-