Package uk.gov.gchq.gaffer.operation
Interface Validatable
-
- All Known Implementing Classes:
AddElements,AddElementsFromFile,AddElementsFromKafka,AddElementsFromSocket,DeleteElements,Validate
public interface ValidatableAValidatableoperation defines an operation with an iterable ofElements that can optionally be validated before being processed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceValidatable.Builder<OP extends Validatable,B extends Validatable.Builder<OP,?>>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisSkipInvalidElements()booleanisValidate()voidsetSkipInvalidElements(boolean skipInvalidElements)voidsetValidate(boolean validate)
-
-
-
Method Detail
-
isSkipInvalidElements
boolean isSkipInvalidElements()
- Returns:
- true if invalid elements should be skipped. Otherwise false if the operation should fail.
-
setSkipInvalidElements
void setSkipInvalidElements(boolean skipInvalidElements)
- Parameters:
skipInvalidElements- true if invalid elements should be skipped. Otherwise false if the operation should fail.
-
isValidate
boolean isValidate()
- Returns:
- true if the operation should be validated. Otherwise false.
-
setValidate
void setValidate(boolean validate)
- Parameters:
validate- true if the operation should be validated. Otherwise false.
-
-