uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dr. Armin Wegner" <arminweg...@googlemail.com>
Subject Re: Collection Reader Progress
Date Wed, 16 Oct 2013 15:52:23 GMT
Good afternoon,

I've used this.

public Progress[] getProgress() {
  return new Progress[] { new
ProgressImpl(number_of_completed_artifacts, -1, Progress.ENTITIES,
true) };
}

At least it does compile and run. Is it semantically correct, too?

Cheers,
Armin

On 10/8/13, Burn Lewis <burnlewis@gmail.com> wrote:
> Yes, is optional, but applications that use the information typically treat
> -1 as "unknown"
>
> ~Burn
>
>
> On Mon, Oct 7, 2013 at 9:15 AM, Renaud Richardet
> <renaud.richardet@epfl.ch>wrote:
>
>> Hi Armin,
>> Just return null. I rarely implement that method...
>> Best, Renaud
>>
>>
>> On Sat, Oct 5, 2013 at 11:44 AM, Dr. Armin Wegner <
>> arminwegner@googlemail.com> wrote:
>>
>> > What to return from method Progress of CasCollectionReader_ImplBase
>> > when I do not know the total number of artifacts?
>> >
>>
>

Mime
View raw message