Class FederatedOutputHandler<P extends Output<O>,O>
- java.lang.Object
-
- uk.gov.gchq.gaffer.federated.simple.operation.handler.FederatedOperationHandler<P>
-
- uk.gov.gchq.gaffer.federated.simple.operation.handler.FederatedOutputHandler<P,O>
-
- All Implemented Interfaces:
OperationHandler<P>
,OutputOperationHandler<P,O>
- Direct Known Subclasses:
GetSchemaHandler
public class FederatedOutputHandler<P extends Output<O>,O> extends FederatedOperationHandler<P> implements OutputOperationHandler<P,O>
A sub class operation handler for federation that can process operations that have an output associated with them. Will apply aFederatedResultAccumulator
to merge and reduce the results from multiple graphs into one.
-
-
Field Summary
-
Fields inherited from class uk.gov.gchq.gaffer.federated.simple.operation.handler.FederatedOperationHandler
OPT_AGGREGATE_ELEMENTS, OPT_EXCLUDE_GRAPH_IDS, OPT_GRAPH_IDS, OPT_SEPARATE_RESULTS, OPT_SHORT_GRAPH_IDS, OPT_SKIP_FAILED_EXECUTE, OPT_USE_DFLT_GRAPH_IDS
-
-
Constructor Summary
Constructors Constructor Description FederatedOutputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
doOperation(P operation, Context context, Store store)
Execute the givenOperation
.
-
-
-
Method Detail
-
doOperation
public O doOperation(P operation, Context context, Store store) throws OperationException
Description copied from interface:OperationHandler
Execute the givenOperation
.- Specified by:
doOperation
in interfaceOperationHandler<P extends Output<O>>
- Specified by:
doOperation
in interfaceOutputOperationHandler<P extends Output<O>,O>
- Overrides:
doOperation
in classFederatedOperationHandler<P extends Output<O>>
- Parameters:
operation
- theOperation
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 or null.
- Throws:
OperationException
- thrown if the operation fails
-
-