incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [6/7] git commit: Removing dead code.
Date Tue, 28 Oct 2014 01:59:33 GMT
Removing dead code.


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

Branch: refs/heads/master
Commit: 68454b274a46a632250e43752a595a5475a57d6d
Parents: afb9abd
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Mon Oct 27 21:59:07 2014 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Mon Oct 27 21:59:07 2014 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/blur/server/ShardContext.java    | 10 ----------
 .../main/java/org/apache/blur/server/TableContext.java    |  7 -------
 2 files changed, 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/68454b27/blur-core/src/main/java/org/apache/blur/server/ShardContext.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/server/ShardContext.java b/blur-core/src/main/java/org/apache/blur/server/ShardContext.java
index 69e3786..b8925f1 100644
--- a/blur-core/src/main/java/org/apache/blur/server/ShardContext.java
+++ b/blur-core/src/main/java/org/apache/blur/server/ShardContext.java
@@ -26,7 +26,6 @@ import org.apache.lucene.store.Directory;
 public class ShardContext {
 
   private String shard;
-  private Path walShardPath;
   private Path hdfsDirPath;
   private Directory directory;
   private TableContext tableContext;
@@ -67,19 +66,10 @@ public class ShardContext {
     this.shard = shard;
   }
 
-  public Path getWalShardPath() {
-    return walShardPath;
-  }
-
-  public void setWalShardPath(Path walShardPath) {
-    this.walShardPath = walShardPath;
-  }
-
   public static ShardContext create(TableContext tableContext, String shard) throws IOException
{
     BlurUtil.validateShardName(shard);
     ShardContext shardContext = new ShardContext();
     shardContext.tableContext = tableContext;
-    shardContext.walShardPath = new Path(tableContext.getWalTablePath(), shard);
     shardContext.hdfsDirPath = new Path(tableContext.getTablePath(), shard);
     shardContext.shard = shard;
     shardContext.directory = new HdfsDirectory(tableContext.getConfiguration(), shardContext.hdfsDirPath);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/68454b27/blur-core/src/main/java/org/apache/blur/server/TableContext.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/server/TableContext.java b/blur-core/src/main/java/org/apache/blur/server/TableContext.java
index da5e237..9e07f69 100644
--- a/blur-core/src/main/java/org/apache/blur/server/TableContext.java
+++ b/blur-core/src/main/java/org/apache/blur/server/TableContext.java
@@ -67,7 +67,6 @@ public class TableContext implements Cloneable {
 
   private static final Log LOG = LogFactory.getLog(TableContext.class);
 
-  private static final String LOGS = "logs";
   private static final String TYPES = "types";
 
   private static ConcurrentHashMap<String, TableContext> _cache = new ConcurrentHashMap<String,
TableContext>();
@@ -82,7 +81,6 @@ public class TableContext implements Cloneable {
   };
 
   private Path _tablePath;
-  private Path _walTablePath;
   private String _defaultFieldName;
   private String _table;
   private IndexDeletionPolicy _indexDeletionPolicy;
@@ -144,7 +142,6 @@ public class TableContext implements Cloneable {
     tableContext._configuration = configuration;
     tableContext._blurConfiguration = blurConfiguration;
     tableContext._tablePath = new Path(tableUri);
-    tableContext._walTablePath = new Path(tableContext._tablePath, LOGS);
 
     tableContext._defaultFieldName = SUPER;
     tableContext._table = name;
@@ -276,10 +273,6 @@ public class TableContext implements Cloneable {
     return _tablePath;
   }
 
-  public Path getWalTablePath() {
-    return _walTablePath;
-  }
-
   public String getDefaultFieldName() {
     return _defaultFieldName;
   }


Mime
View raw message