Package uk.gov.gchq.gaffer.operation
Class OperationChain.Builder
- java.lang.Object
-
- uk.gov.gchq.gaffer.operation.OperationChain.Builder
-
- Enclosing class:
- OperationChain<OUT>
public static class OperationChain.Builder extends Object
A
For a full example see the Example module.Builder
is a type safe way of building anOperationChain
. The builder instance is updated after each method call so it is best to chain the method calls together. Usage:
new Builder()
.first(new SomeOperation.Builder()
.addSomething()
.build()
)
.then(new SomeOtherOperation.Builder()
.addSomethingElse()
.build()
)
.build();
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <NEXT_OUT> OperationChain.OutputBuilder<NEXT_OUT>
first(Output<NEXT_OUT> op)
OperationChain.NoOutputBuilder
first(Operation op)
-
-
-
Method Detail
-
first
public OperationChain.NoOutputBuilder first(Operation op)
-
first
public <NEXT_OUT> OperationChain.OutputBuilder<NEXT_OUT> first(Output<NEXT_OUT> op)
-
-