Package uk.gov.gchq.gaffer.store.element
Interface ElementKey
-
- All Known Implementing Classes:
ElementKey.EdgeKey,ElementKey.EntityKey
public interface ElementKeyAnElementKeywraps an element and overrides hashcode and equals to only select the parts of the element that make up the key - i.e the Group, vertex/source/destination/directed and the group by properties.This can then be used in a
Mapto group elements together prior to performing aggregation.An ElementKey should be constructed using one of the create methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classElementKey.EdgeKeystatic classElementKey.EntityKey
-
Method Summary
Static Methods Modifier and Type Method Description static ElementKeycreate(Element element, Set<String> groupBy)static ElementKeycreate(Element element, Schema schema)static ElementKeycreate(Element element, SchemaElementDefinition elementDef)
-
-
-
Method Detail
-
create
static ElementKey create(Element element, Schema schema)
-
create
static ElementKey create(Element element, SchemaElementDefinition elementDef)
-
create
static ElementKey create(Element element, Set<String> groupBy)
-
-