internal DryadLinqQuery(DryadLinqProviderBase queryProvider, DataProvider dataProvider) { this.m_queryProvider = queryProvider; this.m_dataProvider = dataProvider; this.m_queryExecutor = null; }
internal DryadLinqJobInfo(string jobId, string headNode, DryadLinqJobExecutor jobExecutor) { _jobIds = Array.AsReadOnly(new string[] { jobId }); _headNodes = Array.AsReadOnly(new string[] { headNode }); _jobExecutors = Array.AsReadOnly(new DryadLinqJobExecutor[] { jobExecutor }); }
internal DryadLinqJobInfo(string[] jobIds, string[] headNodes, DryadLinqJobExecutor[] jobExecutors) { _jobIds = Array.AsReadOnly(jobIds); _headNodes = Array.AsReadOnly(headNodes); _jobExecutors = Array.AsReadOnly(jobExecutors); }
private void Initialize(VertexCodeGen vertexCodeGen) { this.m_codeGen = new DryadLinqCodeGen(this.m_context, vertexCodeGen); this.m_queryPlan1 = null; this.m_queryPlan2 = null; this.m_queryPlan3 = null; this.m_DryadLinqProgram = null; this.m_queryPlan1 = null; this.m_exprNodeInfoMap = new Dictionary<Expression, QueryNodeInfo>(); this.m_referencedQueryMap = new Dictionary<Expression, QueryNodeInfo>(); this.m_inputUriMap = new Dictionary<string, DLinqInputNode>(); this.m_outputUriMap = new Dictionary<string, DLinqOutputNode>(); this.m_queryExecutor = new DryadLinqJobExecutor(this.m_context); // Initialize the data structures for the output tables this.m_outputTypes = new Type[this.m_queryExprs.Length]; this.m_queryNodeInfos = new QueryNodeInfo[this.m_queryExprs.Length]; for (int i = 0; i < this.m_queryExprs.Length; i++) { this.m_queryNodeInfos[i] = this.BuildNodeInfoGraph(this.m_queryExprs[i]); this.m_queryNodeInfos[i] = new DummyQueryNodeInfo(this.m_queryExprs[i], false, this.m_queryNodeInfos[i]); if (!DataPath.IsValidDataPath(this.m_outputTableUris[i])) { throw new DryadLinqException(DryadLinqErrorCode.UnrecognizedDataSource, String.Format(SR.UnrecognizedDataSource, this.m_outputTableUris[i].AbsoluteUri)); } } }