drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdunn...@apache.org
Subject [3/3] git commit: DRILL-5 - Forgot OperatorReference class
Date Wed, 17 Oct 2012 18:03:30 GMT
DRILL-5 - Forgot OperatorReference class


Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/08ef0dd0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/08ef0dd0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/08ef0dd0

Branch: refs/heads/master
Commit: 08ef0dd0c666b655c41eae14a568804941435e2f
Parents: a88e262
Author: tdunning <tdunning@apache.org>
Authored: Wed Oct 17 10:34:02 2012 -0700
Committer: tdunning <tdunning@apache.org>
Committed: Wed Oct 17 10:34:02 2012 -0700

----------------------------------------------------------------------
 .../plan/physical/operators/OperatorReference.java |   39 +++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/08ef0dd0/sandbox/plan-parser/src/main/java/org/apache/drill/plan/physical/operators/OperatorReference.java
----------------------------------------------------------------------
diff --git a/sandbox/plan-parser/src/main/java/org/apache/drill/plan/physical/operators/OperatorReference.java
b/sandbox/plan-parser/src/main/java/org/apache/drill/plan/physical/operators/OperatorReference.java
new file mode 100644
index 0000000..bfb76b7
--- /dev/null
+++ b/sandbox/plan-parser/src/main/java/org/apache/drill/plan/physical/operators/OperatorReference.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 at
+ *
+ *     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 org.apache.drill.plan.physical.operators;
+
+/**
+ * Record a reference to a particular output of an Operator.
+ */
+public class OperatorReference {
+    private Operator op;
+    private int port;
+
+    public OperatorReference(Operator op, int port) {
+        this.op = op;
+        this.port = port;
+    }
+
+    public Operator getOp() {
+        return op;
+    }
+
+    public int getPort() {
+        return port;
+    }
+}


Mime
View raw message