use of uk.gov.gchq.gaffer.operation.impl.generate.GenerateObjects in project Gaffer by gchq.
the class ExamplesService method generateObjects.
@Override
public GenerateObjects generateObjects() {
final GenerateObjects<Element, ExampleDomainObject> op = new GenerateObjects<>(new ExampleDomainObjectGenerator());
List<Element> elements = new ArrayList<>();
if (hasEntities()) {
elements.add(getEntity(1));
elements.add(getEntity(2));
}
if (hasEdges()) {
elements.add(getEdge(1, 2));
}
op.setInput(elements);
populateOperation(op);
return op;
}
Aggregations