setAutoFlush(boolean) and setAutoFlushTo(boolean) have slightly different
behavior regarding to the deprecated value of clearBufferOnFail. I have
enough background with the nuances of what clearBufferOnFail actually
does, but I leveraged that difference while making a change related to the
difference while trying to eliminate calls to setAutoFlush(boolean,
boolean). Some decision should probably be made on how to
handle clearBufferOnFail as part of the setAutoFlushTo(boolean) vs.
setAutoFlush(boolean).
>From HTable:
@Deprecated
@Override
public void setAutoFlush(boolean autoFlush) {
setAutoFlush(autoFlush, *autoFlush*);
}
@Override
public void setAutoFlushTo(boolean autoFlush) {
setAutoFlush(autoFlush, *clearBufferOnFail*);
}
@Override
public void setAutoFlush(boolean autoFlush, boolean clearBufferOnFail) {
this.autoFlush = autoFlush;
this.clearBufferOnFail = autoFlush || clearBufferOnFail;
}
On Thu, Nov 20, 2014 at 5:29 AM, Nick Dimiduk <[email protected]> wrote:
> Heya,
>
> Do we want to change this method name in the new Table interface to just
> setAutoFlush? Will this be confusing for folks migrating from the
> HTableInterface methods?
>
> Would be good to make a decision on this (and any other Client API changes)
> before 1.0.
>
> -n
>