incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Moving from test packages to source.
Date Sat, 18 Apr 2015 16:00:19 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 1b7eaf7fd -> 2b2cc9081


Moving from test packages to source.


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

Branch: refs/heads/master
Commit: 2b2cc90816e4fe2b7cff4e0c32ee7182c64c0b6b
Parents: 1b7eaf7
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Sat Apr 18 12:00:08 2015 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Sat Apr 18 12:00:08 2015 -0400

----------------------------------------------------------------------
 .../apache/blur/store/hdfs/DirectoryUtil.java   | 53 ++++++++++++++++++++
 .../apache/blur/store/hdfs/DirectoryUtil.java   | 53 --------------------
 2 files changed, 53 insertions(+), 53 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2b2cc908/blur-store/src/main/java/org/apache/blur/store/hdfs/DirectoryUtil.java
----------------------------------------------------------------------
diff --git a/blur-store/src/main/java/org/apache/blur/store/hdfs/DirectoryUtil.java b/blur-store/src/main/java/org/apache/blur/store/hdfs/DirectoryUtil.java
new file mode 100644
index 0000000..394c3d9
--- /dev/null
+++ b/blur-store/src/main/java/org/apache/blur/store/hdfs/DirectoryUtil.java
@@ -0,0 +1,53 @@
+/**
+ * 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.blur.store.hdfs;
+
+import java.io.IOException;
+import java.util.Timer;
+
+import org.apache.blur.log.Log;
+import org.apache.blur.log.LogFactory;
+import org.apache.blur.store.hdfs_v2.FastHdfsKeyValueDirectory;
+import org.apache.blur.store.hdfs_v2.JoinDirectory;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.Path;
+import org.apache.lucene.store.Directory;
+
+public class DirectoryUtil {
+
+  private static final Log LOG = LogFactory.getLog(DirectoryUtil.class);
+
+  public static Directory getDirectory(Configuration configuration, HdfsDirectory dir, boolean
disableFast,
+      Timer hdfsKeyValueTimer, String table, String shard, boolean readOnly) throws IOException
{
+    Path hdfsDirPath = dir.getPath();
+    String scheme = hdfsDirPath.toUri().getScheme();
+    if (scheme != null && scheme.equals("hdfs") && !disableFast) {
+      LOG.info("Using Fast HDFS directory implementation on shard [{0}] for table [{1}]",
shard, table);
+      FastHdfsKeyValueDirectory shortTermStorage = new FastHdfsKeyValueDirectory(readOnly,
hdfsKeyValueTimer,
+          configuration, getFastDirectoryPath(hdfsDirPath));
+      return new JoinDirectory(dir, shortTermStorage);
+    } else {
+      LOG.info("Using regular HDFS directory.");
+      return dir;
+    }
+  }
+
+  public static Path getFastDirectoryPath(Path hdfsDirPath) {
+    return new Path(hdfsDirPath, "fast");
+  }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2b2cc908/blur-store/src/test/java/org/apache/blur/store/hdfs/DirectoryUtil.java
----------------------------------------------------------------------
diff --git a/blur-store/src/test/java/org/apache/blur/store/hdfs/DirectoryUtil.java b/blur-store/src/test/java/org/apache/blur/store/hdfs/DirectoryUtil.java
deleted file mode 100644
index 394c3d9..0000000
--- a/blur-store/src/test/java/org/apache/blur/store/hdfs/DirectoryUtil.java
+++ /dev/null
@@ -1,53 +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.blur.store.hdfs;
-
-import java.io.IOException;
-import java.util.Timer;
-
-import org.apache.blur.log.Log;
-import org.apache.blur.log.LogFactory;
-import org.apache.blur.store.hdfs_v2.FastHdfsKeyValueDirectory;
-import org.apache.blur.store.hdfs_v2.JoinDirectory;
-import org.apache.hadoop.conf.Configuration;
-import org.apache.hadoop.fs.Path;
-import org.apache.lucene.store.Directory;
-
-public class DirectoryUtil {
-
-  private static final Log LOG = LogFactory.getLog(DirectoryUtil.class);
-
-  public static Directory getDirectory(Configuration configuration, HdfsDirectory dir, boolean
disableFast,
-      Timer hdfsKeyValueTimer, String table, String shard, boolean readOnly) throws IOException
{
-    Path hdfsDirPath = dir.getPath();
-    String scheme = hdfsDirPath.toUri().getScheme();
-    if (scheme != null && scheme.equals("hdfs") && !disableFast) {
-      LOG.info("Using Fast HDFS directory implementation on shard [{0}] for table [{1}]",
shard, table);
-      FastHdfsKeyValueDirectory shortTermStorage = new FastHdfsKeyValueDirectory(readOnly,
hdfsKeyValueTimer,
-          configuration, getFastDirectoryPath(hdfsDirPath));
-      return new JoinDirectory(dir, shortTermStorage);
-    } else {
-      LOG.info("Using regular HDFS directory.");
-      return dir;
-    }
-  }
-
-  public static Path getFastDirectoryPath(Path hdfsDirPath) {
-    return new Path(hdfsDirPath, "fast");
-  }
-
-}


Mime
View raw message