Package uk.gov.gchq.gaffer.store
Class ValidatedElements
- java.lang.Object
-
- uk.gov.gchq.gaffer.commonutil.iterable.TransformIterable<Element,Element>
-
- uk.gov.gchq.gaffer.store.ValidatedElements
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Element>
public class ValidatedElements extends TransformIterable<Element,Element>
AnValidatedElements
extendsTransformIterable
and uses anElementValidator
to validate theElement
s. It does not transform the element items - just simply returns them if they are valid.So the resultant
Iterable
will only containElement
s that have passed theSchema
Predicate
s orView
Predicate
s.
-
-
Constructor Summary
Constructors Constructor Description ValidatedElements(Iterable<? extends Element> elements, View view, boolean skipInvalid)
ValidatedElements(Iterable<? extends Element> elements, Schema schema, boolean skipInvalid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class uk.gov.gchq.gaffer.commonutil.iterable.TransformIterable
iterator
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classTransformIterable<Element,Element>
-
-