Package com.streambase.sb
Class TupleMapView
A view onto a
Tuple which uses the Map interface. This version does not
support any remove operations on the map since we cannot remove a field from
a Tuple (it has a fixed schema). Put is allowed.
This class is only meant to be instantiated by the method Tuple.toMapView().- Since:
- 7.0
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object fieldKey) booleancontainsValue(Object value) entrySet()Returns aSetwhose elements comprise all of the mappings that are to be found in thisTuple.keySet()voidintsize()values()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
TupleMapView
TupleMapView(Tuple tuple) Constructor- Parameters:
tuple- tuple
-
-
Method Details
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object> - Overrides:
containsKeyin classAbstractMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object> - Overrides:
containsValuein classAbstractMap<String,Object>
-
entrySet
Returns aSetwhose elements comprise all of the mappings that are to be found in thisTuple. Information on each of the mappings is encapsulated in a separateMap.Entryinstance. As theSetis backed by thisMap, users should be aware that changes in one will be immediately visible in the other. -
keySet
-
values
-
get
-
put
-
putAll
-
remove
-
size
public int size() -
clear
public void clear()
-