hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1181529 - in /hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase: ipc/HRegionInterface.java regionserver/HRegionServer.java
Date Tue, 11 Oct 2011 02:16:58 GMT
Author: nspiegelberg
Date: Tue Oct 11 02:16:58 2011
New Revision: 1181529

URL: http://svn.apache.org/viewvc?rev=1181529&view=rev
Log:
New changes to support export/snapshot

Test Plan:
To run the unit tests

Reviewed By: kranganathan
Reviewers: kannan, kranganathan
CC: gqchen, liyintang, nspiegelberg, kranganathan
Differential Revision: 239663

Modified:
    hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/ipc/HRegionInterface.java
    hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
  (contents, props changed)

Modified: hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/ipc/HRegionInterface.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/ipc/HRegionInterface.java?rev=1181529&r1=1181528&r2=1181529&view=diff
==============================================================================
--- hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/ipc/HRegionInterface.java (original)
+++ hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/ipc/HRegionInterface.java Tue
Oct 11 02:16:58 2011
@@ -73,6 +73,8 @@ public interface HRegionInterface extend
    */
   public HRegion [] getOnlineRegionsAsArray();
 
+  public List<String> getStoreFileList(byte[] regionName, byte[] columnFamily);
+
   /**
    * Perform Get operation.
    * @param regionName name of region to get from

Modified: hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=1181529&r1=1181528&r2=1181529&view=diff
==============================================================================
--- hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
(original)
+++ hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Tue Oct 11 02:16:58 2011
@@ -2135,6 +2135,16 @@ public class HRegionServer implements HR
     return getOnlineRegions().toArray(new HRegion[0]);
   }
 
+  public List<String> getStoreFileList(byte[] regionName, byte[] columnFamily) {
+	  HRegion region = getOnlineRegion(regionName);
+	  List<StoreFile> storeFiles = region.getStore(columnFamily).getStorefiles();
+	  List<String> storeFileNames = new ArrayList<String>(storeFiles.size());
+	  for (StoreFile storeFile: storeFiles) {
+		  storeFileNames.add(storeFile.getPath().toString());
+	  }
+	  return storeFileNames;
+  }
+
   /**
    * @return The HRegionInfos from online regions sorted
    */

Propchange: hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message