Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5214596FC for ; Mon, 9 Jul 2012 17:08:40 +0000 (UTC) Received: (qmail 16520 invoked by uid 500); 9 Jul 2012 17:08:39 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 16439 invoked by uid 500); 9 Jul 2012 17:08:38 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 16382 invoked by uid 99); 9 Jul 2012 17:08:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 17:08:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of asaf.mesika@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 17:08:32 +0000 Received: by werl57 with SMTP id l57so3895826wer.14 for ; Mon, 09 Jul 2012 10:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=aDWeUrLQihM3z4xKqJGksexXpUXVOe1Lisctl1Y69DU=; b=G58qgMBigqma76OQJCTiHZCZreSqaNcE1r/7apGmilN/lIqU1TpX1sbnA7zZ49X7n3 sitkMQ4rCjoMWDIPNPunT64Bz7Hso+VcRGtw442+26wpUBUm0ruLfRDTBOnMX1f4Higi OdN1X/OooA49xlc+Lz0pGHhXK8oH8Xj++hEs0T0CFQ7dwH93s/wxTyURJpLFSN8VOf5e zUwovw4tRmmiEk6pOt8kJ8QXoBoPCunHBnZYqFaaA5ve06RZn+LSv/on3dUl/BCUVEWU dMCJwpNQJNG+Pv7tqHV1CfPI2FbLkmV/8H1rDHCPDi+uSeqplhdED7Ebpdtg5F9Xn8E1 NqSg== Received: by 10.180.84.169 with SMTP id a9mr31070945wiz.8.1341853692648; Mon, 09 Jul 2012 10:08:12 -0700 (PDT) Received: from [192.168.1.103] (109-186-15-10.bb.netvision.net.il. [109.186.15.10]) by mx.google.com with ESMTPS id y5sm23563962wiw.9.2012.07.09.10.08.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Jul 2012 10:08:12 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Composing your own timestamp From: Asaf Mesika In-Reply-To: Date: Mon, 9 Jul 2012 20:08:09 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <1F9B9B49-A4EB-4B11-98C3-CC1E5948F220@gmail.com> References: To: user@hbase.apache.org X-Mailer: Apple Mail (2.1278) No. My index is composed of several fields. Some goes to the RowKey, some to = the column name, and some - and hence the question - to timestamp. Those that goes to the timestamp are of types Integer, Short and short = which together form 8 bytes - the size of the Timestamp in hbase. So my question was if that's ok? I mean, it seems that the normal usage = for the timestamp is to have a timestamp (ms since epoch) and to have = values there which always increasing - meaning: you'll never see value 7 = enters *before* value 3, for example. On Jul 9, 2012, at 18:54 PM, Sonal Goyal wrote: > Sorry I did not understand your question. Are you planning to use the > concatenated long as the rowkey to your secondary table? >=20 > Best Regards, > Sonal > Crux: Reporting for HBase > Nube Technologies >=20 > >=20 >=20 >=20 >=20 >=20 > On Mon, Jul 9, 2012 at 6:49 PM, Asaf Mesika = wrote: >=20 >> Hi, >>=20 >> We've been tinkering around ideas of implementing secondary index. >> One of the ideas is based on concatenating three meaningful fields = into a >> long: int, short (2 bytes), short. This long will be used as = timestamp when >> issuing a put to the secondary index table. >> This means an puts, timestamp wise, will not occur chronologically. = since >> this is not a real timestamp. >>=20 >> Will this create any issues? >>=20 >>=20 >> Thanks! >>=20 >> Asaf >>=20 >>=20