[ 
https://issues.apache.org/jira/browse/HBASE-19950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16356534#comment-16356534
 ] 

Reid Chan commented on HBASE-19950:
-----------------------------------

UTs passed on local machine. And following are the results from shell
{code}
hbase(main):051:0> scan 't2', {VERSIONS => 3}
ROW                              COLUMN+CELL
 r1                              column=f1:q1, timestamp=1518070160807, value=v1
 r1                              column=f2:q2, timestamp=1518070201842, value=v2
 r1                              column=f2:q2, timestamp=1518070199627, value=v1
 r1                              column=f2:q2, timestamp=1518070196742, value=v0
 r2                              column=f1:q1, timestamp=1518070210751, value=v1
 r2                              column=f2:q2, timestamp=1518070219743, value=v3
 r3                              column=f1:q1, timestamp=1518070238019, value=v2
 r3                              column=f2:q2, timestamp=1518070258531, value=v1

hbase(main):052:0> scan 't2', {FILTER => "ColumnValueFilter('f2', 'q2', >=, 
'binary:v0')"}
ROW                              COLUMN+CELL
 r1                              column=f2:q2, timestamp=1518070201842, value=v2
 r2                              column=f2:q2, timestamp=1518070219743, value=v3
 r3                              column=f2:q2, timestamp=1518070258531, value=v1

hbase(main):053:0> scan 't2', {FILTER => "ColumnValueFilter('f2', 'q2', >=, 
'binary:v0')", VERSIONS => 3}
ROW                              COLUMN+CELL
 r1                              column=f2:q2, timestamp=1518070201842, value=v2
 r1                              column=f2:q2, timestamp=1518070199627, value=v1
 r1                              column=f2:q2, timestamp=1518070196742, value=v0
 r2                              column=f2:q2, timestamp=1518070219743, value=v3
 r3                              column=f2:q2, timestamp=1518070258531, value=v1
{code}

> Introduce a ColumnValueFilter
> -----------------------------
>
>                 Key: HBASE-19950
>                 URL: https://issues.apache.org/jira/browse/HBASE-19950
>             Project: HBase
>          Issue Type: New Feature
>          Components: Filters
>            Reporter: Reid Chan
>            Assignee: Reid Chan
>            Priority: Minor
>         Attachments: HBASE-19950.master.001.patch
>
>
> Different from {{SingleColumnValueFilter}} which returns an entire row when 
> specified condition is matched, this new filter will return the matched cell 
> only. There're already some discussions in HBASE-19824.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to