Interface DataBuffer

    • Method Detail

      • getNextBuffer

        BufferWithSubpartition getNextBuffer​(@Nullable
                                             org.apache.flink.core.memory.MemorySegment transitBuffer)
        Copies data in this DataBuffer to the target MemorySegment in subpartition index order and returns BufferWithSubpartition which contains the copied data and the corresponding subpartition index.
      • numTotalRecords

        long numTotalRecords()
        Returns the total number of records written to this DataBuffer.
      • numTotalBytes

        long numTotalBytes()
        Returns the total number of bytes written to this DataBuffer.
      • hasRemaining

        boolean hasRemaining()
        Returns true if not all data appended to this DataBuffer is consumed.
      • finish

        void finish()
        Finishes this DataBuffer which means no record can be appended anymore.
      • isFinished

        boolean isFinished()
        Whether this DataBuffer is finished or not.
      • release

        void release()
        Releases this DataBuffer which releases all resources.
      • isReleased

        boolean isReleased()
        Whether this DataBuffer is released or not.