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 9baac9bceb0..143f80086e5 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. *

* 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; @@ -45,6 +48,16 @@ class InternalScan extends Scan { super(get); } + /** + * @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. */