Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9F52C200C88 for ; Fri, 2 Jun 2017 16:33:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9E820160BE1; Fri, 2 Jun 2017 14:33:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ECEA3160BD1 for ; Fri, 2 Jun 2017 16:33:06 +0200 (CEST) Received: (qmail 20675 invoked by uid 500); 2 Jun 2017 14:33:06 -0000 Mailing-List: contact oak-issues-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-issues@jackrabbit.apache.org Received: (qmail 20654 invoked by uid 99); 2 Jun 2017 14:33:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2017 14:33:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CACB41806F7 for ; Fri, 2 Jun 2017 14:33:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id dxkib7KnMEaF for ; Fri, 2 Jun 2017 14:33:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CDBD35F24C for ; Fri, 2 Jun 2017 14:33:04 +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 61066E0051 for ; Fri, 2 Jun 2017 14:33:04 +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 1C5FF2193A for ; Fri, 2 Jun 2017 14:33:04 +0000 (UTC) Date: Fri, 2 Jun 2017 14:33:04 +0000 (UTC) From: "angela (JIRA)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OAK-6304) Cyclic dependency between oak.spi.query an oak.query.* MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Jun 2017 14:33:07 -0000 [ https://issues.apache.org/jira/browse/OAK-6304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034788#comment-16034788 ] angela commented on OAK-6304: ----------------------------- another example: {{o.a.j.oak.spi.query.QueryIndex.FulltextQueryIndex}} defines {{NodeAggregator getNodeAggregator();}} but the {{NodeAggregator}} is not part of the query spi but rather defined in the {{o.a.j.oak.plugins.index.aggregate}} package space which additionally contains implementations which i would assume are not intended for public consumption. > Cyclic dependency between oak.spi.query an oak.query.* > ------------------------------------------------------ > > Key: OAK-6304 > URL: https://issues.apache.org/jira/browse/OAK-6304 > Project: Jackrabbit Oak > Issue Type: Task > Components: core, indexing, query > Reporter: angela > > while working on OAK-6069 i noticed that there exist IMO troublesome dependencies from _o.a.j.oak.spi.query_ back to _o.a.j.oak.query.*_. While i don't know the historical reasons that led to this setup it feels wrong to me that the interfaces and classes in _o.a.j.oak.spi.query_ would have dependencies to packages that from my understanding are supposed to contain implementations. > while utilities like {{o.a.j.oak.spi.query.Cursors}} may simply have ended up in the wrong bucket and could possibly moved to e.g _o.a.j.query.index_, i couldn't find an easy solution for an interface like {{o.a.j.oak.spi.query.Filter}} that defines methods returning {{o.a.j.query.fulltext.FullTextExpression}} and {{o.a.j.query.QueryEngineSettings}}, while at the same time being tied to the {{o.a.j.oak.spi.query.QueryIndex}} interface. -- This message was sent by Atlassian JIRA (v6.3.15#6346)