@Test public void testDBReader() throws UIMAException, IOException, ConfigurationException { String costosysConfig = DBTestUtils.createTestCostosysConfig("medline_2017", 1, postgres); CollectionReader reader = CollectionReaderFactory.createReader(DBReaderTestImpl.class, PARAM_BATCH_SIZE, 5, PARAM_TABLE, "testsubset", PARAM_COSTOSYS_CONFIG_NAME, costosysConfig); assertTrue(reader.hasNext()); int docCount = 0; JCas jCas = JCasFactory.createJCas("de.julielab.jcore.types.jcore-document-meta-pubmed-types", "de.julielab.jcore.types.jcore-document-structure-types"); while (reader.hasNext()) { reader.getNext(jCas.getCas()); assertNotNull(JCoReTools.getDocId(jCas)); ++docCount; jCas.reset(); } assertEquals(20, docCount); }
public boolean hasNext() throws IOException, CollectionException { return hasNext; }
DBReader extends DBSubsetReader { public boolean hasNext() throws IOException, CollectionException { return hasNext; } }
DBReader extends DBSubsetReader { public boolean hasNext() throws IOException, CollectionException { return hasNext; }  }
DBReader extends DBSubsetReader { public boolean hasNext() throws IOException, CollectionException { return hasNext; }  static String setDBProcessingMetaData(DataBaseConnector dbc, boolean readDataTable, String tableName, byte[][] data, JCas cas); @Override void initialize(UimaContext context); boolean hasNext(); byte[][] getNextArtifactData(); Progress[] getProgress(); void close(); }
DBReader extends DBSubsetReader { public boolean hasNext() throws IOException, CollectionException { return hasNext; }  static String setDBProcessingMetaData(DataBaseConnector dbc, boolean readDataTable, String tableName, byte[][] data, JCas cas); @Override void initialize(UimaContext context); boolean hasNext(); byte[][] getNextArtifactData(); Progress[] getProgress(); void close();  }