From issues-return-3812-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Mon Jan 7 19:22:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 39011180661 for ; Mon, 7 Jan 2019 19:22:05 +0100 (CET) Received: (qmail 89552 invoked by uid 500); 7 Jan 2019 18:22:04 -0000 Mailing-List: contact issues-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list issues@phoenix.apache.org Received: (qmail 89516 invoked by uid 99); 7 Jan 2019 18:22:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2019 18:22:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BF6B8C228B for ; Mon, 7 Jan 2019 18:22:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id NtsumBGJ7egN for ; Mon, 7 Jan 2019 18:22:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0229560E75 for ; Mon, 7 Jan 2019 18:22:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 54EEAE2639 for ; Mon, 7 Jan 2019 18:22:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id BF92A25550 for ; Mon, 7 Jan 2019 18:22:00 +0000 (UTC) Date: Mon, 7 Jan 2019 18:22:00 +0000 (UTC) From: "Bin Shi (JIRA)" To: issues@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-5085) Disentangle BaseResultIterators from the backing Guidepost Data structure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-5085?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 736138#comment-16736138 ]=20 Bin Shi commented on PHOENIX-5085: ---------------------------------- [~dbwong]=C2=A0& [~karanmehta93], we're almost on the same page.=C2=A0 At the current phase, to address this JIRA,=C2=A0the GuidePostsInfo can pro= vide two create functions (Factory Method) - one returns=C2=A0List and another returns ArrayList interfaces (can leave it for im= plantation for the future), where GuidePost is a data structure contains da= ta from a row in stats table. =C2=A0Define a SequenceAccessor factory=C2=A0= which provides a method get SequenceAccessor (interface) of Guideposts. A= =C2=A0concrete class=C2=A0implements this SequenceAccess interface and enca= psulates the current implantation of guideposts data structure using prefix= encoding. =C2=A0 At the next phase, we'll define RandomAccessor factory and RandomeAccess in= terface, implement different guideposts data structure=C2=A0(Segment Tree).= Add more APIs and helper functions, such as what described in ["Phoenix de= ep dive" slides|https://docs.google.com/presentation/d/1G_CcAhk2xSC09mqG3MN= t1i2QbgqfWbg9OM966_ucSGQ]. # Use [Segment Tree|https://www.geeksforgeeks.org/segment-tree-set-1-sum-o= f-given-range/] (Plus some characteristics from B+ Tree) PHOENIX-4925 # Disentangle the granularity of guideposts from that of the cached guidep= osts (PHOENIX-4927) # Mount/unmount guideposts for a particular tenant or key range # Guideposts Chunk is always encoded/decoded as a whole, so we can choose = different compression algorithms depending on the data. # Support Range Scan. Given , return List d= ecompressed on which we can perform binary search, or return estimated # ro= ws and # bytes > Disentangle BaseResultIterators from the backing Guidepost Data structure > ------------------------------------------------------------------------- > > Key: PHOENIX-5085 > URL: https://issues.apache.org/jira/browse/PHOENIX-5085 > Project: Phoenix > Issue Type: Improvement > Reporter: Daniel Wong > Assignee: Daniel Wong > Priority: Major > Labels: Statistics, StatsImprovement > > Disentangle BaseResultIterators.getParallelScans from the backing Guidepo= st Data structure.=C2=A0 This will provide the abstraction for=C2=A0possibl= e new stats data structures in=C2=A0https://issues.apache.org/jira/browse/P= HOENIX-4925 > =C2=A0Will heavily affect changes in https://issues.apache.org/jira/brows= e/PHOENIX-4926=C2=A0and https://issues.apache.org/jira/browse/PHOENIX-4594.= =C2=A0 [~Bin Shi] [~karanmehta93] -- This message was sent by Atlassian JIRA (v7.6.3#76005)