HostBufferProvider#

public interface HostBufferProvider extends AutoCloseable#

Provides a set of APIs for providing host buffers to be read.

Method Summary

close()

Indicates that no more buffers will be supplied.

readInto(HostMemoryBuffer buffer, long len)

Place data into the given buffer.

Methods

public 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.

public default void close()#

Indicates that no more buffers will be supplied.