Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-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 BB54D187C8 for ; Wed, 24 Jun 2015 18:33:30 +0000 (UTC) Received: (qmail 9713 invoked by uid 500); 24 Jun 2015 18:33:30 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 9659 invoked by uid 500); 24 Jun 2015 18:33:30 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 9649 invoked by uid 99); 24 Jun 2015 18:33:30 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2015 18:33:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 06B941A602A for ; Wed, 24 Jun 2015 18:33:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fqCTgKOBciNe for ; Wed, 24 Jun 2015 18:33:24 +0000 (UTC) Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id D8823454D6 for ; Wed, 24 Jun 2015 18:33:23 +0000 (UTC) Received: by iebmu5 with SMTP id mu5so39049967ieb.1 for ; Wed, 24 Jun 2015 11:33:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=56KpW3+PvIZWcp3J5HEtD4OzLoNKBJmv6I/zFhjxw5U=; b=Y8RoXEa8bvpo8uaNAJTAgbhJKl4lcLcHscCToeMDt7vk8NZAxodxdDO0U50e6xwoN4 lycN/Ss4SxlQLGraqlUGMyQ9rQ5cmr0lU9HsJyVZ5ZRZdCsVHNO6Y5YNwd/ho2eoZN2O Owa/q3V0b2JxPzbrLUsm0N5fCqghT3OrLcUVGQuneyoQmMic90KJvKUxWPRbB5gWdL7H WkKYZWuzLO/eRqBe4+gN1nfahVMelQGqQA5TLAj5fH+4r1iJxGOyIz5Y5bRR7HdOM2xf qlogo8i2HxDhf1dreshNbbNYPcOPbdyvV7rtu7JLBdtePAd5zqOmeVcKeU0lN4EJRtt5 9Gsw== X-Gm-Message-State: ALoCoQk8t8TX7pah7e5hyYm/E0aaMdEZTcZV1toM+p1y2x25YiGemEnaBjODUhpTp7ejP8M2bZ/v MIME-Version: 1.0 X-Received: by 10.107.15.40 with SMTP id x40mr55444504ioi.0.1435170803259; Wed, 24 Jun 2015 11:33:23 -0700 (PDT) Received: by 10.36.19.208 with HTTP; Wed, 24 Jun 2015 11:33:23 -0700 (PDT) In-Reply-To: <558A4EFE.40303@orkash.com> References: <558949F0.7070909@orkash.com> <55894C26.5070903@orkash.com> <558A4EFE.40303@orkash.com> Date: Wed, 24 Jun 2015 14:33:23 -0400 Message-ID: Subject: Re: How to generate UUID in real time environment for Accumulo From: Keith Turner To: user@accumulo.apache.org Content-Type: multipart/alternative; boundary=001a113ed5ecebb71a051947bd1e --001a113ed5ecebb71a051947bd1e Content-Type: text/plain; charset=UTF-8 Could look into using Lexicoders. The following program prints out 19. However this will vary depending on how many leading 0 bytes the longs have, because those are dropped. long time = System.currentTimeMillis(); ListLexicoder ll = new ListLexicoder(new ULongLexicoder()); List list = Arrays.asList(new Long[3]); list.set(0, time); list.set(1, 123456l); list.set(2, 987654l); byte[] b = ll.encode(list); System.out.println(b.length); On Wed, Jun 24, 2015 at 2:32 AM, mohit.kaushik wrote: > On 06/23/2015 06:44 PM, Keith Turner wrote: > >> row=