Package dev.roanh.gmark.util
Class EdgeGraphData.EndpointData
java.lang.Object
dev.roanh.gmark.util.EdgeGraphData
dev.roanh.gmark.util.EdgeGraphData.EndpointData
- Enclosing class:
- EdgeGraphData
Represents metadata for the edge graph source
and target nodes.
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.roanh.gmark.util.EdgeGraphData
EdgeGraphData.IdentityData, EdgeGraphData.IntersectionData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
The display name of this data object.private final SelectivityType
The selectivity type of this data object. -
Constructor Summary
ModifierConstructorDescriptionprivate
EndpointData
(String name, SelectivityType type) Constructs new end point data with the given name and selectivity type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The selectivity of the source node for the CPQ in this data object.The type of the source node for the CPQ in this data object.The selectivity of the target node for the CPQ in this data object.The type of the source node for the CPQ in this data object.int
hashCode()
int
size()
Gets the length of the shortest path through the CPQ represented by this edge graph data object.toCPQ()
Converts this edge graph data object to an actual CPQ representing it.toString()
-
Field Details
-
name
The display name of this data object. -
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
Constructs new end point data with the given name and selectivity type.- Parameters:
name
- The display name.type
- The selectivity type.
-
-
Method Details
-
toString
-
equals
-
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 classEdgeGraphData
- Returns:
- The length of the shortest path through this object.
-
getSourceType
Description copied from class:EdgeGraphData
The type of the source node for the CPQ in this data object.- Specified by:
getSourceType
in classEdgeGraphData
- Returns:
- The target type for this object.
-
getTargetType
Description copied from class:EdgeGraphData
The type of the source node for the CPQ in this data object.- Specified by:
getTargetType
in classEdgeGraphData
- Returns:
- The source type for this object.
-
getSourceSelectivity
Description copied from class:EdgeGraphData
The selectivity of the source node for the CPQ in this data object.- Specified by:
getSourceSelectivity
in classEdgeGraphData
- Returns:
- The source selectivity for this object.
-
getTargetSelectivity
Description copied from class:EdgeGraphData
The selectivity of the target node for the CPQ in this data object.- Specified by:
getTargetSelectivity
in classEdgeGraphData
- Returns:
- The source selectivity for this object.
-
toCPQ
Description copied from class:EdgeGraphData
Converts this edge graph data object to an actual CPQ representing it.- Specified by:
toCPQ
in classEdgeGraphData
- Returns:
- A CPQ for this edge graph data object.
- See Also:
-
hashCode
public int hashCode()
-