From 40fb2e921936a0d207efd5d06c6300fe180c66af Mon Sep 17 00:00:00 2001 From: Enis Soztutar Date: Fri, 19 Dec 2014 13:57:51 -0800 Subject: [PATCH] HBASE-12720 Make InternalScan LimitedPrivate (Vladimir Rodionov) --- .../hbase/regionserver/InternalScan.java | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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. */