@Override public Progress[] getProgress() { return new Progress[] { new ProgressImpl(isDone ? 0 : 1, 1, Progress.ENTITIES) }; } }
public String toString() { StringBuffer buf = new StringBuffer(); buf.append(getCompleted()); if (getTotal() >= 0) { buf.append(" of ").append(getTotal()); } buf.append(' ').append(getUnit()); if (isApproximate()) { buf.append(" (approximate)"); } return buf.toString(); }
/** * Progress is measured by the number of files in the target directory - not by the number of * times getNext has been (and will be) called. This means that the total number of entities to * completion is typically going to be 2 or 4 times as many 'documents' that are found depending * on what kinds of files exist in the target directory (e.g. *.ag.xml, *.apf.xml, *.sgm, *.tab) */ public Progress[] getProgress() { return new Progress[] { new ProgressImpl(aceFileIndex, aceFiles.length, Progress.ENTITIES) }; }
/** * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress() */ public Progress[] getProgress() { return new Progress[] { new ProgressImpl(currentIndex, numberOfDocuments, Progress.ENTITIES) }; }
@Override public Progress[] getProgress() { return new Progress[]{new ProgressImpl(index + 1, numberOfCombinations, Progress.ENTITIES)}; }
@Override public Progress[] getProgress() { // REC: It should be possible to determine the current row and the total size of the result // set and use this here to return progress information. return new Progress[] { new ProgressImpl(completed, resultSetSize, "row") }; }
@Override public Progress[] getProgress() { return new Progress[] { new ProgressImpl(isDone ? 0 : 1, 1, Progress.ENTITIES) }; } }
@Override public Progress[] getProgress() { // REC: It should be possible to determine the current row and the total size of the result // set and use this here to return progress information. return new Progress[] { new ProgressImpl(completed, resultSetSize, "row") }; }
@Override public Progress[] getProgress() { Progress p = new ProgressImpl(currRowCount, totalRowCount, Progress.ENTITIES); return new Progress[] { p }; }
/** * Progress is measured by the number of files in the target directory - not by the number of * times getNext has been (and will be) called. This means that the total number of entities to * completion is typically going to be 2 or 4 times as many 'documents' that are found depending * on what kinds of files exist in the target directory (e.g. *.ag.xml, *.apf.xml, *.sgm, *.tab) */ public Progress[] getProgress() { return new Progress[] { new ProgressImpl(aceFileIndex, aceFiles.length, Progress.ENTITIES) }; }
@Override public Progress[] getProgress() { return new Progress[] { new ProgressImpl(documentCount, documentsTotal, "document") }; }
@Override public Progress[] getProgress() { Progress progress = new ProgressImpl(numUrisCompleted, uriCount, Progress.ENTITIES); return new Progress[] { progress }; }
@Override public Progress[] getProgress() { Progress p = new ProgressImpl(index, docs.length, Progress.ENTITIES); return new Progress[]{ p}; }
@Override public Progress[] getProgress() { return new Progress[]{new ProgressImpl(index + 1, numberOfCombinations, Progress.ENTITIES)}; }
@Override public Progress[] getProgress() { Progress p = new ProgressImpl(index, docs.length, Progress.ENTITIES); return new Progress[]{ p}; }
@Override public Progress[] getProgress() { Progress p = new ProgressImpl( _currRowCount, _totalRowCount, Progress.ENTITIES ); return new Progress[] { p }; }
public Progress[] getProgress() { Progress progress = new ProgressImpl(completed, filesCount, Progress.ENTITIES); return new Progress[] { progress }; }
@Override public Progress[] getProgress() { return new Progress[]{ new ProgressImpl(docsRead, totalDocsNum, Progress.ENTITIES) }; }
/** * {@inheritDoc} */ @Override public Progress[] getProgress() { return new Progress[] { new ProgressImpl(consumedCount, expectedTotalCount, Progress.ENTITIES) }; }
@Override public Progress[] getProgress() { return new Progress[] { new ProgressImpl(count, -1, Progress.ENTITIES) }; }