org.apache.uima.util.ProgressImpl Java Examples

The following examples show how to use org.apache.uima.util.ProgressImpl. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ErrorTestCollectionReader.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress()
 */
public Progress[] getProgress() {
  logger.log(LOG_LEVEL, "getProgress() was called");
  if (errorConfig.containsKey(FUNC_GETPROCESS_KEY)) {
    ((FunctionErrorStore) errorConfig.get(FUNC_GETPROCESS_KEY)).methodeCalled8();
  }
  return new Progress[] { new ProgressImpl(documentsCounted, documentCount, Progress.ENTITIES) };
}
 
Example #2
Source File: MemReleaseI2b2CollectionReader.java    From ctakes-docker with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Progress[] getProgress() {
   final Progress p = new ProgressImpl( _currRowCount, Integer.MAX_VALUE, Progress.ENTITIES );
   return new Progress[]{p};
}
 
Example #3
Source File: XmiCollectionReader.java    From uima-uimaj with Apache License 2.0 4 votes vote down vote up
/**
 * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress()
 */
public Progress[] getProgress() {
  return new Progress[] { new ProgressImpl(mCurrentIndex, mFiles.size(), Progress.ENTITIES) };
}
 
Example #4
Source File: FileSystemCollectionReader.java    From uima-uimaj with Apache License 2.0 4 votes vote down vote up
/**
 * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress()
 */
public Progress[] getProgress() {
  return new Progress[] { new ProgressImpl(mCurrentIndex, mFiles.size(), Progress.ENTITIES) };
}
 
Example #5
Source File: LineReader.java    From uima-uimafit with Apache License 2.0 4 votes vote down vote up
public Progress[] getProgress() {
  Progress progress = new ProgressImpl(lineIndex, lines.length, Progress.ENTITIES);
  return new Progress[] { progress };
}
 
Example #6
Source File: SingleFileXReader.java    From uima-uimafit with Apache License 2.0 4 votes vote down vote up
public Progress[] getProgress() {
  if (hasNext) {
    return new Progress[] { new ProgressImpl(0, 1, Progress.ENTITIES) };
  }
  return new Progress[] { new ProgressImpl(1, 1, Progress.ENTITIES) };
}
 
Example #7
Source File: JCasIterableTest.java    From uima-uimafit with Apache License 2.0 4 votes vote down vote up
@Override
public Progress[] getProgress() {
  return new Progress[] { new ProgressImpl(n, N, "document") };
}
 
Example #8
Source File: AbstractTermSuiteCollectionReader.java    From termsuite-core with Apache License 2.0 4 votes vote down vote up
@Override
public Progress[] getProgress() {
	return new Progress[]{
		     new ProgressImpl(mCurrentIndex,mFiles.size(),Progress.ENTITIES)};
}
 
Example #9
Source File: DummyCollectionReader.java    From baleen with Apache License 2.0 4 votes vote down vote up
@Override
public Progress[] getProgress() {
  return new Progress[] {
    new ProgressImpl(DOCUMENT_COUNT - documents.size(), DOCUMENT_COUNT, Progress.ENTITIES)
  };
}
 
Example #10
Source File: DummyBaleenCollectionReader.java    From baleen with Apache License 2.0 4 votes vote down vote up
@Override
public Progress[] doGetProgress() {
  return new Progress[] {
    new ProgressImpl(DOCUMENT_COUNT - documents.size(), DOCUMENT_COUNT, Progress.ENTITIES)
  };
}
 
Example #11
Source File: BaleenCollectionReaderTest.java    From baleen with Apache License 2.0 4 votes vote down vote up
@Override
public Progress[] doGetProgress() {
  return new Progress[] {new ProgressImpl(1, 2, "testunits")};
}
 
Example #12
Source File: DummyCollectionReader.java    From baleen with Apache License 2.0 4 votes vote down vote up
@Override
public Progress[] doGetProgress() {
  return new Progress[] {
    new ProgressImpl(DOCUMENT_COUNT - documents.size(), DOCUMENT_COUNT, Progress.ENTITIES)
  };
}
 
Example #13
Source File: NewsleakElasticsearchReader.java    From newsleak with GNU Affero General Public License v3.0 4 votes vote down vote up
public Progress[] getProgress() {
	return new Progress[] { new ProgressImpl(Long.valueOf(currentRecord).intValue(),
			Long.valueOf(totalRecords).intValue(), Progress.ENTITIES) };
}
 
Example #14
Source File: HooverElasticsearchReader.java    From newsleak with GNU Affero General Public License v3.0 4 votes vote down vote up
public Progress[] getProgress() {
	return new Progress[] { new ProgressImpl(Long.valueOf(currentRecord).intValue() - 1,
			Long.valueOf(totalRecords).intValue(), Progress.ENTITIES) };
}
 
Example #15
Source File: NewsleakCsvStreamReader.java    From newsleak with GNU Affero General Public License v3.0 4 votes vote down vote up
public Progress[] getProgress() {
	return new Progress[] { new ProgressImpl(Long.valueOf(currentRecord).intValue(),
			Long.valueOf(totalRecords).intValue(), Progress.ENTITIES) };
}
 
Example #16
Source File: XmlFixingFilesInDirectoryCollectionReader.java    From ctakes-docker with Apache License 2.0 4 votes vote down vote up
/**
 * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress()
 */
@Override
public Progress[] getProgress() {
	return new Progress[]{
			new ProgressImpl(iv_currentIndex, iv_files.size(),Progress.ENTITIES)};
}
 
Example #17
Source File: WordPressXMLReader.java    From ambiverse-nlu with Apache License 2.0 4 votes vote down vote up
public Progress[] getProgress() {
  return new Progress[] { new ProgressImpl(this.currentParsedFile, this.xmlFiles.size(), "entities") };
}
 
Example #18
Source File: FileSystemCollectionReader.java    From uima-uimaj with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the progress.
 *
 * @return the progress
 * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress()
 */
public Progress[] getProgress() {
  return new Progress[] { new ProgressImpl(mCurrentIndex, mFiles.size(), Progress.ENTITIES) };
}