[ https://issues.apache.org/jira/browse/UIMA-5115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15506567#comment-15506567 ]
Marshall Schor commented on UIMA-5115: -------------------------------------- I was thinking of selectCovered. The question I was posing arises in the case where the type of the bounding FS is a subtype of the index type being iterated, just opposite to your example. For instance: selectCovered(Sentence.type, aVeryWideToken), where someone has (for reasons unknown) constructed a "Token" covering multiple sentences. Here the question is, do you return items of Sentence and its subtypes, or Token and its subtypes? I think the answer is you return Sentence and subtypes; that is, there's no additional type filtering based on the type of the bounding FS (again, because it's not needed - if only tokens are wanted, that's more directly expressible using Token.class as the first argument). > 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 (v6.3.4#6332)