public class ArrowResultChunk extends SnowflakeResultChunk
| Modifier and Type | Class and Description |
|---|---|
static class |
ArrowResultChunk.ArrowChunkIterator
Iterator class used to go through the arrow chunk row by row
|
SnowflakeResultChunk.DownloadState| Constructor and Description |
|---|
ArrowResultChunk(String url,
int rowCount,
int colCount,
int uncompressedSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
computeNeededChunkMemory()
Compute the memory necessary to store the data of this chunk
|
void |
freeData()
Free the data stored in this chunk.
|
static ArrowResultChunk.ArrowChunkIterator |
getEmptyChunkIterator() |
ArrowResultChunk.ArrowChunkIterator |
getIterator(DataConversionContext dataConversionContext) |
static void |
readArrowStream(InputStream is,
ArrowResultChunk resultChunk)
Read an inputStream of arrow data bytes and load them into java vectors
of value.
|
getColCount, getDownloadCondition, getDownloadError, getDownloadState, getDownloadTime, getLock, getParseTime, getRowCount, getScrubbedUrl, getUncompressedSize, getUrl, setDownloadError, setDownloadState, setDownloadTime, setParseTimepublic ArrowResultChunk(String url, int rowCount, int colCount, int uncompressedSize)
public static void readArrowStream(InputStream is, ArrowResultChunk resultChunk) throws IOException
is - inputStream which contain arrow data file in bytesresultChunk - result chunk that holds the resulted arrow vectorIOException - if failed to read data as arrow filepublic long computeNeededChunkMemory()
SnowflakeResultChunkpublic void freeData()
SnowflakeResultChunkpublic ArrowResultChunk.ArrowChunkIterator getIterator(DataConversionContext dataConversionContext)
public static ArrowResultChunk.ArrowChunkIterator getEmptyChunkIterator()
Copyright © 2019. All rights reserved.