Package uk.gov.gchq.gaffer.operation
Interface Operations<T extends Operation>
-
- Type Parameters:
T
- the type of theOperation
s
- All Known Implementing Classes:
AddNamedOperation
,FederatedOperation
,ForEach
,GetWalks
,If
,Join
,NamedOperation
,OperationChain
,OperationChainDAO
,While
public interface Operations<T extends Operation>
AnOperations
will hold a list ofOperation
s, which are often dealt with recursively.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<Operation>
flatten()
Recursively flattens nested operations.Collection<T>
getOperations()
Should return aCollection
of all operations contained within theOperations
implementation.default Class<T>
getOperationsClass()
The class of the operations.default void
updateOperations(Collection<T> operations)
Updates the operations using the provided collection.
-
-
-
Method Detail
-
getOperations
Collection<T> getOperations()
Should return aCollection
of all operations contained within theOperations
implementation. The collection of operations may be modified by Gaffer.- Returns:
- A
Collection
ofOperation
s.
-
updateOperations
default void updateOperations(Collection<T> operations)
Updates the operations using the provided collection. By default this will just clear the current operations collection and add all the new operations.- Parameters:
operations
- the new operations.
-
getOperationsClass
default Class<T> getOperationsClass()
The class of the operations. By default this will return theOperation
class.- Returns:
- the class of the operations
-
-