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 TypeInputResult TypeResult
uk.gov.gchq.gaffer.operation.data.EntitySeedEntitySeed[vertex=vertex1]java.lang.Stringvertex1
uk.gov.gchq.gaffer.operation.data.EntitySeedEntitySeed[vertex=vertex2]java.lang.Stringvertex2
uk.gov.gchq.gaffer.data.element.EntityEntity[vertex=vertex2,group=group,properties=Properties[]]java.lang.Stringvertex2
java.lang.Stringa stringjava.lang.Stringa string
java.lang.Integer10java.lang.Integer10
nullnull

results matching ""

    No results matching ""