public class SnowflakeChunkDownloader extends Object
| Constructor and Description |
|---|
SnowflakeChunkDownloader(int colCount,
com.fasterxml.jackson.databind.JsonNode chunksData,
int prefetchThreads,
String qrmk,
com.fasterxml.jackson.databind.JsonNode chunkHeaders,
int networkTimeoutInMilli,
boolean useJsonParser,
long memoryLimit,
boolean efficientChunkStorage)
Constructor to initialize downloader
|
| Modifier and Type | Method and Description |
|---|---|
SnowflakeResultChunk |
getNextChunkToConsume()
The method does the following:
1.
|
void |
terminate()
terminate the downloader
|
public SnowflakeChunkDownloader(int colCount,
com.fasterxml.jackson.databind.JsonNode chunksData,
int prefetchThreads,
String qrmk,
com.fasterxml.jackson.databind.JsonNode chunkHeaders,
int networkTimeoutInMilli,
boolean useJsonParser,
long memoryLimit,
boolean efficientChunkStorage)
colCount - number of columns to expectchunksData - JSON object contains all the chunk informationprefetchThreads - number of prefetch threadsqrmk - Query Result Master KeychunkHeaders - JSON object contains information about chunk headersnetworkTimeoutInMilli - network timeoutuseJsonParser - should JsonParser be used instead of objectmemoryLimit - memory limit for chunk bufferefficientChunkStorage - use new efficient storage formatpublic SnowflakeResultChunk getNextChunkToConsume() throws InterruptedException, SnowflakeSQLException
InterruptedException - if downloading thread was interruptedSnowflakeSQLException - if downloader encountered an errorpublic void terminate()
Copyright © 2017. All rights reserved.