Search in sources :

Example 1 with OperationChainLimiter

use of uk.gov.gchq.gaffer.graph.hook.OperationChainLimiter in project Gaffer by gchq.

the class GraphConfigTest method getTestObject.

@Override
protected GraphConfig getTestObject() {
    final String graphId = "graphId";
    final GraphLibrary library = new HashMapGraphLibrary();
    final View view = new View.Builder().globalElements(new GlobalViewElementDefinition.Builder().groupBy().build()).build();
    final GraphHook hook1 = new AddOperationsToChain();
    final GraphHook hook2 = new OperationChainLimiter();
    return new GraphConfig.Builder().graphId(graphId).library(library).description("testGraphConfig").addHook(hook1).addHook(hook2).view(view).build();
}
Also used : HashMapGraphLibrary(uk.gov.gchq.gaffer.store.library.HashMapGraphLibrary) HashMapGraphLibrary(uk.gov.gchq.gaffer.store.library.HashMapGraphLibrary) GraphLibrary(uk.gov.gchq.gaffer.store.library.GraphLibrary) GraphHook(uk.gov.gchq.gaffer.graph.hook.GraphHook) AddOperationsToChain(uk.gov.gchq.gaffer.graph.hook.AddOperationsToChain) View(uk.gov.gchq.gaffer.data.elementdefinition.view.View) OperationChainLimiter(uk.gov.gchq.gaffer.graph.hook.OperationChainLimiter)

Aggregations

View (uk.gov.gchq.gaffer.data.elementdefinition.view.View)1 AddOperationsToChain (uk.gov.gchq.gaffer.graph.hook.AddOperationsToChain)1 GraphHook (uk.gov.gchq.gaffer.graph.hook.GraphHook)1 OperationChainLimiter (uk.gov.gchq.gaffer.graph.hook.OperationChainLimiter)1 GraphLibrary (uk.gov.gchq.gaffer.store.library.GraphLibrary)1 HashMapGraphLibrary (uk.gov.gchq.gaffer.store.library.HashMapGraphLibrary)1