/*
 * Copyright 2009-2010 by The Regents of the University of California
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * you may obtain a copy of the License from
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.uci.ics.asterix.aql.translator;

import edu.uci.ics.asterix.aql.base.Statement;
import edu.uci.ics.asterix.aql.expression.Query;

public class QueryResult {

    private final Query query;
    private final String resultPath;

    public QueryResult(Query statement, String resultPath) {
        this.query = statement;
        this.resultPath = resultPath;
    }

    public Statement getStatement() {
        return query;
    }

    public String getResultPath() {
        return resultPath;
    }

}

@@ -769,16 +769,110 @@
 n.Query;
+%0Aimport edu.uci.ics.hyracks.api.dataset.ResultSetId;%0Aimport edu.uci.ics.hyracks.api.job.JobId;
 %0A%0Apublic
@@ -920,24 +920,25 @@
 uery query;%0A
+%0A
     private 
@@ -943,33 +943,65 @@
 e final 
-String resultPath
+ResultSetId resultSetId;%0A%0A    private JobId jobId
 ;%0A%0A    p
@@ -1039,25 +1039,31 @@
 nt, 
-String
+ResultSetId
  result
-Path
+SetId
 ) %7B%0A
@@ -1113,20 +1113,21 @@
 s.result
-Path
+SetId
  = resul
@@ -1123,28 +1123,163 @@
 tId = result
-Path
+SetId;%0A    %7D%0A%0A    public void setJobId(JobId jobId) %7B%0A        this.jobId = jobId;%0A    %7D%0A%0A    public JobId getJobId() %7B%0A        return jobId
 ;%0A    %7D%0A%0A   
@@ -1357,14 +1357,19 @@
 lic 
-String
+ResultSetId
  get
@@ -1374,20 +1374,18 @@
 etResult
-Path
+Id
 () %7B%0A   
@@ -1406,12 +1406,13 @@
 sult
-Path
+SetId
 ;%0A  

Store and implement the necessary data and methods for storing information about the job and result set id.