hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1433112 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java
Date Mon, 14 Jan 2013 20:40:48 GMT
Author: tedyu
Date: Mon Jan 14 20:40:48 2013
New Revision: 1433112

URL: http://svn.apache.org/viewvc?rev=1433112&view=rev
Log:
HBASE-7552 Pass bufferSize param to FileLinkInputStream constructor within FileLink.open method,
and remove unnecessary import packages (Julian Zhou)


Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java?rev=1433112&r1=1433111&r2=1433112&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java Mon Jan
14 20:40:48 2013
@@ -18,7 +18,6 @@
 
 package org.apache.hadoop.hbase.io;
 
-import java.util.ArrayList;
 import java.util.Collection;
 
 import java.io.IOException;
@@ -27,7 +26,6 @@ import java.io.FileNotFoundException;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.classification.InterfaceAudience;
 import org.apache.hadoop.fs.FSDataInputStream;
 import org.apache.hadoop.fs.FileSystem;
@@ -35,8 +33,6 @@ import org.apache.hadoop.fs.FileStatus;
 import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.fs.PositionedReadable;
 import org.apache.hadoop.fs.Seekable;
-import org.apache.hadoop.hbase.HConstants;
-import org.apache.hadoop.hbase.util.FSUtils;
 
 /**
  * The FileLink is a sort of hardlink, that allows access to a file given a set of locations.
@@ -405,7 +401,7 @@ public class FileLink {
    * @throws IOException on unexpected error.
    */
   public FSDataInputStream open(final FileSystem fs, int bufferSize) throws IOException {
-    return new FSDataInputStream(new FileLinkInputStream(fs, this));
+    return new FSDataInputStream(new FileLinkInputStream(fs, this, bufferSize));
   }
 
   /**



Mime
View raw message