H,

What exactly is the problem you're trying to solve? If there's an issue, please 
open a Jira ticket, describe the problem and attach a patch file.

Thanks
Markus

 
 
-----Original message-----
> From:RS <[email protected]>
> Sent: Sunday 7th July 2013 11:14
> To: Lewis John&nbspMcgibbney <[email protected]>
> Cc: nutch-user <[email protected]>
> Subject: how about change a liite in the QueueFeeder
> 
> Hello:
>     In the org.apache.nutch.fetcher.FetcherReducer.QueueFeeder Class, there 
> is a run methmod.
>     I wan to make It look like more simply, maybe.
> 
> 
>     public void run() {
>          ...   
>         while (hasMore) {
> +        currentIter = context.getValues().iterator();
>           if (System.currentTimeMillis() >= timelimit && timelimit != -1) {
>             // enough .. lets' simply
>             // read all the entries from the input without processing them
>             while (currentIter.hasNext()) {
>               currentIter.next();
>               timelimitcount++;
>             }
>             hasMore = context.nextKey();
> -           if (hasMore) {
> -            currentIter = context.getValues().iterator();
> -           }
>             continue;
>           }
>          ...
>         if (currentIter.hasNext()) {
>             continue; // finish items in current list before reading next key
>           }
>           hasMore = context.nextKey();
> -         if (hasMore) {
> -           currentIter = context.getValues().iterator();
> -         }
>         }   ...
> 
> 
> Thanks 
> HeChuan

Reply via email to