public final class BinaryMap extends BinarySection implements BaseMap
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 |
---|
BinaryMap() |
Modifier and Type | Method and Description |
---|---|
BinaryMap |
copy() |
BinaryMap |
copy(BinaryMap reuse) |
int |
hashCode() |
BinaryArray |
keyArray() |
int |
numElements()
Invoke by codeGens.
|
void |
pointTo(MemorySegment[] segments,
int offset,
int sizeInBytes) |
static BinaryMap |
readBinaryMapFieldFromSegments(MemorySegment[] segments,
int baseOffset,
long offsetAndSize) |
Map<Object,Object> |
toJavaMap(LogicalType keyType,
LogicalType valueType)
This method will return a Java map containing INTERNAL type data.
|
BinaryArray |
valueArray() |
static BinaryMap |
valueOf(BinaryArray key,
BinaryArray value) |
equals, getOffset, getSegments, getSizeInBytes, pointTo
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
readBinaryFieldFromSegments, readBinaryStringFieldFromSegments
public int numElements()
BaseMap
numElements
in interface BaseMap
public void pointTo(MemorySegment[] segments, int offset, int sizeInBytes)
pointTo
in class BinarySection
public BinaryArray keyArray()
public BinaryArray valueArray()
public Map<Object,Object> toJavaMap(LogicalType keyType, LogicalType valueType)
BaseMap
public BinaryMap copy()
public int hashCode()
hashCode
in class BinarySection
public static BinaryMap valueOf(BinaryArray key, BinaryArray value)
public static BinaryMap readBinaryMapFieldFromSegments(MemorySegment[] segments, int baseOffset, long offsetAndSize)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.