Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> HBase0.92: In Filter, ReturnCode.NEXT_ROW may lead to next columnFamily but not next row?


Copy link to this message
-
Re: HBase0.92: In Filter, ReturnCode.NEXT_ROW may lead to next columnFamily but not next row?
The javadoc says filterRow() will still be called.

Can you show us your filterRow() code ?

Thanks

On Feb 21, 2012, at 7:28 AM, NNever <[EMAIL PROTECTED]> wrote:

> Hi~
>
> One customFilter,  Override filterKeyValue(KeyValue v).
> when the filter filterKeyValue a row's first keyValue, it will return
> "ReturnCode.NEXT_ROW" to jump to next row.
>
> But what infact is, the result changes when there are more than one
> columnFamily:(here are some logs)
>
> [filterRowKey] PERSONA1
> [filterKeyValue] family:info | qualifier:active | value:\x00
> [filterKeyValue] returnCode is NEXT_ROW
> [reset]
> [filterRowKey] PERSONA2
> [filterKeyValue] family:info | qualifier:active | value:\x00
> [filterKeyValue] returnCode is NEXT_ROW
> [reset]
> [filterRowKey] PERSONA3
> [filterKeyValue] family:info | qualifier:active | value:\x00
> [filterKeyValue] returnCode is NEXT_ROW
> [filterKeyValue] family:npo | qualifier:059201 | value:
> [filterKeyValue] returnCode is NEXT_ROW
> [reset]
> [filterRowKey] PERSONA4
> [filterKeyValue] family:cert | qualifier:certSN | value:
> PERSONAL4314120472582094317514215676313826416149
> [filterKeyValue] returnCode is NEXT_ROW
> [filterKeyValue] family:info | qualifier:active | value:\x00
> [filterKeyValue] returnCode is NEXT_ROW
> [filterKeyValue] family:npo | qualifier:059201 | value:
> [filterKeyValue] returnCode is NEXT_ROW
> [reset]
>
> the Table schema is
> User
> info:name, info:address, info:active.... (info family, every record has
> values)
> npo:xxxx.....(npo family may be not exist)
> cert:certSN, cert:certType....(cert family may be not exist)
>
> As you can see from the log, once a row has more than one family values,
> The ReturnCode.NEXT_ROW will not jump to next row but pass the left
> qualifier values and jump to next fmaily.
> Why? It's a bug or just design to be like this?
> Thanks~
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB