Package org.apache.uima.fit.util
package org.apache.uima.fit.util
Utility classes like Selecting from a
Selecting from a
When selecting from a feature structure list or array, the order is determined by the order of
the annotations inside the list/array.
CasUtil
and
JCasUtil
.
Sort order
The various select methods inCasUtil
and
JCasUtil
rely on the UIMA feature structure indexes. Their
behaviour differs depending on the type of feature structure being selected and where they are
selected from:
Selecting from a CAS
/JCas
- Annotations - if the type being selected is
Annotation
or a sub-type thereof, the built-in annotation index is used. This index has the keys begin (Ascending), end (Descending) and TYPE_PRIORITY. There are no built-in type priorities, so this last sort item does not play a role in the index unless type priorities are specified. uimaFIT usesCAS.getAnnotationIndex(org.apache.uima.cas.Type)
to access annotation feature structures. - Other feature structures - if feature structures are selected that are not
annotations
, the order should be considered undefined. uimaFIT usesFSIndexRepository.getAllIndexedFS(org.apache.uima.cas.Type)
to access these feature structures.
Selecting from a ArrayFS/FSArray
/FSList
When selecting from a feature structure list or array, the order is determined by the order of
the annotations inside the list/array.-
ClassDescriptionDeprecated.Utility methods for convenient access to the
CAS
.Create a fast way of repeatedly checking whether instances of one type are contained within the boundaries on another type.Bridge between JavaCollections
from different representations of collections of UIMAFeatureStructures
.Utility methods for convenient access to theJCas
.Helper methods to handle the life cycle of UIMA components.EXPERIMENTAL CODE
CasIOUtils
should be used.