Class EdgeIdExtractor
- java.lang.Object
-
- uk.gov.gchq.gaffer.operation.data.generator.EdgeIdExtractor
-
- All Implemented Interfaces:
Function<Iterable<? extends Element>,Iterable<? extends EdgeId>>,ObjectGenerator<EdgeId>,OneToOneObjectGenerator<EdgeId>
public class EdgeIdExtractor extends Object implements OneToOneObjectGenerator<EdgeId>
GeneratesEdgeIds from andEdges. getObject(Element) is not supported withEntitys - anIllegalArgumentExceptionwill be thrown if this is attempted.
-
-
Constructor Summary
Constructors Constructor Description EdgeIdExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeId_apply(Edge element)EdgeId_apply(Element element)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.data.generator.OneToOneObjectGenerator
apply
-
-
-
-
Method Detail
-
_apply
public EdgeId _apply(Element element)
- Specified by:
_applyin interfaceOneToOneObjectGenerator<EdgeId>- Parameters:
element- the element to convert toEdgeId.- Returns:
- the
EdgeIdof the element - Throws:
IllegalArgumentException- if the element is not an Edge.
-
-