You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "ncanis (JIRA)" <ji...@apache.org> on 2011/01/21 00:56:44 UTC

[jira] Created: (HBASE-3459) How about EqualsColumnValueGetFilter

How about EqualsColumnValueGetFilter
------------------------------------

                 Key: HBASE-3459
                 URL: https://issues.apache.org/jira/browse/HBASE-3459
             Project: HBase
          Issue Type: Improvement
    Affects Versions: 0.90.0
            Reporter: ncanis
             Fix For: 0.90.1
         Attachments: EqualsColumnValueGetFilter.java

usually, we need to find column's value is existing.

in db) select count(*)  from user where id='ncanis'

if we use EqualsColumnValueGetFilter filter

we can find out column value is existing.
{code}
----------------------
	public EqualsColumnValueGetFilter(final byte[] colName, final byte[] value, final int limit) {
		this.colName = colName;
		this.value = value;
		this.limit = limit;
	}

------------------------
{code}




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-3459) How about EqualsColumnValueGetFilter

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-3459:
-------------------------

    Fix Version/s:     (was: 0.90.1)

Moving 'improvement' out of a bug fix-only release.

> How about EqualsColumnValueGetFilter
> ------------------------------------
>
>                 Key: HBASE-3459
>                 URL: https://issues.apache.org/jira/browse/HBASE-3459
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.90.0
>            Reporter: ncanis
>         Attachments: EqualsColumnValueGetFilter.java
>
>
> usually, we need to find column's value is existing.
> in db) select count(*)  from user where id='ncanis'
> if we use EqualsColumnValueGetFilter filter
> we can find out column value is existing.
> {code}
> ----------------------
> 	public EqualsColumnValueGetFilter(final byte[] colName, final byte[] value, final int limit) {
> 		this.colName = colName;
> 		this.value = value;
> 		this.limit = limit;
> 	}
> ------------------------
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-3459) How about EqualsColumnValueGetFilter

Posted by "ncanis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ncanis updated HBASE-3459:
--------------------------

    Attachment: EqualsColumnValueGetFilter.java

> How about EqualsColumnValueGetFilter
> ------------------------------------
>
>                 Key: HBASE-3459
>                 URL: https://issues.apache.org/jira/browse/HBASE-3459
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.90.0
>            Reporter: ncanis
>             Fix For: 0.90.1
>
>         Attachments: EqualsColumnValueGetFilter.java
>
>
> usually, we need to find column's value is existing.
> in db) select count(*)  from user where id='ncanis'
> if we use EqualsColumnValueGetFilter filter
> we can find out column value is existing.
> {code}
> ----------------------
> 	public EqualsColumnValueGetFilter(final byte[] colName, final byte[] value, final int limit) {
> 		this.colName = colName;
> 		this.value = value;
> 		this.limit = limit;
> 	}
> ------------------------
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-3459) How about EqualsColumnValueGetFilter

Posted by "ncanis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984501#action_12984501 ] 

ncanis commented on HBASE-3459:
-------------------------------

we will behave the same way by using ValueFilter and PageFilter
{code}
                FilterList list = new FilterList();
		ValueFilter valueFilter = new ValueFilter(CompareOp.EQUAL, new BinaryComparator(value));
		PageFilter rowFilter = new PageFilter(1);
		list.addFilter(valueFilter);
		list.addFilter(rowFilter);

{code}



> How about EqualsColumnValueGetFilter
> ------------------------------------
>
>                 Key: HBASE-3459
>                 URL: https://issues.apache.org/jira/browse/HBASE-3459
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.90.0
>            Reporter: ncanis
>             Fix For: 0.90.1
>
>         Attachments: EqualsColumnValueGetFilter.java
>
>
> usually, we need to find column's value is existing.
> in db) select count(*)  from user where id='ncanis'
> if we use EqualsColumnValueGetFilter filter
> we can find out column value is existing.
> {code}
> ----------------------
> 	public EqualsColumnValueGetFilter(final byte[] colName, final byte[] value, final int limit) {
> 		this.colName = colName;
> 		this.value = value;
> 		this.limit = limit;
> 	}
> ------------------------
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.