Class Matrix
- java.lang.Object
-
- org.pentaho.di.trans.steps.olapinput.olap4jhelper.Matrix
-
public class Matrix extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractBaseCell
get(int x, int y)
Returns the cell at a particular coordinate.Map<List<Integer>,AbstractBaseCell>
getMap()
Return the generated hashmap.int
getMatrixHeight()
Return the height of the matrix.int
getMatrixWidth()
Return the width of the created matrix.int
getOffset()
Return the header/row data offset.void
set(int x, int y, DataCell cell)
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.
-
-
-
Method Detail
-
set
public void set(int x, int y, DataCell cell)
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
public void set(int x, int y, MemberCell value)
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
public AbstractBaseCell get(int x, int y)
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
public Map<List<Integer>,AbstractBaseCell> 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
-
-