HbaseThriftPool 1.1.2.1

dotnet add package HbaseThriftPool --version 1.1.2.1                
NuGet\Install-Package HbaseThriftPool -Version 1.1.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HbaseThriftPool" Version="1.1.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HbaseThriftPool --version 1.1.2.1                
#r "nuget: HbaseThriftPool, 1.1.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install HbaseThriftPool as a Cake Addin
#addin nuget:?package=HbaseThriftPool&version=1.1.2.1

// Install HbaseThriftPool as a Cake Tool
#tool nuget:?package=HbaseThriftPool&version=1.1.2.1                

HbaseThrift 连接池

//初始化连接池
           HBaseClientPool.InitHBaseClientPool("192.168.0.242:9090|192.168.0.246:9090|192.168.0.250:9090");
           //使用using 释放连接到连接池
           using (var hclient = HBaseClientPool.GetHclient())
           {
               Stopwatch sw = new Stopwatch();

               for (int i = 0; i <= 10000; i++)
               {
                   try
                   {
                       sw.Restart();
                       string row = System.Guid.NewGuid().ToString();
                       hclient.Client.mutateRow("1".ToBytes(), row.ToBytes(), new List<Mutation> { new Mutation { Column = "b:abc".ToBytes(), Value = DateTime.Now.ToBytes() } }, null);
                       sw.Stop();
                       Console.WriteLine($"时间:{DateTime.Now} 耗时:{sw.ElapsedMilliseconds} ");
                   }
                   catch (Exception ex)
                   {
                       Console.WriteLine(ex.Message);
                   }
               }
           }

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.2.1 1,098 7/6/2018
1.1.2 932 6/20/2018