You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by hs...@apache.org on 2013/06/10 06:51:22 UTC

[3/4] git commit: TAJO-39 Remove the unused package tajo.engine.plan.global and all files inside the directory.

TAJO-39 Remove the unused package tajo.engine.plan.global and all files inside the directory.


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

Branch: refs/heads/master
Commit: c0adf477dbe132b872d8ff04253ac4ed01f97061
Parents: b6e65bf
Author: Henry Saputra <hs...@apache.org>
Authored: Sun Jun 9 21:43:04 2013 -0700
Committer: Henry Saputra <hs...@apache.org>
Committed: Sun Jun 9 21:43:04 2013 -0700

----------------------------------------------------------------------
 .../tajo/engine/plan/global/Annotation.java     |  23 ----
 .../tajo/engine/plan/global/GenericTask.java    | 123 -------------------
 .../engine/plan/global/GenericTaskGraph.java    |  39 ------
 3 files changed, 185 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/c0adf477/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/Annotation.java
----------------------------------------------------------------------
diff --git a/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/Annotation.java b/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/Annotation.java
deleted file mode 100644
index 6e62474..0000000
--- a/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/Annotation.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * 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 tajo.engine.plan.global;
-
-public abstract class Annotation {
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/c0adf477/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/GenericTask.java
----------------------------------------------------------------------
diff --git a/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/GenericTask.java b/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/GenericTask.java
deleted file mode 100644
index ce848e4..0000000
--- a/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/GenericTask.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/**
- * 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 tajo.engine.plan.global;
-
-import tajo.engine.planner.logical.ExprType;
-import tajo.engine.planner.logical.LogicalNode;
-import tajo.storage.Fragment;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-public class GenericTask {
-
-	private LogicalNode op;
-	private String tableName;
-	private List<Fragment> fragments;
-	private Set<GenericTask> prevTasks;
-	private Set<GenericTask> nextTasks;
-	private Annotation annotation;
-	
-	public GenericTask() {
-		fragments = new ArrayList<Fragment>();
-		prevTasks = new HashSet<GenericTask>();
-		nextTasks = new HashSet<GenericTask>();
-	}
-	
-	public GenericTask(LogicalNode op, Annotation annotation) {
-		this();
-		setOp(op);
-		setAnnotation(annotation);
-	}
-	
-	public void setOp(LogicalNode op) {
-		this.op = op;
-	}
-	
-	public void setAnnotation(Annotation annotation) {
-		this.annotation = annotation;
-	}
-	
-	public void setTableName(String tableName) {
-		this.tableName = tableName;
-	}
-	
-	public void addFragment(Fragment t) {
-		fragments.add(t);
-	}
-	
-	public void addPrevTask(GenericTask t) {
-		prevTasks.add(t);
-	}
-	
-	public void addNextTask(GenericTask t) {
-		nextTasks.add(t);
-	}
-	
-	public void removePrevTask(GenericTask t) {
-		prevTasks.remove(t);
-	}
-	
-	public void removeNextTask(GenericTask t) {
-		nextTasks.remove(t);
-	}
-	
-	public ExprType getType() {
-		return this.op.getType();
-	}
-	
-	public Set<GenericTask> getPrevTasks() {
-		return this.prevTasks;
-	}
-	
-	public Set<GenericTask> getNextTasks() {
-		return this.nextTasks;
-	}
-	
-	public LogicalNode getOp() {
-		return this.op;
-	}
-
-	public Annotation getAnnotation() {
-		return this.annotation;
-	}
-	
-	public List<Fragment> getFragments() {
-		return this.fragments;
-	}
-	
-	public String getTableName() {
-		return this.tableName;
-	}
-	
-	public boolean hasFragments() {
-		return this.fragments.size() > 0;
-	}
-	
-	@Override
-	public String toString() {
-		String str = new String(op.getType() + " " + tableName + " ");
-		for (Fragment t : fragments) {
-			str += t + " ";
-		}
-		return str;
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/c0adf477/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/GenericTaskGraph.java
----------------------------------------------------------------------
diff --git a/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/GenericTaskGraph.java b/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/GenericTaskGraph.java
deleted file mode 100644
index 874dc54..0000000
--- a/tajo-core/tajo-core-backend/src/main/java/tajo/engine/plan/global/GenericTaskGraph.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * 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 tajo.engine.plan.global;
-
-public class GenericTaskGraph {
-	private GenericTask root;
-
-	public GenericTaskGraph() {
-		
-	}
-	
-	public GenericTaskGraph(GenericTask root) {
-		setRoot(root);
-	}
-	
-	public void setRoot(GenericTask root) {
-		this.root = root;
-	}
-	
-	public GenericTask getRoot() {
-		return root;
-	}
-}