Package dev.roanh.gmark.util
Class SelectivityGraph.DistanceMatrix
java.lang.Object
dev.roanh.gmark.util.RangeMatrix<Map<SelectivityClass,Integer>>
dev.roanh.gmark.util.SelectivityGraph.DistanceMatrix
- Enclosing class:
- SelectivityGraph
public static final class SelectivityGraph.DistanceMatrix
extends RangeMatrix<Map<SelectivityClass,Integer>>
Matrix that encoder pair wise information for
all selectivity types in a graph.
-
Constructor Summary
ModifierConstructorDescriptionprivate
DistanceMatrix
(int size) Constructs a new square distance matrix with the given dimensions.private
DistanceMatrix
(int rows, int cols) Constructs a new distance matrix with the given dimensions. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Overwrites all the data in this matrix with data from the given other matrix effectively making this matrix a copy of the given matrix.Methods inherited from class dev.roanh.gmark.util.RangeMatrix
get, get, get, get, getColumnCount, getRowCount, set, set, set, set
-
Constructor Details
-
DistanceMatrix
private DistanceMatrix(int size) Constructs a new square distance matrix with the given dimensions. Note that these dimensions only apply to the type part of the selectivity types stored in this matrix.- Parameters:
size
- The matrix dimensions (number of node types).
-
DistanceMatrix
private DistanceMatrix(int rows, int cols) Constructs a new distance matrix with the given dimensions. Note that these dimensions only apply to the type part of the selectivity types stored in this matrix.- Parameters:
rows
- The number of rows in the matrix.cols
- The number of columns in the matrix.
-
-
Method Details
-
overwrite
Overwrites all the data in this matrix with data from the given other matrix effectively making this matrix a copy of the given matrix.- Parameters:
data
- The matrix to copy from.
-