Class FederatedOutputHandler<PAYLOAD extends Output<OUTPUT>,OUTPUT>
- java.lang.Object
-
- uk.gov.gchq.gaffer.federatedstore.operation.handler.impl.FederatedOutputHandler<PAYLOAD,OUTPUT>
-
- Type Parameters:
PAYLOAD
- The operation to be federated and executed by delegate graphs.OUTPUT
- The type of object returned by Federation.
- All Implemented Interfaces:
OperationHandler<PAYLOAD>
,OutputOperationHandler<PAYLOAD,OUTPUT>
- Direct Known Subclasses:
FederatedOutputIterableHandler
public class FederatedOutputHandler<PAYLOAD extends Output<OUTPUT>,OUTPUT> extends Object implements OutputOperationHandler<PAYLOAD,OUTPUT>
Handler for the federation of an PAYLOAD operation with an expected return type Iterable- See Also:
OperationHandler
,FederatedStore
,GetElements
-
-
Constructor Summary
Constructors Constructor Description FederatedOutputHandler()
FederatedOutputHandler(OUTPUT defaultEmpty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OUTPUT
doOperation(PAYLOAD operation, Context context, Store store)
Execute the givenOutput
operation.
-
-
-
Constructor Detail
-
FederatedOutputHandler
public FederatedOutputHandler(OUTPUT defaultEmpty)
-
FederatedOutputHandler
public FederatedOutputHandler()
-
-
Method Detail
-
doOperation
public OUTPUT doOperation(PAYLOAD operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<PAYLOAD extends Output<OUTPUT>>
- Specified by:
doOperation
in interfaceOutputOperationHandler<PAYLOAD extends Output<OUTPUT>,OUTPUT>
- Parameters:
operation
- theOutput
operation to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- theStore
the operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException
- thrown if the operation fails
-
-