hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [44/51] [partial] hbase-site git commit: Published site at .
Date Thu, 24 Aug 2017 15:11:22 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4f1f2a0b/apidocs/org/apache/hadoop/hbase/replication/class-use/ReplicationException.html
----------------------------------------------------------------------
diff --git a/apidocs/org/apache/hadoop/hbase/replication/class-use/ReplicationException.html b/apidocs/org/apache/hadoop/hbase/replication/class-use/ReplicationException.html
index d50d155..e3e8ae5 100644
--- a/apidocs/org/apache/hadoop/hbase/replication/class-use/ReplicationException.html
+++ b/apidocs/org/apache/hadoop/hbase/replication/class-use/ReplicationException.html
@@ -183,18 +183,12 @@
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>void</code></td>
-<td class="colLast"><span class="typeNameLabel">ReplicationAdmin.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/replication/ReplicationAdmin.html#peerAdded-java.lang.String-">peerAdded</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</code>
-<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
-</td>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>void</code></td>
 <td class="colLast"><span class="typeNameLabel">ReplicationAdmin.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/replication/ReplicationAdmin.html#removePeerTableCFs-java.lang.String-java.util.Map-">removePeerTableCFs</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id,
                   <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,? extends <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&gt;&nbsp;tableCfs)</code>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>void</code></td>
 <td class="colLast"><span class="typeNameLabel">ReplicationAdmin.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/replication/ReplicationAdmin.html#removePeerTableCFs-java.lang.String-java.lang.String-">removePeerTableCFs</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id,
                   <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;tableCf)</code>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4f1f2a0b/apidocs/overview-tree.html
----------------------------------------------------------------------
diff --git a/apidocs/overview-tree.html b/apidocs/overview-tree.html
index 7a5e206..fa30006 100644
--- a/apidocs/overview-tree.html
+++ b/apidocs/overview-tree.html
@@ -716,6 +716,7 @@
 </li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncAdmin.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncAdmin</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncAdminBuilder</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncBufferedMutatorBuilder</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncTableBase.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncTableBase</span></a>
 <ul>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncTable.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncTable</span></a></li>
@@ -728,11 +729,13 @@
 <li type="circle">java.lang.<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">AutoCloseable</span></a>
 <ul>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/Admin.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">Admin</span></a> (also extends org.apache.hadoop.hbase.Abortable, java.io.<a href="http://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>)</li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncBufferedMutator.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncBufferedMutator</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncConnection.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncConnection</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/BufferedMutator.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">BufferedMutator</span></a></li>
 <li type="circle">java.io.<a href="http://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io"><span class="typeNameLink">Closeable</span></a>
 <ul>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/Admin.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">Admin</span></a> (also extends org.apache.hadoop.hbase.Abortable)</li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncBufferedMutator.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncBufferedMutator</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncConnection.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncConnection</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/BufferedMutator.html" title="interface in org.apache.hadoop.hbase.client"><span class="typeNameLink">BufferedMutator</span></a></li>
 <li type="circle">org.apache.hadoop.io.Closeable

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4f1f2a0b/apidocs/src-html/org/apache/hadoop/hbase/HColumnDescriptor.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/HColumnDescriptor.html b/apidocs/src-html/org/apache/hadoop/hbase/HColumnDescriptor.html
index 1198ee7..86163e2 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/HColumnDescriptor.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/HColumnDescriptor.html
@@ -647,190 +647,187 @@
 <span class="sourceLineNo">639</span>    if (this == obj) {<a name="line.639"></a>
 <span class="sourceLineNo">640</span>      return true;<a name="line.640"></a>
 <span class="sourceLineNo">641</span>    }<a name="line.641"></a>
-<span class="sourceLineNo">642</span>    if (obj == null) {<a name="line.642"></a>
-<span class="sourceLineNo">643</span>      return false;<a name="line.643"></a>
+<span class="sourceLineNo">642</span>    if (obj instanceof HColumnDescriptor) {<a name="line.642"></a>
+<span class="sourceLineNo">643</span>      return delegatee.equals(((HColumnDescriptor) obj).delegatee);<a name="line.643"></a>
 <span class="sourceLineNo">644</span>    }<a name="line.644"></a>
-<span class="sourceLineNo">645</span>    if (!(obj instanceof HColumnDescriptor)) {<a name="line.645"></a>
-<span class="sourceLineNo">646</span>      return false;<a name="line.646"></a>
-<span class="sourceLineNo">647</span>    }<a name="line.647"></a>
-<span class="sourceLineNo">648</span>    return compareTo((HColumnDescriptor)obj) == 0;<a name="line.648"></a>
-<span class="sourceLineNo">649</span>  }<a name="line.649"></a>
-<span class="sourceLineNo">650</span><a name="line.650"></a>
-<span class="sourceLineNo">651</span>  /**<a name="line.651"></a>
-<span class="sourceLineNo">652</span>   * @see java.lang.Object#hashCode()<a name="line.652"></a>
-<span class="sourceLineNo">653</span>   */<a name="line.653"></a>
-<span class="sourceLineNo">654</span>  @Override<a name="line.654"></a>
-<span class="sourceLineNo">655</span>  public int hashCode() {<a name="line.655"></a>
-<span class="sourceLineNo">656</span>    return delegatee.hashCode();<a name="line.656"></a>
-<span class="sourceLineNo">657</span>  }<a name="line.657"></a>
-<span class="sourceLineNo">658</span><a name="line.658"></a>
-<span class="sourceLineNo">659</span>  @Override<a name="line.659"></a>
-<span class="sourceLineNo">660</span>  public int compareTo(HColumnDescriptor other) {<a name="line.660"></a>
-<span class="sourceLineNo">661</span>    return delegatee.compareTo(other.delegatee);<a name="line.661"></a>
-<span class="sourceLineNo">662</span>  }<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span>  /**<a name="line.664"></a>
-<span class="sourceLineNo">665</span>   * @return This instance serialized with pb with pb magic prefix<a name="line.665"></a>
-<span class="sourceLineNo">666</span>   * @see #parseFrom(byte[])<a name="line.666"></a>
-<span class="sourceLineNo">667</span>   */<a name="line.667"></a>
-<span class="sourceLineNo">668</span>  public byte[] toByteArray() {<a name="line.668"></a>
-<span class="sourceLineNo">669</span>    return ColumnFamilyDescriptorBuilder.toByteArray(delegatee);<a name="line.669"></a>
-<span class="sourceLineNo">670</span>  }<a name="line.670"></a>
-<span class="sourceLineNo">671</span><a name="line.671"></a>
-<span class="sourceLineNo">672</span>  /**<a name="line.672"></a>
-<span class="sourceLineNo">673</span>   * @param bytes A pb serialized {@link HColumnDescriptor} instance with pb magic prefix<a name="line.673"></a>
-<span class="sourceLineNo">674</span>   * @return An instance of {@link HColumnDescriptor} made from &lt;code&gt;bytes&lt;/code&gt;<a name="line.674"></a>
-<span class="sourceLineNo">675</span>   * @throws DeserializationException<a name="line.675"></a>
-<span class="sourceLineNo">676</span>   * @see #toByteArray()<a name="line.676"></a>
-<span class="sourceLineNo">677</span>   */<a name="line.677"></a>
-<span class="sourceLineNo">678</span>  public static HColumnDescriptor parseFrom(final byte [] bytes) throws DeserializationException {<a name="line.678"></a>
-<span class="sourceLineNo">679</span>    ColumnFamilyDescriptor desc = ColumnFamilyDescriptorBuilder.parseFrom(bytes);<a name="line.679"></a>
-<span class="sourceLineNo">680</span>    if (desc instanceof ModifyableColumnFamilyDescriptor) {<a name="line.680"></a>
-<span class="sourceLineNo">681</span>      return new HColumnDescriptor((ModifyableColumnFamilyDescriptor) desc);<a name="line.681"></a>
-<span class="sourceLineNo">682</span>    } else {<a name="line.682"></a>
-<span class="sourceLineNo">683</span>      return new HColumnDescriptor(new ModifyableColumnFamilyDescriptor(desc));<a name="line.683"></a>
-<span class="sourceLineNo">684</span>    }<a name="line.684"></a>
-<span class="sourceLineNo">685</span>  }<a name="line.685"></a>
-<span class="sourceLineNo">686</span><a name="line.686"></a>
-<span class="sourceLineNo">687</span>  @Override<a name="line.687"></a>
-<span class="sourceLineNo">688</span>  public String getConfigurationValue(String key) {<a name="line.688"></a>
-<span class="sourceLineNo">689</span>    return delegatee.getConfigurationValue(key);<a name="line.689"></a>
-<span class="sourceLineNo">690</span>  }<a name="line.690"></a>
-<span class="sourceLineNo">691</span><a name="line.691"></a>
-<span class="sourceLineNo">692</span>  @Override<a name="line.692"></a>
-<span class="sourceLineNo">693</span>  public Map&lt;String, String&gt; getConfiguration() {<a name="line.693"></a>
-<span class="sourceLineNo">694</span>    return delegatee.getConfiguration();<a name="line.694"></a>
-<span class="sourceLineNo">695</span>  }<a name="line.695"></a>
-<span class="sourceLineNo">696</span><a name="line.696"></a>
-<span class="sourceLineNo">697</span>  /**<a name="line.697"></a>
-<span class="sourceLineNo">698</span>   * Setter for storing a configuration setting.<a name="line.698"></a>
-<span class="sourceLineNo">699</span>   * @param key Config key. Same as XML config key e.g. hbase.something.or.other.<a name="line.699"></a>
-<span class="sourceLineNo">700</span>   * @param value String value. If null, removes the configuration.<a name="line.700"></a>
-<span class="sourceLineNo">701</span>   */<a name="line.701"></a>
-<span class="sourceLineNo">702</span>  public HColumnDescriptor setConfiguration(String key, String value) {<a name="line.702"></a>
-<span class="sourceLineNo">703</span>    getDelegateeForModification().setConfiguration(key, value);<a name="line.703"></a>
-<span class="sourceLineNo">704</span>    return this;<a name="line.704"></a>
-<span class="sourceLineNo">705</span>  }<a name="line.705"></a>
-<span class="sourceLineNo">706</span><a name="line.706"></a>
-<span class="sourceLineNo">707</span>  /**<a name="line.707"></a>
-<span class="sourceLineNo">708</span>   * Remove a configuration setting represented by the key.<a name="line.708"></a>
-<span class="sourceLineNo">709</span>   */<a name="line.709"></a>
-<span class="sourceLineNo">710</span>  public HColumnDescriptor removeConfiguration(final String key) {<a name="line.710"></a>
-<span class="sourceLineNo">711</span>    getDelegateeForModification().removeConfiguration(key);<a name="line.711"></a>
-<span class="sourceLineNo">712</span>    return this;<a name="line.712"></a>
-<span class="sourceLineNo">713</span>  }<a name="line.713"></a>
-<span class="sourceLineNo">714</span><a name="line.714"></a>
-<span class="sourceLineNo">715</span>  @Override<a name="line.715"></a>
-<span class="sourceLineNo">716</span>  public String getEncryptionType() {<a name="line.716"></a>
-<span class="sourceLineNo">717</span>    return delegatee.getEncryptionType();<a name="line.717"></a>
-<span class="sourceLineNo">718</span>  }<a name="line.718"></a>
-<span class="sourceLineNo">719</span><a name="line.719"></a>
-<span class="sourceLineNo">720</span>  /**<a name="line.720"></a>
-<span class="sourceLineNo">721</span>   * Set the encryption algorithm for use with this family<a name="line.721"></a>
-<span class="sourceLineNo">722</span>   * @param value<a name="line.722"></a>
-<span class="sourceLineNo">723</span>   */<a name="line.723"></a>
-<span class="sourceLineNo">724</span>  public HColumnDescriptor setEncryptionType(String value) {<a name="line.724"></a>
-<span class="sourceLineNo">725</span>    getDelegateeForModification().setEncryptionType(value);<a name="line.725"></a>
-<span class="sourceLineNo">726</span>    return this;<a name="line.726"></a>
-<span class="sourceLineNo">727</span>  }<a name="line.727"></a>
-<span class="sourceLineNo">728</span><a name="line.728"></a>
-<span class="sourceLineNo">729</span>  @Override<a name="line.729"></a>
-<span class="sourceLineNo">730</span>  public byte[] getEncryptionKey() {<a name="line.730"></a>
-<span class="sourceLineNo">731</span>    return delegatee.getEncryptionKey();<a name="line.731"></a>
-<span class="sourceLineNo">732</span>  }<a name="line.732"></a>
-<span class="sourceLineNo">733</span><a name="line.733"></a>
-<span class="sourceLineNo">734</span>  /** Set the raw crypto key attribute for the family */<a name="line.734"></a>
-<span class="sourceLineNo">735</span>  public HColumnDescriptor setEncryptionKey(byte[] value) {<a name="line.735"></a>
-<span class="sourceLineNo">736</span>    getDelegateeForModification().setEncryptionKey(value);<a name="line.736"></a>
-<span class="sourceLineNo">737</span>    return this;<a name="line.737"></a>
-<span class="sourceLineNo">738</span>  }<a name="line.738"></a>
-<span class="sourceLineNo">739</span><a name="line.739"></a>
-<span class="sourceLineNo">740</span>  @Override<a name="line.740"></a>
-<span class="sourceLineNo">741</span>  public long getMobThreshold() {<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    return delegatee.getMobThreshold();<a name="line.742"></a>
-<span class="sourceLineNo">743</span>  }<a name="line.743"></a>
-<span class="sourceLineNo">744</span><a name="line.744"></a>
-<span class="sourceLineNo">745</span>  /**<a name="line.745"></a>
-<span class="sourceLineNo">746</span>   * Sets the mob threshold of the family.<a name="line.746"></a>
-<span class="sourceLineNo">747</span>   * @param value The mob threshold.<a name="line.747"></a>
-<span class="sourceLineNo">748</span>   * @return this (for chained invocation)<a name="line.748"></a>
-<span class="sourceLineNo">749</span>   */<a name="line.749"></a>
-<span class="sourceLineNo">750</span>  public HColumnDescriptor setMobThreshold(long value) {<a name="line.750"></a>
-<span class="sourceLineNo">751</span>    getDelegateeForModification().setMobThreshold(value);<a name="line.751"></a>
-<span class="sourceLineNo">752</span>    return this;<a name="line.752"></a>
-<span class="sourceLineNo">753</span>  }<a name="line.753"></a>
-<span class="sourceLineNo">754</span><a name="line.754"></a>
-<span class="sourceLineNo">755</span>  @Override<a name="line.755"></a>
-<span class="sourceLineNo">756</span>  public boolean isMobEnabled() {<a name="line.756"></a>
-<span class="sourceLineNo">757</span>    return delegatee.isMobEnabled();<a name="line.757"></a>
-<span class="sourceLineNo">758</span>  }<a name="line.758"></a>
-<span class="sourceLineNo">759</span><a name="line.759"></a>
-<span class="sourceLineNo">760</span>  /**<a name="line.760"></a>
-<span class="sourceLineNo">761</span>   * Enables the mob for the family.<a name="line.761"></a>
-<span class="sourceLineNo">762</span>   * @param value Whether to enable the mob for the family.<a name="line.762"></a>
-<span class="sourceLineNo">763</span>   * @return this (for chained invocation)<a name="line.763"></a>
-<span class="sourceLineNo">764</span>   */<a name="line.764"></a>
-<span class="sourceLineNo">765</span>  public HColumnDescriptor setMobEnabled(boolean value) {<a name="line.765"></a>
-<span class="sourceLineNo">766</span>    getDelegateeForModification().setMobEnabled(value);<a name="line.766"></a>
-<span class="sourceLineNo">767</span>    return this;<a name="line.767"></a>
-<span class="sourceLineNo">768</span>  }<a name="line.768"></a>
-<span class="sourceLineNo">769</span><a name="line.769"></a>
-<span class="sourceLineNo">770</span>  @Override<a name="line.770"></a>
-<span class="sourceLineNo">771</span>  public MobCompactPartitionPolicy getMobCompactPartitionPolicy() {<a name="line.771"></a>
-<span class="sourceLineNo">772</span>    return delegatee.getMobCompactPartitionPolicy();<a name="line.772"></a>
-<span class="sourceLineNo">773</span>  }<a name="line.773"></a>
-<span class="sourceLineNo">774</span><a name="line.774"></a>
-<span class="sourceLineNo">775</span>  /**<a name="line.775"></a>
-<span class="sourceLineNo">776</span>   * Set the mob compact partition policy for the family.<a name="line.776"></a>
-<span class="sourceLineNo">777</span>   * @param value policy type<a name="line.777"></a>
-<span class="sourceLineNo">778</span>   * @return this (for chained invocation)<a name="line.778"></a>
-<span class="sourceLineNo">779</span>   */<a name="line.779"></a>
-<span class="sourceLineNo">780</span>  public HColumnDescriptor setMobCompactPartitionPolicy(MobCompactPartitionPolicy value) {<a name="line.780"></a>
-<span class="sourceLineNo">781</span>    getDelegateeForModification().setMobCompactPartitionPolicy(value);<a name="line.781"></a>
-<span class="sourceLineNo">782</span>    return this;<a name="line.782"></a>
-<span class="sourceLineNo">783</span>  }<a name="line.783"></a>
-<span class="sourceLineNo">784</span><a name="line.784"></a>
-<span class="sourceLineNo">785</span>  @Override<a name="line.785"></a>
-<span class="sourceLineNo">786</span>  public short getDFSReplication() {<a name="line.786"></a>
-<span class="sourceLineNo">787</span>    return delegatee.getDFSReplication();<a name="line.787"></a>
-<span class="sourceLineNo">788</span>  }<a name="line.788"></a>
-<span class="sourceLineNo">789</span><a name="line.789"></a>
-<span class="sourceLineNo">790</span>  /**<a name="line.790"></a>
-<span class="sourceLineNo">791</span>   * Set the replication factor to hfile(s) belonging to this family<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   * @param value number of replicas the blocks(s) belonging to this CF should have, or<a name="line.792"></a>
-<span class="sourceLineNo">793</span>   *          {@link #DEFAULT_DFS_REPLICATION} for the default replication factor set in the<a name="line.793"></a>
-<span class="sourceLineNo">794</span>   *          filesystem<a name="line.794"></a>
-<span class="sourceLineNo">795</span>   * @return this (for chained invocation)<a name="line.795"></a>
-<span class="sourceLineNo">796</span>   */<a name="line.796"></a>
-<span class="sourceLineNo">797</span>  public HColumnDescriptor setDFSReplication(short value) {<a name="line.797"></a>
-<span class="sourceLineNo">798</span>    getDelegateeForModification().setDFSReplication(value);<a name="line.798"></a>
-<span class="sourceLineNo">799</span>    return this;<a name="line.799"></a>
-<span class="sourceLineNo">800</span>  }<a name="line.800"></a>
-<span class="sourceLineNo">801</span><a name="line.801"></a>
-<span class="sourceLineNo">802</span>  @Override<a name="line.802"></a>
-<span class="sourceLineNo">803</span>  public String getStoragePolicy() {<a name="line.803"></a>
-<span class="sourceLineNo">804</span>    return delegatee.getStoragePolicy();<a name="line.804"></a>
-<span class="sourceLineNo">805</span>  }<a name="line.805"></a>
-<span class="sourceLineNo">806</span><a name="line.806"></a>
-<span class="sourceLineNo">807</span>  /**<a name="line.807"></a>
-<span class="sourceLineNo">808</span>   * Set the storage policy for use with this family<a name="line.808"></a>
-<span class="sourceLineNo">809</span>   * @param value the policy to set, valid setting includes: &lt;i&gt;"LAZY_PERSIST"&lt;/i&gt;,<a name="line.809"></a>
-<span class="sourceLineNo">810</span>   *          &lt;i&gt;"ALL_SSD"&lt;/i&gt;, &lt;i&gt;"ONE_SSD"&lt;/i&gt;, &lt;i&gt;"HOT"&lt;/i&gt;, &lt;i&gt;"WARM"&lt;/i&gt;, &lt;i&gt;"COLD"&lt;/i&gt;<a name="line.810"></a>
-<span class="sourceLineNo">811</span>   */<a name="line.811"></a>
-<span class="sourceLineNo">812</span>  public HColumnDescriptor setStoragePolicy(String value) {<a name="line.812"></a>
-<span class="sourceLineNo">813</span>    getDelegateeForModification().setStoragePolicy(value);<a name="line.813"></a>
-<span class="sourceLineNo">814</span>    return this;<a name="line.814"></a>
-<span class="sourceLineNo">815</span>  }<a name="line.815"></a>
-<span class="sourceLineNo">816</span><a name="line.816"></a>
-<span class="sourceLineNo">817</span>  @Override<a name="line.817"></a>
-<span class="sourceLineNo">818</span>  public Bytes getValue(Bytes key) {<a name="line.818"></a>
-<span class="sourceLineNo">819</span>    return delegatee.getValue(key);<a name="line.819"></a>
-<span class="sourceLineNo">820</span>  }<a name="line.820"></a>
-<span class="sourceLineNo">821</span><a name="line.821"></a>
-<span class="sourceLineNo">822</span>  protected ModifyableColumnFamilyDescriptor getDelegateeForModification() {<a name="line.822"></a>
-<span class="sourceLineNo">823</span>    return delegatee;<a name="line.823"></a>
-<span class="sourceLineNo">824</span>  }<a name="line.824"></a>
-<span class="sourceLineNo">825</span>}<a name="line.825"></a>
+<span class="sourceLineNo">645</span>    return false;<a name="line.645"></a>
+<span class="sourceLineNo">646</span>  }<a name="line.646"></a>
+<span class="sourceLineNo">647</span><a name="line.647"></a>
+<span class="sourceLineNo">648</span>  /**<a name="line.648"></a>
+<span class="sourceLineNo">649</span>   * @see java.lang.Object#hashCode()<a name="line.649"></a>
+<span class="sourceLineNo">650</span>   */<a name="line.650"></a>
+<span class="sourceLineNo">651</span>  @Override<a name="line.651"></a>
+<span class="sourceLineNo">652</span>  public int hashCode() {<a name="line.652"></a>
+<span class="sourceLineNo">653</span>    return delegatee.hashCode();<a name="line.653"></a>
+<span class="sourceLineNo">654</span>  }<a name="line.654"></a>
+<span class="sourceLineNo">655</span><a name="line.655"></a>
+<span class="sourceLineNo">656</span>  @Override<a name="line.656"></a>
+<span class="sourceLineNo">657</span>  public int compareTo(HColumnDescriptor other) {<a name="line.657"></a>
+<span class="sourceLineNo">658</span>    return COMPARATOR.compare(this, other);<a name="line.658"></a>
+<span class="sourceLineNo">659</span>  }<a name="line.659"></a>
+<span class="sourceLineNo">660</span><a name="line.660"></a>
+<span class="sourceLineNo">661</span>  /**<a name="line.661"></a>
+<span class="sourceLineNo">662</span>   * @return This instance serialized with pb with pb magic prefix<a name="line.662"></a>
+<span class="sourceLineNo">663</span>   * @see #parseFrom(byte[])<a name="line.663"></a>
+<span class="sourceLineNo">664</span>   */<a name="line.664"></a>
+<span class="sourceLineNo">665</span>  public byte[] toByteArray() {<a name="line.665"></a>
+<span class="sourceLineNo">666</span>    return ColumnFamilyDescriptorBuilder.toByteArray(delegatee);<a name="line.666"></a>
+<span class="sourceLineNo">667</span>  }<a name="line.667"></a>
+<span class="sourceLineNo">668</span><a name="line.668"></a>
+<span class="sourceLineNo">669</span>  /**<a name="line.669"></a>
+<span class="sourceLineNo">670</span>   * @param bytes A pb serialized {@link HColumnDescriptor} instance with pb magic prefix<a name="line.670"></a>
+<span class="sourceLineNo">671</span>   * @return An instance of {@link HColumnDescriptor} made from &lt;code&gt;bytes&lt;/code&gt;<a name="line.671"></a>
+<span class="sourceLineNo">672</span>   * @throws DeserializationException<a name="line.672"></a>
+<span class="sourceLineNo">673</span>   * @see #toByteArray()<a name="line.673"></a>
+<span class="sourceLineNo">674</span>   */<a name="line.674"></a>
+<span class="sourceLineNo">675</span>  public static HColumnDescriptor parseFrom(final byte [] bytes) throws DeserializationException {<a name="line.675"></a>
+<span class="sourceLineNo">676</span>    ColumnFamilyDescriptor desc = ColumnFamilyDescriptorBuilder.parseFrom(bytes);<a name="line.676"></a>
+<span class="sourceLineNo">677</span>    if (desc instanceof ModifyableColumnFamilyDescriptor) {<a name="line.677"></a>
+<span class="sourceLineNo">678</span>      return new HColumnDescriptor((ModifyableColumnFamilyDescriptor) desc);<a name="line.678"></a>
+<span class="sourceLineNo">679</span>    } else {<a name="line.679"></a>
+<span class="sourceLineNo">680</span>      return new HColumnDescriptor(new ModifyableColumnFamilyDescriptor(desc));<a name="line.680"></a>
+<span class="sourceLineNo">681</span>    }<a name="line.681"></a>
+<span class="sourceLineNo">682</span>  }<a name="line.682"></a>
+<span class="sourceLineNo">683</span><a name="line.683"></a>
+<span class="sourceLineNo">684</span>  @Override<a name="line.684"></a>
+<span class="sourceLineNo">685</span>  public String getConfigurationValue(String key) {<a name="line.685"></a>
+<span class="sourceLineNo">686</span>    return delegatee.getConfigurationValue(key);<a name="line.686"></a>
+<span class="sourceLineNo">687</span>  }<a name="line.687"></a>
+<span class="sourceLineNo">688</span><a name="line.688"></a>
+<span class="sourceLineNo">689</span>  @Override<a name="line.689"></a>
+<span class="sourceLineNo">690</span>  public Map&lt;String, String&gt; getConfiguration() {<a name="line.690"></a>
+<span class="sourceLineNo">691</span>    return delegatee.getConfiguration();<a name="line.691"></a>
+<span class="sourceLineNo">692</span>  }<a name="line.692"></a>
+<span class="sourceLineNo">693</span><a name="line.693"></a>
+<span class="sourceLineNo">694</span>  /**<a name="line.694"></a>
+<span class="sourceLineNo">695</span>   * Setter for storing a configuration setting.<a name="line.695"></a>
+<span class="sourceLineNo">696</span>   * @param key Config key. Same as XML config key e.g. hbase.something.or.other.<a name="line.696"></a>
+<span class="sourceLineNo">697</span>   * @param value String value. If null, removes the configuration.<a name="line.697"></a>
+<span class="sourceLineNo">698</span>   */<a name="line.698"></a>
+<span class="sourceLineNo">699</span>  public HColumnDescriptor setConfiguration(String key, String value) {<a name="line.699"></a>
+<span class="sourceLineNo">700</span>    getDelegateeForModification().setConfiguration(key, value);<a name="line.700"></a>
+<span class="sourceLineNo">701</span>    return this;<a name="line.701"></a>
+<span class="sourceLineNo">702</span>  }<a name="line.702"></a>
+<span class="sourceLineNo">703</span><a name="line.703"></a>
+<span class="sourceLineNo">704</span>  /**<a name="line.704"></a>
+<span class="sourceLineNo">705</span>   * Remove a configuration setting represented by the key.<a name="line.705"></a>
+<span class="sourceLineNo">706</span>   */<a name="line.706"></a>
+<span class="sourceLineNo">707</span>  public HColumnDescriptor removeConfiguration(final String key) {<a name="line.707"></a>
+<span class="sourceLineNo">708</span>    getDelegateeForModification().removeConfiguration(key);<a name="line.708"></a>
+<span class="sourceLineNo">709</span>    return this;<a name="line.709"></a>
+<span class="sourceLineNo">710</span>  }<a name="line.710"></a>
+<span class="sourceLineNo">711</span><a name="line.711"></a>
+<span class="sourceLineNo">712</span>  @Override<a name="line.712"></a>
+<span class="sourceLineNo">713</span>  public String getEncryptionType() {<a name="line.713"></a>
+<span class="sourceLineNo">714</span>    return delegatee.getEncryptionType();<a name="line.714"></a>
+<span class="sourceLineNo">715</span>  }<a name="line.715"></a>
+<span class="sourceLineNo">716</span><a name="line.716"></a>
+<span class="sourceLineNo">717</span>  /**<a name="line.717"></a>
+<span class="sourceLineNo">718</span>   * Set the encryption algorithm for use with this family<a name="line.718"></a>
+<span class="sourceLineNo">719</span>   * @param value<a name="line.719"></a>
+<span class="sourceLineNo">720</span>   */<a name="line.720"></a>
+<span class="sourceLineNo">721</span>  public HColumnDescriptor setEncryptionType(String value) {<a name="line.721"></a>
+<span class="sourceLineNo">722</span>    getDelegateeForModification().setEncryptionType(value);<a name="line.722"></a>
+<span class="sourceLineNo">723</span>    return this;<a name="line.723"></a>
+<span class="sourceLineNo">724</span>  }<a name="line.724"></a>
+<span class="sourceLineNo">725</span><a name="line.725"></a>
+<span class="sourceLineNo">726</span>  @Override<a name="line.726"></a>
+<span class="sourceLineNo">727</span>  public byte[] getEncryptionKey() {<a name="line.727"></a>
+<span class="sourceLineNo">728</span>    return delegatee.getEncryptionKey();<a name="line.728"></a>
+<span class="sourceLineNo">729</span>  }<a name="line.729"></a>
+<span class="sourceLineNo">730</span><a name="line.730"></a>
+<span class="sourceLineNo">731</span>  /** Set the raw crypto key attribute for the family */<a name="line.731"></a>
+<span class="sourceLineNo">732</span>  public HColumnDescriptor setEncryptionKey(byte[] value) {<a name="line.732"></a>
+<span class="sourceLineNo">733</span>    getDelegateeForModification().setEncryptionKey(value);<a name="line.733"></a>
+<span class="sourceLineNo">734</span>    return this;<a name="line.734"></a>
+<span class="sourceLineNo">735</span>  }<a name="line.735"></a>
+<span class="sourceLineNo">736</span><a name="line.736"></a>
+<span class="sourceLineNo">737</span>  @Override<a name="line.737"></a>
+<span class="sourceLineNo">738</span>  public long getMobThreshold() {<a name="line.738"></a>
+<span class="sourceLineNo">739</span>    return delegatee.getMobThreshold();<a name="line.739"></a>
+<span class="sourceLineNo">740</span>  }<a name="line.740"></a>
+<span class="sourceLineNo">741</span><a name="line.741"></a>
+<span class="sourceLineNo">742</span>  /**<a name="line.742"></a>
+<span class="sourceLineNo">743</span>   * Sets the mob threshold of the family.<a name="line.743"></a>
+<span class="sourceLineNo">744</span>   * @param value The mob threshold.<a name="line.744"></a>
+<span class="sourceLineNo">745</span>   * @return this (for chained invocation)<a name="line.745"></a>
+<span class="sourceLineNo">746</span>   */<a name="line.746"></a>
+<span class="sourceLineNo">747</span>  public HColumnDescriptor setMobThreshold(long value) {<a name="line.747"></a>
+<span class="sourceLineNo">748</span>    getDelegateeForModification().setMobThreshold(value);<a name="line.748"></a>
+<span class="sourceLineNo">749</span>    return this;<a name="line.749"></a>
+<span class="sourceLineNo">750</span>  }<a name="line.750"></a>
+<span class="sourceLineNo">751</span><a name="line.751"></a>
+<span class="sourceLineNo">752</span>  @Override<a name="line.752"></a>
+<span class="sourceLineNo">753</span>  public boolean isMobEnabled() {<a name="line.753"></a>
+<span class="sourceLineNo">754</span>    return delegatee.isMobEnabled();<a name="line.754"></a>
+<span class="sourceLineNo">755</span>  }<a name="line.755"></a>
+<span class="sourceLineNo">756</span><a name="line.756"></a>
+<span class="sourceLineNo">757</span>  /**<a name="line.757"></a>
+<span class="sourceLineNo">758</span>   * Enables the mob for the family.<a name="line.758"></a>
+<span class="sourceLineNo">759</span>   * @param value Whether to enable the mob for the family.<a name="line.759"></a>
+<span class="sourceLineNo">760</span>   * @return this (for chained invocation)<a name="line.760"></a>
+<span class="sourceLineNo">761</span>   */<a name="line.761"></a>
+<span class="sourceLineNo">762</span>  public HColumnDescriptor setMobEnabled(boolean value) {<a name="line.762"></a>
+<span class="sourceLineNo">763</span>    getDelegateeForModification().setMobEnabled(value);<a name="line.763"></a>
+<span class="sourceLineNo">764</span>    return this;<a name="line.764"></a>
+<span class="sourceLineNo">765</span>  }<a name="line.765"></a>
+<span class="sourceLineNo">766</span><a name="line.766"></a>
+<span class="sourceLineNo">767</span>  @Override<a name="line.767"></a>
+<span class="sourceLineNo">768</span>  public MobCompactPartitionPolicy getMobCompactPartitionPolicy() {<a name="line.768"></a>
+<span class="sourceLineNo">769</span>    return delegatee.getMobCompactPartitionPolicy();<a name="line.769"></a>
+<span class="sourceLineNo">770</span>  }<a name="line.770"></a>
+<span class="sourceLineNo">771</span><a name="line.771"></a>
+<span class="sourceLineNo">772</span>  /**<a name="line.772"></a>
+<span class="sourceLineNo">773</span>   * Set the mob compact partition policy for the family.<a name="line.773"></a>
+<span class="sourceLineNo">774</span>   * @param value policy type<a name="line.774"></a>
+<span class="sourceLineNo">775</span>   * @return this (for chained invocation)<a name="line.775"></a>
+<span class="sourceLineNo">776</span>   */<a name="line.776"></a>
+<span class="sourceLineNo">777</span>  public HColumnDescriptor setMobCompactPartitionPolicy(MobCompactPartitionPolicy value) {<a name="line.777"></a>
+<span class="sourceLineNo">778</span>    getDelegateeForModification().setMobCompactPartitionPolicy(value);<a name="line.778"></a>
+<span class="sourceLineNo">779</span>    return this;<a name="line.779"></a>
+<span class="sourceLineNo">780</span>  }<a name="line.780"></a>
+<span class="sourceLineNo">781</span><a name="line.781"></a>
+<span class="sourceLineNo">782</span>  @Override<a name="line.782"></a>
+<span class="sourceLineNo">783</span>  public short getDFSReplication() {<a name="line.783"></a>
+<span class="sourceLineNo">784</span>    return delegatee.getDFSReplication();<a name="line.784"></a>
+<span class="sourceLineNo">785</span>  }<a name="line.785"></a>
+<span class="sourceLineNo">786</span><a name="line.786"></a>
+<span class="sourceLineNo">787</span>  /**<a name="line.787"></a>
+<span class="sourceLineNo">788</span>   * Set the replication factor to hfile(s) belonging to this family<a name="line.788"></a>
+<span class="sourceLineNo">789</span>   * @param value number of replicas the blocks(s) belonging to this CF should have, or<a name="line.789"></a>
+<span class="sourceLineNo">790</span>   *          {@link #DEFAULT_DFS_REPLICATION} for the default replication factor set in the<a name="line.790"></a>
+<span class="sourceLineNo">791</span>   *          filesystem<a name="line.791"></a>
+<span class="sourceLineNo">792</span>   * @return this (for chained invocation)<a name="line.792"></a>
+<span class="sourceLineNo">793</span>   */<a name="line.793"></a>
+<span class="sourceLineNo">794</span>  public HColumnDescriptor setDFSReplication(short value) {<a name="line.794"></a>
+<span class="sourceLineNo">795</span>    getDelegateeForModification().setDFSReplication(value);<a name="line.795"></a>
+<span class="sourceLineNo">796</span>    return this;<a name="line.796"></a>
+<span class="sourceLineNo">797</span>  }<a name="line.797"></a>
+<span class="sourceLineNo">798</span><a name="line.798"></a>
+<span class="sourceLineNo">799</span>  @Override<a name="line.799"></a>
+<span class="sourceLineNo">800</span>  public String getStoragePolicy() {<a name="line.800"></a>
+<span class="sourceLineNo">801</span>    return delegatee.getStoragePolicy();<a name="line.801"></a>
+<span class="sourceLineNo">802</span>  }<a name="line.802"></a>
+<span class="sourceLineNo">803</span><a name="line.803"></a>
+<span class="sourceLineNo">804</span>  /**<a name="line.804"></a>
+<span class="sourceLineNo">805</span>   * Set the storage policy for use with this family<a name="line.805"></a>
+<span class="sourceLineNo">806</span>   * @param value the policy to set, valid setting includes: &lt;i&gt;"LAZY_PERSIST"&lt;/i&gt;,<a name="line.806"></a>
+<span class="sourceLineNo">807</span>   *          &lt;i&gt;"ALL_SSD"&lt;/i&gt;, &lt;i&gt;"ONE_SSD"&lt;/i&gt;, &lt;i&gt;"HOT"&lt;/i&gt;, &lt;i&gt;"WARM"&lt;/i&gt;, &lt;i&gt;"COLD"&lt;/i&gt;<a name="line.807"></a>
+<span class="sourceLineNo">808</span>   */<a name="line.808"></a>
+<span class="sourceLineNo">809</span>  public HColumnDescriptor setStoragePolicy(String value) {<a name="line.809"></a>
+<span class="sourceLineNo">810</span>    getDelegateeForModification().setStoragePolicy(value);<a name="line.810"></a>
+<span class="sourceLineNo">811</span>    return this;<a name="line.811"></a>
+<span class="sourceLineNo">812</span>  }<a name="line.812"></a>
+<span class="sourceLineNo">813</span><a name="line.813"></a>
+<span class="sourceLineNo">814</span>  @Override<a name="line.814"></a>
+<span class="sourceLineNo">815</span>  public Bytes getValue(Bytes key) {<a name="line.815"></a>
+<span class="sourceLineNo">816</span>    return delegatee.getValue(key);<a name="line.816"></a>
+<span class="sourceLineNo">817</span>  }<a name="line.817"></a>
+<span class="sourceLineNo">818</span><a name="line.818"></a>
+<span class="sourceLineNo">819</span>  protected ModifyableColumnFamilyDescriptor getDelegateeForModification() {<a name="line.819"></a>
+<span class="sourceLineNo">820</span>    return delegatee;<a name="line.820"></a>
+<span class="sourceLineNo">821</span>  }<a name="line.821"></a>
+<span class="sourceLineNo">822</span>}<a name="line.822"></a>
 
 
 


Mime
View raw message