Package de.julielab.jcore.reader.db
Class DBMultiplierReader
- 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.DBMultiplierReader
-
- 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 DBMultiplierReader extends DBSubsetReader
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDBMultiplierReader.RetrievingThreadThis class is charged to retrieve batches of document IDs which will be returned for processing afterwards.
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_ADDITIONAL_TABLE_SCHEMASstatic StringPARAM_ADDITIONAL_TABLESstatic StringPARAM_COSTOSYS_CONFIG_NAMEstatic StringPARAM_DATA_TIMESTAMPstatic StringPARAM_FETCH_IDS_PROACTIVELYstatic StringPARAM_RESET_TABLEstatic StringPARAM_SEND_CAS_TO_LASTstatic StringPARAM_TABLE-
Fields inherited from class de.julielab.jcore.reader.db.DBSubsetReader
additionalTableNames, additionalTableSchemas, dataTable, fetchIdsProactively, hostName, PARAM_ADDITONAL_TABLES_STORAGE_PG_SCHEMA, pid, readDataTable, resetTable, schemas, tables
-
Fields inherited from class de.julielab.jcore.reader.db.DBReaderBase
batchSize, costosysConfig, dbc, driver, hasNext, joinTables, limitParameter, numberFetchedDocIDs, PARAM_BATCH_SIZE, processedDocuments, selectionOrder, tableName, totalDocumentCount, whereCondition
-
-
Constructor Summary
Constructors Constructor Description DBMultiplierReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidgetNext(org.apache.uima.jcas.JCas jCas)List<Object[]>getNextDocumentIdBatch()Returns the next batch of document IDs from the database table given by the 'Table' parameter.org.apache.uima.util.Progress[]getProgress()booleanhasNext()voidinitialize(org.apache.uima.UimaContext context)-
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_RESET_TABLE
public static final String PARAM_RESET_TABLE
- See Also:
- Constant Field Values
-
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_DATA_TIMESTAMP
public static final String PARAM_DATA_TIMESTAMP
- See Also:
- Constant Field Values
-
PARAM_ADDITIONAL_TABLES
public static final String PARAM_ADDITIONAL_TABLES
- See Also:
- Constant Field Values
-
PARAM_ADDITIONAL_TABLE_SCHEMAS
public static final String PARAM_ADDITIONAL_TABLE_SCHEMAS
- See Also:
- Constant Field Values
-
PARAM_FETCH_IDS_PROACTIVELY
public static final String PARAM_FETCH_IDS_PROACTIVELY
- See Also:
- Constant Field Values
-
PARAM_SEND_CAS_TO_LAST
public static final String PARAM_SEND_CAS_TO_LAST
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException- Overrides:
initializein classDBSubsetReader- Throws:
org.apache.uima.resource.ResourceInitializationException
-
getNext
public void getNext(org.apache.uima.jcas.JCas jCas) throws org.apache.uima.collection.CollectionException- Specified by:
getNextin classorg.apache.uima.fit.component.JCasCollectionReader_ImplBase- Throws:
org.apache.uima.collection.CollectionException
-
hasNext
public boolean hasNext()
-
getNextDocumentIdBatch
public List<Object[]> getNextDocumentIdBatch()
Returns the next batch of document IDs from the database table given by the 'Table' parameter.- Returns:
- A list of document IDs from the read table.
-
getProgress
public org.apache.uima.util.Progress[] getProgress()
-
close
public void close()
- Specified by:
closein interfaceorg.apache.uima.collection.base_cpm.BaseCollectionReader- Overrides:
closein classorg.apache.uima.fit.component.JCasCollectionReader_ImplBase
-
-