public abstract class DBMultiplier
extends org.apache.uima.analysis_component.JCasMultiplier_ImplBase
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.| Modifier and Type | Field and Description |
|---|---|
protected String |
dataTable |
protected de.julielab.xmlData.dataBase.DataBaseConnector |
dbc |
protected de.julielab.xmlData.dataBase.DBCIterator<byte[][]> |
documentDataIterator |
protected boolean |
initialized |
protected boolean |
readDataTable |
protected String[] |
schemaNames |
protected String |
tableName
This is the name that the user has passed as the table to read to the multiplier reader.
|
protected String[] |
tables |
| Constructor and Description |
|---|
DBMultiplier() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getCasInstancesRequired, getEmptyJCas, getRequiredCasInterface, processbatchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecificationprotected de.julielab.xmlData.dataBase.DataBaseConnector dbc
protected de.julielab.xmlData.dataBase.DBCIterator<byte[][]> documentDataIterator
protected String[] tables
protected String[] schemaNames
protected String tableName
tables field always contains the data tables to read from.protected boolean readDataTable
protected String dataTable
protected boolean initialized
public void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasMultiplier_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic boolean hasNext()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.