You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/10/14 17:37:00 UTC

[jira] [Commented] (LUCENE-8746) Make EdgeTree (aka ComponentTree) support different type of components

    [ https://issues.apache.org/jira/browse/LUCENE-8746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16951184#comment-16951184 ] 

ASF subversion and git services commented on LUCENE-8746:
---------------------------------------------------------

Commit 68a3886b977f22f9383c17780bab414ce4361deb in lucene-solr's branch refs/heads/master from Ignacio Vera
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=68a3886 ]

LUCENE-8746: Refactor EdgeTree  (#878)

Introduce a Component tree that represents the tree of components (e.g polygons).
 Edge tree is now just a tree of edges.

> Make EdgeTree (aka ComponentTree) support different type of components
> ----------------------------------------------------------------------
>
>                 Key: LUCENE-8746
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8746
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Ignacio Vera
>            Priority: Major
>          Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
> Currently the class {{EdgeTree}} is a bit confusing as it is in reality a tree of components. The inner class {{Edge}} is the one that builds a tree of edges which is used by Polygon2D and Line2D to represent their structure.
> Here is proposed:
> 1) Create a new class called {{ComponentTree}} which is in fact the current {{EdgeTree}}
> 2) Modify {{EdgeTree}} to be in fact the inner class Edge
> 3) Extract a {{Component}} interface so we can have different types of components in the same tree. This allow us to support heterogeneous trees of components.
> 4) Make {{Polygon2D}} and {{Line2D}} instance of the component interface.
> 4) With this change, {{LatLonShapePolygonQuery}} and {{LatLonShapeLineQuery}} can be replaced with one {{LatLonShapeComponentQuery.}}  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org