Search in sources :

Example 1 with SimpleGenerator

use of uk.gov.gchq.gaffer.arrayliststore.data.generator.SimpleGenerator in project Gaffer by gchq.

the class ArrayListStoreTest method addElementsToGraph.

private void addElementsToGraph(final Graph graph) throws OperationException {
    final OperationChain<Void> opChain = new OperationChain.Builder().first(new GenerateElements.Builder<>().objects(getDomainObjects()).generator(new SimpleGenerator()).build()).then(new AddElements()).build();
    // execute the operation
    graph.execute(opChain, new User());
}
Also used : AddElements(uk.gov.gchq.gaffer.operation.impl.add.AddElements) User(uk.gov.gchq.gaffer.user.User) OperationChain(uk.gov.gchq.gaffer.operation.OperationChain) SimpleGenerator(uk.gov.gchq.gaffer.arrayliststore.data.generator.SimpleGenerator)

Aggregations

SimpleGenerator (uk.gov.gchq.gaffer.arrayliststore.data.generator.SimpleGenerator)1 OperationChain (uk.gov.gchq.gaffer.operation.OperationChain)1 AddElements (uk.gov.gchq.gaffer.operation.impl.add.AddElements)1 User (uk.gov.gchq.gaffer.user.User)1