Class BinarySection

    • Field Detail

      • segments

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

        protected int offset
      • sizeInBytes

        protected int sizeInBytes
    • Constructor Detail

      • BinarySection

        public BinarySection()
      • BinarySection

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

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object