public class SnowflakeResultSetSerializableV1 extends Object implements SnowflakeResultSetSerializable, Serializable
A typical result JSON data section consists of the content of the first chunk file and file metadata for the rest of chunk files e.g. URL, chunk size, etc. So this object consists of one chunk data and a list of chunk file entries. In actual cases, it may only include chunk data or chunk files entries.
This object is serializable, so it can be distributed to other threads or worker nodes for distributed processing.
| Modifier and Type | Class and Description |
|---|---|
static class |
SnowflakeResultSetSerializableV1.ChunkFileMetadata
An Entity class to represent a chunk file metadata.
|
| Constructor and Description |
|---|
SnowflakeResultSetSerializableV1()
Default constructor.
|
public SnowflakeResultSetSerializableV1()
public void setRootAllocator(org.apache.arrow.memory.RootAllocator rootAllocator)
public void setQueryResultFormat(QueryResultFormat queryResultFormat)
public void setChunkFileCount(int chunkFileCount)
public void setFristChunkStringData(String firstChunkStringData)
public void setChunkDownloader(ChunkDownloader chunkDownloader)
public long getUncompressedDataSize()
public SFResultSetMetaData getSFResultSetMetaData()
public int getResultSetType()
public int getResultSetConcurrency()
public int getResultSetHoldability()
public SnowflakeConnectString getSnowflakeConnectString()
public OCSPMode getOCSPMode()
public String getQrmk()
public int getNetworkTimeoutInMilli()
public int getResultPrefetchThreads()
public boolean getUseJsonParserV2()
public long getMemoryLimit()
public List<SnowflakeResultSetSerializableV1.ChunkFileMetadata> getChunkFileMetadatas()
public org.apache.arrow.memory.RootAllocator getRootAllocator()
public QueryResultFormat getQueryResultFormat()
public int getChunkFileCount()
public boolean isArrayBindSupported()
public String getQueryId()
public String getFinalDatabaseName()
public String getFinalSchemaName()
public String getFinalRoleName()
public String getFinalWarehouseName()
public SFStatementType getStatementType()
public boolean isTotalRowCountTruncated()
public int getColumnCount()
public List<SnowflakeColumnMetadata> getResultColumnMetadata()
public com.fasterxml.jackson.databind.JsonNode getAndClearFirstChunkRowset()
public int getFirstChunkRowCount()
public long getResultVersion()
public int getNumberOfBinds()
public ChunkDownloader getChunkDownloader()
public net.snowflake.common.core.SnowflakeDateTimeFormat getTimestampNTZFormatter()
public net.snowflake.common.core.SnowflakeDateTimeFormat getTimestampLTZFormatter()
public net.snowflake.common.core.SnowflakeDateTimeFormat getTimestampTZFormatter()
public net.snowflake.common.core.SnowflakeDateTimeFormat getDateFormatter()
public net.snowflake.common.core.SnowflakeDateTimeFormat getTimeFormatter()
public TimeZone getTimeZone()
public boolean isHonorClientTZForTimestampNTZ()
public net.snowflake.common.core.SFBinaryFormat getBinaryFormatter()
public long getSendResultTime()
public List<MetaDataOfBinds> getMetaDataOfBinds()
public String getFirstChunkStringData()
public static SnowflakeResultSetSerializableV1 create(com.fasterxml.jackson.databind.JsonNode rootNode, SFSession sfSession, SFStatement sfStatement) throws SnowflakeSQLException
rootNode - result JSON node received from GSsfSession - the Snowflake sessionsfStatement - the Snowflake statementSnowflakeSQLException - if failed to parse the result JSON nodepublic List<SnowflakeResultSetSerializable> splitBySize(long maxSizeInBytes) throws SQLException
maxSizeInBytes - the expected max data size wrapped in the result
ResultSetSerializables object.
NOTE: if a result chunk size is greater than this
value, the ResultSetSerializable object will
include one result chunk.SQLException - if fails to split objects.public ResultSet getResultSet() throws SQLException
getResultSet in interface SnowflakeResultSetSerializableSQLExceptionpublic ResultSet getResultSet(Properties info) throws SQLException
getResultSet in interface SnowflakeResultSetSerializableinfo - The proxy sever information if proxy is necessary.SQLExceptionCopyright © 2019. All rights reserved.