Class BinarySection

java.lang.Object
org.apache.flink.table.data.binary.BinarySection
All Implemented Interfaces:
BinaryFormat
Direct Known Subclasses:
BinaryArrayData, BinaryMapData, BinaryRowData, NestedRowData

@Internal public class BinarySection extends Object implements BinaryFormat
A basic implementation of BinaryFormat which describe a section of memory.
  • Field Details

    • segments

      protected org.apache.flink.core.memory.MemorySegment[] segments
    • offset

      protected int offset
    • sizeInBytes

      protected int sizeInBytes
  • Constructor Details

    • BinarySection

      public BinarySection()
    • BinarySection

      public BinarySection(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes)
  • Method Details

    • pointTo

      public final void pointTo(org.apache.flink.core.memory.MemorySegment segment, int offset, int sizeInBytes)
    • pointTo

      public void pointTo(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes)
    • getSegments

      public org.apache.flink.core.memory.MemorySegment[] getSegments()
      Description copied from interface: BinaryFormat
      Gets the underlying MemorySegments this binary format spans.
      Specified by:
      getSegments in interface BinaryFormat
    • getOffset

      public int getOffset()
      Description copied from interface: BinaryFormat
      Gets the start offset of this binary data in the MemorySegments.
      Specified by:
      getOffset in interface BinaryFormat
    • getSizeInBytes

      public int getSizeInBytes()
      Description copied from interface: BinaryFormat
      Gets the size in bytes of this binary data.
      Specified by:
      getSizeInBytes in interface BinaryFormat
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object