Interface HostBufferConsumer


public interface HostBufferConsumer
Provides a set of APIs for consuming host buffers. This is typically used when writing out Tables in various file formats.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Indicates that no more buffers will be supplied.
    void
    handleBuffer(HostMemoryBuffer buffer, long len)
    Consume a buffer.
  • Method Details

    • handleBuffer

      void handleBuffer(HostMemoryBuffer buffer, long len)
      Consume a buffer.
      Parameters:
      buffer - the buffer. Be sure to close this buffer when you are done with it or it will leak.
      len - the length of the buffer that is valid. The valid data will be 0 until len.
    • done

      default void done()
      Indicates that no more buffers will be supplied.