@Public public final class BinaryMap extends BinarySection implements InternalMap
BinaryMap
are influenced by Apache Spark UnsafeMapData.
HIGHEST_FIRST_BIT, HIGHEST_SECOND_TO_EIGHTH_BIT, MAX_FIX_PART_DATA_SIZE, offset, segments, sizeInBytes
Constructor and Description |
---|
BinaryMap() |
Modifier and Type | Method and Description |
---|---|
BinaryMap |
copy() |
BinaryMap |
copy(BinaryMap reuse) |
int |
hashCode() |
BinaryArray |
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(DataType keyType,
DataType valueType) |
BinaryArray |
valueArray()
Returns an array view of the values contained in this map.
|
static BinaryMap |
valueOf(BinaryArray key,
BinaryArray value) |
equals, getOffset, getSegments, getSizeInBytes, pointTo, toBytes
public int size()
InternalMap
size
in interface InternalMap
public void pointTo(MemorySegment[] segments, int offset, int sizeInBytes)
pointTo
in class BinarySection
public BinaryArray keyArray()
InternalMap
A key-value pair has the same index in the key array and value array.
keyArray
in interface InternalMap
public BinaryArray valueArray()
InternalMap
A key-value pair has the same index in the key array and value array.
valueArray
in interface InternalMap
public BinaryMap copy()
public int hashCode()
hashCode
in class BinarySection
public static BinaryMap valueOf(BinaryArray key, BinaryArray value)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.