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>
AnValidatedElementsextendsTransformIterableand uses anElementValidatorto validate theElements. It does not transform the element items - just simply returns them if they are valid.So the resultant
Iterablewill only containElements that have passed theSchemaPredicates orViewPredicates.
-
-
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 voidclose()-
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classTransformIterable<Element,Element>
-
-