@PublicEvolving public interface MapData
MapType
or MultisetType
.
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.
Use GenericMapData
to construct instances of this interface from regular Java maps.
Modifier and Type | Method and Description |
---|---|
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.
|
int size()
ArrayData keyArray()
A key-value pair has the same index in the key array and value array.
ArrayData valueArray()
A key-value pair has the same index in the key array and value array.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.