Revert "HBASE-15497 Incorrect javadoc for atomicity guarantee of Increment and Append"

Wrong author information
This reverts commit 6e3ffd03e7.
This commit is contained in:
Chia-Ping Tsai 2017-09-04 16:19:44 +08:00
parent 6e3ffd03e7
commit 0a3a9a5417
3 changed files with 16 additions and 12 deletions

View File

@ -34,9 +34,10 @@ import org.apache.hadoop.hbase.util.Bytes;
/**
* Performs Append operations on a single row.
* <p>
* This operation ensures atomicty to readers. Appends are done
* under a single row lock, so write operations to a row are synchronized, and
* readers are guaranteed to see this operation fully completed.
* Note that this operation does not appear atomic to readers. Appends are done
* under a single row lock, so write operations to a row are synchronized, but
* readers do not take row locks so get and scan operations can see this
* operation partially completed.
* <p>
* 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

View File

@ -38,9 +38,10 @@ import org.apache.hadoop.hbase.util.ClassSize;
/**
* Used to perform Increment operations on a single row.
* <p>
* This operation ensures atomicity to readers. Increments are done
* under a single row lock, so write operations to a row are synchronized, and
* readers are guaranteed to see this operation fully completed.
* This operation does not appear atomic to readers. Increments are done
* under a single row lock, so write operations to a row are synchronized, but
* readers do not take row locks so get and scan operations can see this
* operation partially completed.
* <p>
* 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

View File

@ -326,9 +326,10 @@ public interface Table extends Closeable {
/**
* Appends values to one or more columns within a single row.
* <p>
* This operation guaranteed atomicity to readers. Appends are done
* under a single row lock, so write operations to a row are synchronized, and
* readers are guaranteed to see this operation fully completed.
* This operation does not appear atomic to readers. Appends are done
* under a single row lock, so write operations to a row are synchronized, but
* readers do not take row locks so get and scan operations can see this
* operation partially completed.
*
* @param append object that specifies the columns and amounts to be used
* for the increment operations
@ -340,9 +341,10 @@ public interface Table extends Closeable {
/**
* Increments one or more columns within a single row.
* <p>
* This operation ensures atomicity to readers. Increments are done
* under a single row lock, so write operations to a row are synchronized, and
* readers are guaranteed to see this operation fully completed.
* This operation does not appear atomic to readers. Increments are done
* under a single row lock, so write operations to a row are synchronized, but
* readers do not take row locks so get and scan operations can see this
* operation partially completed.
*
* @param increment object that specifies the columns and amounts to be used
* for the increment operations