public static class SparkInternalRowWrapper.SparkInternalMap extends Object implements InternalMap
| Constructor and Description |
|---|
SparkInternalMap(org.apache.spark.sql.catalyst.util.MapData mapData,
org.apache.spark.sql.types.DataType keyType,
org.apache.spark.sql.types.DataType valueType) |
| Modifier and Type | Method and Description |
|---|---|
InternalArray |
keyArray()
Returns an array view of the keys contained in this map.
|
int |
size()
Returns the number of key-value mappings in this map.
|
InternalArray |
valueArray()
Returns an array view of the values contained in this map.
|
public SparkInternalMap(org.apache.spark.sql.catalyst.util.MapData mapData,
org.apache.spark.sql.types.DataType keyType,
org.apache.spark.sql.types.DataType valueType)
public int size()
InternalMapsize in interface InternalMappublic InternalArray keyArray()
InternalMapA key-value pair has the same index in the key array and value array.
keyArray in interface InternalMappublic InternalArray valueArray()
InternalMapA key-value pair has the same index in the key array and value array.
valueArray in interface InternalMapCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.