[
https://issues.apache.org/jira/browse/UIMA-2478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703329#comment-13703329
]
Marshall Schor commented on UIMA-2478:
--------------------------------------
In looking further into this, it seems the CASImpl has always had a method,
getCurrentMark(), which returns the current Marker.
So, I'm now thinking that the original purpose of this Jira is in error - that
there was already both a design which stored the current Mark with the CAS, and
a method for getting it.
Given that there's no real design (yet) for supporting multiple markers for 1
CAS instance, I think we should revert this whole change, and just have people
who want to get the current Mark for a cas use the existing getCurrentMark()
method.
> Add CAS interface method that allows user to obtain a list of Markers
> associated with a given CAS
> -------------------------------------------------------------------------------------------------
>
> Key: UIMA-2478
> URL: https://issues.apache.org/jira/browse/UIMA-2478
> Project: UIMA
> Issue Type: New Feature
> Reporter: Benjamin Segal
> Attachments: UIMA-2478.bps.patch
>
>
> Add a convenience function that removes the need for applications that create
> Markers for many CASes to separately manage them (e.g., map CAS to its
> related Marker), and thereby simplify application code.
> Today's current level of support allows a user to create a Marker for a given
> CAS (through the createMarker() method which is part of the CAS interface).
> This proposed support will allow the user to subsequently query a given CAS
> and obtain a complete list of Markers created against this CAS. This function
> is a natural extension to the given level of support (i.e., if one can create
> Marker for a given CAS, one should be able to query the CAS to find said
> Marker.)
> Having this support significant simplifies application code, offering
> advantages from a memory overhead, performance, and maintainability
> standpoint. For example, the application won't need to build and maintain a
> map of CASes to Markers, given the Marker is hanging off the CAS to begin
> with.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira