ExtractGroup
See javadoc - uk.gov.gchq.gaffer.data.element.function.ExtractGroup
Available since Gaffer version 1.4.0
Extracts a group from an element
Examples
Extract group
The function will simply extract the group from a given Element.
Java
JSON
Full JSON
Python
final ExtractGroup function = new ExtractGroup();
{
"class" : "ExtractGroup"
}
{
"class" : "uk.gov.gchq.gaffer.data.element.function.ExtractGroup"
}
g.ExtractGroup()
Input type:
uk.gov.gchq.gaffer.data.element.Element
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
uk.gov.gchq.gaffer.data.element.Edge | Edge[source=src,destination=dest,directed=true,group=EdgeGroup,properties=Properties[]] | java.lang.String | EdgeGroup |
uk.gov.gchq.gaffer.data.element.Entity | Entity[vertex=vertex,group=EntityGroup,properties=Properties[]] | java.lang.String | EntityGroup |
uk.gov.gchq.gaffer.operation.data.EntitySeed | EntitySeed[vertex=vertex] | ClassCastException: uk.gov.gchq.gaffer.operation.data.EntitySeed cannot be cast to uk.gov.gchq.gaffer.data.element.Element | |
null | null |