static int GetCfCount(string cf, int limit) { var sqlStr = "select count(*) from \"M01UserRelaction\" limit 400000"; //var sqlStr = "Select count(*) from '" + cf + "' limit " + limit; CqlResult n1Result = ThriftTool.GetByCql(sqlStr); Console.WriteLine("Type=" + n1Result.Type); Console.WriteLine("Num=" + n1Result.Num); foreach (var row in n1Result.Rows) { Console.WriteLine("row.Key=" + ThriftTool.ToString(row.Key)); Console.WriteLine("row.Columns.Count=" + row.Columns.Count); foreach (var col in row.Columns) { Console.WriteLine("Type=" + col.Value.GetType()); Console.WriteLine("\tcol.Name=" + ThriftTool.ToString(col.Name)); Console.WriteLine("\tcol.Value=" + ThriftTool.ToLong(col.Value)); } } return(ThriftTool.ToInt(n1Result.Rows.First().Columns.First().Value)); }