Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> git commit: Remove unused logical def classes


Copy link to this message
-
git commit: Remove unused logical def classes
Repository: incubator-drill
Updated Branches:
  refs/heads/master 36a7637f2 -> 95d6d6895
Remove unused logical def classes
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/95d6d689
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/95d6d689
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/95d6d689

Branch: refs/heads/master
Commit: 95d6d68955eb7e9ad8cfb3424410012d27e7d13b
Parents: 36a7637
Author: tnachen <[EMAIL PROTECTED]>
Authored: Sat Feb 15 01:30:43 2014 -0800
Committer: tnachen <[EMAIL PROTECTED]>
Committed: Sat Feb 15 01:30:43 2014 -0800

 .../drill/common/logical/defs/OrderDef.java     | 60 --------------------
 .../drill/common/logical/defs/PartitionDef.java | 55 ------------------
 2 files changed, 115 deletions(-)
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/95d6d689/common/src/main/java/org/apache/drill/common/logical/defs/OrderDef.java
diff --git a/common/src/main/java/org/apache/drill/common/logical/defs/OrderDef.java b/common/src/main/java/org/apache/drill/common/logical/defs/OrderDef.java
deleted file mode 100644
index d630353..0000000
+++ /dev/null
@@ -1,60 +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 org.apache.drill.common.logical.defs;
-
-import org.apache.drill.common.expression.LogicalExpression;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class OrderDef {
-  static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(OrderDef.class);
-
-  private final Direction direction;
-  private final LogicalExpression expr;
-
-  @JsonCreator
-  public OrderDef(@JsonProperty("order") Direction direction, @JsonProperty("expr") LogicalExpression expr) {
-    this.expr = expr;
-    // default to ascending unless desc is provided.
-    this.direction = direction == null ? Direction.ASC : direction;
-  }
-  
-  @JsonIgnore
-  public Direction getDirection() {
-    return direction;
-  }
-
-  public LogicalExpression getExpr() {
-    return expr;
-  }
-
-  public String getOrder() {
-    return direction.description;
-  }
-
-  public static enum Direction {
-    ASC("asc"), DESC("desc");
-    public final String description;
-
-    Direction(String d) {
-      description = d;
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/95d6d689/common/src/main/java/org/apache/drill/common/logical/defs/PartitionDef.java
diff --git a/common/src/main/java/org/apache/drill/common/logical/defs/PartitionDef.java b/common/src/main/java/org/apache/drill/common/logical/defs/PartitionDef.java
deleted file mode 100644
index d22ed5c..0000000
+++ /dev/null
@@ -1,55 +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 org.apache.drill.common.logical.defs;
-
-import org.apache.drill.common.expression.LogicalExpression;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class PartitionDef {
-  static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PartitionDef.class);
-
-  private final PartitionType partitionType;
-  private final LogicalExpression[] expressions;
-  private final LogicalExpression[] starts;
-  
-  @JsonCreator
-  public PartitionDef(@JsonProperty("partitionType") PartitionType partitionType, @JsonProperty("exprs") LogicalExpression[] expressions, @JsonProperty("starts") LogicalExpression[] starts) {
-    this.partitionType = partitionType;
-    this.expressions = expressions;
-    this.starts = starts;
-  }
-
-  public PartitionType getPartitionType() {
-    return partitionType;
-  }
-
-  public LogicalExpression[] getExpressions() {
-    return expressions;
-  }
-
-  public LogicalExpression[] getStarts() {
-    return starts;
-  }
-  
-
-  public static enum PartitionType{
-    RANDOM, HASH, ORDERED;
-  };
-}
 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB