Package de.julielab.jcore.reader.db
Class DBMultiplier
- java.lang.Object
-
- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
-
- org.apache.uima.analysis_component.JCasMultiplier_ImplBase
-
- de.julielab.jcore.reader.db.DBMultiplier
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public abstract class DBMultiplier extends org.apache.uima.analysis_component.JCasMultiplier_ImplBaseA multiplier retrieving feature structures of type ofRowBatchin itsprocess(JCas)method. EachRowBatchlists 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 theAnalysisComponent.next()method.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdataTableprotected de.julielab.costosys.dbconnection.DataBaseConnectordbcprotected de.julielab.costosys.dbconnection.DBCIterator<byte[][]>documentDataIteratorprotected booleaninitializedprotected booleanreadDataTableprotected String[]schemaNamesprotected StringtableNameThis is the name that the user has passed as the table to read to the multiplier reader.protected String[]tables
-
Constructor Summary
Constructors Constructor Description DBMultiplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()voidinitialize(org.apache.uima.UimaContext aContext)voidprocess(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
-
-
-
-
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. Thetablesfield always contains the data tables to read from.
-
readDataTable
protected boolean readDataTable
-
dataTable
protected String dataTable
-
initialized
protected boolean initialized
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException- Specified by:
initializein interfaceorg.apache.uima.analysis_component.AnalysisComponent- Overrides:
initializein classorg.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:
processin classorg.apache.uima.analysis_component.JCasMultiplier_ImplBase- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
hasNext
public boolean hasNext()
-
-