hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "huaxiang sun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-14766) WALEntryFilter's filter implement, cell.getFamily() needs to be replaced with the new low-cost implementation.
Date Thu, 05 Nov 2015 01:28:27 GMT
huaxiang sun created HBASE-14766:
------------------------------------

             Summary: WALEntryFilter's filter implement, cell.getFamily() needs to be replaced
with the new low-cost implementation.
                 Key: HBASE-14766
                 URL: https://issues.apache.org/jira/browse/HBASE-14766
             Project: HBase
          Issue Type: Improvement
            Reporter: huaxiang sun


Cell's getFamily() gets an array copy of the cell's family, while in the filter function,
 it just needs to peek into the family and do a compare. 

Replace 

Bytes.toString(cell.getFamily())

with 

Bytes.toString(cell.getFamilyArray(), cell.getFamilyOffset(), cell.getFamilyLength())



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message