Package uk.gov.gchq.gaffer.operation
Interface Operations<T extends Operation>
-
- Type Parameters:
T- the type of theOperations
- All Known Implementing Classes:
AddNamedOperation,FederatedOperation,ForEach,GetWalks,If,Join,NamedOperation,OperationChain,OperationChainDAO,While
public interface Operations<T extends Operation>AnOperationswill hold a list ofOperations, 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 aCollectionof all operations contained within theOperationsimplementation.default Class<T>getOperationsClass()The class of the operations.default voidupdateOperations(Collection<T> operations)Updates the operations using the provided collection.
-
-
-
Method Detail
-
getOperations
Collection<T> getOperations()
Should return aCollectionof all operations contained within theOperationsimplementation. The collection of operations may be modified by Gaffer.- Returns:
- A
CollectionofOperations.
-
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 theOperationclass.- Returns:
- the class of the operations
-
-