public abstract class DBSubsetReader extends DBReaderBase
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
additionalTableNames |
protected String[] |
additionalTableSchemas |
protected String |
dataTable
The name of the primary data table to read data from.
|
protected Boolean |
fetchIdsProactively |
protected String |
hostName |
static String |
PARAM_ADDITIONAL_TABLES |
static String |
PARAM_ADDITONAL_TABLES_STORAGE_PG_SCHEMA |
static String |
PARAM_RESET_TABLE |
protected String |
pid |
protected Boolean |
readDataTable
This is true if the table name provided by the
DBReaderBase.PARAM_TABLE parameter is a data table. |
protected Boolean |
resetTable |
protected String[] |
schemas
The list of table schemas of the tables to read from.
|
protected String[] |
tables
The list of tables to read data from.
|
batchSize, costosysConfig, dbc, driver, hasNext, joinTables, limitParameter, numberFetchedDocIDs, PARAM_BATCH_SIZE, PARAM_COSTOSYS_CONFIG_NAME, PARAM_TABLE, processedDocuments, selectionOrder, tableName, totalDocumentCount, whereCondition| Constructor and Description |
|---|
DBSubsetReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAdditionalTableParameters(String[] additionalTableNames,
String[] additionalTableSchemas)
This method checks whether the required parameters are set to meaningful
values and throws an IllegalArgumentException when not.
|
protected org.apache.commons.lang3.tuple.ImmutablePair<Integer,String[]> |
checkAndAdjustAdditionalTables(de.julielab.xmlData.dataBase.DataBaseConnector dbc,
String dataTable,
String[] additionalTableNames)
Checks whether the given additional tables exist.
|
protected List<Map<String,Object>> |
getAllRetrievedColumns()
Convenience method for extending classes.
|
void |
initialize(org.apache.uima.UimaContext context) |
close, getLogger, getNext, getNext, initializedestroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInitgetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetCasManager, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProgress, hasNextpublic static final String PARAM_ADDITIONAL_TABLES
public static final String PARAM_RESET_TABLE
public static final String PARAM_ADDITONAL_TABLES_STORAGE_PG_SCHEMA
protected Boolean resetTable
protected Boolean fetchIdsProactively
protected String[] additionalTableNames
protected String[] additionalTableSchemas
protected String hostName
protected String pid
protected String dataTable
DBReaderBase.PARAM_TABLE or, if this parameter denotes a subset table, the data table referenced by the subset.protected Boolean readDataTable
DBReaderBase.PARAM_TABLE parameter is a data table.
If this parameter is false it means that we read from a subset table.protected String[] tables
public void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
initialize in class DBReaderBaseorg.apache.uima.resource.ResourceInitializationExceptionprotected List<Map<String,Object>> getAllRetrievedColumns()
protected void checkAdditionalTableParameters(String[] additionalTableNames, String[] additionalTableSchemas) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationExceptionprotected org.apache.commons.lang3.tuple.ImmutablePair<Integer,String[]> checkAndAdjustAdditionalTables(de.julielab.xmlData.dataBase.DataBaseConnector dbc, String dataTable, String[] additionalTableNames)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.