コード例 #1
0
        /// <summary>
        /// Instantiate ImpalaClient and connect it to the impalad.
        /// </summary>
        /// <param name="host"></param>
        /// <param name="port"></param>
        /// <returns></returns>
        public static ImpalaClient Connect(string host, int port)
        {
            var param = new ConnectionParameter()
            {
                Host = host,
                Port = port
            };

            return(Connect(param));
        }
コード例 #2
0
        /// <summary>
        /// Instantiate ImpalaClient and connect it to the impalad.
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public static ImpalaClient Connect(ConnectionParameter param)
        {
            ImpalaClient client = null;

            try
            {
                client = new ImpalaClient(param);
                client.Connect();

                return(client);
            }
            catch
            {
                client.Dispose();
                throw;
            }
        }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="param"></param>
 private ImpalaClient(ConnectionParameter param)
 {
     this.connectionParameter = param;
     this.FetchSize           = 1024;
 }