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

Andrew Purtell updated HBASE-1102:
----------------------------------

    Description: 
>From up on the list:

> From: Thibaut
> Subject: Exist function?
> To: [email protected]
> Date: Tuesday, December 30, 2008, 5:32 AM
>
> On a few occasions, I have to check if a key exists in a table or not.
> 
> What's the best way to do it? The htable interface doesn't have any function 
> to check if a key
> exists or not, and I have to specify at least one column when fetching a key.

It will be pretty easy to support an client side API addition in HRS. For 
memcache that would be  containsKey() on the sorted maps. For disk, HStore 
could use getClosest() on the MapFile readers. 

    boolean testRow(final byte [] row);
    boolean testRow(String row);


  was:
>From up on the list:

> From: Thibaut
> Subject: Exist function?
> To: [email protected]
> Date: Tuesday, December 30, 2008, 5:32 AM
>
> On a few occasions, I have to check if a key exists in a table or not.
> 
> What's the best way to do it? The htable interface doesn't have any function 
> to check if a key exists or
> not, and I have to specify at least one column when fetching a key.

It will be pretty easy to support an client side API addition in HRS. For 
memcache that would be  containsKey() on the sorted maps. For disk, HStore 
could use getClosest() on the MapFile readers. 

    boolean testRow(final byte [] row);
    boolean testRow(String row);


       Priority: Minor  (was: Major)

> boolean HTable.testRow()
> ------------------------
>
>                 Key: HBASE-1102
>                 URL: https://issues.apache.org/jira/browse/HBASE-1102
>             Project: Hadoop HBase
>          Issue Type: Improvement
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>             Fix For: 0.19.0
>
>         Attachments: 1102-1.patch
>
>
> From up on the list:
> > From: Thibaut
> > Subject: Exist function?
> > To: [email protected]
> > Date: Tuesday, December 30, 2008, 5:32 AM
> >
> > On a few occasions, I have to check if a key exists in a table or not.
> > 
> > What's the best way to do it? The htable interface doesn't have any 
> > function to check if a key
> > exists or not, and I have to specify at least one column when fetching a 
> > key.
> It will be pretty easy to support an client side API addition in HRS. For 
> memcache that would be  containsKey() on the sorted maps. For disk, HStore 
> could use getClosest() on the MapFile readers. 
>     boolean testRow(final byte [] row);
>     boolean testRow(String row);

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

Reply via email to