@PublicEvolving public final class GenericMapData extends Object implements MapData
MapType or MultisetType.
GenericMapData is a generic implementation of MapData which wraps regular Java
maps.
Note: All keys and values of this data structure must be internal data structures. All keys
must be of the same type; same for values. See RowData for more information about
internal data structures.
Both keys and values can contain null for representing nullability.
| 构造器和说明 |
|---|
GenericMapData(Map<?,?> map)
Creates an instance of
GenericMapData using the given Java map. |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
Object |
get(Object key)
Returns the value to which the specified key is mapped, or
null if this map contains
no mapping for the key. |
int |
hashCode() |
ArrayData |
keyArray()
Returns an array view of the keys contained in this map.
|
int |
size()
Returns the number of key-value mappings in this map.
|
ArrayData |
valueArray()
Returns an array view of the values contained in this map.
|
public GenericMapData(Map<?,?> map)
GenericMapData using the given Java map.
Note: All keys and values of the map must be internal data structures.
public Object get(Object key)
null if this map contains
no mapping for the key. The returned value is in internal data structure.public int size()
MapDatapublic ArrayData keyArray()
MapDataA key-value pair has the same index in the key array and value array.
public ArrayData valueArray()
MapDataA key-value pair has the same index in the key array and value array.
valueArray 在接口中 MapDataCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.