Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 851F217F69 for ; Tue, 28 Jul 2015 16:04:21 +0000 (UTC) Received: (qmail 38431 invoked by uid 500); 28 Jul 2015 16:04:18 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 38377 invoked by uid 500); 28 Jul 2015 16:04:18 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 38366 invoked by uid 99); 28 Jul 2015 16:04:18 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2015 16:04:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A3F55D84BA for ; Tue, 28 Jul 2015 16:04:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.781 X-Spam-Level: X-Spam-Status: No, score=0.781 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, MISSING_HEADERS=1.207, RP_MATCHES_RCVD=-1.427, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id y97o_DlnM60a for ; Tue, 28 Jul 2015 16:04:04 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 28D5443CC9 for ; Tue, 28 Jul 2015 16:04:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id C094A240EFD; Tue, 28 Jul 2015 09:02:03 -0700 (PDT) Date: Tue, 28 Jul 2015 09:02:03 -0700 From: "Taewoo Kim (Code Review)" CC: Ian Maxon , Jenkins Reply-To: wangsaeu@gmail.com X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: Added the UUID constructor and changed the relevant document... X-Gerrit-Change-Id: I2276bf2b44975b13c99d56f448ae3e9e4a74b04e X-Gerrit-ChangeURL: X-Gerrit-Commit: efc2bd7365a82bd69fee149dcfbd053807d41b6f In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.8.4 Message-Id: <20150728160203.C094A240EFD@unhygienix.ics.uci.edu> Taewoo Kim has posted comments on this change. Change subject: Added the UUID constructor and changed the relevant documentation ...................................................................... Patch Set 3: (5 comments) Thank you for your comments. I have modified the code and will upload the new code soon. https://asterix-gerrit.ics.uci.edu/#/c/326/3/asterix-runtime/src/main/java/edu/uci/ics/asterix/runtime/evaluators/constructors/AUUIDFromStringConstructorDescriptor.java File asterix-runtime/src/main/java/edu/uci/ics/asterix/runtime/evaluators/constructors/AUUIDFromStringConstructorDescriptor.java: Line 45: */ > Not sure how all the indentation got changed to tabs. It should be 3 spaces Done Line 104: msb <<= 16; > The 9 here is kind of 'magic', hard to know it's actually skipping the hyph OK. I will add a comment and replace it by offset +=8; offset += 1; Line 111: msb <<= 16; > Shouldn't this be msb <<=8? I believe this is correct. Please check the original implementation of UUID.fromString() at: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/UUID.java Line 150: tmpLongVal = tmpLongVal * 16 + tmpIntVal; > Why *16? It's a hex value, not a decimal value. Line 161: private int transformHexCharToInt(byte val) > Cool. This should be fast hopefully. I believe switch/cases beyond a certai I hope so, too. -- To view, visit https://asterix-gerrit.ics.uci.edu/326 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2276bf2b44975b13c99d56f448ae3e9e4a74b04e Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Taewoo Kim Gerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Taewoo Kim Gerrit-HasComments: Yes