UnwrapEntityId
See javadoc - uk.gov.gchq.gaffer.data.element.function.UnwrapEntityId
Available since Gaffer version 1.5.0
If the object is an EntityId, the vertex value will be unwrapped and returned, otherwise the original object will be returned.
Examples
Unwrap entity ids
Java
JSON
Full JSON
Python
final UnwrapEntityId function = new UnwrapEntityId();
{
"class" : "UnwrapEntityId"
}
{
"class" : "uk.gov.gchq.gaffer.data.element.function.UnwrapEntityId"
}
g.UnwrapEntityId()
Input type:
java.lang.Object
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
uk.gov.gchq.gaffer.operation.data.EntitySeed | EntitySeed[vertex=vertex1] | java.lang.String | vertex1 |
uk.gov.gchq.gaffer.operation.data.EntitySeed | EntitySeed[vertex=vertex2] | java.lang.String | vertex2 |
uk.gov.gchq.gaffer.data.element.Entity | Entity[vertex=vertex2,group=group,properties=Properties[]] | java.lang.String | vertex2 |
java.lang.String | a string | java.lang.String | a string |
java.lang.Integer | 10 | java.lang.Integer | 10 |
null | null |