public SFResultSet(QueryExecResponseData responseData, SFStatement sfStatement, CancellationToken cancellationToken) { columnCount = responseData.rowType.Count; _currentChunkRowIdx = -1; _currentChunkRowCount = responseData.rowSet.GetLength(0); this.sfStatement = sfStatement; if (responseData.chunks != null) { // counting the first chunk _totalChunkCount = responseData.chunks.Count + 1; _chunkDownloader = new SFChunkDownloader(columnCount, responseData.chunks, responseData.qrmk, responseData.chunkHeaders, cancellationToken); } _currentChunk = new SFResultChunk(responseData.rowSet); responseData.rowSet = null; sfResultSetMetaData = new SFResultSetMetaData(responseData); updateSessionStatus(responseData); isClosed = false; }
public SFResultSet(QueryExecResponseData responseData, SFStatement sfStatement) { execFirstChunkData = responseData; columnCount = responseData.rowType.Count; currentChunkRowIdx = -1; currentChunkRowCount = responseData.rowSet.GetLength(0); currentChunkIndex = 0; this.sfStatement = sfStatement; if (responseData.chunks != null) { // counting the first chunk totalChunkCount = responseData.chunks.Count + 1; chunkDownloader = new SFChunkDownloader(responseData.rowType.Count, responseData.chunks, responseData.qrmk, responseData.chunkHeaders); } currentChunk = new SFResultChunk(responseData.rowSet); sfResultSetMetaData = new SFResultSetMetaData(responseData); updateSessionStatus(responseData); isClosed = false; }