HBase1.0 API Problem: setAutoFlush and flushCommits

2015-04-05 Thread donhoff_h
Hi, experts.


I migrated my HBase cluster from version 0.98.10 to version 1.0. I find that in 
HBase1.0 the class Table does not contain the API setAutoFlush and 
flushCommits any more. Could anybody tell me where these APIs go? What should I 
do now if I want to make a commitment after some Puts operations?


Many Thanks!

?????? HBase1.0 API Problem: setAutoFlush and flushCommits

2015-04-05 Thread donhoff_h
Hi, Lars


Thanks very much for sharing this example.


By the way, does that mean the Puts and Deletes I submitted through table.put 
and table.delete won't be buffered and will be flushed immediately?




--  --
??: Lars George;lars.geo...@gmail.com;
: 2015??4??5??(??) 5:01
??: user@hbase.apache.orguser@hbase.apache.org; 

: Re: HBase1.0 API Problem: setAutoFlush and flushCommits



Hi,

This has been moved to BufferedMutator. I have an example here:
https://github.com/larsgeorge/hbase-book/blob/master/ch03/src/main/java/client/BufferedMutatorExample.java

Best,
Lars

On Sun, Apr 5, 2015 at 10:49 AM, donhoff_h 165612...@qq.com wrote:

 Hi, experts.


 I migrated my HBase cluster from version 0.98.10 to version 1.0. I find
 that in HBase1.0 the class Table does not contain the API setAutoFlush
 and flushCommits any more. Could anybody tell me where these APIs go? What
 should I do now if I want to make a commitment after some Puts operations?


 Many Thanks!

?????? ?????? HBase1.0 API Problem: setAutoFlush and flushCommits

2015-04-05 Thread donhoff_h
I see. Thanks very much , Lars.




--  --
??: Lars George;lars.geo...@gmail.com;
: 2015??4??5??(??) 5:47
??: user@hbase.apache.orguser@hbase.apache.org; 

: Re: ?? HBase1.0 API Problem: setAutoFlush and flushCommits



Yes, although the new Table interface implementation (it really is a HUMBLE but 
now hidden from you and might change in the future) is using a BufferedMutator 
internally, it will flush at the end of every operation. 

Sent from my iPhone

 On 05 Apr 2015, at 11:23, donhoff_h 165612...@qq.com wrote:
 
 Hi, Lars
 
 
 Thanks very much for sharing this example.
 
 
 By the way, does that mean the Puts and Deletes I submitted through table.put 
 and table.delete won't be buffered and will be flushed immediately?
 
 
 
 
 --  --
 ??: Lars George;lars.geo...@gmail.com;
 : 2015??4??5??(??) 5:01
 ??: user@hbase.apache.orguser@hbase.apache.org; 
 
 : Re: HBase1.0 API Problem: setAutoFlush and flushCommits
 
 
 
 Hi,
 
 This has been moved to BufferedMutator. I have an example here:
 https://github.com/larsgeorge/hbase-book/blob/master/ch03/src/main/java/client/BufferedMutatorExample.java
 
 Best,
 Lars
 
 On Sun, Apr 5, 2015 at 10:49 AM, donhoff_h 165612...@qq.com wrote:
 
 Hi, experts.
 
 
 I migrated my HBase cluster from version 0.98.10 to version 1.0. I find
 that in HBase1.0 the class Table does not contain the API setAutoFlush
 and flushCommits any more. Could anybody tell me where these APIs go? What
 should I do now if I want to make a commitment after some Puts operations?
 
 
 Many Thanks!

Re: 回复: HBase1.0 API Problem: setAutoFlush and flushCommits

2015-04-05 Thread Lars George
Yes, although the new Table interface implementation (it really is a HUMBLE but 
now hidden from you and might change in the future) is using a BufferedMutator 
internally, it will flush at the end of every operation. 

Sent from my iPhone

 On 05 Apr 2015, at 11:23, donhoff_h 165612...@qq.com wrote:
 
 Hi, Lars
 
 
 Thanks very much for sharing this example.
 
 
 By the way, does that mean the Puts and Deletes I submitted through table.put 
 and table.delete won't be buffered and will be flushed immediately?
 
 
 
 
 -- 原始邮件 --
 发件人: Lars George;lars.geo...@gmail.com;
 发送时间: 2015年4月5日(星期天) 下午5:01
 收件人: user@hbase.apache.orguser@hbase.apache.org; 
 
 主题: Re: HBase1.0 API Problem: setAutoFlush and flushCommits
 
 
 
 Hi,
 
 This has been moved to BufferedMutator. I have an example here:
 https://github.com/larsgeorge/hbase-book/blob/master/ch03/src/main/java/client/BufferedMutatorExample.java
 
 Best,
 Lars
 
 On Sun, Apr 5, 2015 at 10:49 AM, donhoff_h 165612...@qq.com wrote:
 
 Hi, experts.
 
 
 I migrated my HBase cluster from version 0.98.10 to version 1.0. I find
 that in HBase1.0 the class Table does not contain the API setAutoFlush
 and flushCommits any more. Could anybody tell me where these APIs go? What
 should I do now if I want to make a commitment after some Puts operations?
 
 
 Many Thanks!


Re: HBase1.0 API Problem: setAutoFlush and flushCommits

2015-04-05 Thread Lars George
Hi,

This has been moved to BufferedMutator. I have an example here:
https://github.com/larsgeorge/hbase-book/blob/master/ch03/src/main/java/client/BufferedMutatorExample.java

Best,
Lars

On Sun, Apr 5, 2015 at 10:49 AM, donhoff_h 165612...@qq.com wrote:

 Hi, experts.


 I migrated my HBase cluster from version 0.98.10 to version 1.0. I find
 that in HBase1.0 the class Table does not contain the API setAutoFlush
 and flushCommits any more. Could anybody tell me where these APIs go? What
 should I do now if I want to make a commitment after some Puts operations?


 Many Thanks!