Typo below: I meant aggregates such as avg, min, etc

One minor thing about Julius code: the following construct should be used
to close the scanner.

      } while (hasMoreRows);
    } finally {
      scanner.close();
    }

On Sat, Jul 20, 2013 at 10:20 PM, Ted Yu <[email protected]> wrote:

> If you really want to try out InternalScanner, take a look
> at 
> src/main/java/org/apache/hadoop/hbase/coprocessor/AggregateImplementation.java
> where you can see similar code for computing avg, mean aggregates.
>
> You can activate that endpoint to see if it works.
>
> Cheers
>
>
> On Sat, Jul 20, 2013 at 8:07 PM, Julius <[email protected]> wrote:
>
>>
>>
>> Ted Yu <yuzhihong@...> writes:
>>
>> >
>> > Which release are you using ?
>> >
>> > If you put the code below in non-endpoint class, would you have the same
>> > result ?
>> >
>> > Cheers
>> >
>>
>>
>> I'm using HBase 0.94.
>>
>> The only way would be to move the code into a client program.
>> But then, I wouldn't even be able to make use of an InternalScanner, which
>> would turn out to be significantly different.
>>
>> Thanks.
>>
>>
>>
>>
>>
>>
>

Reply via email to