Class ValidateHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.ValidateHandler
-
- All Implemented Interfaces:
OperationHandler<Validate>,OperationWithSchemaHandler<Validate,Iterable<? extends Element>>,OutputOperationHandler<Validate,Iterable<? extends Element>>
public class ValidateHandler extends Object implements OutputOperationHandler<Validate,Iterable<? extends Element>>, OperationWithSchemaHandler<Validate,Iterable<? extends Element>>
AnValidateHandlerhandles forValidateoperations. Takes anIterableofElements and returns anIterablecontaining only validElements, specifically an instance ofValidatedElements. TheSchemais used to validate the elements. The isSkipInvalidElements flag onValidateis used to determine what to do with invalidElements.
-
-
Constructor Summary
Constructors Constructor Description ValidateHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends Element>doOperation(Validate operation, Context context, Store store)Execute the givenOutputoperation.Iterable<? extends Element>doOperation(Validate operation, Schema schema)
-
-
-
Method Detail
-
doOperation
public Iterable<? extends Element> doOperation(Validate operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<Validate>- Specified by:
doOperationin interfaceOutputOperationHandler<Validate,Iterable<? extends Element>>- Parameters:
operation- theOutputoperation to be executedcontext- the operation chain context, containing the user who executed the operationstore- theStorethe operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException- thrown if the operation fails
-
doOperation
public Iterable<? extends Element> doOperation(Validate operation, Schema schema)
- Specified by:
doOperationin interfaceOperationWithSchemaHandler<Validate,Iterable<? extends Element>>
-
-