Esempio n. 1
0
        public BasicQueryInfo(
            QueryId queryId,
            SessionRepresentation session,
            QueryState state,
            MemoryPoolId memoryPool,
            bool scheduled,
            Uri self,
            string query,
            BasicQueryStats queryStats,
            ErrorType errorType,
            ErrorCode errorCode
            )
        {
            ParameterCheck.NotNullOrEmpty(query, "query");

            this.QueryId    = queryId ?? throw new ArgumentNullException("queryId");
            this.Session    = session ?? throw new ArgumentNullException("session");
            this.State      = state;
            this.MemoryPool = memoryPool;
            this.ErrorType  = errorType;
            this.ErrorCode  = errorCode;
            this.Scheduled  = scheduled;
            this.Self       = self ?? throw new ArgumentNullException("self");
            this.Query      = query;
            this.QueryStats = queryStats ?? throw new ArgumentNullException("queryStats");
        }
Esempio n. 2
0
        public QueryInfo(
            QueryId queryId,
            SessionRepresentation session,
            QueryState state,
            MemoryPoolId memoryPool,
            bool scheduled,
            Uri self,
            IEnumerable <string> fieldNames,
            string query,
            QueryStats queryStats,
            string setCatalog,
            string setSchema,
            IDictionary <string, string> setSessionProperties,
            HashSet <string> resetSessionProperties,
            IDictionary <string, string> addedPreparedStatements,
            HashSet <string> deallocatedPreparedStatemetns,
            TransactionId startedTransactionId,
            bool clearTransactionId,
            string updateType,
            StageInfo outputStage,
            FailureInfo failureInfo,
            ErrorCode errorCode,
            HashSet <Input> inputs,
            Output output,
            bool completeInfo,
            string resourceGroupName
            )
        {
            if (String.IsNullOrEmpty(query))
            {
                throw new ArgumentNullException("query");
            }

            this.QueryId                       = queryId ?? throw new ArgumentNullException("queryId");
            this.Session                       = session ?? throw new ArgumentNullException("session");
            this.State                         = state;
            this.MemoryPool                    = memoryPool ?? throw new ArgumentNullException("memoryPool");
            this.Scheduled                     = scheduled;
            this.Self                          = self ?? throw new ArgumentNullException("self");
            this.FieldNames                    = fieldNames ?? throw new ArgumentNullException("fieldNames");
            this.Query                         = query;
            this.QueryStats                    = queryStats ?? throw new ArgumentNullException("queryStats");
            this.SetCatalog                    = setCatalog;
            this.SetSchema                     = setSchema;
            this.SetSessionProperties          = setSessionProperties ?? throw new ArgumentNullException("setSessionProperties");
            this.ResetSessionProperties        = resetSessionProperties ?? throw new ArgumentNullException("resetSessionProperties");
            this.AddedPreparedStatements       = addedPreparedStatements ?? throw new ArgumentNullException("addedPreparedStatements");
            this.DeallocatedPreparedStatements = deallocatedPreparedStatemetns; // ?? throw new ArgumentNullException("deallocatedPreparedStatements");
            this.StartedTransactionId          = startedTransactionId;
            this.ClearTransactionId            = clearTransactionId;
            this.UpdateType                    = updateType;
            this.OutputStage                   = outputStage;
            this.FailureInfo                   = failureInfo;
            this.ErrorType                     = errorCode == null ? ErrorType.NONE : errorCode.Type;
            this.ErrorCode                     = errorCode;
            this.Inputs                        = inputs ?? throw new ArgumentNullException("inputs");
            this.Output                        = output;
            this.CompleteInfo                  = completeInfo;
            this.ResourceGroupName             = resourceGroupName;
        }