Interface EdgeId
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEdgeId.MatchedVertexEnumerated type to denote which vertex of anEdgematches an input parameter.-
Nested classes/interfaces inherited from interface uk.gov.gchq.gaffer.data.element.id.ElementId
ElementId.Matches
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ObjectgetAdjacentMatchedVertexValue()ObjectgetDestination()Get the destination vertex.DirectedTypegetDirectedType()Get the directionality of the current edge.EdgeId.MatchedVertexgetMatchedVertex()Get the vertex which is to be reported if a matched vertex is requested.default ObjectgetMatchedVertexValue()ObjectgetSource()Get the source vertex.default booleanisDirected()default booleanisEqual(EdgeId that)Note this does not include the matchedVertex field.default booleanisEqual(ElementId that)default ElementId.MatchesisRelated(ElementId that)This is related to anElementIdif either the ElementId is equal to this EdgeId or it is an EntityId and its identifier matches this EdgeId's source or destination.default ElementId.MatchesisRelated(EntityId that)This is related to anEntityIdif the EntityId's identifier matches this EdgeId's source or destination.default booleanisUndirected()default voidsetIdentifiers(Object source, Object destination, DirectedType directed)voidsetIdentifiers(Object source, Object destination, DirectedType directedType, EdgeId.MatchedVertex matchedVertex)-
Methods inherited from interface uk.gov.gchq.gaffer.data.element.id.ElementId
getClassName, setClassName
-
-
-
-
Method Detail
-
getSource
Object getSource()
Get the source vertex.- Returns:
- the object at the edge source
-
getDestination
Object getDestination()
Get the destination vertex.- Returns:
- the object at the edge destination
-
getDirectedType
DirectedType getDirectedType()
Get the directionality of the current edge.- Returns:
- the directed type
-
isDirected
default boolean isDirected()
- Returns:
- true if directed is DIRECTED, EITHER or null. Otherwise false.
-
isUndirected
default boolean isUndirected()
- Returns:
- true if directed is UNDIRECTED, EITHER or null. Otherwise false.
-
setIdentifiers
default void setIdentifiers(Object source, Object destination, DirectedType directed)
-
setIdentifiers
void setIdentifiers(Object source, Object destination, DirectedType directedType, EdgeId.MatchedVertex matchedVertex)
-
getMatchedVertex
EdgeId.MatchedVertex getMatchedVertex()
Get the vertex which is to be reported if a matched vertex is requested.- Returns:
- the matched vertex
-
isEqual
default boolean isEqual(EdgeId that)
Note this does not include the matchedVertex field.- Parameters:
that- the reference EdgeId with which to compare.- Returns:
trueif this object is the same as the edge argument;falseotherwise.
-
isRelated
default ElementId.Matches isRelated(ElementId that)
This is related to anElementIdif either the ElementId is equal to this EdgeId or it is an EntityId and its identifier matches this EdgeId's source or destination.- Specified by:
isRelatedin interfaceElementId- Parameters:
that- theElementIdto compare- Returns:
- An instance of
ElementId.Matchesto describe how the ids are related.
-
isRelated
default ElementId.Matches isRelated(EntityId that)
This is related to anEntityIdif the EntityId's identifier matches this EdgeId's source or destination.- Parameters:
that- theElementIdto compare- Returns:
- An instance of
ElementId.Matchesto describe how the ids are related.
-
getMatchedVertexValue
default Object getMatchedVertexValue()
-
getAdjacentMatchedVertexValue
default Object getAdjacentMatchedVertexValue()
-
-