hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ChiaPing Tsai (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-17613) avoid copy of family when initializing the FSWALEntry
Date Wed, 08 Feb 2017 12:25:42 GMT
ChiaPing Tsai created HBASE-17613:
-------------------------------------

             Summary: avoid copy of family when initializing the FSWALEntry
                 Key: HBASE-17613
                 URL: https://issues.apache.org/jira/browse/HBASE-17613
             Project: HBase
          Issue Type: Improvement
            Reporter: ChiaPing Tsai
            Priority: Minor
             Fix For: 2.0.0


We should compare the families before cloning it.
{noformat}
Set<byte[]> familySet = Sets.newTreeSet(Bytes.BYTES_COMPARATOR);
for (Cell cell : cells) {
  if (!CellUtil.matchingFamily(cell, WALEdit.METAFAMILY)) {
  // TODO: Avoid this clone?
    familySet.add(CellUtil.cloneFamily(cell));
  }
}
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message