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] [Comment Edited] (UIMA-1524) JFSIndexRepository should be enhanced with new generic methods
Date Tue, 13 Sep 2016 01:45:20 GMT

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

Marshall Schor edited comment on UIMA-1524 at 9/13/16 1:44 AM:
---------------------------------------------------------------

These sound good.  We could also have the static select methods, too, that either get the
cas passed in or infer it from one of the FSs?

Thinking in generalities, we might have:
* static (or cas based) methods to start
* args supplied by builder-like methods for 
** type (two ways: type and Java class)
** all the other varieties as above

The result of this could be universally used for 4 things:
* implementing Collections (like is done in uimaFIT for select)
* the traditional FS Iterator (which goes forwards and backwards, etc.
* streams
* splititerators


was (Author: schor):
These sound good.  We could also have the static select methods, too, that either get the
cas passed in or infer it from one of the FSs?

Thinking in generalities, we might have:
* static (or cas based) methods to start
* args supplied by builder-like methods for 
** type (two ways: type and Java class)
** all the other varieties as above

The result of this could be universally used for 3 things:
* the traditional FS Iterator (which goes forwards and backwards, etc.
* stream
* splititerator

> 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