Class RemoteChunkProvider

  • All Implemented Interfaces:
    ChunkProvider

    public class RemoteChunkProvider
    extends Object
    implements ChunkProvider
    Class to manage Arrow chunks and fetch them on proactive basis.
    • Method Detail

      • downloadProcessed

        public void downloadProcessed​(long chunkIndex)
      • hasNextChunk

        public boolean hasNextChunk()
        Checks if there are more chunks available to iterate over.
        Specified by:
        hasNextChunk in interface ChunkProvider
        Returns:
        true if there are additional chunks to be retrieved; false otherwise.
      • next

        public boolean next()
        Advances to the next available chunk. This method should be called before calling ChunkProvider.getChunk() to retrieve the data from the next chunk.
        Specified by:
        next in interface ChunkProvider
        Returns:
        true if the next chunk was successfully moved to; false if there are no more chunks.
      • close

        public void close()
        Closes the chunk provider and releases any resources associated with it. After calling this method, the chunk provider should not be used again.

        Release all chunks from memory. This would be called when result-set has been closed.

        Specified by:
        close in interface ChunkProvider