public class BinaryMap extends Object implements MapData
[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 and Description |
|---|
BinaryMap(BinaryArray keys,
BinaryArray values,
org.apache.arrow.vector.types.pojo.Field field) |
BinaryMap(org.apache.arrow.vector.types.pojo.Field field) |
| Modifier and Type | Method and Description |
|---|---|
MapData |
copy() |
int |
getBaseOffset() |
MemoryBuffer |
getBuf() |
org.apache.arrow.vector.types.pojo.Field |
getField() |
int |
getSizeInBytes() |
BinaryArray |
keyArray() |
int |
numElements() |
void |
pointTo(MemoryBuffer buf,
int offset,
int sizeInBytes) |
String |
toString() |
BinaryArray |
valueArray() |
void |
writeTo(ByteBuffer buffer) |
void |
writeToMemory(Object target,
long targetOffset) |
public BinaryMap(org.apache.arrow.vector.types.pojo.Field field)
public BinaryMap(BinaryArray keys, BinaryArray values, org.apache.arrow.vector.types.pojo.Field field)
public void pointTo(MemoryBuffer buf, int offset, int sizeInBytes)
public MemoryBuffer getBuf()
public int getBaseOffset()
public int getSizeInBytes()
public org.apache.arrow.vector.types.pojo.Field getField()
public int numElements()
numElements in interface MapDatapublic BinaryArray keyArray()
public BinaryArray valueArray()
valueArray in interface MapDatapublic void writeToMemory(Object target, long targetOffset)
public void writeTo(ByteBuffer buffer)
Copyright © 2023-2024, The Apache Software Foundation. Apache Fury™, Fury™, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.