Skip to content

Commit

Permalink
test visible for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Apache9 committed Nov 26, 2020
1 parent 4ce72fd commit 47ad765
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import org.apache.yetus.audience.InterfaceAudience;
import org.apache.yetus.audience.InterfaceStability;

import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;

/**
* This is a {@link Tag} implementation in which value is backed by an on heap byte array.
*/
Expand All @@ -46,6 +48,7 @@ public ArrayBackedTag(byte tagType, String tag) {
this(tagType, Bytes.toBytes(tag));
}

@VisibleForTesting
/**
* Format for a tag :
* {@code <length of tag - 2 bytes><type code - 1 byte><tag>} tag length is serialized
Expand Down
3 changes: 3 additions & 0 deletions hbase-common/src/main/java/org/apache/hadoop/hbase/Cell.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import org.apache.hadoop.hbase.io.HeapSize;
import org.apache.yetus.audience.InterfaceAudience;

import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;


/**
* The unit of storage in HBase consisting of the following fields:
Expand Down Expand Up @@ -76,6 +78,7 @@ public interface Cell extends HeapSize {
*/
int getRowOffset();

@VisibleForTesting
/**
* @return Number of row bytes. Must be &lt; rowArray.length - offset.
*/
Expand Down

0 comments on commit 47ad765

Please sign in to comment.