hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shixing <paradise...@gmail.com>
Subject Re: Methods Missing in HTableInterface
Date Thu, 05 Apr 2012 14:51:49 GMT
I think you can use cast the interface to HTable, like this:

    HTablePool pool = new HTablePool();
    HTable table = (HTable)pool.getTable("test");
    table.setAutoFlush(true, true);
    System.out.println(table.isAutoFlush());


On Thu, Apr 5, 2012 at 7:20 PM, Bing Li <lblabs@gmail.com> wrote:

> Dear all,
>
> I found some methods existed in HTable were not in HTableInterface.
>
>   setAutoFlush
>   setWriteBufferSize
>   ...
>
> In most cases, I manipulate HBase through HTableInterface from HTablePool.
> If I need to use the above methods, how to do that?
>
> I am considering writing my own table pool if no proper ways. Is it fine?
>
> Thanks so much!
>
> Best regards,
> Bing
>



-- 
Best wishes!
My Friend~

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message