public void endParsing ( ) throws SnowflakeSQLException { if ( partialEscapedUnicode . position ( ) > 0 ) { partialEscapedUnicode . flip ( ) ; continueParsingInternal ( partialEscapedUnicode , true ) ; partialEscapedUnicode . clear ( ) ; } if ( state != State . ROW_FINISHED ) { throw new SnowflakeSQLException ( SqlState . INTERNAL_ERROR , ErrorCode . INTERNAL_ERROR . getMessageCode ( ) , "SFResultJsonParser2Failed: Chunk is truncated!" ) ; } currentColumn = 0 ; state = State . UNINITIALIZED ; }
Check if the chunk has been parsed correctly . After calling this it is safe to acquire the output data