コード例 #1
0
ファイル: Scanner.cs プロジェクト: leegkon/NHBaseAPI
 /// <summary>
 ///		获取下一行数据。当返回null时为止
 /// </summary>
 /// <exception cref="IOErrorException">IO错误</exception>
 /// <exception cref="CommunicationTimeoutException">通信超时</exception>
 /// <exception cref="CommunicationFailException">通信失败</exception>
 /// <returns>返回下一行数据</returns>
 public RowInfo GetNext()
 {
     RowInfo[] infos = _client.GetRowsFromScanner(_scannerId, BatchSize, _iep);
     if (infos == null || infos.Length == 0)
     {
         _client.ScannerClose(_scannerId, _iep);
         return(null);
     }
     return(infos[0]);
 }