public class CasAnalysisUtils extends Object
Constructor and Description |
---|
CasAnalysisUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
collect(Map<org.apache.uima.cas.FeatureStructure,org.apache.uima.cas.FeatureStructure> aFSes,
Set<org.apache.uima.cas.FeatureStructure> aIndexed,
org.apache.uima.cas.FeatureStructure aFS,
org.apache.uima.cas.FeatureStructure aLastIndexed)
Recursively collect referenced FSes and also record for each the last indexed FS that refers
the them.
|
static void |
collect(Set<org.apache.uima.cas.FeatureStructure> aFSes,
org.apache.uima.cas.FeatureStructure aFS) |
static Set<org.apache.uima.cas.FeatureStructure> |
collectIndexed(org.apache.uima.cas.CAS aCas) |
static Set<org.apache.uima.cas.FeatureStructure> |
collectReachable(org.apache.uima.cas.CAS aCas) |
static Set<org.apache.uima.cas.FeatureStructure> |
getNonIndexedFSes(org.apache.uima.cas.CAS aCas) |
static Map<org.apache.uima.cas.FeatureStructure,org.apache.uima.cas.FeatureStructure> |
getNonIndexedFSesWithOwner(org.apache.uima.cas.CAS aCas) |
public static Set<org.apache.uima.cas.FeatureStructure> collectIndexed(org.apache.uima.cas.CAS aCas)
public static Set<org.apache.uima.cas.FeatureStructure> collectReachable(org.apache.uima.cas.CAS aCas)
public static void collect(Set<org.apache.uima.cas.FeatureStructure> aFSes, org.apache.uima.cas.FeatureStructure aFS)
public static void collect(Map<org.apache.uima.cas.FeatureStructure,org.apache.uima.cas.FeatureStructure> aFSes, Set<org.apache.uima.cas.FeatureStructure> aIndexed, org.apache.uima.cas.FeatureStructure aFS, org.apache.uima.cas.FeatureStructure aLastIndexed)
aFSes
- map in which to collect the feature structures and through which FS they are
reachable (updated by the method).aIndexed
- set of all indexed feature structures.aFS
- the current feature structure.aLastIndexed
- the last indexed feature structure through which the current feature structure was
reachable.public static Set<org.apache.uima.cas.FeatureStructure> getNonIndexedFSes(org.apache.uima.cas.CAS aCas)
public static Map<org.apache.uima.cas.FeatureStructure,org.apache.uima.cas.FeatureStructure> getNonIndexedFSesWithOwner(org.apache.uima.cas.CAS aCas)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.