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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object fieldKey) boolean
containsValue
(Object value) entrySet()
Returns aSet
whose elements comprise all of the mappings that are to be found in thisTuple
.keySet()
void
int
size()
values()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
containsKey
in interfaceMap<String,
Object> - Overrides:
containsKey
in classAbstractMap<String,
Object>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object> - Overrides:
containsValue
in classAbstractMap<String,
Object>
-
entrySet
Returns aSet
whose elements comprise all of the mappings that are to be found in thisTuple
. Information on each of the mappings is encapsulated in a separateMap.Entry
instance. As theSet
is 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()
-