Class PrunedAdjacencyMaps
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.graph.adjacency.PrunedAdjacencyMaps
-
- All Implemented Interfaces:
Iterable<AdjacencyMap>
,AdjacencyMaps
public class PrunedAdjacencyMaps extends Object implements AdjacencyMaps
APrunedAdjacencyMaps
object represents a collection ofAdjacencyMap
s containing graph adjacency information.As the
AdjacencyMap
s are added, a comparison is made between the destination vertices of the previous map and the source vertices of the newly added map. Any entries in the preceding map which do not join up with a source vertex in the new map are deemed to be orphaned paths, and are removed.
-
-
Constructor Summary
Constructors Constructor Description PrunedAdjacencyMaps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(AdjacencyMap adjacencyMap)
Add a newAdjacencyMap
.List<AdjacencyMap>
asList()
Get a representation of the current AdjacencyMaps object as aList
.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.data.graph.adjacency.AdjacencyMaps
empty, get, iterator, prettyPrint, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
add
public void add(AdjacencyMap adjacencyMap)
Description copied from interface:AdjacencyMaps
Add a newAdjacencyMap
.- Specified by:
add
in interfaceAdjacencyMaps
- Parameters:
adjacencyMap
- the AdjacencyMap to add
-
asList
public List<AdjacencyMap> asList()
Description copied from interface:AdjacencyMaps
Get a representation of the current AdjacencyMaps object as aList
.- Specified by:
asList
in interfaceAdjacencyMaps
- Returns:
- a
List
representation of the current AdjacencyMaps object
-
-