uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-5115) uv3 select() api for iterators and streams over CAS contents
Date Sun, 25 Sep 2016 08:35:20 GMT

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

Richard Eckart de Castilho commented on UIMA-5115:

Looking into this in more detail, I don't see how methods like coveredBy, covering, or at
would be able to switch the generic return type to "? extends AnnotationFS". They could do
it in two ways:

* either by inferring the generic type from the variable to which they are assigned (see problem
explained above)
* or through an additional class-type parameter from which the new return type is derived

If none of these options above are used and they simply returned "? extends AnnotationFS",
then that could override the generic type set via e.g. type(Token.class) ... or at/coveredBy/covering
would always have to be invoked *before* invoking type(class)...

> uv3 select() api for iterators and streams over CAS contents
> ------------------------------------------------------------
>                 Key: UIMA-5115
>                 URL: https://issues.apache.org/jira/browse/UIMA-5115
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>            Priority: Minor
>             Fix For: 3.0.0SDKexp
> Design and implement a select() API based on uimaFIT's select, integrated well with Java
8 concepts.  Initial discussions in UIMA-1524.  Wiki with diagram: https://cwiki.apache.org/confluence/display/UIMA/UV3+Iterator+support

This message was sent by Atlassian JIRA

View raw message