uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-1524) JFSIndexRepository should be enhanced with new generic methods
Date Mon, 12 Sep 2016 13:35:20 GMT

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

Marshall Schor commented on UIMA-1524:
--------------------------------------

In addition to splititerators (which I think of as lower level, not widely known / used, etc.),
a good API for indexes in Java 8 would be "streams", which could:
* use splititerators underneath, but hide their complexity
* allow parallelism (might be useful in some case, often it is not)
* are more "mainline" for end-users as an API (in Java 8 and beyond) than splititerators

The performance downside of streams (there seems to be some, for Java 8, versus plain simple
iterators), can be avoided in those cases where it's important, by using splititerators directly.

> JFSIndexRepository should be enhanced with new generic methods
> --------------------------------------------------------------
>
>                 Key: UIMA-1524
>                 URL: https://issues.apache.org/jira/browse/UIMA-1524
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>    Affects Versions: 2.3
>            Reporter: Joern Kottmann
>
> Existing methods should be overloaded with an additional Class argument to specify the
exact return type. This changes make down casting of returned objects unnecessary. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message