Package io.fury.format.row.binary
Class BinaryMap
java.lang.Object
io.fury.format.row.binary.BinaryMap
- All Implemented Interfaces:
MapData
An BinaryMap implementation of Map which is backed by two BinaryArray./FuryObjectOutput
[8 byte(key array size in bytes)] + [Key BinaryArray] + [Value BinaryArray].
Note that, user is responsible to guarantee that the key array does not have duplicated elements otherwise the behavior is undefined.
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryMap(BinaryArray keys, BinaryArray values, org.apache.arrow.vector.types.pojo.Field field) BinaryMap(org.apache.arrow.vector.types.pojo.Field field) -
Method Summary
Modifier and TypeMethodDescriptioncopy()intgetBuf()org.apache.arrow.vector.types.pojo.FieldgetField()intkeyArray()intvoidpointTo(MemoryBuffer buf, int offset, int sizeInBytes) toString()voidwriteTo(ByteBuffer buffer) voidwriteToMemory(Object target, long targetOffset)
-
Constructor Details
-
BinaryMap
public BinaryMap(org.apache.arrow.vector.types.pojo.Field field) -
BinaryMap
public BinaryMap(BinaryArray keys, BinaryArray values, org.apache.arrow.vector.types.pojo.Field field)
-
-
Method Details
-
pointTo
-
getBuf
-
getBaseOffset
public int getBaseOffset() -
getSizeInBytes
public int getSizeInBytes() -
getField
public org.apache.arrow.vector.types.pojo.Field getField() -
numElements
public int numElements()- Specified by:
numElementsin interfaceMapData
-
keyArray
-
valueArray
- Specified by:
valueArrayin interfaceMapData
-
copy
-
writeToMemory
-
writeTo
-
toString
-