Class ElementTupleDefinition
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- uk.gov.gchq.gaffer.data.element.function.ElementTupleDefinition
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class ElementTupleDefinition extends HashMap<String,Object>
AnElementTupleDefinitionis a HashMap that stores a mapping between the key names and the relevant part of anElementused for creation of Elements from data structures like MapTuples. For example, the key "id" in the MapTuple can be mapped to the vertex for Element creation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ElementTupleDefinition(String group)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementTupleDefinitiondestination(Object value)ElementTupleDefinitiondirected(Object value)Objectget(Object key)StringgetGroup()ElementTupleDefinitionproperty(String key)ElementTupleDefinitionproperty(String key, Object value)ElementTupleDefinitionsource(Object value)ElementTupleDefinitionvertex(Object value)-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
GROUP
public static final String GROUP
- See Also:
- Constant Field Values
-
VERTEX
public static final String VERTEX
- See Also:
- Constant Field Values
-
SOURCE
public static final String SOURCE
- See Also:
- Constant Field Values
-
DESTINATION
public static final String DESTINATION
- See Also:
- Constant Field Values
-
DIRECTED
public static final String DIRECTED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElementTupleDefinition
public ElementTupleDefinition(String group)
-
-
Method Detail
-
getGroup
public String getGroup()
-
vertex
public ElementTupleDefinition vertex(Object value)
-
source
public ElementTupleDefinition source(Object value)
-
destination
public ElementTupleDefinition destination(Object value)
-
directed
public ElementTupleDefinition directed(Object value)
-
property
public ElementTupleDefinition property(String key, Object value)
-
property
public ElementTupleDefinition property(String key)
-
-