Package uk.gov.gchq.gaffer.operation
Interface Validatable
-
- All Known Implementing Classes:
AddElements
,AddElementsFromFile
,AddElementsFromKafka
,AddElementsFromSocket
,DeleteElements
,Validate
public interface Validatable
AValidatable
operation defines an operation with an iterable ofElement
s that can optionally be validated before being processed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Validatable.Builder<OP extends Validatable,B extends Validatable.Builder<OP,?>>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSkipInvalidElements()
boolean
isValidate()
void
setSkipInvalidElements(boolean skipInvalidElements)
void
setValidate(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.
-
-