Package com.databricks.jdbc.api.impl
Class ChunkDownloader
- java.lang.Object
-
- com.databricks.jdbc.api.impl.ChunkDownloader
-
public class ChunkDownloader extends Object
Class to manage Arrow chunks and fetch them on proactive basis.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrowResultChunkgetChunk()Fetches the chunk for the given index.voidreleaseChunk()Release the memory for previous chunk since it is already consumed
-
-
-
Method Detail
-
getChunk
public ArrowResultChunk getChunk() throws DatabricksSQLException
Fetches the chunk for the given index. If chunk is not already downloaded, will download the chunk first- Returns:
- the chunk at given index
- Throws:
DatabricksSQLException
-
releaseChunk
public void releaseChunk()
Release the memory for previous chunk since it is already consumed
-
-