hbase-8183. performance.xml. Fixed typo introduced in hbase-8180.
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1459945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c36d3069e4
commit
4c9177de9e
|
@ -298,7 +298,7 @@ Result r = htable.get(get);
|
||||||
byte[] b = r.getValue(Bytes.toBytes("cf"), Bytes.toBytes("attr")); // returns current version of value
|
byte[] b = r.getValue(Bytes.toBytes("cf"), Bytes.toBytes("attr")); // returns current version of value
|
||||||
</programlisting>
|
</programlisting>
|
||||||
But especially when inside loops (and MapReduce jobs), converting the columnFamily and column-names
|
But especially when inside loops (and MapReduce jobs), converting the columnFamily and column-names
|
||||||
to byte-arrays repeatedly is surprsingly expensive.
|
to byte-arrays repeatedly is surprisingly expensive.
|
||||||
It's better to use constants for the byte-arrays, like this:
|
It's better to use constants for the byte-arrays, like this:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
public static final byte[] CF = "cf".getBytes();
|
public static final byte[] CF = "cf".getBytes();
|
||||||
|
|
Loading…
Reference in New Issue