hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject hbase git commit: HBASE-12720 Make InternalScan LimitedPrivate (Vladimir Rodionov)
Date Fri, 19 Dec 2014 21:58:11 GMT
Repository: hbase
Updated Branches:
  refs/heads/master d3002c6a8 -> 40fb2e921


HBASE-12720 Make InternalScan LimitedPrivate (Vladimir Rodionov)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/40fb2e92
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/40fb2e92
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/40fb2e92

Branch: refs/heads/master
Commit: 40fb2e921936a0d207efd5d06c6300fe180c66af
Parents: d3002c6
Author: Enis Soztutar <enis@apache.org>
Authored: Fri Dec 19 13:57:51 2014 -0800
Committer: Enis Soztutar <enis@apache.org>
Committed: Fri Dec 19 13:57:51 2014 -0800

----------------------------------------------------------------------
 .../hadoop/hbase/regionserver/InternalScan.java  | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/40fb2e92/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/InternalScan.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/InternalScan.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/InternalScan.java
index 9baac9b..143f800 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/InternalScan.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/InternalScan.java
@@ -18,12 +18,15 @@
  */
 package org.apache.hadoop.hbase.regionserver;
 
+import java.io.IOException;
+
+import org.apache.hadoop.hbase.HBaseInterfaceAudience;
 import org.apache.hadoop.hbase.classification.InterfaceAudience;
 import org.apache.hadoop.hbase.client.Get;
 import org.apache.hadoop.hbase.client.Scan;
 
 /**
- * Special internal-only scanner, currently used for increment operations to
+ * Special scanner, currently used for increment operations to
  * allow additional server-side arguments for Scan operations.
  * <p>
  * Rather than adding new options/parameters to the public Scan API, this new
@@ -33,8 +36,8 @@ import org.apache.hadoop.hbase.client.Scan;
  * {@link #checkOnlyMemStore()} or to only read from StoreFiles with
  * {@link #checkOnlyStoreFiles()}.
  */
-@InterfaceAudience.Private
-class InternalScan extends Scan {
+@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
+public class InternalScan extends Scan {
   private boolean memOnly = false;
   private boolean filesOnly = false;
 
@@ -46,6 +49,16 @@ class InternalScan extends Scan {
   }
 
   /**
+   * @param scan - original scan object
+   * @throws IOException 
+   */
+  public InternalScan(Scan scan) 
+      throws IOException 
+  {
+    super(scan);
+  }
+  
+  /**
    * StoreFiles will not be scanned. Only MemStore will be scanned.
    */
   public void checkOnlyMemStore() {


Mime
View raw message