Class EdgeSeed
- java.lang.Object
-
- uk.gov.gchq.gaffer.operation.data.ElementSeed
-
- uk.gov.gchq.gaffer.operation.data.EdgeSeed
-
- All Implemented Interfaces:
Serializable,EdgeId,ElementId
public class EdgeSeed extends ElementSeed implements EdgeId
AnEdgeSeedcontains source, destination and directed identifiers to identify anEdge. It is mainly used as a seed for queries.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface uk.gov.gchq.gaffer.data.element.id.EdgeId
EdgeId.MatchedVertex
-
Nested classes/interfaces inherited from interface uk.gov.gchq.gaffer.data.element.id.ElementId
ElementId.Matches
-
-
Constructor Summary
Constructors Constructor Description EdgeSeed()EdgeSeed(Object source, Object destination)EdgeSeed(Object source, Object destination, boolean directed)EdgeSeed(Object source, Object destination, boolean directed, EdgeId.MatchedVertex matchedVertex)EdgeSeed(Object source, Object destination, Boolean directed, DirectedType directedType, EdgeId.MatchedVertex matchedVertex)EdgeSeed(Object source, Object destination, DirectedType directed)EdgeSeed(Object source, Object destination, DirectedType directed, EdgeId.MatchedVertex matchedVertex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Note this does not include the matchedVertex field.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.ObjectgetSource()Get the source vertex.inthashCode()Note this does not include the matchedVertex field.voidsetIdentifiers(Object source, Object destination, DirectedType directed, EdgeId.MatchedVertex matchedVertex)StringtoString()-
Methods inherited from class uk.gov.gchq.gaffer.operation.data.ElementSeed
createSeed, createSeed, createSeed
-
Methods inherited from interface uk.gov.gchq.gaffer.data.element.id.EdgeId
getAdjacentMatchedVertexValue, getMatchedVertexValue, isDirected, isEqual, isEqual, isRelated, isRelated, isUndirected, setIdentifiers
-
Methods inherited from interface uk.gov.gchq.gaffer.data.element.id.ElementId
getClassName, setClassName
-
-
-
-
Constructor Detail
-
EdgeSeed
public EdgeSeed()
-
EdgeSeed
public EdgeSeed(Object source, Object destination, DirectedType directed)
-
EdgeSeed
public EdgeSeed(Object source, Object destination, boolean directed, EdgeId.MatchedVertex matchedVertex)
-
EdgeSeed
public EdgeSeed(Object source, Object destination, DirectedType directed, EdgeId.MatchedVertex matchedVertex)
-
EdgeSeed
public EdgeSeed(Object source, Object destination, Boolean directed, DirectedType directedType, EdgeId.MatchedVertex matchedVertex)
-
-
Method Detail
-
getSource
public Object getSource()
Description copied from interface:EdgeIdGet the source vertex.
-
getDestination
public Object getDestination()
Description copied from interface:EdgeIdGet the destination vertex.- Specified by:
getDestinationin interfaceEdgeId- Returns:
- the object at the edge destination
-
getDirectedType
public DirectedType getDirectedType()
Description copied from interface:EdgeIdGet the directionality of the current edge.- Specified by:
getDirectedTypein interfaceEdgeId- Returns:
- the directed type
-
setIdentifiers
public void setIdentifiers(Object source, Object destination, DirectedType directed, EdgeId.MatchedVertex matchedVertex)
- Specified by:
setIdentifiersin interfaceEdgeId
-
getMatchedVertex
public EdgeId.MatchedVertex getMatchedVertex()
Description copied from interface:EdgeIdGet the vertex which is to be reported if a matched vertex is requested.- Specified by:
getMatchedVertexin interfaceEdgeId- Returns:
- the matched vertex
-
equals
public boolean equals(Object obj)
Note this does not include the matchedVertex field.
-
hashCode
public int hashCode()
Note this does not include the matchedVertex field.
-
-