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 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

      private void overwrite(SelectivityGraph.DistanceMatrix data)
      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.