use of uk.gov.gchq.gaffer.operation.data.EdgeSeed in project Gaffer by gchq.
the class AbstractStoreIT method createDefaultEdges.
public static Map<EdgeSeed, Edge> createDefaultEdges() {
final Map<EdgeSeed, Edge> edges = new HashMap<>();
for (int i = 0; i <= 10; i++) {
for (int j = 0; j < VERTEX_PREFIXES.length; j++) {
final Edge edge = new Edge(TestGroups.EDGE, VERTEX_PREFIXES[0] + i, VERTEX_PREFIXES[j] + i, false);
edge.putProperty(TestPropertyNames.INT, 1);
edge.putProperty(TestPropertyNames.COUNT, 1L);
addToMap(edge, edges);
}
final Edge firstEdge = new Edge(TestGroups.EDGE, SOURCE + i, DEST + i, false);
firstEdge.putProperty(TestPropertyNames.INT, 1);
firstEdge.putProperty(TestPropertyNames.COUNT, 1L);
addToMap(firstEdge, edges);
final Edge secondEdge = new Edge(TestGroups.EDGE, SOURCE_DIR + i, DEST_DIR + i, true);
secondEdge.putProperty(TestPropertyNames.INT, 1);
secondEdge.putProperty(TestPropertyNames.COUNT, 1L);
addToMap(secondEdge, edges);
}
return edges;
}
Aggregations