Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCC59199D0 for ; Fri, 18 Mar 2016 01:23:34 +0000 (UTC) Received: (qmail 95095 invoked by uid 500); 18 Mar 2016 01:23:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 94816 invoked by uid 500); 18 Mar 2016 01:23:33 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 94761 invoked by uid 99); 18 Mar 2016 01:23:33 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2016 01:23:33 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 920EB2C1F56 for ; Fri, 18 Mar 2016 01:23:33 +0000 (UTC) Date: Fri, 18 Mar 2016 01:23:33 +0000 (UTC) From: "Geoffrey Jacoby (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-14985) TimeRange constructors should set allTime when appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-14985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Geoffrey Jacoby updated HBASE-14985: ------------------------------------ Affects Version/s: (was: 0.98.16.1) (was: 1.1.2) 1.2.0 1.1.3 0.98.17 Status: Patch Available (was: Open) > TimeRange constructors should set allTime when appropriate > ---------------------------------------------------------- > > Key: HBASE-14985 > URL: https://issues.apache.org/jira/browse/HBASE-14985 > Project: HBase > Issue Type: Improvement > Affects Versions: 0.98.17, 1.1.3, 1.2.0 > Reporter: Geoffrey Jacoby > Assignee: Geoffrey Jacoby > Priority: Minor > Attachments: HBASE-14985-v1.patch, HBASE-14985.patch > > > The default TimeRange constructor creates a range from 0 to Long.MAX_VALUE and sets an allTime flag to true. This flag allows some performance optimizations when comparing or using TimeRanges. > This flag is not set, however, if you call "new TimeRange(0L)" or "new TimeRange(0L, Long.MAX_VALUE)", even though both of these create a logically equivalent TimeRange to "new TimeRange()". Since TimeRanges are immutable and detecting this condition is trivial, we should set the flag automatically in the explicit constructors when appropriate. -- This message was sent by Atlassian JIRA (v6.3.4#6332)