Ejemplo n.º 1
0
        public TStatus Cancel()
        {
            var qh = this.currentQuery;

            if (qh != null)
            {
                using (var anotherConnection = ImpalaClient.Connect(this.ConnectionParameter))
                {
                    var ret = anotherConnection.service.Cancel(qh);
                    return(ret);
                }
            }

            return(null);
        }
Ejemplo n.º 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;
            }
        }