Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 59139 invoked from network); 8 Mar 2008 02:47:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2008 02:47:07 -0000 Received: (qmail 52086 invoked by uid 500); 8 Mar 2008 02:47:03 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 52077 invoked by uid 500); 8 Mar 2008 02:47:03 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 52068 invoked by uid 99); 8 Mar 2008 02:47:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 18:47:03 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Mar 2008 02:46:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5176F234C09B for ; Fri, 7 Mar 2008 18:45:46 -0800 (PST) Message-ID: <1716227858.1204944346332.JavaMail.jira@brutus> Date: Fri, 7 Mar 2008 18:45:46 -0800 (PST) From: "Jim Kellerman (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-489) CellValue class for transporting cell timestamp with cell value simultaneously In-Reply-To: <1365817119.1204589931265.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576479#action_12576479 ] Jim Kellerman commented on HBASE-489: ------------------------------------- Aside from some javadoc where there are two @throws IOException or there is no mention for @throws IOError in ThriftServer.java, the edits look real nice. Thanks Bryan!. Running the tests now. > CellValue class for transporting cell timestamp with cell value simultaneously > ------------------------------------------------------------------------------ > > Key: HBASE-489 > URL: https://issues.apache.org/jira/browse/HBASE-489 > Project: Hadoop HBase > Issue Type: New Feature > Components: client, regionserver > Reporter: Bryan Duxbury > Assignee: Bryan Duxbury > Priority: Minor > Fix For: 0.2.0 > > Attachments: 489-v2.patch, 489-v3.patch, 489.patch > > > All of the get* methods take a timestamp parameter that means "at least as old as X". This is handy for getting data that fits your expectations about when it should exist. However, the result you get back doesn't actually contain the real timestamp the cell was stored at. > For example, let's say you write the stock price for your favorite company into row "YHOO" at cell "stock:price". It takes the default timestamp of right now. Then, a day passes. You want to get the most recent stock price for YHOO, and also when the price was gathered. In the current system, you couldn't do this at all without also doing a scan at the same time. > If we added a new class called CellValue that contained the byte[] cell value as well as the long timestamp of when it was stored, we could return an instance of this class wherever we used to return just the byte[]. This could be used in all the get() methods, getRow, getClosestAtOrBefore, etc. This has the advantage of making timestamp into a first-class citizen in HBase, which it hasn't been so far. > Thoughts? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.