hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackwang <wangjiajie...@gmail.com>
Subject Is Hbase cell clone operation necessary and expensive
Date Thu, 27 Oct 2016 17:02:45 GMT
When I read Hbase source code, I was confused that why Hbase use clone() to
read columns. Does the clone operator very expensive since the cell already
read out to client from server,but the clone will create a new byte array.
The source code as following:

public static byte[] cloneValue(Cell cell){
    byte[] output = new byte[cell.getValueLength()];
    copyValueTo(cell, output, 0);
    return output;

View this message in context: http://apache-hbase.679495.n3.nabble.com/Is-Hbase-cell-clone-operation-necessary-and-expensive-tp4083807.html
Sent from the HBase User mailing list archive at Nabble.com.

View raw message