private void GetHttpResponse()
        {
            var client = new Microsoft.HBase.Client.HBaseClient(new ClusterCredentials(new Uri("https://cncloudhbjiaoyi.azurehdinsight.cn"), "admin", "Capitalandcs2016."));

            //定义扫描设定
            Scanner scannerSettings = new Scanner() { };
            //定义请求设定
            RequestOptions option = RequestOptions.GetDefaultOptions();
            

            var task = client.CreateScannerAsync("starinfocoupon", scannerSettings, option);
            task.ContinueWith(x => ShowResult(x.Result,client,option));
            
        }

        private void ShowResult(ScannerInformation result,HBaseClient client, RequestOptions option)
        {
            var scan = result;
            
            //扫描
            CellSet next = null;
            while ((next = client.ScannerGetNextAsync(scan, option).Result) != null)
            {
                foreach (CellSet.Row row in next.rows) { }
            }
        }

 

相关文章:

  • 2021-05-24
  • 2021-11-08
  • 2021-10-25
  • 2022-02-01
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
猜你喜欢
  • 2021-07-19
  • 2021-08-11
  • 2022-12-23
  • 2021-04-04
  • 2021-08-18
相关资源
相似解决方案