Class BinaryMapData
java.lang.Object
org.apache.flink.table.data.binary.BinarySection
org.apache.flink.table.data.binary.BinaryMapData
- All Implemented Interfaces:
BinaryFormat,MapData
[4 byte(keyArray size in bytes)] + [Key BinaryArray] + [Value BinaryArray].
BinaryMap are influenced by Apache Spark UnsafeMapData.
-
Field Summary
Fields inherited from class org.apache.flink.table.data.binary.BinarySection
offset, segments, sizeInBytesFields inherited from interface org.apache.flink.table.data.binary.BinaryFormat
HIGHEST_FIRST_BIT, HIGHEST_SECOND_TO_EIGHTH_BIT, MAX_FIX_PART_DATA_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()copy(BinaryMapData reuse) inthashCode()keyArray()Returns an array view of the keys contained in this map.voidpointTo(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes) intsize()Returns the number of key-value mappings in this map.Map<?,?> toJavaMap(LogicalType keyType, LogicalType valueType) Returns an array view of the values contained in this map.static BinaryMapDatavalueOf(BinaryArrayData key, BinaryArrayData value) Methods inherited from class org.apache.flink.table.data.binary.BinarySection
equals, getOffset, getSegments, getSizeInBytes, pointTo
-
Constructor Details
-
BinaryMapData
public BinaryMapData()
-
-
Method Details
-
size
public int size()Description copied from interface:MapDataReturns the number of key-value mappings in this map. -
pointTo
public void pointTo(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes) - Overrides:
pointToin classBinarySection
-
keyArray
Description copied from interface:MapDataReturns an array view of the keys contained in this map.A key-value pair has the same index in the key array and value array.
-
valueArray
Description copied from interface:MapDataReturns an array view of the values contained in this map.A key-value pair has the same index in the key array and value array.
- Specified by:
valueArrayin interfaceMapData
-
toJavaMap
-
copy
-
copy
-
hashCode
public int hashCode()- Overrides:
hashCodein classBinarySection
-
valueOf
-