Class BinaryMap

java.lang.Object
io.fury.format.row.binary.BinaryMap
All Implemented Interfaces:
MapData

public class BinaryMap extends Object implements 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 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

      public void pointTo(MemoryBuffer buf, int offset, int sizeInBytes)
    • getBuf

      public MemoryBuffer 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:
      numElements in interface MapData
    • keyArray

      public BinaryArray keyArray()
      Specified by:
      keyArray in interface MapData
    • valueArray

      public BinaryArray valueArray()
      Specified by:
      valueArray in interface MapData
    • copy

      public MapData copy()
      Specified by:
      copy in interface MapData
    • writeToMemory

      public void writeToMemory(Object target, long targetOffset)
    • writeTo

      public void writeTo(ByteBuffer buffer)
    • toString

      public String toString()
      Overrides:
      toString in class Object