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 Tue, 20 Sep 2016 21:47:20 GMT

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

Richard Eckart de Castilho commented on UIMA-5115:

"between(fs1, fs2)" for me is a shorthand for "coveredBy(fs1.end, fs2.begin)". Beyond being
a shorthand, I imagine there may be ways of implementing "between(fs1, fs2)" more efficiently
because we can seek for the fses in the index and don't have to go via the offsets. But I
may simply now have delved sufficiently deep into the APIs yet to see that offsets can be
used efficiently in the same way.

No, in my present mental world, "between" cannot be used to specify a range for "sameBeginEnd"
(at). Again, if I wanted to do that I would probably write "at(fs1.end, fs2.begin)" and suffer
if there are any penalties from offset-based lookups vs. FS-based lookups.

> 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