HBASE-19823 Make RawCellBuilderFactory LimitedPrivate.UNITTEST

This commit is contained in:
Apekshit Sharma 2018-01-18 11:34:21 -08:00
parent 0f9a837bd1
commit cdfd12c101
3 changed files with 6 additions and 3 deletions

View File

@ -36,6 +36,7 @@ public final class HBaseInterfaceAudience {
public static final String REPLICATION = "Replication"; public static final String REPLICATION = "Replication";
public static final String PHOENIX = "Phoenix"; public static final String PHOENIX = "Phoenix";
public static final String SPARK = "Spark"; public static final String SPARK = "Spark";
public static final String UNITTEST = "Unittest";
/** /**
* Denotes class names that appear in user facing configuration files. * Denotes class names that appear in user facing configuration files.

View File

@ -23,7 +23,8 @@ import org.apache.yetus.audience.InterfaceAudience;
/** /**
* Allows creating a cell with {@link Tag} * Allows creating a cell with {@link Tag}
* An instance of this type can be acquired using RegionCoprocessorEnvironment#getCellBuilder. * An instance of this type can be acquired by using RegionCoprocessorEnvironment#getCellBuilder
* (for prod code) and {@link RawCellBuilderFactory} (for unit tests).
*/ */
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC) @InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
public interface RawCellBuilder extends CellBuilder { public interface RawCellBuilder extends CellBuilder {

View File

@ -23,10 +23,11 @@ import org.apache.yetus.audience.InterfaceAudience;
/** /**
* Factory for creating cells for CPs. It does deep_copy {@link CellBuilderType#DEEP_COPY} while * Factory for creating cells for CPs. It does deep_copy {@link CellBuilderType#DEEP_COPY} while
* creating cells. * creating cells.
* This is private because coprocessors should get an instance of type {@link RawCellBuilder} * This class is limited private only for use in unit-tests.
* For non-test uses in coprocessors, get an instance of type {@link RawCellBuilder}
* using RegionCoprocessorEnvironment#getCellBuilder. * using RegionCoprocessorEnvironment#getCellBuilder.
*/ */
@InterfaceAudience.Private @InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.UNITTEST)
public final class RawCellBuilderFactory { public final class RawCellBuilderFactory {
/** /**