Interface HostBufferProvider

All Superinterfaces:
AutoCloseable

public interface HostBufferProvider extends AutoCloseable
Provides a set of APIs for providing host buffers to be read.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Indicates that no more buffers will be supplied.
    long
    readInto(HostMemoryBuffer buffer, long len)
    Place data into the given buffer.
  • Method Details

    • readInto

      long readInto(HostMemoryBuffer buffer, long len)
      Place data into the given buffer.
      Parameters:
      buffer - the buffer to put data into.
      len - the maximum amount of data to put into buffer. Less is okay if at EOF.
      Returns:
      the actual amount of data put into the buffer.
    • close

      default void close()
      Indicates that no more buffers will be supplied.
      Specified by:
      close in interface AutoCloseable