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>
GeneratesEdgeId
s from andEdge
s. getObject(Element) is not supported withEntity
s - anIllegalArgumentException
will 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:
_apply
in interfaceOneToOneObjectGenerator<EdgeId>
- Parameters:
element
- the element to convert toEdgeId
.- Returns:
- the
EdgeId
of the element - Throws:
IllegalArgumentException
- if the element is not an Edge.
-
-