@Internal public final class BinaryMapData extends BinarySection implements MapData
BinaryMap
are influenced by Apache Spark UnsafeMapData.
offset, segments, sizeInBytes
HIGHEST_FIRST_BIT, HIGHEST_SECOND_TO_EIGHTH_BIT, MAX_FIX_PART_DATA_SIZE
Constructor and Description |
---|
BinaryMapData() |
Modifier and Type | Method and Description |
---|---|
BinaryMapData |
copy() |
BinaryMapData |
copy(BinaryMapData reuse) |
int |
hashCode() |
BinaryArrayData |
keyArray()
Returns an array view of the keys contained in this map.
|
void |
pointTo(MemorySegment[] segments,
int offset,
int sizeInBytes) |
int |
size()
Returns the number of key-value mappings in this map.
|
Map<?,?> |
toJavaMap(LogicalType keyType,
LogicalType valueType) |
BinaryArrayData |
valueArray()
Returns an array view of the values contained in this map.
|
static BinaryMapData |
valueOf(BinaryArrayData key,
BinaryArrayData value) |
equals, getOffset, getSegments, getSizeInBytes, pointTo
public int size()
MapData
public void pointTo(MemorySegment[] segments, int offset, int sizeInBytes)
pointTo
in class BinarySection
public BinaryArrayData keyArray()
MapData
A key-value pair has the same index in the key array and value array.
public BinaryArrayData valueArray()
MapData
A key-value pair has the same index in the key array and value array.
valueArray
in interface MapData
public Map<?,?> toJavaMap(LogicalType keyType, LogicalType valueType)
public BinaryMapData copy()
public BinaryMapData copy(BinaryMapData reuse)
public int hashCode()
hashCode
in class BinarySection
public static BinaryMapData valueOf(BinaryArrayData key, BinaryArrayData value)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.