@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, toBytespublic int size()
InternalMapsize in interface InternalMappublic void pointTo(MemorySegment[] segments, int offset, int sizeInBytes)
pointTo in class BinarySectionpublic BinaryArray keyArray()
InternalMapA key-value pair has the same index in the key array and value array.
keyArray in interface InternalMappublic BinaryArray valueArray()
InternalMapA key-value pair has the same index in the key array and value array.
valueArray in interface InternalMappublic BinaryMap copy()
public int hashCode()
hashCode in class BinarySectionpublic static BinaryMap valueOf(BinaryArray key, BinaryArray value)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.