You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2018/01/11 17:42:35 UTC
svn commit: r1820904 -
/uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.custom_java_objects.xml
Author: schor
Date: Thu Jan 11 17:42:35 2018
New Revision: 1820904
URL: http://svn.apache.org/viewvc?rev=1820904&view=rev
Log:
[UIMA-5664] add new semibuiltin
Modified:
uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.custom_java_objects.xml
Modified: uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.custom_java_objects.xml
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.custom_java_objects.xml?rev=1820904&r1=1820903&r2=1820904&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.custom_java_objects.xml (original)
+++ uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.custom_java_objects.xml Thu Jan 11 17:42:35 2018
@@ -202,7 +202,7 @@ public void _save_to_cas_data() {
<title>FSArrayList</title>
<titleabbrev>FSArrayList</titleabbrev>
- <para>This is like the current FSArray, except that it implements the List API and supports
+ <para><code>org.apache.uima.jcas.cas.FSArrayList</code> is like the current FSArray, except that it implements the List API and supports
adding to the array, with automatic resizing, like an ArrayList in Java. It is implemented internally
using a Java ArrayList.</para>
@@ -219,7 +219,7 @@ public void _save_to_cas_data() {
<title>IntegerArrayList</title>
<titleabbrev>IntegerArrayList</titleabbrev>
- <para>This is like the current IntegerArray, except that it implements the List API and supports
+ <para><code>org.apache.uima.jcas.cas.IntegerArrayList</code> is like the current IntegerArray, except that it implements the List API and supports
adding to the array, with automatic resizing, like an ArrayList in Java.</para>
<para>The CAS data form is held in a plain IntegerArray feature.</para>
@@ -241,8 +241,9 @@ public void _save_to_cas_data() {
<title>FSHashSet and FSLinkedHashSet</title>
- <para>These types store Feature Structures in a HashSet, using whatever is defined
- as the Feature Structure's <code>equals</code> and <code>hashcode</code>.
+ <para><code>org.apache.uima.jcas.cas.FSHashSet</code> and <code>org.apache.uima.jcas.cas.FSLinkedHashSet</code>
+ store Feature Structures in a (Linked) HashSet, using whatever is defined
+ as the Feature Structure's <code>equals</code> and <code>hashcode</code>.
<blockquote>
<para>You may customize the particular equals and hashcode by creating a wrapper class that
@@ -259,6 +260,26 @@ public void _save_to_cas_data() {
</section>
+ <section id="uv3.custom_java_objects.semibuiltin_Int2FS">
+ <title>Int2FS Int to Feature Structure map</title>
+
+ <para>Some applications find it convenient to have a map from ints to Feature Structures.
+ In UIMA V2, they made use of the low level CAS APIs that allowed
+ getting an Feature Structure from an int id using <code>ll_getFSForRef(int)</code>.
+ </para>
+
+ <para>In v3, use of the low level APIs in this manner
+ can be enabled, but is discouraged, because it prevents garbage collection of non-reachable Feature Structures.
+ </para>
+
+ <para><code>org.apache.uima.jcas.cas.Int2FS<T></code> maps from <code>int</code>s to <code>Feature Structure</code>s
+ of type T.
+ This provides an alternative way to have int -> FS maps,
+ under user control of what exactly gets added to them,
+ supporting removes and clearing, under application control
+ </para>
+ </section>
+
</section>
<section id="uv3.custom_java_objects.design">