Class DBMultiplier

  • All Implemented Interfaces:
    org.apache.uima.analysis_component.AnalysisComponent

    public abstract class DBMultiplier
    extends org.apache.uima.analysis_component.JCasMultiplier_ImplBase
    A multiplier retrieving feature structures of type of RowBatch in its process(JCas) method. Each RowBatch lists IDs of documents to read and the table to read them from. The part of actual reading the documents into CAS instances is subject to implementation for extending classes. For this purpose, the iterator holding the actual document data, documentDataIterator, must be used to retrieve document data and use it to populate CAS instances in the AnalysisComponent.next() method.
    • Constructor Summary

      Constructors 
      Constructor Description
      DBMultiplier()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      void initialize​(org.apache.uima.UimaContext aContext)  
      void process​(org.apache.uima.jcas.JCas aJCas)  
      • Methods inherited from class org.apache.uima.analysis_component.JCasMultiplier_ImplBase

        getCasInstancesRequired, getEmptyJCas, getRequiredCasInterface, process
      • Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase

        batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification
      • Methods inherited from interface org.apache.uima.analysis_component.AnalysisComponent

        next
    • Field Detail

      • dbc

        protected de.julielab.costosys.dbconnection.DataBaseConnector dbc
      • documentDataIterator

        protected de.julielab.costosys.dbconnection.DBCIterator<byte[][]> documentDataIterator
      • tables

        protected String[] tables
      • schemaNames

        protected String[] schemaNames
      • tableName

        protected String tableName
        This is the name that the user has passed as the table to read to the multiplier reader. This might be a data table or a subset table. The tables field always contains the data tables to read from.
      • readDataTable

        protected boolean readDataTable
      • dataTable

        protected String dataTable
      • initialized

        protected boolean initialized
    • Constructor Detail

      • DBMultiplier

        public DBMultiplier()
    • Method Detail

      • initialize

        public void initialize​(org.apache.uima.UimaContext aContext)
                        throws org.apache.uima.resource.ResourceInitializationException
        Specified by:
        initialize in interface org.apache.uima.analysis_component.AnalysisComponent
        Overrides:
        initialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
        Throws:
        org.apache.uima.resource.ResourceInitializationException
      • process

        public void process​(org.apache.uima.jcas.JCas aJCas)
                     throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
        Specified by:
        process in class org.apache.uima.analysis_component.JCasMultiplier_ImplBase
        Throws:
        org.apache.uima.analysis_engine.AnalysisEngineProcessException
      • hasNext

        public boolean hasNext()