Package org.apache.flink.types
Class MapValue<K extends Value,V extends Value>
- java.lang.Object
-
- org.apache.flink.types.MapValue<K,V>
-
- Type Parameters:
K- Type of the map's key element.V- Type of the map's value element.
- All Implemented Interfaces:
Serializable,Map<K,V>,IOReadableWritable,Value
@Public public abstract class MapValue<K extends Value,V extends Value> extends Object implements Value, Map<K,V>
Generic map base type for PACT programs that implements the Value and Map interfaces. TheMapValueencapsulates a JavaHashMapobject.- See Also:
Value,Map,HashMap, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,V>>entrySet()booleanequals(Object obj)Vget(Object key)inthashCode()booleanisEmpty()Set<K>keySet()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> m)voidread(DataInputView in)Reads the object's internal data from the given data input view.Vremove(Object key)intsize()StringtoString()Collection<V>values()voidwrite(DataOutputView out)Writes the object's internal data to the given data output view.-
Methods inherited from class java.lang.Object
clone, 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
-
-
-
-
Method Detail
-
read
public void read(DataInputView in) throws IOException
Description copied from interface:IOReadableWritableReads the object's internal data from the given data input view.- Specified by:
readin interfaceIOReadableWritable- Parameters:
in- the input view to read the data from- Throws:
IOException- thrown if any error occurs while reading from the input stream
-
write
public void write(DataOutputView out) throws IOException
Description copied from interface:IOReadableWritableWrites the object's internal data to the given data output view.- Specified by:
writein interfaceIOReadableWritable- Parameters:
out- the output view to receive the data.- Throws:
IOException- thrown if any error occurs while writing to the output stream
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(Object value)
-
isEmpty
public boolean isEmpty()
-
-