/// <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)); }
/// <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; } }
/// <summary> /// /// </summary> /// <param name="param"></param> private ImpalaClient(ConnectionParameter param) { this.connectionParameter = param; this.FetchSize = 1024; }