Class EdgeGraphData.EndpointData

java.lang.Object
dev.roanh.gmark.util.EdgeGraphData
dev.roanh.gmark.util.EdgeGraphData.EndpointData
Enclosing class:
EdgeGraphData

private static class EdgeGraphData.EndpointData extends EdgeGraphData
Represents metadata for the edge graph source and target nodes.
  • Field Details

    • name

      private final String name
      The display name of this data object.
    • selType

      private final SelectivityType selType
      The selectivity type of this data object. This corresponds to the selectivity type of the source/target node from the schema graph.
  • Constructor Details

    • EndpointData

      private EndpointData(String name, SelectivityType type)
      Constructs new end point data with the given name and selectivity type.
      Parameters:
      name - The display name.
      type - The selectivity type.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • size

      public int size()
      Description copied from class: EdgeGraphData
      Gets the length of the shortest path through the CPQ represented by this edge graph data object.
      Specified by:
      size in class EdgeGraphData
      Returns:
      The length of the shortest path through this object.
    • getSourceType

      public Type getSourceType()
      Description copied from class: EdgeGraphData
      The type of the source node for the CPQ in this data object.
      Specified by:
      getSourceType in class EdgeGraphData
      Returns:
      The target type for this object.
    • getTargetType

      public Type getTargetType()
      Description copied from class: EdgeGraphData
      The type of the source node for the CPQ in this data object.
      Specified by:
      getTargetType in class EdgeGraphData
      Returns:
      The source type for this object.
    • getSourceSelectivity

      public Selectivity getSourceSelectivity()
      Description copied from class: EdgeGraphData
      The selectivity of the source node for the CPQ in this data object.
      Specified by:
      getSourceSelectivity in class EdgeGraphData
      Returns:
      The source selectivity for this object.
    • getTargetSelectivity

      public Selectivity getTargetSelectivity()
      Description copied from class: EdgeGraphData
      The selectivity of the target node for the CPQ in this data object.
      Specified by:
      getTargetSelectivity in class EdgeGraphData
      Returns:
      The source selectivity for this object.
    • toCPQ

      public CPQ toCPQ()
      Description copied from class: EdgeGraphData
      Converts this edge graph data object to an actual CPQ representing it.
      Specified by:
      toCPQ in class EdgeGraphData
      Returns:
      A CPQ for this edge graph data object.
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object