Package de.julielab.jcore.reader.db
Class DBReaderBase
- 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
-
- 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
- Direct Known Subclasses:
DBSubsetReader
public abstract class DBReaderBase extends org.apache.uima.fit.component.JCasCollectionReader_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description protected intbatchSizeprotected StringcostosysConfigprotected de.julielab.costosys.dbconnection.DataBaseConnectordbcprotected Stringdriverprotected booleanhasNextprotected booleanjoinTablesprotected IntegerlimitParameterprotected intnumberFetchedDocIDsstatic StringPARAM_BATCH_SIZEstatic StringPARAM_COSTOSYS_CONFIG_NAMEstatic StringPARAM_TABLEprotected intprocessedDocumentsprotected StringselectionOrderprotected StringtableNameprotected inttotalDocumentCountprotected StringwhereCondition
-
Constructor Summary
Constructors Constructor Description DBReaderBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.apache.uima.UimaContext context)-
Methods inherited from class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
close, getLogger, getNext, 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
-
Methods inherited from interface org.apache.uima.collection.base_cpm.BaseCollectionReader
getProgress, hasNext
-
-
-
-
Field Detail
-
PARAM_TABLE
public static final String PARAM_TABLE
- See Also:
- Constant Field Values
-
PARAM_COSTOSYS_CONFIG_NAME
public static final String PARAM_COSTOSYS_CONFIG_NAME
- See Also:
- Constant Field Values
-
PARAM_BATCH_SIZE
public static final String PARAM_BATCH_SIZE
- See Also:
- Constant Field Values
-
batchSize
protected int batchSize
-
driver
protected String driver
-
tableName
protected String tableName
-
selectionOrder
protected String selectionOrder
-
whereCondition
protected String whereCondition
-
limitParameter
protected Integer limitParameter
-
numberFetchedDocIDs
protected volatile int numberFetchedDocIDs
-
joinTables
protected boolean joinTables
-
dbc
protected de.julielab.costosys.dbconnection.DataBaseConnector dbc
-
hasNext
protected boolean hasNext
-
totalDocumentCount
protected int totalDocumentCount
-
processedDocuments
protected int processedDocuments
-
costosysConfig
protected String costosysConfig
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException- Overrides:
initializein classorg.apache.uima.fit.component.JCasCollectionReader_ImplBase- Throws:
org.apache.uima.resource.ResourceInitializationException
-
-