File tree Expand file tree Collapse file tree 2 files changed +3
-23
lines changed
hbase-common/src/main/java/org/apache/hadoop/hbase Expand file tree Collapse file tree 2 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -147,25 +147,6 @@ default int getChunkId() {
147147 */
148148 long getSequenceId ();
149149
150- /**
151- * Contiguous raw bytes representing tags that may start at any index in the containing array.
152- * @return the tags byte array
153- */
154- byte [] getTagsArray ();
155-
156- /** Returns the first offset where the tags start in the Cell */
157- int getTagsOffset ();
158-
159- /**
160- * HBase internally uses 2 bytes to store tags length in Cell. As the tags length is always a
161- * non-negative number, to make good use of the sign bit, the max of tags length is defined 2 *
162- * Short.MAX_VALUE + 1 = 65535. As a result, the return type is int, because a short is not
163- * capable of handling that. Please note that even if the return type is int, the max tags length
164- * is far less than Integer.MAX_VALUE.
165- * @return the total length of the tags in the Cell.
166- */
167- int getTagsLength ();
168-
169150 /** Returns The byte representation of the KeyValue.TYPE of this cell: one of Put, Delete, etc */
170151 byte getTypeByte ();
171152
Original file line number Diff line number Diff line change 3232import java .util .Map .Entry ;
3333import java .util .NavigableMap ;
3434import java .util .Optional ;
35- import org .apache .hadoop .hbase .Cell .Type ;
3635import org .apache .hadoop .hbase .filter .ByteArrayComparable ;
3736import org .apache .hadoop .hbase .io .TagCompressionContext ;
3837import org .apache .hadoop .hbase .io .util .Dictionary ;
@@ -1649,7 +1648,7 @@ public byte getTypeByte() {
16491648 }
16501649
16511650 @ Override
1652- public Type getType () {
1651+ public Cell . Type getType () {
16531652 throw new UnsupportedOperationException ();
16541653 }
16551654 }
@@ -3068,13 +3067,13 @@ public boolean advance() {
30683067 private static final Cell .Type [] CELL_TYPE_CODE_ARRAY = new Cell .Type [256 ];
30693068
30703069 static {
3071- for (Type t : Type .values ()) {
3070+ for (Cell . Type t : Cell . Type .values ()) {
30723071 CELL_TYPE_CODE_ARRAY [t .getCode () & 0xff ] = t ;
30733072 }
30743073 }
30753074
30763075 public static Cell .Type code2Type (byte code ) {
3077- Type t = CELL_TYPE_CODE_ARRAY [code & 0xff ];
3076+ Cell . Type t = CELL_TYPE_CODE_ARRAY [code & 0xff ];
30783077 if (t != null ) {
30793078 return t ;
30803079 }
You can’t perform that action at this time.
0 commit comments