public class SnowflakeChunkDownloader extends Object implements ChunkDownloader
Created by jhuang on 11/12/14.
| Modifier and Type | Class and Description |
|---|---|
static class |
SnowflakeChunkDownloader.NoOpChunkDownloader
This is a No Operation chunk downloader to avoid potential null pointer exception
|
| Constructor and Description |
|---|
SnowflakeChunkDownloader(SnowflakeResultSetSerializableV1 resultSetSerializable)
Constructor to initialize downloader
|
| Modifier and Type | Method and Description |
|---|---|
SnowflakeResultChunk |
getNextChunkToConsume()
The method does the following:
|
OCSPMode |
getOCSPMode() |
DownloaderMetrics |
terminate()
terminate the downloader
|
public SnowflakeChunkDownloader(SnowflakeResultSetSerializableV1 resultSetSerializable) throws SnowflakeSQLException
resultSetSerializable - the result set serializable object which includes required
metadata to start chunk downloaderSnowflakeSQLExceptionpublic OCSPMode getOCSPMode()
public SnowflakeResultChunk getNextChunkToConsume() throws InterruptedException, SnowflakeSQLException
1. free the previous chunk data and submit a new chunk to be downloaded
2. get next chunk to consume, if it is not ready for consumption, it waits until it is ready
getNextChunkToConsume in interface ChunkDownloaderInterruptedException - if downloading thread was interruptedSnowflakeSQLException - if downloader encountered an errorpublic DownloaderMetrics terminate() throws InterruptedException
terminate in interface ChunkDownloaderInterruptedExceptionCopyright © 2020. All rights reserved.