Revert "HBASE-18266 Create static empty byte array to save memory (Ben Epstein)"
Wrong JIRA number This reverts commit 549fb1677b6403ae9d5fda6f0cf33662d5333b4d.
This commit is contained in:
parent
eacbdb061e
commit
3a0db474a2
@ -345,7 +345,7 @@ public class Put extends Mutation implements HeapSize, Comparable<Row> {
|
|||||||
* existing KeyValue object in the family map.
|
* existing KeyValue object in the family map.
|
||||||
*/
|
*/
|
||||||
public boolean has(byte [] family, byte [] qualifier) {
|
public boolean has(byte [] family, byte [] qualifier) {
|
||||||
return has(family, qualifier, this.ts, HConstants.EMPTY_BYTE_ARRAY, true, true);
|
return has(family, qualifier, this.ts, new byte[0], true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -360,7 +360,7 @@ public class Put extends Mutation implements HeapSize, Comparable<Row> {
|
|||||||
* existing KeyValue object in the family map.
|
* existing KeyValue object in the family map.
|
||||||
*/
|
*/
|
||||||
public boolean has(byte [] family, byte [] qualifier, long ts) {
|
public boolean has(byte [] family, byte [] qualifier, long ts) {
|
||||||
return has(family, qualifier, ts, HConstants.EMPTY_BYTE_ARRAY, false, true);
|
return has(family, qualifier, ts, new byte[0], false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user