Java Code Examples for org.apache.uima.util.Progress#ENTITIES

The following examples show how to use org.apache.uima.util.Progress#ENTITIES . 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: 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 4
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 5
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 6
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 7
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 8
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 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: 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 11
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 12
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 13
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 14
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 15
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) };
}