HBASE-15497 Incorrect javadoc for atomicity guarantee of Increment and Append
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
a5131a0491
commit
6e3ffd03e7
|
@ -34,10 +34,9 @@ import org.apache.hadoop.hbase.util.Bytes;
|
||||||
/**
|
/**
|
||||||
* Performs Append operations on a single row.
|
* Performs Append operations on a single row.
|
||||||
* <p>
|
* <p>
|
||||||
* Note that this operation does not appear atomic to readers. Appends are done
|
* This operation ensures atomicty to readers. Appends are done
|
||||||
* under a single row lock, so write operations to a row are synchronized, but
|
* under a single row lock, so write operations to a row are synchronized, and
|
||||||
* readers do not take row locks so get and scan operations can see this
|
* readers are guaranteed to see this operation fully completed.
|
||||||
* operation partially completed.
|
|
||||||
* <p>
|
* <p>
|
||||||
* To append to a set of columns of a row, instantiate an Append object with the
|
* To append to a set of columns of a row, instantiate an Append object with the
|
||||||
* row to append to. At least one column to append must be specified using the
|
* row to append to. At least one column to append must be specified using the
|
||||||
|
|
|
@ -38,10 +38,9 @@ import org.apache.hadoop.hbase.util.ClassSize;
|
||||||
/**
|
/**
|
||||||
* Used to perform Increment operations on a single row.
|
* Used to perform Increment operations on a single row.
|
||||||
* <p>
|
* <p>
|
||||||
* This operation does not appear atomic to readers. Increments are done
|
* This operation ensures atomicity to readers. Increments are done
|
||||||
* under a single row lock, so write operations to a row are synchronized, but
|
* under a single row lock, so write operations to a row are synchronized, and
|
||||||
* readers do not take row locks so get and scan operations can see this
|
* readers are guaranteed to see this operation fully completed.
|
||||||
* operation partially completed.
|
|
||||||
* <p>
|
* <p>
|
||||||
* To increment columns of a row, instantiate an Increment object with the row
|
* To increment columns of a row, instantiate an Increment object with the row
|
||||||
* to increment. At least one column to increment must be specified using the
|
* to increment. At least one column to increment must be specified using the
|
||||||
|
|
|
@ -326,10 +326,9 @@ public interface Table extends Closeable {
|
||||||
/**
|
/**
|
||||||
* Appends values to one or more columns within a single row.
|
* Appends values to one or more columns within a single row.
|
||||||
* <p>
|
* <p>
|
||||||
* This operation does not appear atomic to readers. Appends are done
|
* This operation guaranteed atomicity to readers. Appends are done
|
||||||
* under a single row lock, so write operations to a row are synchronized, but
|
* under a single row lock, so write operations to a row are synchronized, and
|
||||||
* readers do not take row locks so get and scan operations can see this
|
* readers are guaranteed to see this operation fully completed.
|
||||||
* operation partially completed.
|
|
||||||
*
|
*
|
||||||
* @param append object that specifies the columns and amounts to be used
|
* @param append object that specifies the columns and amounts to be used
|
||||||
* for the increment operations
|
* for the increment operations
|
||||||
|
@ -341,10 +340,9 @@ public interface Table extends Closeable {
|
||||||
/**
|
/**
|
||||||
* Increments one or more columns within a single row.
|
* Increments one or more columns within a single row.
|
||||||
* <p>
|
* <p>
|
||||||
* This operation does not appear atomic to readers. Increments are done
|
* This operation ensures atomicity to readers. Increments are done
|
||||||
* under a single row lock, so write operations to a row are synchronized, but
|
* under a single row lock, so write operations to a row are synchronized, and
|
||||||
* readers do not take row locks so get and scan operations can see this
|
* readers are guaranteed to see this operation fully completed.
|
||||||
* operation partially completed.
|
|
||||||
*
|
*
|
||||||
* @param increment object that specifies the columns and amounts to be used
|
* @param increment object that specifies the columns and amounts to be used
|
||||||
* for the increment operations
|
* for the increment operations
|
||||||
|
|
Loading…
Reference in New Issue