org.apache.ctakes.dictionary.lookup.ae
Class DebugConsumerImpl

java.lang.Object
  extended by org.apache.ctakes.dictionary.lookup.ae.DebugConsumerImpl
All Implemented Interfaces:
LookupConsumer

public class DebugConsumerImpl
extends Object
implements LookupConsumer

LookupConsumer implementation that outputs debug info to the log about each LookupHit.

Author:
Mayo Clinic

Constructor Summary
DebugConsumerImpl(org.apache.uima.UimaContext aCtx, Properties props)
           
 
Method Summary
 void consumeHits(org.apache.uima.jcas.JCas jcas, Iterator lookupHitItr)
          Consumes the hits produced by the LookupAnnotator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugConsumerImpl

public DebugConsumerImpl(org.apache.uima.UimaContext aCtx,
                         Properties props)
Method Detail

consumeHits

public void consumeHits(org.apache.uima.jcas.JCas jcas,
                        Iterator lookupHitItr)
                 throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Description copied from interface: LookupConsumer
Consumes the hits produced by the LookupAnnotator. This typically means iterating over the hits and storing what's necessary to the JCas

Specified by:
consumeHits in interface LookupConsumer
Parameters:
jcas - CAS for storing data
lookupHitItr - Iterator over LookupHit objects. These objects contain data about the annotation span plus any associated metadata.
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.