Package uk.gov.gchq.gaffer.store.element
Interface ElementKey
-
- All Known Implementing Classes:
ElementKey.EdgeKey
,ElementKey.EntityKey
public interface ElementKey
AnElementKey
wraps 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
Map
to 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 class
ElementKey.EdgeKey
static class
ElementKey.EntityKey
-
Method Summary
Static Methods Modifier and Type Method Description static ElementKey
create(Element element, Set<String> groupBy)
static ElementKey
create(Element element, Schema schema)
static ElementKey
create(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)
-
-