Package net.snowflake.client.jdbc
Class ResultJsonParserV2
- java.lang.Object
-
- net.snowflake.client.jdbc.ResultJsonParserV2
-
public class ResultJsonParserV2 extends Object
Copyright (c) 2018-2019 Snowflake Computing Inc. All rights reserved.This is the Java version of the ODBC's ResultJsonParserV2 class
-
-
Constructor Summary
Constructors Constructor Description ResultJsonParserV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
continueParsing(ByteBuffer in, SFBaseSession session)
Continue parsing with the given datavoid
endParsing(ByteBuffer in, SFBaseSession session)
Check if the chunk has been parsed correctly.void
startParsing(JsonResultChunk resultChunk, SFBaseSession session)
-
-
-
Method Detail
-
startParsing
public void startParsing(JsonResultChunk resultChunk, SFBaseSession session) throws SnowflakeSQLException
- Throws:
SnowflakeSQLException
-
endParsing
public void endParsing(ByteBuffer in, SFBaseSession session) throws SnowflakeSQLException
Check if the chunk has been parsed correctly. After calling this it is safe to acquire the output data- Throws:
SnowflakeSQLException
-
continueParsing
public int continueParsing(ByteBuffer in, SFBaseSession session) throws SnowflakeSQLException
Continue parsing with the given data- Parameters:
in
- readOnly byteBuffer backed by an array (the data to be reed is from position to limit)- Throws:
SnowflakeSQLException
-
-