Package dev.roanh.gmark.lang.cpq
Class QueryGraphCPQ.Vertex
java.lang.Object
dev.roanh.gmark.lang.cpq.QueryGraphCPQ.QueryGraphComponent
dev.roanh.gmark.lang.cpq.QueryGraphCPQ.Vertex
- All Implemented Interfaces:
IDable
,Comparable<QueryGraphCPQ.QueryGraphComponent>
- Enclosing class:
- QueryGraphCPQ
Represents a vertex in a CPQ query graph.
-
Field Summary
Modifier and TypeFieldDescriptionprivate long[]
Bit set of label IDs on edges to this vertex.private long[]
Bit set of label IDs on edges from this vertex.Fields inherited from class dev.roanh.gmark.lang.cpq.QueryGraphCPQ.QueryGraphComponent
id
-
Constructor Summary
-
Method Summary
Methods inherited from class dev.roanh.gmark.lang.cpq.QueryGraphCPQ.QueryGraphComponent
compareTo, getID
-
Field Details
-
in
private long[] inBit set of label IDs on edges to this vertex. -
out
private long[] outBit set of label IDs on edges from this vertex.
-
-
Constructor Details
-
Vertex
public Vertex()
-
-
Method Details
-
toString
-
isVertex
public boolean isVertex()Description copied from class:QueryGraphCPQ.QueryGraphComponent
Checks if this query graph component is a vertex.- Specified by:
isVertex
in classQueryGraphCPQ.QueryGraphComponent
- Returns:
- True if this is a vertex.
- See Also:
-
isEdge
public boolean isEdge()Description copied from class:QueryGraphCPQ.QueryGraphComponent
Checks if this query graph component is an edge.- Specified by:
isEdge
in classQueryGraphCPQ.QueryGraphComponent
- Returns:
- True if this is an edge.
- See Also:
-