You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2010/08/13 22:20:26 UTC

svn commit: r985344 - in /uima/uima-as/trunk: uima-as-docbooks/src/docbook/async.monitoring.and.tuning.xml uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java

Author: eae
Date: Fri Aug 13 20:20:26 2010
New Revision: 985344

URL: http://svn.apache.org/viewvc?rev=985344&view=rev
Log:
UIMA-1818 add support for UIMA_CASLOG_VIEW_NAME

Modified:
    uima/uima-as/trunk/uima-as-docbooks/src/docbook/async.monitoring.and.tuning.xml
    uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java

Modified: uima/uima-as/trunk/uima-as-docbooks/src/docbook/async.monitoring.and.tuning.xml
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-docbooks/src/docbook/async.monitoring.and.tuning.xml?rev=985344&r1=985343&r2=985344&view=diff
==============================================================================
--- uima/uima-as/trunk/uima-as-docbooks/src/docbook/async.monitoring.and.tuning.xml (original)
+++ uima/uima-as/trunk/uima-as-docbooks/src/docbook/async.monitoring.and.tuning.xml Fri Aug 13 20:20:26 2010
@@ -1127,6 +1127,13 @@ under the License.
 	                	"/" characters only the text after the last "/" will be used.</entry>
 	              </row>
 
+	              <row>
+	                <entry>UIMA_CASLOG_VIEW_NAME</entry>
+	                <entry>optional; if the TYPE_NAME and FEATURE_NAME parameters are specified 
+	                    this string selects the CAS view used to access the FeatureStructure with 
+	                    unique string feature.</entry>
+	              </row>
+
 	            </tbody>
 	          </tgroup>
 	        </informaltable>

Modified: uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java?rev=985344&r1=985343&r2=985344&view=diff
==============================================================================
--- uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java (original)
+++ uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java Fri Aug 13 20:20:26 2010
@@ -1342,7 +1342,11 @@ public class AggregateAnalysisEngineCont
       String featureName = System.getProperty("UIMA_CASLOG_FEATURE_NAME");
       Type logType = cas.getTypeSystem().getType(typeName);
       Feature logFeature = logType.getFeatureByBaseName(featureName);
-      Iterator<FeatureStructure> iter = cas.getIndexRepository().getAllIndexedFS(logType);
+      CAS view = cas;
+      if (null != System.getProperty("UIMA_CASLOG_VIEW_NAME")) {
+        view = cas.getView(System.getProperty("UIMA_CASLOG_VIEW_NAME"));
+      }
+      Iterator<FeatureStructure> iter = view.getIndexRepository().getAllIndexedFS(logType);
       FeatureStructure fs = iter.next();
       if (!iter.hasNext() && null != fs.getStringValue(logFeature)) {
         String[] uri = fs.getStringValue(logFeature).split("/");