Map<String, String> field = dbc.getFieldConfiguration(tableSchemaName).getFields().get(1); String xmiFieldType = field.get(JulieXMLConstants.TYPE); if (doGzip) {
numDataRetrievedDataFields = dbc.getFieldConfiguration().getColumnsToRetrieve().length; log.info("{}: {}", PARAM_XERCES_ATTRIBUTE_BUFFER_SIZE, xercesAttributeBufferSize); log.info("Data columns set for retrieval: {}", Arrays.toString(dbc.getFieldConfiguration().getColumnsToRetrieve()));
@Override public void initialize(UimaContext context) throws ResourceInitializationException { super.initialize(context); // Check whether a subset table name or a data table name was given. if (readDataTable) { log.debug("Reading from data table {}", tableName); dataTableDocumentIds = dbc.query(tableName, Arrays.asList(dbc.getFieldConfiguration(dbc.getActiveTableSchema()).getPrimaryKey())); hasNext = dataTableDocumentIds.hasNext(); } else { log.debug("Reading from subset table {}", tableName); hasNext = dbc.withConnectionQueryBoolean(c -> c.hasUnfetchedRows(tableName)); } }
FieldConfig annotationFieldConfig = dbc.getFieldConfiguration(schemaAnnotation);
return; FieldConfig annotationFieldConfig = dbc.getFieldConfiguration(schemaAnnotation); String[] primaryKey = annotationFieldConfig.getPrimaryKey(); if (primaryKey.length > 1)
return; FieldConfig annotationFieldConfig = dbc.getFieldConfiguration(schemaDocument); String[] primaryKey = annotationFieldConfig.getPrimaryKey(); if (primaryKey.length > 1)
if (!dbc.tableExists(effectiveTableName)) { log.info("Creating table '{}' with schema '{}' (columns: {}).", effectiveTableName, schema, dbc.getFieldConfiguration(schema).getColumns()); String pgSchema = getTableSchema(effectiveTableName); if (!dbc.schemaExists(pgSchema))