hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-10254) Optionally return null when attempting to Increment KeyValue that doesn't exist
Date Mon, 30 Dec 2013 10:06:50 GMT

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

Anoop Sam John commented on HBASE-10254:
----------------------------------------

bq.  I need to be able to control the timestamp of the cell which the API doesn't let me do
either 
Can't Increment#add(Cell cell) help here?

> Optionally return null when attempting to Increment KeyValue that doesn't exist
> -------------------------------------------------------------------------------
>
>                 Key: HBASE-10254
>                 URL: https://issues.apache.org/jira/browse/HBASE-10254
>             Project: HBase
>          Issue Type: Bug
>            Reporter: James Taylor
>
> Instead of creating a new KeyValue starting from 0 when an Increment is done on a row
that doesn't exist, we should optionally return null. A Get is already being done, so it's
easy to detect this case. This can be done in a backward compatible manner if the behavior
is done optionally. In addition, Increment does not allow me to specify the timestamp to use
for the KeyValue. This should be added as well.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message