You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2017/09/06 05:35:00 UTC

[jira] [Updated] (HBASE-12296) Filters should work with ByteBufferedCell

     [ https://issues.apache.org/jira/browse/HBASE-12296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-12296:
--------------------------
    Hadoop Flags: Incompatible change,Reviewed  (was: Reviewed)
    Release Note: 
Incompatible change for filters. For example, changes the parameters on filterColumn method: e.g.

hbase-client-1.2.7-SNAPSHOT.jar, ColumnPrefixFilter.class
package org.apache.hadoop.hbase.filter
ColumnPrefixFilter.filterColumn ( byte[ ] buffer, int qualifierOffset, int qualifierLength )  :  Filter.ReturnCode 
org/apache/hadoop/hbase/filter/ColumnPrefixFilter.filterColumn:([BII)Lorg/apache/hadoop/hbase/filter/Filter$ReturnCode;

Instead we take a Cell parameter.



> Filters should work with ByteBufferedCell
> -----------------------------------------
>
>                 Key: HBASE-12296
>                 URL: https://issues.apache.org/jira/browse/HBASE-12296
>             Project: HBase
>          Issue Type: Sub-task
>          Components: regionserver, Scanners
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: Anoop Sam John
>             Fix For: 2.0.0
>
>         Attachments: HBASE-12296_v1.patch, HBASE-12296_v1.patch
>
>
> Now we have added an extension for Cell in server side, ByteBufferedCell, where Cells are backed by BB (on heap or off heap). When the Cell is backed by off heap buffer, the getXXXArray() APIs has to create temp byte[] and do data copy and return that. This will be bit costly.  We have avoided this in areas like CellComparator/SQM etc. Filter area was not touched in that patch.  This Jira aims at doing it in Filter area. 
> Eg : SCVF checking the cell value for the given value condition. It uses getValueArray() to get cell value bytes.  When the cell is BB backed, it has to use getValueByteBuffer() API instead.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)