hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [42/51] [partial] hbase-site git commit: Published site at .
Date Wed, 16 Aug 2017 15:07:03 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1ada5f22/apidocs/src-html/org/apache/hadoop/hbase/HTableDescriptor.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/HTableDescriptor.html b/apidocs/src-html/org/apache/hadoop/hbase/HTableDescriptor.html
index 19ef87b..a4266b6 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/HTableDescriptor.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/HTableDescriptor.html
@@ -52,7 +52,7 @@
 <span class="sourceLineNo">044</span> * if the table is read only, the maximum size of the memstore,<a name="line.44"></a>
 <span class="sourceLineNo">045</span> * when the region split should occur, coprocessors associated with it etc...<a name="line.45"></a>
 <span class="sourceLineNo">046</span> * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.46"></a>
-<span class="sourceLineNo">047</span> *             use {@link TableDescriptorBuilder} to build {@link HTableDescriptor}.<a name="line.47"></a>
+<span class="sourceLineNo">047</span> *             Use {@link TableDescriptorBuilder} to build {@link HTableDescriptor}.<a name="line.47"></a>
 <span class="sourceLineNo">048</span> */<a name="line.48"></a>
 <span class="sourceLineNo">049</span>@Deprecated<a name="line.49"></a>
 <span class="sourceLineNo">050</span>@InterfaceAudience.Public<a name="line.50"></a>
@@ -610,282 +610,286 @@
 <span class="sourceLineNo">602</span>   * HTableDescriptor contains mapping of family name to HColumnDescriptors.<a name="line.602"></a>
 <span class="sourceLineNo">603</span>   * This returns all the keys of the family map which represents the column<a name="line.603"></a>
 <span class="sourceLineNo">604</span>   * family names of the table.<a name="line.604"></a>
-<span class="sourceLineNo">605</span>   * @return Immutable sorted set of the keys of the families.<a name="line.605"></a>
-<span class="sourceLineNo">606</span>   * @deprecated Use {@link #getColumnFamilyNames()}.<a name="line.606"></a>
-<span class="sourceLineNo">607</span>   */<a name="line.607"></a>
-<span class="sourceLineNo">608</span>  public Set&lt;byte[]&gt; getFamiliesKeys() {<a name="line.608"></a>
-<span class="sourceLineNo">609</span>    return delegatee.getColumnFamilyNames();<a name="line.609"></a>
-<span class="sourceLineNo">610</span>  }<a name="line.610"></a>
-<span class="sourceLineNo">611</span><a name="line.611"></a>
-<span class="sourceLineNo">612</span>  /**<a name="line.612"></a>
-<span class="sourceLineNo">613</span>   * Returns the count of the column families of the table.<a name="line.613"></a>
-<span class="sourceLineNo">614</span>   *<a name="line.614"></a>
-<span class="sourceLineNo">615</span>   * @return Count of column families of the table<a name="line.615"></a>
-<span class="sourceLineNo">616</span>   */<a name="line.616"></a>
-<span class="sourceLineNo">617</span>  @Override<a name="line.617"></a>
-<span class="sourceLineNo">618</span>  public int getColumnFamilyCount() {<a name="line.618"></a>
-<span class="sourceLineNo">619</span>    return delegatee.getColumnFamilyCount();<a name="line.619"></a>
-<span class="sourceLineNo">620</span>  }<a name="line.620"></a>
-<span class="sourceLineNo">621</span><a name="line.621"></a>
-<span class="sourceLineNo">622</span>  /**<a name="line.622"></a>
-<span class="sourceLineNo">623</span>   * Returns an array all the {@link HColumnDescriptor} of the column families<a name="line.623"></a>
-<span class="sourceLineNo">624</span>   * of the table.<a name="line.624"></a>
-<span class="sourceLineNo">625</span>   *<a name="line.625"></a>
-<span class="sourceLineNo">626</span>   * @return Array of all the HColumnDescriptors of the current table<a name="line.626"></a>
-<span class="sourceLineNo">627</span>   *<a name="line.627"></a>
-<span class="sourceLineNo">628</span>   * @see #getFamilies()<a name="line.628"></a>
-<span class="sourceLineNo">629</span>   */<a name="line.629"></a>
-<span class="sourceLineNo">630</span>  @Deprecated<a name="line.630"></a>
-<span class="sourceLineNo">631</span>  @Override<a name="line.631"></a>
-<span class="sourceLineNo">632</span>  public HColumnDescriptor[] getColumnFamilies() {<a name="line.632"></a>
-<span class="sourceLineNo">633</span>    return Stream.of(delegatee.getColumnFamilies())<a name="line.633"></a>
-<span class="sourceLineNo">634</span>            .map(this::toHColumnDescriptor)<a name="line.634"></a>
-<span class="sourceLineNo">635</span>            .toArray(size -&gt; new HColumnDescriptor[size]);<a name="line.635"></a>
-<span class="sourceLineNo">636</span>  }<a name="line.636"></a>
-<span class="sourceLineNo">637</span><a name="line.637"></a>
-<span class="sourceLineNo">638</span>  /**<a name="line.638"></a>
-<span class="sourceLineNo">639</span>   * Returns the HColumnDescriptor for a specific column family with name as<a name="line.639"></a>
-<span class="sourceLineNo">640</span>   * specified by the parameter column.<a name="line.640"></a>
-<span class="sourceLineNo">641</span>   * @param column Column family name<a name="line.641"></a>
-<span class="sourceLineNo">642</span>   * @return Column descriptor for the passed family name or the family on<a name="line.642"></a>
-<span class="sourceLineNo">643</span>   * passed in column.<a name="line.643"></a>
-<span class="sourceLineNo">644</span>   * @deprecated Use {@link #getColumnFamily(byte[])}.<a name="line.644"></a>
-<span class="sourceLineNo">645</span>   */<a name="line.645"></a>
-<span class="sourceLineNo">646</span>  @Deprecated<a name="line.646"></a>
-<span class="sourceLineNo">647</span>  public HColumnDescriptor getFamily(final byte[] column) {<a name="line.647"></a>
-<span class="sourceLineNo">648</span>    return toHColumnDescriptor(delegatee.getColumnFamily(column));<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>  /**<a name="line.652"></a>
-<span class="sourceLineNo">653</span>   * Removes the HColumnDescriptor with name specified by the parameter column<a name="line.653"></a>
-<span class="sourceLineNo">654</span>   * from the table descriptor<a name="line.654"></a>
-<span class="sourceLineNo">655</span>   *<a name="line.655"></a>
-<span class="sourceLineNo">656</span>   * @param column Name of the column family to be removed.<a name="line.656"></a>
-<span class="sourceLineNo">657</span>   * @return Column descriptor for the passed family name or the family on<a name="line.657"></a>
-<span class="sourceLineNo">658</span>   * passed in column.<a name="line.658"></a>
-<span class="sourceLineNo">659</span>   */<a name="line.659"></a>
-<span class="sourceLineNo">660</span>  public HColumnDescriptor removeFamily(final byte [] column) {<a name="line.660"></a>
-<span class="sourceLineNo">661</span>    return toHColumnDescriptor(getDelegateeForModification().removeColumnFamily(column));<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 a HColumnDescriptor for user to keep the compatibility as much as possible.<a name="line.665"></a>
-<span class="sourceLineNo">666</span>   * @param desc read-only ColumnFamilyDescriptor<a name="line.666"></a>
-<span class="sourceLineNo">667</span>   * @return The older implementation of ColumnFamilyDescriptor<a name="line.667"></a>
-<span class="sourceLineNo">668</span>   */<a name="line.668"></a>
-<span class="sourceLineNo">669</span>  protected HColumnDescriptor toHColumnDescriptor(ColumnFamilyDescriptor desc) {<a name="line.669"></a>
-<span class="sourceLineNo">670</span>    if (desc == null) {<a name="line.670"></a>
-<span class="sourceLineNo">671</span>      return null;<a name="line.671"></a>
-<span class="sourceLineNo">672</span>    } else if (desc instanceof ModifyableColumnFamilyDescriptor) {<a name="line.672"></a>
-<span class="sourceLineNo">673</span>      return new HColumnDescriptor((ModifyableColumnFamilyDescriptor) desc);<a name="line.673"></a>
-<span class="sourceLineNo">674</span>    } else if (desc instanceof HColumnDescriptor) {<a name="line.674"></a>
-<span class="sourceLineNo">675</span>      return (HColumnDescriptor) desc;<a name="line.675"></a>
-<span class="sourceLineNo">676</span>    } else {<a name="line.676"></a>
-<span class="sourceLineNo">677</span>      return new HColumnDescriptor(new ModifyableColumnFamilyDescriptor(desc));<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    }<a name="line.678"></a>
-<span class="sourceLineNo">679</span>  }<a name="line.679"></a>
-<span class="sourceLineNo">680</span><a name="line.680"></a>
-<span class="sourceLineNo">681</span>  /**<a name="line.681"></a>
-<span class="sourceLineNo">682</span>   * Add a table coprocessor to this table. The coprocessor<a name="line.682"></a>
-<span class="sourceLineNo">683</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.683"></a>
-<span class="sourceLineNo">684</span>   * or Endpoint.<a name="line.684"></a>
-<span class="sourceLineNo">685</span>   * It won't check if the class can be loaded or not.<a name="line.685"></a>
-<span class="sourceLineNo">686</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.686"></a>
-<span class="sourceLineNo">687</span>   * a region is opened.<a name="line.687"></a>
-<span class="sourceLineNo">688</span>   * @param className Full class name.<a name="line.688"></a>
-<span class="sourceLineNo">689</span>   * @throws IOException<a name="line.689"></a>
-<span class="sourceLineNo">690</span>   */<a name="line.690"></a>
-<span class="sourceLineNo">691</span>  public HTableDescriptor addCoprocessor(String className) throws IOException {<a name="line.691"></a>
-<span class="sourceLineNo">692</span>    getDelegateeForModification().addCoprocessor(className);<a name="line.692"></a>
-<span class="sourceLineNo">693</span>    return this;<a name="line.693"></a>
-<span class="sourceLineNo">694</span>  }<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>   * Add a table coprocessor to this table. The coprocessor<a name="line.697"></a>
-<span class="sourceLineNo">698</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.698"></a>
-<span class="sourceLineNo">699</span>   * or Endpoint.<a name="line.699"></a>
-<span class="sourceLineNo">700</span>   * It won't check if the class can be loaded or not.<a name="line.700"></a>
-<span class="sourceLineNo">701</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.701"></a>
-<span class="sourceLineNo">702</span>   * a region is opened.<a name="line.702"></a>
-<span class="sourceLineNo">703</span>   * @param jarFilePath Path of the jar file. If it's null, the class will be<a name="line.703"></a>
-<span class="sourceLineNo">704</span>   * loaded from default classloader.<a name="line.704"></a>
-<span class="sourceLineNo">705</span>   * @param className Full class name.<a name="line.705"></a>
-<span class="sourceLineNo">706</span>   * @param priority Priority<a name="line.706"></a>
-<span class="sourceLineNo">707</span>   * @param kvs Arbitrary key-value parameter pairs passed into the coprocessor.<a name="line.707"></a>
-<span class="sourceLineNo">708</span>   * @throws IOException<a name="line.708"></a>
-<span class="sourceLineNo">709</span>   */<a name="line.709"></a>
-<span class="sourceLineNo">710</span>  public HTableDescriptor addCoprocessor(String className, Path jarFilePath,<a name="line.710"></a>
-<span class="sourceLineNo">711</span>                             int priority, final Map&lt;String, String&gt; kvs)<a name="line.711"></a>
-<span class="sourceLineNo">712</span>  throws IOException {<a name="line.712"></a>
-<span class="sourceLineNo">713</span>    getDelegateeForModification().addCoprocessor(className, jarFilePath, priority, kvs);<a name="line.713"></a>
-<span class="sourceLineNo">714</span>    return this;<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>   * Add a table coprocessor to this table. The coprocessor<a name="line.718"></a>
-<span class="sourceLineNo">719</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.719"></a>
-<span class="sourceLineNo">720</span>   * or Endpoint.<a name="line.720"></a>
-<span class="sourceLineNo">721</span>   * It won't check if the class can be loaded or not.<a name="line.721"></a>
-<span class="sourceLineNo">722</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.722"></a>
-<span class="sourceLineNo">723</span>   * a region is opened.<a name="line.723"></a>
-<span class="sourceLineNo">724</span>   * @param specStr The Coprocessor specification all in in one String formatted so matches<a name="line.724"></a>
-<span class="sourceLineNo">725</span>   * {@link HConstants#CP_HTD_ATTR_VALUE_PATTERN}<a name="line.725"></a>
-<span class="sourceLineNo">726</span>   * @throws IOException<a name="line.726"></a>
-<span class="sourceLineNo">727</span>   */<a name="line.727"></a>
-<span class="sourceLineNo">728</span>  public HTableDescriptor addCoprocessorWithSpec(final String specStr) throws IOException {<a name="line.728"></a>
-<span class="sourceLineNo">729</span>    getDelegateeForModification().addCoprocessorWithSpec(specStr);<a name="line.729"></a>
-<span class="sourceLineNo">730</span>    return this;<a name="line.730"></a>
-<span class="sourceLineNo">731</span>  }<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>   * Check if the table has an attached co-processor represented by the name className<a name="line.734"></a>
-<span class="sourceLineNo">735</span>   *<a name="line.735"></a>
-<span class="sourceLineNo">736</span>   * @param classNameToMatch - Class name of the co-processor<a name="line.736"></a>
-<span class="sourceLineNo">737</span>   * @return true of the table has a co-processor className<a name="line.737"></a>
-<span class="sourceLineNo">738</span>   */<a name="line.738"></a>
-<span class="sourceLineNo">739</span>  @Override<a name="line.739"></a>
-<span class="sourceLineNo">740</span>  public boolean hasCoprocessor(String classNameToMatch) {<a name="line.740"></a>
-<span class="sourceLineNo">741</span>    return delegatee.hasCoprocessor(classNameToMatch);<a name="line.741"></a>
-<span class="sourceLineNo">742</span>  }<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>   * Return the list of attached co-processor represented by their name className<a name="line.745"></a>
-<span class="sourceLineNo">746</span>   *<a name="line.746"></a>
-<span class="sourceLineNo">747</span>   * @return The list of co-processors classNames<a name="line.747"></a>
-<span class="sourceLineNo">748</span>   */<a name="line.748"></a>
-<span class="sourceLineNo">749</span>  @Override<a name="line.749"></a>
-<span class="sourceLineNo">750</span>  public List&lt;String&gt; getCoprocessors() {<a name="line.750"></a>
-<span class="sourceLineNo">751</span>    return delegatee.getCoprocessors();<a name="line.751"></a>
-<span class="sourceLineNo">752</span>  }<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>   * Remove a coprocessor from those set on the table<a name="line.755"></a>
-<span class="sourceLineNo">756</span>   * @param className Class name of the co-processor<a name="line.756"></a>
-<span class="sourceLineNo">757</span>   */<a name="line.757"></a>
-<span class="sourceLineNo">758</span>  public void removeCoprocessor(String className) {<a name="line.758"></a>
-<span class="sourceLineNo">759</span>    getDelegateeForModification().removeCoprocessor(className);<a name="line.759"></a>
-<span class="sourceLineNo">760</span>  }<a name="line.760"></a>
-<span class="sourceLineNo">761</span><a name="line.761"></a>
-<span class="sourceLineNo">762</span>  public final static String NAMESPACE_FAMILY_INFO = TableDescriptorBuilder.NAMESPACE_FAMILY_INFO;<a name="line.762"></a>
-<span class="sourceLineNo">763</span>  public final static byte[] NAMESPACE_FAMILY_INFO_BYTES = TableDescriptorBuilder.NAMESPACE_FAMILY_INFO_BYTES;<a name="line.763"></a>
-<span class="sourceLineNo">764</span>  public final static byte[] NAMESPACE_COL_DESC_BYTES = TableDescriptorBuilder.NAMESPACE_COL_DESC_BYTES;<a name="line.764"></a>
+<span class="sourceLineNo">605</span>   *<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * @return Immutable sorted set of the keys of the families.<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   *             (&lt;a href="https://issues.apache.org/jira/browse/HBASE-18008"&gt;HBASE-18008&lt;/a&gt;).<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   *             Use {@link #getColumnFamilyNames()}.<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   */<a name="line.610"></a>
+<span class="sourceLineNo">611</span>  @Deprecated<a name="line.611"></a>
+<span class="sourceLineNo">612</span>  public Set&lt;byte[]&gt; getFamiliesKeys() {<a name="line.612"></a>
+<span class="sourceLineNo">613</span>    return delegatee.getColumnFamilyNames();<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  }<a name="line.614"></a>
+<span class="sourceLineNo">615</span><a name="line.615"></a>
+<span class="sourceLineNo">616</span>  /**<a name="line.616"></a>
+<span class="sourceLineNo">617</span>   * Returns the count of the column families of the table.<a name="line.617"></a>
+<span class="sourceLineNo">618</span>   *<a name="line.618"></a>
+<span class="sourceLineNo">619</span>   * @return Count of column families of the table<a name="line.619"></a>
+<span class="sourceLineNo">620</span>   */<a name="line.620"></a>
+<span class="sourceLineNo">621</span>  @Override<a name="line.621"></a>
+<span class="sourceLineNo">622</span>  public int getColumnFamilyCount() {<a name="line.622"></a>
+<span class="sourceLineNo">623</span>    return delegatee.getColumnFamilyCount();<a name="line.623"></a>
+<span class="sourceLineNo">624</span>  }<a name="line.624"></a>
+<span class="sourceLineNo">625</span><a name="line.625"></a>
+<span class="sourceLineNo">626</span>  /**<a name="line.626"></a>
+<span class="sourceLineNo">627</span>   * Returns an array all the {@link HColumnDescriptor} of the column families<a name="line.627"></a>
+<span class="sourceLineNo">628</span>   * of the table.<a name="line.628"></a>
+<span class="sourceLineNo">629</span>   *<a name="line.629"></a>
+<span class="sourceLineNo">630</span>   * @return Array of all the HColumnDescriptors of the current table<a name="line.630"></a>
+<span class="sourceLineNo">631</span>   *<a name="line.631"></a>
+<span class="sourceLineNo">632</span>   * @see #getFamilies()<a name="line.632"></a>
+<span class="sourceLineNo">633</span>   */<a name="line.633"></a>
+<span class="sourceLineNo">634</span>  @Deprecated<a name="line.634"></a>
+<span class="sourceLineNo">635</span>  @Override<a name="line.635"></a>
+<span class="sourceLineNo">636</span>  public HColumnDescriptor[] getColumnFamilies() {<a name="line.636"></a>
+<span class="sourceLineNo">637</span>    return Stream.of(delegatee.getColumnFamilies())<a name="line.637"></a>
+<span class="sourceLineNo">638</span>            .map(this::toHColumnDescriptor)<a name="line.638"></a>
+<span class="sourceLineNo">639</span>            .toArray(size -&gt; new HColumnDescriptor[size]);<a name="line.639"></a>
+<span class="sourceLineNo">640</span>  }<a name="line.640"></a>
+<span class="sourceLineNo">641</span><a name="line.641"></a>
+<span class="sourceLineNo">642</span>  /**<a name="line.642"></a>
+<span class="sourceLineNo">643</span>   * Returns the HColumnDescriptor for a specific column family with name as<a name="line.643"></a>
+<span class="sourceLineNo">644</span>   * specified by the parameter column.<a name="line.644"></a>
+<span class="sourceLineNo">645</span>   * @param column Column family name<a name="line.645"></a>
+<span class="sourceLineNo">646</span>   * @return Column descriptor for the passed family name or the family on<a name="line.646"></a>
+<span class="sourceLineNo">647</span>   * passed in column.<a name="line.647"></a>
+<span class="sourceLineNo">648</span>   * @deprecated Use {@link #getColumnFamily(byte[])}.<a name="line.648"></a>
+<span class="sourceLineNo">649</span>   */<a name="line.649"></a>
+<span class="sourceLineNo">650</span>  @Deprecated<a name="line.650"></a>
+<span class="sourceLineNo">651</span>  public HColumnDescriptor getFamily(final byte[] column) {<a name="line.651"></a>
+<span class="sourceLineNo">652</span>    return toHColumnDescriptor(delegatee.getColumnFamily(column));<a name="line.652"></a>
+<span class="sourceLineNo">653</span>  }<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>  /**<a name="line.656"></a>
+<span class="sourceLineNo">657</span>   * Removes the HColumnDescriptor with name specified by the parameter column<a name="line.657"></a>
+<span class="sourceLineNo">658</span>   * from the table descriptor<a name="line.658"></a>
+<span class="sourceLineNo">659</span>   *<a name="line.659"></a>
+<span class="sourceLineNo">660</span>   * @param column Name of the column family to be removed.<a name="line.660"></a>
+<span class="sourceLineNo">661</span>   * @return Column descriptor for the passed family name or the family on<a name="line.661"></a>
+<span class="sourceLineNo">662</span>   * passed in column.<a name="line.662"></a>
+<span class="sourceLineNo">663</span>   */<a name="line.663"></a>
+<span class="sourceLineNo">664</span>  public HColumnDescriptor removeFamily(final byte [] column) {<a name="line.664"></a>
+<span class="sourceLineNo">665</span>    return toHColumnDescriptor(getDelegateeForModification().removeColumnFamily(column));<a name="line.665"></a>
+<span class="sourceLineNo">666</span>  }<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>   * Return a HColumnDescriptor for user to keep the compatibility as much as possible.<a name="line.669"></a>
+<span class="sourceLineNo">670</span>   * @param desc read-only ColumnFamilyDescriptor<a name="line.670"></a>
+<span class="sourceLineNo">671</span>   * @return The older implementation of ColumnFamilyDescriptor<a name="line.671"></a>
+<span class="sourceLineNo">672</span>   */<a name="line.672"></a>
+<span class="sourceLineNo">673</span>  protected HColumnDescriptor toHColumnDescriptor(ColumnFamilyDescriptor desc) {<a name="line.673"></a>
+<span class="sourceLineNo">674</span>    if (desc == null) {<a name="line.674"></a>
+<span class="sourceLineNo">675</span>      return null;<a name="line.675"></a>
+<span class="sourceLineNo">676</span>    } else if (desc instanceof ModifyableColumnFamilyDescriptor) {<a name="line.676"></a>
+<span class="sourceLineNo">677</span>      return new HColumnDescriptor((ModifyableColumnFamilyDescriptor) desc);<a name="line.677"></a>
+<span class="sourceLineNo">678</span>    } else if (desc instanceof HColumnDescriptor) {<a name="line.678"></a>
+<span class="sourceLineNo">679</span>      return (HColumnDescriptor) desc;<a name="line.679"></a>
+<span class="sourceLineNo">680</span>    } else {<a name="line.680"></a>
+<span class="sourceLineNo">681</span>      return new HColumnDescriptor(new ModifyableColumnFamilyDescriptor(desc));<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><a name="line.684"></a>
+<span class="sourceLineNo">685</span>  /**<a name="line.685"></a>
+<span class="sourceLineNo">686</span>   * Add a table coprocessor to this table. The coprocessor<a name="line.686"></a>
+<span class="sourceLineNo">687</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.687"></a>
+<span class="sourceLineNo">688</span>   * or Endpoint.<a name="line.688"></a>
+<span class="sourceLineNo">689</span>   * It won't check if the class can be loaded or not.<a name="line.689"></a>
+<span class="sourceLineNo">690</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.690"></a>
+<span class="sourceLineNo">691</span>   * a region is opened.<a name="line.691"></a>
+<span class="sourceLineNo">692</span>   * @param className Full class name.<a name="line.692"></a>
+<span class="sourceLineNo">693</span>   * @throws IOException<a name="line.693"></a>
+<span class="sourceLineNo">694</span>   */<a name="line.694"></a>
+<span class="sourceLineNo">695</span>  public HTableDescriptor addCoprocessor(String className) throws IOException {<a name="line.695"></a>
+<span class="sourceLineNo">696</span>    getDelegateeForModification().addCoprocessor(className);<a name="line.696"></a>
+<span class="sourceLineNo">697</span>    return this;<a name="line.697"></a>
+<span class="sourceLineNo">698</span>  }<a name="line.698"></a>
+<span class="sourceLineNo">699</span><a name="line.699"></a>
+<span class="sourceLineNo">700</span>  /**<a name="line.700"></a>
+<span class="sourceLineNo">701</span>   * Add a table coprocessor to this table. The coprocessor<a name="line.701"></a>
+<span class="sourceLineNo">702</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.702"></a>
+<span class="sourceLineNo">703</span>   * or Endpoint.<a name="line.703"></a>
+<span class="sourceLineNo">704</span>   * It won't check if the class can be loaded or not.<a name="line.704"></a>
+<span class="sourceLineNo">705</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.705"></a>
+<span class="sourceLineNo">706</span>   * a region is opened.<a name="line.706"></a>
+<span class="sourceLineNo">707</span>   * @param jarFilePath Path of the jar file. If it's null, the class will be<a name="line.707"></a>
+<span class="sourceLineNo">708</span>   * loaded from default classloader.<a name="line.708"></a>
+<span class="sourceLineNo">709</span>   * @param className Full class name.<a name="line.709"></a>
+<span class="sourceLineNo">710</span>   * @param priority Priority<a name="line.710"></a>
+<span class="sourceLineNo">711</span>   * @param kvs Arbitrary key-value parameter pairs passed into the coprocessor.<a name="line.711"></a>
+<span class="sourceLineNo">712</span>   * @throws IOException<a name="line.712"></a>
+<span class="sourceLineNo">713</span>   */<a name="line.713"></a>
+<span class="sourceLineNo">714</span>  public HTableDescriptor addCoprocessor(String className, Path jarFilePath,<a name="line.714"></a>
+<span class="sourceLineNo">715</span>                             int priority, final Map&lt;String, String&gt; kvs)<a name="line.715"></a>
+<span class="sourceLineNo">716</span>  throws IOException {<a name="line.716"></a>
+<span class="sourceLineNo">717</span>    getDelegateeForModification().addCoprocessor(className, jarFilePath, priority, kvs);<a name="line.717"></a>
+<span class="sourceLineNo">718</span>    return this;<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>  /**<a name="line.721"></a>
+<span class="sourceLineNo">722</span>   * Add a table coprocessor to this table. The coprocessor<a name="line.722"></a>
+<span class="sourceLineNo">723</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.723"></a>
+<span class="sourceLineNo">724</span>   * or Endpoint.<a name="line.724"></a>
+<span class="sourceLineNo">725</span>   * It won't check if the class can be loaded or not.<a name="line.725"></a>
+<span class="sourceLineNo">726</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.726"></a>
+<span class="sourceLineNo">727</span>   * a region is opened.<a name="line.727"></a>
+<span class="sourceLineNo">728</span>   * @param specStr The Coprocessor specification all in in one String formatted so matches<a name="line.728"></a>
+<span class="sourceLineNo">729</span>   * {@link HConstants#CP_HTD_ATTR_VALUE_PATTERN}<a name="line.729"></a>
+<span class="sourceLineNo">730</span>   * @throws IOException<a name="line.730"></a>
+<span class="sourceLineNo">731</span>   */<a name="line.731"></a>
+<span class="sourceLineNo">732</span>  public HTableDescriptor addCoprocessorWithSpec(final String specStr) throws IOException {<a name="line.732"></a>
+<span class="sourceLineNo">733</span>    getDelegateeForModification().addCoprocessorWithSpec(specStr);<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>  /**<a name="line.737"></a>
+<span class="sourceLineNo">738</span>   * Check if the table has an attached co-processor represented by the name className<a name="line.738"></a>
+<span class="sourceLineNo">739</span>   *<a name="line.739"></a>
+<span class="sourceLineNo">740</span>   * @param classNameToMatch - Class name of the co-processor<a name="line.740"></a>
+<span class="sourceLineNo">741</span>   * @return true of the table has a co-processor className<a name="line.741"></a>
+<span class="sourceLineNo">742</span>   */<a name="line.742"></a>
+<span class="sourceLineNo">743</span>  @Override<a name="line.743"></a>
+<span class="sourceLineNo">744</span>  public boolean hasCoprocessor(String classNameToMatch) {<a name="line.744"></a>
+<span class="sourceLineNo">745</span>    return delegatee.hasCoprocessor(classNameToMatch);<a name="line.745"></a>
+<span class="sourceLineNo">746</span>  }<a name="line.746"></a>
+<span class="sourceLineNo">747</span><a name="line.747"></a>
+<span class="sourceLineNo">748</span>  /**<a name="line.748"></a>
+<span class="sourceLineNo">749</span>   * Return the list of attached co-processor represented by their name className<a name="line.749"></a>
+<span class="sourceLineNo">750</span>   *<a name="line.750"></a>
+<span class="sourceLineNo">751</span>   * @return The list of co-processors classNames<a name="line.751"></a>
+<span class="sourceLineNo">752</span>   */<a name="line.752"></a>
+<span class="sourceLineNo">753</span>  @Override<a name="line.753"></a>
+<span class="sourceLineNo">754</span>  public List&lt;String&gt; getCoprocessors() {<a name="line.754"></a>
+<span class="sourceLineNo">755</span>    return delegatee.getCoprocessors();<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>  /**<a name="line.758"></a>
+<span class="sourceLineNo">759</span>   * Remove a coprocessor from those set on the table<a name="line.759"></a>
+<span class="sourceLineNo">760</span>   * @param className Class name of the co-processor<a name="line.760"></a>
+<span class="sourceLineNo">761</span>   */<a name="line.761"></a>
+<span class="sourceLineNo">762</span>  public void removeCoprocessor(String className) {<a name="line.762"></a>
+<span class="sourceLineNo">763</span>    getDelegateeForModification().removeCoprocessor(className);<a name="line.763"></a>
+<span class="sourceLineNo">764</span>  }<a name="line.764"></a>
 <span class="sourceLineNo">765</span><a name="line.765"></a>
-<span class="sourceLineNo">766</span>  /** Table descriptor for namespace table */<a name="line.766"></a>
-<span class="sourceLineNo">767</span>  public static final HTableDescriptor NAMESPACE_TABLEDESC<a name="line.767"></a>
-<span class="sourceLineNo">768</span>    = new HTableDescriptor(TableDescriptorBuilder.NAMESPACE_TABLEDESC);<a name="line.768"></a>
+<span class="sourceLineNo">766</span>  public final static String NAMESPACE_FAMILY_INFO = TableDescriptorBuilder.NAMESPACE_FAMILY_INFO;<a name="line.766"></a>
+<span class="sourceLineNo">767</span>  public final static byte[] NAMESPACE_FAMILY_INFO_BYTES = TableDescriptorBuilder.NAMESPACE_FAMILY_INFO_BYTES;<a name="line.767"></a>
+<span class="sourceLineNo">768</span>  public final static byte[] NAMESPACE_COL_DESC_BYTES = TableDescriptorBuilder.NAMESPACE_COL_DESC_BYTES;<a name="line.768"></a>
 <span class="sourceLineNo">769</span><a name="line.769"></a>
-<span class="sourceLineNo">770</span>  @Deprecated<a name="line.770"></a>
-<span class="sourceLineNo">771</span>  public HTableDescriptor setOwner(User owner) {<a name="line.771"></a>
-<span class="sourceLineNo">772</span>    getDelegateeForModification().setOwner(owner);<a name="line.772"></a>
-<span class="sourceLineNo">773</span>    return this;<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>  // used by admin.rb:alter(table_name,*args) to update owner.<a name="line.776"></a>
-<span class="sourceLineNo">777</span>  @Deprecated<a name="line.777"></a>
-<span class="sourceLineNo">778</span>  public HTableDescriptor setOwnerString(String ownerString) {<a name="line.778"></a>
-<span class="sourceLineNo">779</span>    getDelegateeForModification().setOwnerString(ownerString);<a name="line.779"></a>
-<span class="sourceLineNo">780</span>    return this;<a name="line.780"></a>
-<span class="sourceLineNo">781</span>  }<a name="line.781"></a>
-<span class="sourceLineNo">782</span><a name="line.782"></a>
-<span class="sourceLineNo">783</span>  @Override<a name="line.783"></a>
-<span class="sourceLineNo">784</span>  @Deprecated<a name="line.784"></a>
-<span class="sourceLineNo">785</span>  public String getOwnerString() {<a name="line.785"></a>
-<span class="sourceLineNo">786</span>    return delegatee.getOwnerString();<a name="line.786"></a>
-<span class="sourceLineNo">787</span>  }<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>   * @return This instance serialized with pb with pb magic prefix<a name="line.790"></a>
-<span class="sourceLineNo">791</span>   * @see #parseFrom(byte[])<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   */<a name="line.792"></a>
-<span class="sourceLineNo">793</span>  public byte[] toByteArray() {<a name="line.793"></a>
-<span class="sourceLineNo">794</span>    return TableDescriptorBuilder.toByteArray(delegatee);<a name="line.794"></a>
-<span class="sourceLineNo">795</span>  }<a name="line.795"></a>
-<span class="sourceLineNo">796</span><a name="line.796"></a>
-<span class="sourceLineNo">797</span>  /**<a name="line.797"></a>
-<span class="sourceLineNo">798</span>   * @param bytes A pb serialized {@link HTableDescriptor} instance with pb magic prefix<a name="line.798"></a>
-<span class="sourceLineNo">799</span>   * @return An instance of {@link HTableDescriptor} made from &lt;code&gt;bytes&lt;/code&gt;<a name="line.799"></a>
-<span class="sourceLineNo">800</span>   * @throws DeserializationException<a name="line.800"></a>
-<span class="sourceLineNo">801</span>   * @throws IOException<a name="line.801"></a>
-<span class="sourceLineNo">802</span>   * @see #toByteArray()<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   */<a name="line.803"></a>
-<span class="sourceLineNo">804</span>  public static HTableDescriptor parseFrom(final byte [] bytes)<a name="line.804"></a>
-<span class="sourceLineNo">805</span>  throws DeserializationException, IOException {<a name="line.805"></a>
-<span class="sourceLineNo">806</span>    TableDescriptor desc = TableDescriptorBuilder.parseFrom(bytes);<a name="line.806"></a>
-<span class="sourceLineNo">807</span>    if (desc instanceof ModifyableTableDescriptor) {<a name="line.807"></a>
-<span class="sourceLineNo">808</span>      return new HTableDescriptor((ModifyableTableDescriptor) desc);<a name="line.808"></a>
-<span class="sourceLineNo">809</span>    } else {<a name="line.809"></a>
-<span class="sourceLineNo">810</span>      return new HTableDescriptor(desc);<a name="line.810"></a>
-<span class="sourceLineNo">811</span>    }<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>  /**<a name="line.814"></a>
-<span class="sourceLineNo">815</span>   * Getter for accessing the configuration value by key<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 String getConfigurationValue(String key) {<a name="line.818"></a>
-<span class="sourceLineNo">819</span>    return delegatee.getConfigurationValue(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>  /**<a name="line.822"></a>
-<span class="sourceLineNo">823</span>   * Getter for fetching an unmodifiable map.<a name="line.823"></a>
-<span class="sourceLineNo">824</span>   */<a name="line.824"></a>
-<span class="sourceLineNo">825</span>  @Override<a name="line.825"></a>
-<span class="sourceLineNo">826</span>  public Map&lt;String, String&gt; getConfiguration() {<a name="line.826"></a>
-<span class="sourceLineNo">827</span>    return delegatee.getConfiguration();<a name="line.827"></a>
-<span class="sourceLineNo">828</span>  }<a name="line.828"></a>
-<span class="sourceLineNo">829</span><a name="line.829"></a>
-<span class="sourceLineNo">830</span>  /**<a name="line.830"></a>
-<span class="sourceLineNo">831</span>   * Setter for storing a configuration setting in map.<a name="line.831"></a>
-<span class="sourceLineNo">832</span>   * @param key Config key. Same as XML config key e.g. hbase.something.or.other.<a name="line.832"></a>
-<span class="sourceLineNo">833</span>   * @param value String value. If null, removes the setting.<a name="line.833"></a>
-<span class="sourceLineNo">834</span>   */<a name="line.834"></a>
-<span class="sourceLineNo">835</span>  public HTableDescriptor setConfiguration(String key, String value) {<a name="line.835"></a>
-<span class="sourceLineNo">836</span>    getDelegateeForModification().setConfiguration(key, value);<a name="line.836"></a>
-<span class="sourceLineNo">837</span>    return this;<a name="line.837"></a>
-<span class="sourceLineNo">838</span>  }<a name="line.838"></a>
-<span class="sourceLineNo">839</span><a name="line.839"></a>
-<span class="sourceLineNo">840</span>  /**<a name="line.840"></a>
-<span class="sourceLineNo">841</span>   * Remove a config setting represented by the key from the map<a name="line.841"></a>
-<span class="sourceLineNo">842</span>   */<a name="line.842"></a>
-<span class="sourceLineNo">843</span>  public void removeConfiguration(final String key) {<a name="line.843"></a>
-<span class="sourceLineNo">844</span>    getDelegateeForModification().removeConfiguration(key);<a name="line.844"></a>
-<span class="sourceLineNo">845</span>  }<a name="line.845"></a>
-<span class="sourceLineNo">846</span><a name="line.846"></a>
-<span class="sourceLineNo">847</span>  @Override<a name="line.847"></a>
-<span class="sourceLineNo">848</span>  public Bytes getValue(Bytes key) {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>    return delegatee.getValue(key);<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>  @Override<a name="line.852"></a>
-<span class="sourceLineNo">853</span>  public String getValue(String key) {<a name="line.853"></a>
-<span class="sourceLineNo">854</span>    return delegatee.getValue(key);<a name="line.854"></a>
-<span class="sourceLineNo">855</span>  }<a name="line.855"></a>
-<span class="sourceLineNo">856</span><a name="line.856"></a>
-<span class="sourceLineNo">857</span>  @Override<a name="line.857"></a>
-<span class="sourceLineNo">858</span>  public byte[] getValue(byte[] key) {<a name="line.858"></a>
-<span class="sourceLineNo">859</span>    return delegatee.getValue(key);<a name="line.859"></a>
-<span class="sourceLineNo">860</span>  }<a name="line.860"></a>
-<span class="sourceLineNo">861</span><a name="line.861"></a>
-<span class="sourceLineNo">862</span>  @Override<a name="line.862"></a>
-<span class="sourceLineNo">863</span>  public Set&lt;byte[]&gt; getColumnFamilyNames() {<a name="line.863"></a>
-<span class="sourceLineNo">864</span>    return delegatee.getColumnFamilyNames();<a name="line.864"></a>
-<span class="sourceLineNo">865</span>  }<a name="line.865"></a>
-<span class="sourceLineNo">866</span><a name="line.866"></a>
-<span class="sourceLineNo">867</span>  @Override<a name="line.867"></a>
-<span class="sourceLineNo">868</span>  public boolean hasColumnFamily(byte[] name) {<a name="line.868"></a>
-<span class="sourceLineNo">869</span>    return delegatee.hasColumnFamily(name);<a name="line.869"></a>
-<span class="sourceLineNo">870</span>  }<a name="line.870"></a>
-<span class="sourceLineNo">871</span><a name="line.871"></a>
-<span class="sourceLineNo">872</span>  @Override<a name="line.872"></a>
-<span class="sourceLineNo">873</span>  public ColumnFamilyDescriptor getColumnFamily(byte[] name) {<a name="line.873"></a>
-<span class="sourceLineNo">874</span>    return delegatee.getColumnFamily(name);<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>  protected ModifyableTableDescriptor getDelegateeForModification() {<a name="line.877"></a>
-<span class="sourceLineNo">878</span>    return delegatee;<a name="line.878"></a>
+<span class="sourceLineNo">770</span>  /** Table descriptor for namespace table */<a name="line.770"></a>
+<span class="sourceLineNo">771</span>  public static final HTableDescriptor NAMESPACE_TABLEDESC<a name="line.771"></a>
+<span class="sourceLineNo">772</span>    = new HTableDescriptor(TableDescriptorBuilder.NAMESPACE_TABLEDESC);<a name="line.772"></a>
+<span class="sourceLineNo">773</span><a name="line.773"></a>
+<span class="sourceLineNo">774</span>  @Deprecated<a name="line.774"></a>
+<span class="sourceLineNo">775</span>  public HTableDescriptor setOwner(User owner) {<a name="line.775"></a>
+<span class="sourceLineNo">776</span>    getDelegateeForModification().setOwner(owner);<a name="line.776"></a>
+<span class="sourceLineNo">777</span>    return this;<a name="line.777"></a>
+<span class="sourceLineNo">778</span>  }<a name="line.778"></a>
+<span class="sourceLineNo">779</span><a name="line.779"></a>
+<span class="sourceLineNo">780</span>  // used by admin.rb:alter(table_name,*args) to update owner.<a name="line.780"></a>
+<span class="sourceLineNo">781</span>  @Deprecated<a name="line.781"></a>
+<span class="sourceLineNo">782</span>  public HTableDescriptor setOwnerString(String ownerString) {<a name="line.782"></a>
+<span class="sourceLineNo">783</span>    getDelegateeForModification().setOwnerString(ownerString);<a name="line.783"></a>
+<span class="sourceLineNo">784</span>    return this;<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>  @Override<a name="line.787"></a>
+<span class="sourceLineNo">788</span>  @Deprecated<a name="line.788"></a>
+<span class="sourceLineNo">789</span>  public String getOwnerString() {<a name="line.789"></a>
+<span class="sourceLineNo">790</span>    return delegatee.getOwnerString();<a name="line.790"></a>
+<span class="sourceLineNo">791</span>  }<a name="line.791"></a>
+<span class="sourceLineNo">792</span><a name="line.792"></a>
+<span class="sourceLineNo">793</span>  /**<a name="line.793"></a>
+<span class="sourceLineNo">794</span>   * @return This instance serialized with pb with pb magic prefix<a name="line.794"></a>
+<span class="sourceLineNo">795</span>   * @see #parseFrom(byte[])<a name="line.795"></a>
+<span class="sourceLineNo">796</span>   */<a name="line.796"></a>
+<span class="sourceLineNo">797</span>  public byte[] toByteArray() {<a name="line.797"></a>
+<span class="sourceLineNo">798</span>    return TableDescriptorBuilder.toByteArray(delegatee);<a name="line.798"></a>
+<span class="sourceLineNo">799</span>  }<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>   * @param bytes A pb serialized {@link HTableDescriptor} instance with pb magic prefix<a name="line.802"></a>
+<span class="sourceLineNo">803</span>   * @return An instance of {@link HTableDescriptor} made from &lt;code&gt;bytes&lt;/code&gt;<a name="line.803"></a>
+<span class="sourceLineNo">804</span>   * @throws DeserializationException<a name="line.804"></a>
+<span class="sourceLineNo">805</span>   * @throws IOException<a name="line.805"></a>
+<span class="sourceLineNo">806</span>   * @see #toByteArray()<a name="line.806"></a>
+<span class="sourceLineNo">807</span>   */<a name="line.807"></a>
+<span class="sourceLineNo">808</span>  public static HTableDescriptor parseFrom(final byte [] bytes)<a name="line.808"></a>
+<span class="sourceLineNo">809</span>  throws DeserializationException, IOException {<a name="line.809"></a>
+<span class="sourceLineNo">810</span>    TableDescriptor desc = TableDescriptorBuilder.parseFrom(bytes);<a name="line.810"></a>
+<span class="sourceLineNo">811</span>    if (desc instanceof ModifyableTableDescriptor) {<a name="line.811"></a>
+<span class="sourceLineNo">812</span>      return new HTableDescriptor((ModifyableTableDescriptor) desc);<a name="line.812"></a>
+<span class="sourceLineNo">813</span>    } else {<a name="line.813"></a>
+<span class="sourceLineNo">814</span>      return new HTableDescriptor(desc);<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><a name="line.817"></a>
+<span class="sourceLineNo">818</span>  /**<a name="line.818"></a>
+<span class="sourceLineNo">819</span>   * Getter for accessing the configuration value by key<a name="line.819"></a>
+<span class="sourceLineNo">820</span>   */<a name="line.820"></a>
+<span class="sourceLineNo">821</span>  @Override<a name="line.821"></a>
+<span class="sourceLineNo">822</span>  public String getConfigurationValue(String key) {<a name="line.822"></a>
+<span class="sourceLineNo">823</span>    return delegatee.getConfigurationValue(key);<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">826</span>  /**<a name="line.826"></a>
+<span class="sourceLineNo">827</span>   * Getter for fetching an unmodifiable map.<a name="line.827"></a>
+<span class="sourceLineNo">828</span>   */<a name="line.828"></a>
+<span class="sourceLineNo">829</span>  @Override<a name="line.829"></a>
+<span class="sourceLineNo">830</span>  public Map&lt;String, String&gt; getConfiguration() {<a name="line.830"></a>
+<span class="sourceLineNo">831</span>    return delegatee.getConfiguration();<a name="line.831"></a>
+<span class="sourceLineNo">832</span>  }<a name="line.832"></a>
+<span class="sourceLineNo">833</span><a name="line.833"></a>
+<span class="sourceLineNo">834</span>  /**<a name="line.834"></a>
+<span class="sourceLineNo">835</span>   * Setter for storing a configuration setting in map.<a name="line.835"></a>
+<span class="sourceLineNo">836</span>   * @param key Config key. Same as XML config key e.g. hbase.something.or.other.<a name="line.836"></a>
+<span class="sourceLineNo">837</span>   * @param value String value. If null, removes the setting.<a name="line.837"></a>
+<span class="sourceLineNo">838</span>   */<a name="line.838"></a>
+<span class="sourceLineNo">839</span>  public HTableDescriptor setConfiguration(String key, String value) {<a name="line.839"></a>
+<span class="sourceLineNo">840</span>    getDelegateeForModification().setConfiguration(key, value);<a name="line.840"></a>
+<span class="sourceLineNo">841</span>    return this;<a name="line.841"></a>
+<span class="sourceLineNo">842</span>  }<a name="line.842"></a>
+<span class="sourceLineNo">843</span><a name="line.843"></a>
+<span class="sourceLineNo">844</span>  /**<a name="line.844"></a>
+<span class="sourceLineNo">845</span>   * Remove a config setting represented by the key from the map<a name="line.845"></a>
+<span class="sourceLineNo">846</span>   */<a name="line.846"></a>
+<span class="sourceLineNo">847</span>  public void removeConfiguration(final String key) {<a name="line.847"></a>
+<span class="sourceLineNo">848</span>    getDelegateeForModification().removeConfiguration(key);<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>  @Override<a name="line.851"></a>
+<span class="sourceLineNo">852</span>  public Bytes getValue(Bytes key) {<a name="line.852"></a>
+<span class="sourceLineNo">853</span>    return delegatee.getValue(key);<a name="line.853"></a>
+<span class="sourceLineNo">854</span>  }<a name="line.854"></a>
+<span class="sourceLineNo">855</span><a name="line.855"></a>
+<span class="sourceLineNo">856</span>  @Override<a name="line.856"></a>
+<span class="sourceLineNo">857</span>  public String getValue(String key) {<a name="line.857"></a>
+<span class="sourceLineNo">858</span>    return delegatee.getValue(key);<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 byte[] getValue(byte[] key) {<a name="line.862"></a>
+<span class="sourceLineNo">863</span>    return delegatee.getValue(key);<a name="line.863"></a>
+<span class="sourceLineNo">864</span>  }<a name="line.864"></a>
+<span class="sourceLineNo">865</span><a name="line.865"></a>
+<span class="sourceLineNo">866</span>  @Override<a name="line.866"></a>
+<span class="sourceLineNo">867</span>  public Set&lt;byte[]&gt; getColumnFamilyNames() {<a name="line.867"></a>
+<span class="sourceLineNo">868</span>    return delegatee.getColumnFamilyNames();<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 boolean hasColumnFamily(byte[] name) {<a name="line.872"></a>
+<span class="sourceLineNo">873</span>    return delegatee.hasColumnFamily(name);<a name="line.873"></a>
+<span class="sourceLineNo">874</span>  }<a name="line.874"></a>
+<span class="sourceLineNo">875</span><a name="line.875"></a>
+<span class="sourceLineNo">876</span>  @Override<a name="line.876"></a>
+<span class="sourceLineNo">877</span>  public ColumnFamilyDescriptor getColumnFamily(byte[] name) {<a name="line.877"></a>
+<span class="sourceLineNo">878</span>    return delegatee.getColumnFamily(name);<a name="line.878"></a>
 <span class="sourceLineNo">879</span>  }<a name="line.879"></a>
-<span class="sourceLineNo">880</span>}<a name="line.880"></a>
+<span class="sourceLineNo">880</span><a name="line.880"></a>
+<span class="sourceLineNo">881</span>  protected ModifyableTableDescriptor getDelegateeForModification() {<a name="line.881"></a>
+<span class="sourceLineNo">882</span>    return delegatee;<a name="line.882"></a>
+<span class="sourceLineNo">883</span>  }<a name="line.883"></a>
+<span class="sourceLineNo">884</span>}<a name="line.884"></a>
 
 
 


Mime
View raw message