[
https://issues.apache.org/jira/browse/UIMA-6153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16983296#comment-16983296
]
Richard Eckart de Castilho commented on UIMA-6153:
--------------------------------------------------
I think not. It is in a web application environment, but there are only so many
processing threads and even if each thread had its own classloader (not sure if
they have), then at some point all of them should be "initialized". But to be
honest, the observations may be flawed because during development, I often
restart the application and do not have any strategy to systematically "warm
up" all the threads. But thanks for the pointers - if I find the time, I'll
investigate this further - in particular with UIMAv3 since it would be quite
convenient to be able to use the JCas classes in select statements instead of
having to go through "getType()" all the time.
> select.covering should bind to AnnotationFS
> -------------------------------------------
>
> Key: UIMA-6153
> URL: https://issues.apache.org/jira/browse/UIMA-6153
> Project: UIMA
> Issue Type: Improvement
> Components: UIMA
> Affects Versions: 3.1.1SDK
> Reporter: Richard Eckart de Castilho
> Priority: Major
>
> The following code does not compile because select.covering() uses TOP
> instead of AnnotationFS as the generic type. Consequently, getBegin() and
> getEnd() are not available on the "s" used in the filter expressions. But
> since covering() only makes sense for annotations, binding the generic type
> to TOP doesn't seem to make much sense:
> {{return aCas.select(getType(aCas, Sentence.class)).covering(aBegin1,
> aBegin1)}}
> {{ .filter(s -> s.getBegin() <= aBegin1 && aBegin1 < s.getEnd())}}
> {{ .filter(s -> s.getBegin() <= aBegin2 && aBegin2 <
> s.getEnd()).findFirst()}}
> {{ .isPresent();}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)