hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [46/51] [partial] hbase-site git commit: Published site at 22b95aebcd7fc742412ab514520008fda5e327de.
Date Fri, 11 Dec 2015 16:31:38 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/900a9477/apidocs/src-html/org/apache/hadoop/hbase/client/Result.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/Result.html b/apidocs/src-html/org/apache/hadoop/hbase/client/Result.html
index be97f89..6563727 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/Result.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/client/Result.html
@@ -847,113 +847,116 @@
 <span class="sourceLineNo">839</span>   */<a name="line.839"></a>
 <span class="sourceLineNo">840</span>  public static long getTotalSizeOfCells(Result
result) {<a name="line.840"></a>
 <span class="sourceLineNo">841</span>    long size = 0;<a name="line.841"></a>
-<span class="sourceLineNo">842</span>    for (Cell c : result.rawCells()) {<a
name="line.842"></a>
-<span class="sourceLineNo">843</span>      size += CellUtil.estimatedHeapSizeOf(c);<a
name="line.843"></a>
+<span class="sourceLineNo">842</span>    if (result.isEmpty()) {<a name="line.842"></a>
+<span class="sourceLineNo">843</span>      return size;<a name="line.843"></a>
 <span class="sourceLineNo">844</span>    }<a name="line.844"></a>
-<span class="sourceLineNo">845</span>    return size;<a name="line.845"></a>
-<span class="sourceLineNo">846</span>  }<a name="line.846"></a>
-<span class="sourceLineNo">847</span><a name="line.847"></a>
-<span class="sourceLineNo">848</span>  /**<a name="line.848"></a>
-<span class="sourceLineNo">849</span>   * Copy another Result into this one.
Needed for the old Mapred framework<a name="line.849"></a>
-<span class="sourceLineNo">850</span>   * @throws UnsupportedOperationException
if invoked on instance of EMPTY_RESULT<a name="line.850"></a>
-<span class="sourceLineNo">851</span>   * (which is supposed to be immutable).<a
name="line.851"></a>
-<span class="sourceLineNo">852</span>   * @param other<a name="line.852"></a>
-<span class="sourceLineNo">853</span>   */<a name="line.853"></a>
-<span class="sourceLineNo">854</span>  public void copyFrom(Result other) {<a
name="line.854"></a>
-<span class="sourceLineNo">855</span>    checkReadonly();<a name="line.855"></a>
-<span class="sourceLineNo">856</span>    this.row = null;<a name="line.856"></a>
-<span class="sourceLineNo">857</span>    this.familyMap = null;<a name="line.857"></a>
-<span class="sourceLineNo">858</span>    this.cells = other.cells;<a name="line.858"></a>
-<span class="sourceLineNo">859</span>  }<a name="line.859"></a>
-<span class="sourceLineNo">860</span><a name="line.860"></a>
-<span class="sourceLineNo">861</span>  @Override<a name="line.861"></a>
-<span class="sourceLineNo">862</span>  public CellScanner cellScanner() {<a
name="line.862"></a>
-<span class="sourceLineNo">863</span>    // Reset<a name="line.863"></a>
-<span class="sourceLineNo">864</span>    this.cellScannerIndex = INITIAL_CELLSCANNER_INDEX;<a
name="line.864"></a>
-<span class="sourceLineNo">865</span>    return this;<a name="line.865"></a>
-<span class="sourceLineNo">866</span>  }<a name="line.866"></a>
-<span class="sourceLineNo">867</span><a name="line.867"></a>
-<span class="sourceLineNo">868</span>  @Override<a name="line.868"></a>
-<span class="sourceLineNo">869</span>  public Cell current() {<a name="line.869"></a>
-<span class="sourceLineNo">870</span>    if (cells == null) return null;<a
name="line.870"></a>
-<span class="sourceLineNo">871</span>    return (cellScannerIndex &lt; 0)?
null: this.cells[cellScannerIndex];<a name="line.871"></a>
-<span class="sourceLineNo">872</span>  }<a name="line.872"></a>
-<span class="sourceLineNo">873</span><a name="line.873"></a>
-<span class="sourceLineNo">874</span>  @Override<a name="line.874"></a>
-<span class="sourceLineNo">875</span>  public boolean advance() {<a name="line.875"></a>
-<span class="sourceLineNo">876</span>    if (cells == null) return false;<a
name="line.876"></a>
-<span class="sourceLineNo">877</span>    return ++cellScannerIndex &lt; this.cells.length;<a
name="line.877"></a>
-<span class="sourceLineNo">878</span>  }<a name="line.878"></a>
-<span class="sourceLineNo">879</span><a name="line.879"></a>
-<span class="sourceLineNo">880</span>  public Boolean getExists() {<a name="line.880"></a>
-<span class="sourceLineNo">881</span>    return exists;<a name="line.881"></a>
-<span class="sourceLineNo">882</span>  }<a name="line.882"></a>
-<span class="sourceLineNo">883</span><a name="line.883"></a>
-<span class="sourceLineNo">884</span>  public void setExists(Boolean exists)
{<a name="line.884"></a>
-<span class="sourceLineNo">885</span>    checkReadonly();<a name="line.885"></a>
-<span class="sourceLineNo">886</span>    this.exists = exists;<a name="line.886"></a>
-<span class="sourceLineNo">887</span>  }<a name="line.887"></a>
-<span class="sourceLineNo">888</span><a name="line.888"></a>
-<span class="sourceLineNo">889</span>  /**<a name="line.889"></a>
-<span class="sourceLineNo">890</span>   * Whether or not the results are coming
from possibly stale data. Stale results<a name="line.890"></a>
-<span class="sourceLineNo">891</span>   * might be returned if {@link Consistency}
is not STRONG for the query.<a name="line.891"></a>
-<span class="sourceLineNo">892</span>   * @return Whether or not the results
are coming from possibly stale data.<a name="line.892"></a>
-<span class="sourceLineNo">893</span>   */<a name="line.893"></a>
-<span class="sourceLineNo">894</span>  public boolean isStale() {<a name="line.894"></a>
-<span class="sourceLineNo">895</span>    return stale;<a name="line.895"></a>
-<span class="sourceLineNo">896</span>  }<a name="line.896"></a>
-<span class="sourceLineNo">897</span><a name="line.897"></a>
-<span class="sourceLineNo">898</span>  /**<a name="line.898"></a>
-<span class="sourceLineNo">899</span>   * Whether or not the result is a partial
result. Partial results contain a subset of the cells<a name="line.899"></a>
-<span class="sourceLineNo">900</span>   * for a row and should be combined with
a result representing the remaining cells in that row to<a name="line.900"></a>
-<span class="sourceLineNo">901</span>   * form a complete (non-partial) result.<a
name="line.901"></a>
-<span class="sourceLineNo">902</span>   * @return Whether or not the result is
a partial result<a name="line.902"></a>
-<span class="sourceLineNo">903</span>   */<a name="line.903"></a>
-<span class="sourceLineNo">904</span>  public boolean isPartial() {<a name="line.904"></a>
-<span class="sourceLineNo">905</span>    return partial;<a name="line.905"></a>
-<span class="sourceLineNo">906</span>  }<a name="line.906"></a>
-<span class="sourceLineNo">907</span><a name="line.907"></a>
-<span class="sourceLineNo">908</span>  /**<a name="line.908"></a>
-<span class="sourceLineNo">909</span>   * Add load information about the region
to the information about the result<a name="line.909"></a>
-<span class="sourceLineNo">910</span>   * @param loadStats statistics about the
current region from which this was returned<a name="line.910"></a>
-<span class="sourceLineNo">911</span>   * @deprecated use {@link #setStatistics(ClientProtos.RegionLoadStats)}
instead<a name="line.911"></a>
-<span class="sourceLineNo">912</span>   * @throws UnsupportedOperationException
if invoked on instance of EMPTY_RESULT<a name="line.912"></a>
-<span class="sourceLineNo">913</span>   * (which is supposed to be immutable).<a
name="line.913"></a>
-<span class="sourceLineNo">914</span>   */<a name="line.914"></a>
-<span class="sourceLineNo">915</span>  @InterfaceAudience.Private<a name="line.915"></a>
-<span class="sourceLineNo">916</span>  @Deprecated<a name="line.916"></a>
-<span class="sourceLineNo">917</span>  public void addResults(ClientProtos.RegionLoadStats
loadStats) {<a name="line.917"></a>
-<span class="sourceLineNo">918</span>    checkReadonly();<a name="line.918"></a>
-<span class="sourceLineNo">919</span>    this.stats = loadStats;<a name="line.919"></a>
-<span class="sourceLineNo">920</span>  }<a name="line.920"></a>
-<span class="sourceLineNo">921</span><a name="line.921"></a>
-<span class="sourceLineNo">922</span>  /**<a name="line.922"></a>
-<span class="sourceLineNo">923</span>   * Set load information about the region
to the information about the result<a name="line.923"></a>
-<span class="sourceLineNo">924</span>   * @param loadStats statistics about the
current region from which this was returned<a name="line.924"></a>
-<span class="sourceLineNo">925</span>   */<a name="line.925"></a>
-<span class="sourceLineNo">926</span>  @InterfaceAudience.Private<a name="line.926"></a>
-<span class="sourceLineNo">927</span>  public void setStatistics(ClientProtos.RegionLoadStats
loadStats) {<a name="line.927"></a>
-<span class="sourceLineNo">928</span>    this.stats = loadStats;<a name="line.928"></a>
-<span class="sourceLineNo">929</span>  }<a name="line.929"></a>
-<span class="sourceLineNo">930</span><a name="line.930"></a>
-<span class="sourceLineNo">931</span>  /**<a name="line.931"></a>
-<span class="sourceLineNo">932</span>   * @return the associated statistics about
the region from which this was returned. Can be<a name="line.932"></a>
-<span class="sourceLineNo">933</span>   * &lt;tt&gt;null&lt;/tt&gt;
if stats are disabled.<a name="line.933"></a>
-<span class="sourceLineNo">934</span>   */<a name="line.934"></a>
-<span class="sourceLineNo">935</span>  public ClientProtos.RegionLoadStats getStats()
{<a name="line.935"></a>
-<span class="sourceLineNo">936</span>    return stats;<a name="line.936"></a>
-<span class="sourceLineNo">937</span>  }<a name="line.937"></a>
-<span class="sourceLineNo">938</span><a name="line.938"></a>
-<span class="sourceLineNo">939</span>  /**<a name="line.939"></a>
-<span class="sourceLineNo">940</span>   * All methods modifying state of Result
object must call this method<a name="line.940"></a>
-<span class="sourceLineNo">941</span>   * to ensure that special purpose immutable
Results can't be accidentally modified.<a name="line.941"></a>
-<span class="sourceLineNo">942</span>   */<a name="line.942"></a>
-<span class="sourceLineNo">943</span>  private void checkReadonly() {<a name="line.943"></a>
-<span class="sourceLineNo">944</span>    if (readonly == true) {<a name="line.944"></a>
-<span class="sourceLineNo">945</span>      throw new UnsupportedOperationException("Attempting
to modify readonly EMPTY_RESULT!");<a name="line.945"></a>
-<span class="sourceLineNo">946</span>    }<a name="line.946"></a>
-<span class="sourceLineNo">947</span>  }<a name="line.947"></a>
-<span class="sourceLineNo">948</span>}<a name="line.948"></a>
+<span class="sourceLineNo">845</span>    for (Cell c : result.rawCells()) {<a
name="line.845"></a>
+<span class="sourceLineNo">846</span>      size += CellUtil.estimatedHeapSizeOf(c);<a
name="line.846"></a>
+<span class="sourceLineNo">847</span>    }<a name="line.847"></a>
+<span class="sourceLineNo">848</span>    return size;<a name="line.848"></a>
+<span class="sourceLineNo">849</span>  }<a name="line.849"></a>
+<span class="sourceLineNo">850</span><a name="line.850"></a>
+<span class="sourceLineNo">851</span>  /**<a name="line.851"></a>
+<span class="sourceLineNo">852</span>   * Copy another Result into this one.
Needed for the old Mapred framework<a name="line.852"></a>
+<span class="sourceLineNo">853</span>   * @throws UnsupportedOperationException
if invoked on instance of EMPTY_RESULT<a name="line.853"></a>
+<span class="sourceLineNo">854</span>   * (which is supposed to be immutable).<a
name="line.854"></a>
+<span class="sourceLineNo">855</span>   * @param other<a name="line.855"></a>
+<span class="sourceLineNo">856</span>   */<a name="line.856"></a>
+<span class="sourceLineNo">857</span>  public void copyFrom(Result other) {<a
name="line.857"></a>
+<span class="sourceLineNo">858</span>    checkReadonly();<a name="line.858"></a>
+<span class="sourceLineNo">859</span>    this.row = null;<a name="line.859"></a>
+<span class="sourceLineNo">860</span>    this.familyMap = null;<a name="line.860"></a>
+<span class="sourceLineNo">861</span>    this.cells = other.cells;<a name="line.861"></a>
+<span class="sourceLineNo">862</span>  }<a name="line.862"></a>
+<span class="sourceLineNo">863</span><a name="line.863"></a>
+<span class="sourceLineNo">864</span>  @Override<a name="line.864"></a>
+<span class="sourceLineNo">865</span>  public CellScanner cellScanner() {<a
name="line.865"></a>
+<span class="sourceLineNo">866</span>    // Reset<a name="line.866"></a>
+<span class="sourceLineNo">867</span>    this.cellScannerIndex = INITIAL_CELLSCANNER_INDEX;<a
name="line.867"></a>
+<span class="sourceLineNo">868</span>    return this;<a name="line.868"></a>
+<span class="sourceLineNo">869</span>  }<a name="line.869"></a>
+<span class="sourceLineNo">870</span><a name="line.870"></a>
+<span class="sourceLineNo">871</span>  @Override<a name="line.871"></a>
+<span class="sourceLineNo">872</span>  public Cell current() {<a name="line.872"></a>
+<span class="sourceLineNo">873</span>    if (cells == null) return null;<a
name="line.873"></a>
+<span class="sourceLineNo">874</span>    return (cellScannerIndex &lt; 0)?
null: this.cells[cellScannerIndex];<a name="line.874"></a>
+<span class="sourceLineNo">875</span>  }<a name="line.875"></a>
+<span class="sourceLineNo">876</span><a name="line.876"></a>
+<span class="sourceLineNo">877</span>  @Override<a name="line.877"></a>
+<span class="sourceLineNo">878</span>  public boolean advance() {<a name="line.878"></a>
+<span class="sourceLineNo">879</span>    if (cells == null) return false;<a
name="line.879"></a>
+<span class="sourceLineNo">880</span>    return ++cellScannerIndex &lt; this.cells.length;<a
name="line.880"></a>
+<span class="sourceLineNo">881</span>  }<a name="line.881"></a>
+<span class="sourceLineNo">882</span><a name="line.882"></a>
+<span class="sourceLineNo">883</span>  public Boolean getExists() {<a name="line.883"></a>
+<span class="sourceLineNo">884</span>    return exists;<a name="line.884"></a>
+<span class="sourceLineNo">885</span>  }<a name="line.885"></a>
+<span class="sourceLineNo">886</span><a name="line.886"></a>
+<span class="sourceLineNo">887</span>  public void setExists(Boolean exists)
{<a name="line.887"></a>
+<span class="sourceLineNo">888</span>    checkReadonly();<a name="line.888"></a>
+<span class="sourceLineNo">889</span>    this.exists = exists;<a name="line.889"></a>
+<span class="sourceLineNo">890</span>  }<a name="line.890"></a>
+<span class="sourceLineNo">891</span><a name="line.891"></a>
+<span class="sourceLineNo">892</span>  /**<a name="line.892"></a>
+<span class="sourceLineNo">893</span>   * Whether or not the results are coming
from possibly stale data. Stale results<a name="line.893"></a>
+<span class="sourceLineNo">894</span>   * might be returned if {@link Consistency}
is not STRONG for the query.<a name="line.894"></a>
+<span class="sourceLineNo">895</span>   * @return Whether or not the results
are coming from possibly stale data.<a name="line.895"></a>
+<span class="sourceLineNo">896</span>   */<a name="line.896"></a>
+<span class="sourceLineNo">897</span>  public boolean isStale() {<a name="line.897"></a>
+<span class="sourceLineNo">898</span>    return stale;<a name="line.898"></a>
+<span class="sourceLineNo">899</span>  }<a name="line.899"></a>
+<span class="sourceLineNo">900</span><a name="line.900"></a>
+<span class="sourceLineNo">901</span>  /**<a name="line.901"></a>
+<span class="sourceLineNo">902</span>   * Whether or not the result is a partial
result. Partial results contain a subset of the cells<a name="line.902"></a>
+<span class="sourceLineNo">903</span>   * for a row and should be combined with
a result representing the remaining cells in that row to<a name="line.903"></a>
+<span class="sourceLineNo">904</span>   * form a complete (non-partial) result.<a
name="line.904"></a>
+<span class="sourceLineNo">905</span>   * @return Whether or not the result is
a partial result<a name="line.905"></a>
+<span class="sourceLineNo">906</span>   */<a name="line.906"></a>
+<span class="sourceLineNo">907</span>  public boolean isPartial() {<a name="line.907"></a>
+<span class="sourceLineNo">908</span>    return partial;<a name="line.908"></a>
+<span class="sourceLineNo">909</span>  }<a name="line.909"></a>
+<span class="sourceLineNo">910</span><a name="line.910"></a>
+<span class="sourceLineNo">911</span>  /**<a name="line.911"></a>
+<span class="sourceLineNo">912</span>   * Add load information about the region
to the information about the result<a name="line.912"></a>
+<span class="sourceLineNo">913</span>   * @param loadStats statistics about the
current region from which this was returned<a name="line.913"></a>
+<span class="sourceLineNo">914</span>   * @deprecated use {@link #setStatistics(ClientProtos.RegionLoadStats)}
instead<a name="line.914"></a>
+<span class="sourceLineNo">915</span>   * @throws UnsupportedOperationException
if invoked on instance of EMPTY_RESULT<a name="line.915"></a>
+<span class="sourceLineNo">916</span>   * (which is supposed to be immutable).<a
name="line.916"></a>
+<span class="sourceLineNo">917</span>   */<a name="line.917"></a>
+<span class="sourceLineNo">918</span>  @InterfaceAudience.Private<a name="line.918"></a>
+<span class="sourceLineNo">919</span>  @Deprecated<a name="line.919"></a>
+<span class="sourceLineNo">920</span>  public void addResults(ClientProtos.RegionLoadStats
loadStats) {<a name="line.920"></a>
+<span class="sourceLineNo">921</span>    checkReadonly();<a name="line.921"></a>
+<span class="sourceLineNo">922</span>    this.stats = loadStats;<a name="line.922"></a>
+<span class="sourceLineNo">923</span>  }<a name="line.923"></a>
+<span class="sourceLineNo">924</span><a name="line.924"></a>
+<span class="sourceLineNo">925</span>  /**<a name="line.925"></a>
+<span class="sourceLineNo">926</span>   * Set load information about the region
to the information about the result<a name="line.926"></a>
+<span class="sourceLineNo">927</span>   * @param loadStats statistics about the
current region from which this was returned<a name="line.927"></a>
+<span class="sourceLineNo">928</span>   */<a name="line.928"></a>
+<span class="sourceLineNo">929</span>  @InterfaceAudience.Private<a name="line.929"></a>
+<span class="sourceLineNo">930</span>  public void setStatistics(ClientProtos.RegionLoadStats
loadStats) {<a name="line.930"></a>
+<span class="sourceLineNo">931</span>    this.stats = loadStats;<a name="line.931"></a>
+<span class="sourceLineNo">932</span>  }<a name="line.932"></a>
+<span class="sourceLineNo">933</span><a name="line.933"></a>
+<span class="sourceLineNo">934</span>  /**<a name="line.934"></a>
+<span class="sourceLineNo">935</span>   * @return the associated statistics about
the region from which this was returned. Can be<a name="line.935"></a>
+<span class="sourceLineNo">936</span>   * &lt;tt&gt;null&lt;/tt&gt;
if stats are disabled.<a name="line.936"></a>
+<span class="sourceLineNo">937</span>   */<a name="line.937"></a>
+<span class="sourceLineNo">938</span>  public ClientProtos.RegionLoadStats getStats()
{<a name="line.938"></a>
+<span class="sourceLineNo">939</span>    return stats;<a name="line.939"></a>
+<span class="sourceLineNo">940</span>  }<a name="line.940"></a>
+<span class="sourceLineNo">941</span><a name="line.941"></a>
+<span class="sourceLineNo">942</span>  /**<a name="line.942"></a>
+<span class="sourceLineNo">943</span>   * All methods modifying state of Result
object must call this method<a name="line.943"></a>
+<span class="sourceLineNo">944</span>   * to ensure that special purpose immutable
Results can't be accidentally modified.<a name="line.944"></a>
+<span class="sourceLineNo">945</span>   */<a name="line.945"></a>
+<span class="sourceLineNo">946</span>  private void checkReadonly() {<a name="line.946"></a>
+<span class="sourceLineNo">947</span>    if (readonly == true) {<a name="line.947"></a>
+<span class="sourceLineNo">948</span>      throw new UnsupportedOperationException("Attempting
to modify readonly EMPTY_RESULT!");<a name="line.948"></a>
+<span class="sourceLineNo">949</span>    }<a name="line.949"></a>
+<span class="sourceLineNo">950</span>  }<a name="line.950"></a>
+<span class="sourceLineNo">951</span>}<a name="line.951"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/900a9477/book.html
----------------------------------------------------------------------
diff --git a/book.html b/book.html
index 63642a6..c3d02ad 100644
--- a/book.html
+++ b/book.html
@@ -3111,13 +3111,13 @@ Configuration that it is thought rare anyone would change can exist
only in code
 </dd>
 </dl>
 </div>
-<div id="hbase.hregion.percolumnfamilyflush.size.lower.bound" class="dlist">
+<div id="hbase.hregion.percolumnfamilyflush.size.lower.bound.min" class="dlist">
 <dl>
-<dt class="hdlist1"><code>hbase.hregion.percolumnfamilyflush.size.lower.bound</code></dt>
+<dt class="hdlist1"><code>hbase.hregion.percolumnfamilyflush.size.lower.bound.min</code></dt>
 <dd>
 <div class="paragraph">
 <div class="title">Description</div>
-<p>If FlushLargeStoresPolicy is used, then every time that we hit the total memstore
limit, we find out all the column families whose memstores exceed this value, and only flush
them, while retaining the others whose memstores are lower than this limit. If none of the
families have their memstore size more than this, all the memstores will be flushed (just
as usual). This value should be less than half of the total memstore threshold (hbase.hregion.memstore.flush.size).</p>
+<p>If FlushLargeStoresPolicy is used and there are multiple column families, then every
time that we hit the total memstore limit, we find out all the column families whose memstores
exceed a "lower bound" and only flush them while retaining the others in memory. The "lower
bound" will be "hbase.hregion.memstore.flush.size / column_family_number" by default unless
value of this property is larger than that. If none of the families have their memstore size
more than lower bound, all the memstores will be flushed (just as usual).</p>
 </div>
 <div class="paragraph">
 <div class="title">Default</div>
@@ -7756,7 +7756,7 @@ modeling on HBase.</p>
 <div class="content">
 <pre class="CodeRay highlight"><code data-lang="java"><span class="predefined-type">Configuration</span>
config = HBaseConfiguration.create();
 Admin admin = <span class="keyword">new</span> Admin(conf);
-<span class="predefined-type">String</span> table = <span class="string"><span
class="delimiter">&quot;</span><span class="content">myTable</span><span
class="delimiter">&quot;</span></span>;
+TableName table = TableName.valueOf(<span class="string"><span class="delimiter">&quot;</span><span
class="content">myTable</span><span class="delimiter">&quot;</span></span>);
 
 admin.disableTable(table);
 
@@ -17403,7 +17403,7 @@ the data, and deletes the table.</p>
 <div class="listingblock">
 <div class="content">
 <pre class="CodeRay highlight"><code data-lang="jython">import java.lang
-from org.apache.hadoop.hbase import HBaseConfiguration, HTableDescriptor, HColumnDescriptor,
HConstants
+from org.apache.hadoop.hbase import HBaseConfiguration, HTableDescriptor, HColumnDescriptor,
HConstants, TableName
 from org.apache.hadoop.hbase.client import HBaseAdmin, HTable, Get
 from org.apache.hadoop.hbase.io import Cell, RowResult
 
@@ -17415,7 +17415,7 @@ conf = HBaseConfiguration()
 # Create a table named 'test' that has two column families,
 # one named 'content, and the other 'anchor'.  The colons
 # are required for column family names.
-tablename = &quot;test&quot;
+tablename = TableName.valueOf(&quot;test&quot;)
 
 desc = HTableDescriptor(tablename)
 desc.addFamily(HColumnDescriptor(&quot;content:&quot;))
@@ -19030,7 +19030,7 @@ admin.enableTable(tableName);</code></pre>
 onwards.</p>
 <div class="listingblock">
 <div class="content">
-<pre class="CodeRay highlight"><code data-lang="java"><span class="predefined-type">String</span>
tableName = <span class="string"><span class="delimiter">&quot;</span><span
class="content">users</span><span class="delimiter">&quot;</span></span>;
+<pre class="CodeRay highlight"><code data-lang="java">TableName tableName = TableName.valueOf(<span
class="string"><span class="delimiter">&quot;</span><span class="content">users</span><span
class="delimiter">&quot;</span></span>);
 <span class="predefined-type">String</span> path = <span class="string"><span
class="delimiter">&quot;</span><span class="content">hdfs://&lt;namenode&gt;:&lt;port&gt;/user/&lt;hadoop-user&gt;/coprocessor.jar</span><span
class="delimiter">&quot;</span></span>;
 <span class="predefined-type">Configuration</span> conf = HBaseConfiguration.create();
 HBaseAdmin admin = <span class="keyword">new</span> HBaseAdmin(conf);
@@ -25762,7 +25762,7 @@ hbase shell&gt; drop 'tableName'</pre>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="CodeRay highlight"><code data-lang="java"><span class="type">void</span>
rename(Admin admin, <span class="predefined-type">String</span> oldTableName,
<span class="predefined-type">String</span> newTableName) {
+<pre class="CodeRay highlight"><code data-lang="java"><span class="type">void</span>
rename(Admin admin, <span class="predefined-type">String</span> oldTableName,
TableName newTableName) {
   <span class="predefined-type">String</span> snapshotName = randomName();
   admin.disableTable(oldTableName);
   admin.snapshot(snapshotName, oldTableName);
@@ -32882,7 +32882,7 @@ The server will return cellblocks compressed using this same compressor
as long
 <div id="footer">
 <div id="footer-text">
 Version 2.0.0-SNAPSHOT<br>
-Last updated 2015-12-10 14:52:36 UTC
+Last updated 2015-12-11 14:33:34 UTC
 </div>
 </div>
 </body>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/900a9477/bulk-loads.html
----------------------------------------------------------------------
diff --git a/bulk-loads.html b/bulk-loads.html
index ec675fc..a737f1f 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151210" />
+    <meta name="Date-Revision-yyyymmdd" content="20151211" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013;  
       Bulk Loads in Apache HBase (TM)
@@ -305,7 +305,7 @@ under the License. -->
                         <a href="http://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2015-12-10</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2015-12-11</li>
             </p>
                 </div>
 


Mime
View raw message