Package de.julielab.jcore.reader.xml
Class XMLDBReader
- java.lang.Object
-
- org.apache.uima.resource.Resource_ImplBase
-
- org.apache.uima.resource.ConfigurableResource_ImplBase
-
- org.apache.uima.collection.CollectionReader_ImplBase
-
- org.apache.uima.fit.component.JCasCollectionReader_ImplBase
-
- de.julielab.jcore.reader.db.DBReaderBase
-
- de.julielab.jcore.reader.db.DBSubsetReader
-
- de.julielab.jcore.reader.db.DBReader
-
- de.julielab.jcore.reader.xml.XMLDBReader
-
- All Implemented Interfaces:
org.apache.uima.collection.base_cpm.BaseCollectionReader,org.apache.uima.collection.CollectionReader,org.apache.uima.resource.ConfigurableResource,org.apache.uima.resource.Resource
public class XMLDBReader extends de.julielab.jcore.reader.db.DBReaderAn UIMA CollectionReader that implements DBReader (a class that gets Documents by DB-based informations) using the XMLMapper- Author:
- faessler
-
-
Field Summary
Fields Modifier and Type Field Description static StringDESC_MAPPING_FILEstatic StringDESC_ROW_MAPPINGprotected StringmappingFileStrstatic StringPARAM_MAPPING_FILEstatic StringPARAM_ROW_MAPPINGprotected intprocessedDocumentsprotected String[]rowMappingArrayprotected inttotalDocumentCountprotected de.julielab.jcore.reader.xmlmapper.mapper.XMLMapperxmlMapperMapper which maps medline XML to a CAS with the specified UIMA type system via an XML configuration file.-
Fields inherited from class de.julielab.jcore.reader.db.DBSubsetReader
additionalTableNames, additionalTableSchemas, dataTable, fetchIdsProactively, hostName, PARAM_ADDITIONAL_TABLES, PARAM_ADDITONAL_TABLES_STORAGE_PG_SCHEMA, PARAM_RESET_TABLE, pid, readDataTable, resetTable, schemas, tables
-
-
Constructor Summary
Constructors Constructor Description XMLDBReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetNext(org.apache.uima.jcas.JCas jcas)protected StringgetReaderComponentName()voidinitialize(org.apache.uima.UimaContext context)-
Methods inherited from class de.julielab.jcore.reader.db.DBReader
close, getNextArtifactData, getProgress, hasNext, setDBProcessingMetaData
-
Methods inherited from class de.julielab.jcore.reader.db.DBSubsetReader
checkAdditionalTableParameters, checkAndAdjustAdditionalTables, getAllRetrievedColumns
-
Methods inherited from class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
getLogger, getNext, initialize
-
Methods inherited from class org.apache.uima.collection.CollectionReader_ImplBase
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
-
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
-
Methods inherited from class org.apache.uima.resource.Resource_ImplBase
getCasManager, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
PARAM_ROW_MAPPING
public static final String PARAM_ROW_MAPPING
- See Also:
- Constant Field Values
-
PARAM_MAPPING_FILE
public static final String PARAM_MAPPING_FILE
- See Also:
- Constant Field Values
-
xmlMapper
protected de.julielab.jcore.reader.xmlmapper.mapper.XMLMapper xmlMapper
Mapper which maps medline XML to a CAS with the specified UIMA type system via an XML configuration file.
-
totalDocumentCount
protected int totalDocumentCount
-
processedDocuments
protected int processedDocuments
-
DESC_ROW_MAPPING
public static final String DESC_ROW_MAPPING
- See Also:
- Constant Field Values
-
rowMappingArray
protected String[] rowMappingArray
-
DESC_MAPPING_FILE
public static final String DESC_MAPPING_FILE
- See Also:
- Constant Field Values
-
mappingFileStr
protected String mappingFileStr
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException- Overrides:
initializein classde.julielab.jcore.reader.db.DBReader- Throws:
org.apache.uima.resource.ResourceInitializationException
-
getNext
public void getNext(org.apache.uima.jcas.JCas jcas) throws IOException, org.apache.uima.collection.CollectionException- Specified by:
getNextin classorg.apache.uima.fit.component.JCasCollectionReader_ImplBase- Throws:
IOExceptionorg.apache.uima.collection.CollectionException
-
getReaderComponentName
protected String getReaderComponentName()
- Specified by:
getReaderComponentNamein classde.julielab.jcore.reader.db.DBReader
-
-