hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [43/51] [partial] hbase-site git commit: Published site at .
Date Thu, 28 Sep 2017 15:14:51 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/67deb422/apidocs/src-html/org/apache/hadoop/hbase/HRegionLocation.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/HRegionLocation.html b/apidocs/src-html/org/apache/hadoop/hbase/HRegionLocation.html
index 3298628..a7220e3 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/HRegionLocation.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/HRegionLocation.html
@@ -26,106 +26,120 @@
 <span class="sourceLineNo">018</span> */<a name="line.18"></a>
 <span class="sourceLineNo">019</span>package org.apache.hadoop.hbase;<a name="line.19"></a>
 <span class="sourceLineNo">020</span><a name="line.20"></a>
-<span class="sourceLineNo">021</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import org.apache.hadoop.hbase.util.Addressing;<a name="line.22"></a>
-<span class="sourceLineNo">023</span><a name="line.23"></a>
-<span class="sourceLineNo">024</span>/**<a name="line.24"></a>
-<span class="sourceLineNo">025</span> * Data structure to hold HRegionInfo and the address for the hosting<a name="line.25"></a>
-<span class="sourceLineNo">026</span> * HRegionServer.  Immutable.  Comparable, but we compare the 'location' only:<a name="line.26"></a>
-<span class="sourceLineNo">027</span> * i.e. the hostname and port, and *not* the regioninfo.  This means two<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * instances are the same if they refer to the same 'location' (the same<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * hostname and port), though they may be carrying different regions.<a name="line.29"></a>
-<span class="sourceLineNo">030</span> *<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * On a big cluster, each client will have thousands of instances of this object, often<a name="line.31"></a>
-<span class="sourceLineNo">032</span> *  100 000 of them if not million. It's important to keep the object size as small<a name="line.32"></a>
-<span class="sourceLineNo">033</span> *  as possible.<a name="line.33"></a>
-<span class="sourceLineNo">034</span> *<a name="line.34"></a>
-<span class="sourceLineNo">035</span> * &lt;br&gt;This interface has been marked InterfaceAudience.Public in 0.96 and 0.98.<a name="line.35"></a>
-<span class="sourceLineNo">036</span> */<a name="line.36"></a>
-<span class="sourceLineNo">037</span>@InterfaceAudience.Public<a name="line.37"></a>
-<span class="sourceLineNo">038</span>public class HRegionLocation implements Comparable&lt;HRegionLocation&gt; {<a name="line.38"></a>
-<span class="sourceLineNo">039</span>  private final HRegionInfo regionInfo;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>  private final ServerName serverName;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>  private final long seqNum;<a name="line.41"></a>
-<span class="sourceLineNo">042</span><a name="line.42"></a>
-<span class="sourceLineNo">043</span>  public HRegionLocation(HRegionInfo regionInfo, ServerName serverName) {<a name="line.43"></a>
-<span class="sourceLineNo">044</span>    this(regionInfo, serverName, HConstants.NO_SEQNUM);<a name="line.44"></a>
-<span class="sourceLineNo">045</span>  }<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>  public HRegionLocation(HRegionInfo regionInfo, ServerName serverName, long seqNum) {<a name="line.47"></a>
-<span class="sourceLineNo">048</span>    this.regionInfo = regionInfo;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    this.serverName = serverName;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>    this.seqNum = seqNum;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>  }<a name="line.51"></a>
-<span class="sourceLineNo">052</span><a name="line.52"></a>
-<span class="sourceLineNo">053</span>  /**<a name="line.53"></a>
-<span class="sourceLineNo">054</span>   * @see java.lang.Object#toString()<a name="line.54"></a>
-<span class="sourceLineNo">055</span>   */<a name="line.55"></a>
-<span class="sourceLineNo">056</span>  @Override<a name="line.56"></a>
-<span class="sourceLineNo">057</span>  public String toString() {<a name="line.57"></a>
-<span class="sourceLineNo">058</span>    return "region=" + (this.regionInfo == null ? "null" : this.regionInfo.getRegionNameAsString())<a name="line.58"></a>
-<span class="sourceLineNo">059</span>        + ", hostname=" + this.serverName + ", seqNum=" + seqNum;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>  }<a name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span>  /**<a name="line.62"></a>
-<span class="sourceLineNo">063</span>   * @see java.lang.Object#equals(java.lang.Object)<a name="line.63"></a>
-<span class="sourceLineNo">064</span>   */<a name="line.64"></a>
-<span class="sourceLineNo">065</span>  @Override<a name="line.65"></a>
-<span class="sourceLineNo">066</span>  public boolean equals(Object o) {<a name="line.66"></a>
-<span class="sourceLineNo">067</span>    if (this == o) {<a name="line.67"></a>
-<span class="sourceLineNo">068</span>      return true;<a name="line.68"></a>
-<span class="sourceLineNo">069</span>    }<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    if (o == null) {<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      return false;<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    }<a name="line.72"></a>
-<span class="sourceLineNo">073</span>    if (!(o instanceof HRegionLocation)) {<a name="line.73"></a>
-<span class="sourceLineNo">074</span>      return false;<a name="line.74"></a>
-<span class="sourceLineNo">075</span>    }<a name="line.75"></a>
-<span class="sourceLineNo">076</span>    return this.compareTo((HRegionLocation)o) == 0;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>  }<a name="line.77"></a>
-<span class="sourceLineNo">078</span><a name="line.78"></a>
-<span class="sourceLineNo">079</span>  /**<a name="line.79"></a>
-<span class="sourceLineNo">080</span>   * @see java.lang.Object#hashCode()<a name="line.80"></a>
-<span class="sourceLineNo">081</span>   */<a name="line.81"></a>
-<span class="sourceLineNo">082</span>  @Override<a name="line.82"></a>
-<span class="sourceLineNo">083</span>  public int hashCode() {<a name="line.83"></a>
-<span class="sourceLineNo">084</span>    return this.serverName.hashCode();<a name="line.84"></a>
-<span class="sourceLineNo">085</span>  }<a name="line.85"></a>
-<span class="sourceLineNo">086</span><a name="line.86"></a>
-<span class="sourceLineNo">087</span>  /** @return HRegionInfo */<a name="line.87"></a>
-<span class="sourceLineNo">088</span>  public HRegionInfo getRegionInfo(){<a name="line.88"></a>
-<span class="sourceLineNo">089</span>    return regionInfo;<a name="line.89"></a>
-<span class="sourceLineNo">090</span>  }<a name="line.90"></a>
-<span class="sourceLineNo">091</span><a name="line.91"></a>
-<span class="sourceLineNo">092</span>  public String getHostname() {<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    return this.serverName.getHostname();<a name="line.93"></a>
-<span class="sourceLineNo">094</span>  }<a name="line.94"></a>
-<span class="sourceLineNo">095</span><a name="line.95"></a>
-<span class="sourceLineNo">096</span>  public int getPort() {<a name="line.96"></a>
-<span class="sourceLineNo">097</span>    return this.serverName.getPort();<a name="line.97"></a>
-<span class="sourceLineNo">098</span>  }<a name="line.98"></a>
-<span class="sourceLineNo">099</span><a name="line.99"></a>
-<span class="sourceLineNo">100</span>  public long getSeqNum() {<a name="line.100"></a>
-<span class="sourceLineNo">101</span>    return seqNum;<a name="line.101"></a>
-<span class="sourceLineNo">102</span>  }<a name="line.102"></a>
-<span class="sourceLineNo">103</span><a name="line.103"></a>
-<span class="sourceLineNo">104</span>  /**<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   * @return String made of hostname and port formatted as<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   * per {@link Addressing#createHostAndPortStr(String, int)}<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   */<a name="line.107"></a>
-<span class="sourceLineNo">108</span>  public String getHostnamePort() {<a name="line.108"></a>
-<span class="sourceLineNo">109</span>    return Addressing.createHostAndPortStr(this.getHostname(), this.getPort());<a name="line.109"></a>
-<span class="sourceLineNo">110</span>  }<a name="line.110"></a>
-<span class="sourceLineNo">111</span><a name="line.111"></a>
-<span class="sourceLineNo">112</span>  public ServerName getServerName() {<a name="line.112"></a>
-<span class="sourceLineNo">113</span>    return serverName;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>  }<a name="line.114"></a>
-<span class="sourceLineNo">115</span><a name="line.115"></a>
-<span class="sourceLineNo">116</span>  @Override<a name="line.116"></a>
-<span class="sourceLineNo">117</span>  public int compareTo(HRegionLocation o) {<a name="line.117"></a>
-<span class="sourceLineNo">118</span>    return serverName.compareTo(o.getServerName());<a name="line.118"></a>
-<span class="sourceLineNo">119</span>  }<a name="line.119"></a>
-<span class="sourceLineNo">120</span>}<a name="line.120"></a>
+<span class="sourceLineNo">021</span>import org.apache.hadoop.hbase.client.ImmutableHRegionInfo;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.hadoop.hbase.client.RegionInfo;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.util.Addressing;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>/**<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * Data structure to hold RegionInfo and the address for the hosting<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * HRegionServer.  Immutable.  Comparable, but we compare the 'location' only:<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * i.e. the hostname and port, and *not* the regioninfo.  This means two<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * instances are the same if they refer to the same 'location' (the same<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * hostname and port), though they may be carrying different regions.<a name="line.31"></a>
+<span class="sourceLineNo">032</span> *<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * On a big cluster, each client will have thousands of instances of this object, often<a name="line.33"></a>
+<span class="sourceLineNo">034</span> *  100 000 of them if not million. It's important to keep the object size as small<a name="line.34"></a>
+<span class="sourceLineNo">035</span> *  as possible.<a name="line.35"></a>
+<span class="sourceLineNo">036</span> *<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * &lt;br&gt;This interface has been marked InterfaceAudience.Public in 0.96 and 0.98.<a name="line.37"></a>
+<span class="sourceLineNo">038</span> */<a name="line.38"></a>
+<span class="sourceLineNo">039</span>@InterfaceAudience.Public<a name="line.39"></a>
+<span class="sourceLineNo">040</span>public class HRegionLocation implements Comparable&lt;HRegionLocation&gt; {<a name="line.40"></a>
+<span class="sourceLineNo">041</span>  private final RegionInfo regionInfo;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>  private final ServerName serverName;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>  private final long seqNum;<a name="line.43"></a>
+<span class="sourceLineNo">044</span><a name="line.44"></a>
+<span class="sourceLineNo">045</span>  public HRegionLocation(RegionInfo regionInfo, ServerName serverName) {<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    this(regionInfo, serverName, HConstants.NO_SEQNUM);<a name="line.46"></a>
+<span class="sourceLineNo">047</span>  }<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>  public HRegionLocation(RegionInfo regionInfo, ServerName serverName, long seqNum) {<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    this.regionInfo = regionInfo;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    this.serverName = serverName;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    this.seqNum = seqNum;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>  }<a name="line.53"></a>
+<span class="sourceLineNo">054</span><a name="line.54"></a>
+<span class="sourceLineNo">055</span>  /**<a name="line.55"></a>
+<span class="sourceLineNo">056</span>   * @see java.lang.Object#toString()<a name="line.56"></a>
+<span class="sourceLineNo">057</span>   */<a name="line.57"></a>
+<span class="sourceLineNo">058</span>  @Override<a name="line.58"></a>
+<span class="sourceLineNo">059</span>  public String toString() {<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    return "region=" + (this.regionInfo == null ? "null" : this.regionInfo.getRegionNameAsString())<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        + ", hostname=" + this.serverName + ", seqNum=" + seqNum;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>  }<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>  /**<a name="line.64"></a>
+<span class="sourceLineNo">065</span>   * @see java.lang.Object#equals(java.lang.Object)<a name="line.65"></a>
+<span class="sourceLineNo">066</span>   */<a name="line.66"></a>
+<span class="sourceLineNo">067</span>  @Override<a name="line.67"></a>
+<span class="sourceLineNo">068</span>  public boolean equals(Object o) {<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    if (this == o) {<a name="line.69"></a>
+<span class="sourceLineNo">070</span>      return true;<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    }<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    if (o == null) {<a name="line.72"></a>
+<span class="sourceLineNo">073</span>      return false;<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    }<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    if (!(o instanceof HRegionLocation)) {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>      return false;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    }<a name="line.77"></a>
+<span class="sourceLineNo">078</span>    return this.compareTo((HRegionLocation)o) == 0;<a name="line.78"></a>
+<span class="sourceLineNo">079</span>  }<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>  /**<a name="line.81"></a>
+<span class="sourceLineNo">082</span>   * @see java.lang.Object#hashCode()<a name="line.82"></a>
+<span class="sourceLineNo">083</span>   */<a name="line.83"></a>
+<span class="sourceLineNo">084</span>  @Override<a name="line.84"></a>
+<span class="sourceLineNo">085</span>  public int hashCode() {<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    return this.serverName.hashCode();<a name="line.86"></a>
+<span class="sourceLineNo">087</span>  }<a name="line.87"></a>
+<span class="sourceLineNo">088</span><a name="line.88"></a>
+<span class="sourceLineNo">089</span>  /**<a name="line.89"></a>
+<span class="sourceLineNo">090</span>   *<a name="line.90"></a>
+<span class="sourceLineNo">091</span>   * @return Immutable HRegionInfo<a name="line.91"></a>
+<span class="sourceLineNo">092</span>   * @deprecated Since 2.0.0. Will remove in 3.0.0. Use {@link #getRegion()}} instead.<a name="line.92"></a>
+<span class="sourceLineNo">093</span>   */<a name="line.93"></a>
+<span class="sourceLineNo">094</span>  @Deprecated<a name="line.94"></a>
+<span class="sourceLineNo">095</span>  public HRegionInfo getRegionInfo(){<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    return regionInfo == null ? null : new ImmutableHRegionInfo(regionInfo);<a name="line.96"></a>
+<span class="sourceLineNo">097</span>  }<a name="line.97"></a>
+<span class="sourceLineNo">098</span><a name="line.98"></a>
+<span class="sourceLineNo">099</span>  /**<a name="line.99"></a>
+<span class="sourceLineNo">100</span>   * @return regionInfo<a name="line.100"></a>
+<span class="sourceLineNo">101</span>   */<a name="line.101"></a>
+<span class="sourceLineNo">102</span>  public RegionInfo getRegion(){<a name="line.102"></a>
+<span class="sourceLineNo">103</span>    return regionInfo;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>  }<a name="line.104"></a>
+<span class="sourceLineNo">105</span><a name="line.105"></a>
+<span class="sourceLineNo">106</span>  public String getHostname() {<a name="line.106"></a>
+<span class="sourceLineNo">107</span>    return this.serverName.getHostname();<a name="line.107"></a>
+<span class="sourceLineNo">108</span>  }<a name="line.108"></a>
+<span class="sourceLineNo">109</span><a name="line.109"></a>
+<span class="sourceLineNo">110</span>  public int getPort() {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>    return this.serverName.getPort();<a name="line.111"></a>
+<span class="sourceLineNo">112</span>  }<a name="line.112"></a>
+<span class="sourceLineNo">113</span><a name="line.113"></a>
+<span class="sourceLineNo">114</span>  public long getSeqNum() {<a name="line.114"></a>
+<span class="sourceLineNo">115</span>    return seqNum;<a name="line.115"></a>
+<span class="sourceLineNo">116</span>  }<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>  /**<a name="line.118"></a>
+<span class="sourceLineNo">119</span>   * @return String made of hostname and port formatted as<a name="line.119"></a>
+<span class="sourceLineNo">120</span>   * per {@link Addressing#createHostAndPortStr(String, int)}<a name="line.120"></a>
+<span class="sourceLineNo">121</span>   */<a name="line.121"></a>
+<span class="sourceLineNo">122</span>  public String getHostnamePort() {<a name="line.122"></a>
+<span class="sourceLineNo">123</span>    return Addressing.createHostAndPortStr(this.getHostname(), this.getPort());<a name="line.123"></a>
+<span class="sourceLineNo">124</span>  }<a name="line.124"></a>
+<span class="sourceLineNo">125</span><a name="line.125"></a>
+<span class="sourceLineNo">126</span>  public ServerName getServerName() {<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    return serverName;<a name="line.127"></a>
+<span class="sourceLineNo">128</span>  }<a name="line.128"></a>
+<span class="sourceLineNo">129</span><a name="line.129"></a>
+<span class="sourceLineNo">130</span>  @Override<a name="line.130"></a>
+<span class="sourceLineNo">131</span>  public int compareTo(HRegionLocation o) {<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    return serverName.compareTo(o.getServerName());<a name="line.132"></a>
+<span class="sourceLineNo">133</span>  }<a name="line.133"></a>
+<span class="sourceLineNo">134</span>}<a name="line.134"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/67deb422/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 5738430..3f18200 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/HTableDescriptor.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/HTableDescriptor.html
@@ -689,206 +689,203 @@
 <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>   * Add a table coprocessor to this table. The coprocessor<a name="line.683"></a>
-<span class="sourceLineNo">684</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.684"></a>
-<span class="sourceLineNo">685</span>   * or Endpoint.<a name="line.685"></a>
-<span class="sourceLineNo">686</span>   * It won't check if the class can be loaded or not.<a name="line.686"></a>
-<span class="sourceLineNo">687</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.687"></a>
-<span class="sourceLineNo">688</span>   * a region is opened.<a name="line.688"></a>
-<span class="sourceLineNo">689</span>   * @param className Full class name.<a name="line.689"></a>
-<span class="sourceLineNo">690</span>   * @throws IOException<a name="line.690"></a>
-<span class="sourceLineNo">691</span>   */<a name="line.691"></a>
-<span class="sourceLineNo">692</span>  public HTableDescriptor addCoprocessor(String className) throws IOException {<a name="line.692"></a>
-<span class="sourceLineNo">693</span>    getDelegateeForModification().addCoprocessor(className);<a name="line.693"></a>
-<span class="sourceLineNo">694</span>    return this;<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>   * Add a table coprocessor to this table. The coprocessor<a name="line.698"></a>
-<span class="sourceLineNo">699</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.699"></a>
-<span class="sourceLineNo">700</span>   * or Endpoint.<a name="line.700"></a>
-<span class="sourceLineNo">701</span>   * It won't check if the class can be loaded or not.<a name="line.701"></a>
-<span class="sourceLineNo">702</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.702"></a>
-<span class="sourceLineNo">703</span>   * a region is opened.<a name="line.703"></a>
-<span class="sourceLineNo">704</span>   * @param jarFilePath Path of the jar file. If it's null, the class will be<a name="line.704"></a>
-<span class="sourceLineNo">705</span>   * loaded from default classloader.<a name="line.705"></a>
-<span class="sourceLineNo">706</span>   * @param className Full class name.<a name="line.706"></a>
-<span class="sourceLineNo">707</span>   * @param priority Priority<a name="line.707"></a>
-<span class="sourceLineNo">708</span>   * @param kvs Arbitrary key-value parameter pairs passed into the coprocessor.<a name="line.708"></a>
-<span class="sourceLineNo">709</span>   * @throws IOException<a name="line.709"></a>
-<span class="sourceLineNo">710</span>   */<a name="line.710"></a>
-<span class="sourceLineNo">711</span>  public HTableDescriptor addCoprocessor(String className, Path jarFilePath,<a name="line.711"></a>
-<span class="sourceLineNo">712</span>                             int priority, final Map&lt;String, String&gt; kvs)<a name="line.712"></a>
-<span class="sourceLineNo">713</span>  throws IOException {<a name="line.713"></a>
-<span class="sourceLineNo">714</span>    getDelegateeForModification().addCoprocessor(className, jarFilePath, priority, kvs);<a name="line.714"></a>
-<span class="sourceLineNo">715</span>    return this;<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>  /**<a name="line.718"></a>
-<span class="sourceLineNo">719</span>   * Add a table coprocessor to this table. The coprocessor<a name="line.719"></a>
-<span class="sourceLineNo">720</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionObserver<a name="line.720"></a>
-<span class="sourceLineNo">721</span>   * or Endpoint.<a name="line.721"></a>
-<span class="sourceLineNo">722</span>   * It won't check if the class can be loaded or not.<a name="line.722"></a>
-<span class="sourceLineNo">723</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.723"></a>
-<span class="sourceLineNo">724</span>   * a region is opened.<a name="line.724"></a>
-<span class="sourceLineNo">725</span>   * @param specStr The Coprocessor specification all in in one String formatted so matches<a name="line.725"></a>
-<span class="sourceLineNo">726</span>   * {@link HConstants#CP_HTD_ATTR_VALUE_PATTERN}<a name="line.726"></a>
-<span class="sourceLineNo">727</span>   * @throws IOException<a name="line.727"></a>
-<span class="sourceLineNo">728</span>   */<a name="line.728"></a>
-<span class="sourceLineNo">729</span>  public HTableDescriptor addCoprocessorWithSpec(final String specStr) throws IOException {<a name="line.729"></a>
-<span class="sourceLineNo">730</span>    getDelegateeForModification().addCoprocessorWithSpec(specStr);<a name="line.730"></a>
-<span class="sourceLineNo">731</span>    return this;<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>  /**<a name="line.734"></a>
-<span class="sourceLineNo">735</span>   * Check if the table has an attached co-processor represented by the name className<a name="line.735"></a>
-<span class="sourceLineNo">736</span>   *<a name="line.736"></a>
-<span class="sourceLineNo">737</span>   * @param classNameToMatch - Class name of the co-processor<a name="line.737"></a>
-<span class="sourceLineNo">738</span>   * @return true of the table has a co-processor className<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 boolean hasCoprocessor(String classNameToMatch) {<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    return delegatee.hasCoprocessor(classNameToMatch);<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>   * Return the list of attached co-processor represented by their name className<a name="line.746"></a>
-<span class="sourceLineNo">747</span>   *<a name="line.747"></a>
-<span class="sourceLineNo">748</span>   * @return The list of co-processors classNames<a name="line.748"></a>
-<span class="sourceLineNo">749</span>   */<a name="line.749"></a>
-<span class="sourceLineNo">750</span>  @Override<a name="line.750"></a>
-<span class="sourceLineNo">751</span>  public List&lt;String&gt; getCoprocessors() {<a name="line.751"></a>
-<span class="sourceLineNo">752</span>    return delegatee.getCoprocessors();<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>  /**<a name="line.755"></a>
-<span class="sourceLineNo">756</span>   * Remove a coprocessor from those set on the table<a name="line.756"></a>
-<span class="sourceLineNo">757</span>   * @param className Class name of the co-processor<a name="line.757"></a>
-<span class="sourceLineNo">758</span>   */<a name="line.758"></a>
-<span class="sourceLineNo">759</span>  public void removeCoprocessor(String className) {<a name="line.759"></a>
-<span class="sourceLineNo">760</span>    getDelegateeForModification().removeCoprocessor(className);<a name="line.760"></a>
-<span class="sourceLineNo">761</span>  }<a name="line.761"></a>
-<span class="sourceLineNo">762</span><a name="line.762"></a>
-<span class="sourceLineNo">763</span>  public final static String NAMESPACE_FAMILY_INFO = TableDescriptorBuilder.NAMESPACE_FAMILY_INFO;<a name="line.763"></a>
-<span class="sourceLineNo">764</span>  public final static byte[] NAMESPACE_FAMILY_INFO_BYTES = TableDescriptorBuilder.NAMESPACE_FAMILY_INFO_BYTES;<a name="line.764"></a>
-<span class="sourceLineNo">765</span>  public final static byte[] NAMESPACE_COL_DESC_BYTES = TableDescriptorBuilder.NAMESPACE_COL_DESC_BYTES;<a name="line.765"></a>
-<span class="sourceLineNo">766</span><a name="line.766"></a>
-<span class="sourceLineNo">767</span>  /** Table descriptor for namespace table */<a name="line.767"></a>
-<span class="sourceLineNo">768</span>  public static final HTableDescriptor NAMESPACE_TABLEDESC<a name="line.768"></a>
-<span class="sourceLineNo">769</span>    = new HTableDescriptor(TableDescriptorBuilder.NAMESPACE_TABLEDESC);<a name="line.769"></a>
-<span class="sourceLineNo">770</span><a name="line.770"></a>
-<span class="sourceLineNo">771</span>  @Deprecated<a name="line.771"></a>
-<span class="sourceLineNo">772</span>  public HTableDescriptor setOwner(User owner) {<a name="line.772"></a>
-<span class="sourceLineNo">773</span>    getDelegateeForModification().setOwner(owner);<a name="line.773"></a>
-<span class="sourceLineNo">774</span>    return this;<a name="line.774"></a>
-<span class="sourceLineNo">775</span>  }<a name="line.775"></a>
-<span class="sourceLineNo">776</span><a name="line.776"></a>
-<span class="sourceLineNo">777</span>  // used by admin.rb:alter(table_name,*args) to update owner.<a name="line.777"></a>
-<span class="sourceLineNo">778</span>  @Deprecated<a name="line.778"></a>
-<span class="sourceLineNo">779</span>  public HTableDescriptor setOwnerString(String ownerString) {<a name="line.779"></a>
-<span class="sourceLineNo">780</span>    getDelegateeForModification().setOwnerString(ownerString);<a name="line.780"></a>
-<span class="sourceLineNo">781</span>    return this;<a name="line.781"></a>
-<span class="sourceLineNo">782</span>  }<a name="line.782"></a>
-<span class="sourceLineNo">783</span><a name="line.783"></a>
-<span class="sourceLineNo">784</span>  @Override<a name="line.784"></a>
-<span class="sourceLineNo">785</span>  @Deprecated<a name="line.785"></a>
-<span class="sourceLineNo">786</span>  public String getOwnerString() {<a name="line.786"></a>
-<span class="sourceLineNo">787</span>    return delegatee.getOwnerString();<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>   * @return This instance serialized with pb with pb magic prefix<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   * @see #parseFrom(byte[])<a name="line.792"></a>
-<span class="sourceLineNo">793</span>   */<a name="line.793"></a>
-<span class="sourceLineNo">794</span>  public byte[] toByteArray() {<a name="line.794"></a>
-<span class="sourceLineNo">795</span>    return TableDescriptorBuilder.toByteArray(delegatee);<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>  /**<a name="line.798"></a>
-<span class="sourceLineNo">799</span>   * @param bytes A pb serialized {@link HTableDescriptor} instance with pb magic prefix<a name="line.799"></a>
-<span class="sourceLineNo">800</span>   * @return An instance of {@link HTableDescriptor} made from &lt;code&gt;bytes&lt;/code&gt;<a name="line.800"></a>
-<span class="sourceLineNo">801</span>   * @throws DeserializationException<a name="line.801"></a>
-<span class="sourceLineNo">802</span>   * @throws IOException<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   * @see #toByteArray()<a name="line.803"></a>
-<span class="sourceLineNo">804</span>   */<a name="line.804"></a>
-<span class="sourceLineNo">805</span>  public static HTableDescriptor parseFrom(final byte [] bytes)<a name="line.805"></a>
-<span class="sourceLineNo">806</span>  throws DeserializationException, IOException {<a name="line.806"></a>
-<span class="sourceLineNo">807</span>    TableDescriptor desc = TableDescriptorBuilder.parseFrom(bytes);<a name="line.807"></a>
-<span class="sourceLineNo">808</span>    if (desc instanceof ModifyableTableDescriptor) {<a name="line.808"></a>
-<span class="sourceLineNo">809</span>      return new HTableDescriptor((ModifyableTableDescriptor) desc);<a name="line.809"></a>
-<span class="sourceLineNo">810</span>    } else {<a name="line.810"></a>
-<span class="sourceLineNo">811</span>      return new HTableDescriptor(desc);<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>  /**<a name="line.815"></a>
-<span class="sourceLineNo">816</span>   * Getter for accessing the configuration value by key<a name="line.816"></a>
-<span class="sourceLineNo">817</span>   */<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.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>  /**<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>  public Map&lt;String, String&gt; getConfiguration() {<a name="line.825"></a>
-<span class="sourceLineNo">826</span>    return delegatee.getValues().entrySet().stream()<a name="line.826"></a>
-<span class="sourceLineNo">827</span>            .collect(Collectors.toMap(<a name="line.827"></a>
-<span class="sourceLineNo">828</span>                    e -&gt; Bytes.toString(e.getKey().get(), e.getKey().getOffset(), e.getKey().getLength()),<a name="line.828"></a>
-<span class="sourceLineNo">829</span>                    e -&gt; Bytes.toString(e.getValue().get(), e.getValue().getOffset(), e.getValue().getLength())<a name="line.829"></a>
-<span class="sourceLineNo">830</span>            ));<a name="line.830"></a>
-<span class="sourceLineNo">831</span>  }<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>   * Setter for storing a configuration setting in map.<a name="line.834"></a>
-<span class="sourceLineNo">835</span>   * @param key Config key. Same as XML config key e.g. hbase.something.or.other.<a name="line.835"></a>
-<span class="sourceLineNo">836</span>   * @param value String value. If null, removes the setting.<a name="line.836"></a>
-<span class="sourceLineNo">837</span>   */<a name="line.837"></a>
-<span class="sourceLineNo">838</span>  public HTableDescriptor setConfiguration(String key, String value) {<a name="line.838"></a>
-<span class="sourceLineNo">839</span>    getDelegateeForModification().setValue(key, value);<a name="line.839"></a>
-<span class="sourceLineNo">840</span>    return this;<a name="line.840"></a>
-<span class="sourceLineNo">841</span>  }<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>   * Remove a config setting represented by the key from the map<a name="line.844"></a>
-<span class="sourceLineNo">845</span>   */<a name="line.845"></a>
-<span class="sourceLineNo">846</span>  public void removeConfiguration(final String key) {<a name="line.846"></a>
-<span class="sourceLineNo">847</span>    getDelegateeForModification().removeValue(Bytes.toBytes(key));<a name="line.847"></a>
-<span class="sourceLineNo">848</span>  }<a name="line.848"></a>
-<span class="sourceLineNo">849</span><a name="line.849"></a>
-<span class="sourceLineNo">850</span>  @Override<a name="line.850"></a>
-<span class="sourceLineNo">851</span>  public Bytes getValue(Bytes key) {<a name="line.851"></a>
-<span class="sourceLineNo">852</span>    return delegatee.getValue(key);<a name="line.852"></a>
-<span class="sourceLineNo">853</span>  }<a name="line.853"></a>
-<span class="sourceLineNo">854</span><a name="line.854"></a>
-<span class="sourceLineNo">855</span>  @Override<a name="line.855"></a>
-<span class="sourceLineNo">856</span>  public String getValue(String key) {<a name="line.856"></a>
-<span class="sourceLineNo">857</span>    return delegatee.getValue(key);<a name="line.857"></a>
-<span class="sourceLineNo">858</span>  }<a name="line.858"></a>
-<span class="sourceLineNo">859</span><a name="line.859"></a>
-<span class="sourceLineNo">860</span>  @Override<a name="line.860"></a>
-<span class="sourceLineNo">861</span>  public byte[] getValue(byte[] key) {<a name="line.861"></a>
-<span class="sourceLineNo">862</span>    return delegatee.getValue(key);<a name="line.862"></a>
-<span class="sourceLineNo">863</span>  }<a name="line.863"></a>
-<span class="sourceLineNo">864</span><a name="line.864"></a>
-<span class="sourceLineNo">865</span>  @Override<a name="line.865"></a>
-<span class="sourceLineNo">866</span>  public Set&lt;byte[]&gt; getColumnFamilyNames() {<a name="line.866"></a>
-<span class="sourceLineNo">867</span>    return delegatee.getColumnFamilyNames();<a name="line.867"></a>
-<span class="sourceLineNo">868</span>  }<a name="line.868"></a>
-<span class="sourceLineNo">869</span><a name="line.869"></a>
-<span class="sourceLineNo">870</span>  @Override<a name="line.870"></a>
-<span class="sourceLineNo">871</span>  public boolean hasColumnFamily(byte[] name) {<a name="line.871"></a>
-<span class="sourceLineNo">872</span>    return delegatee.hasColumnFamily(name);<a name="line.872"></a>
-<span class="sourceLineNo">873</span>  }<a name="line.873"></a>
-<span class="sourceLineNo">874</span><a name="line.874"></a>
-<span class="sourceLineNo">875</span>  @Override<a name="line.875"></a>
-<span class="sourceLineNo">876</span>  public ColumnFamilyDescriptor getColumnFamily(byte[] name) {<a name="line.876"></a>
-<span class="sourceLineNo">877</span>    return delegatee.getColumnFamily(name);<a name="line.877"></a>
-<span class="sourceLineNo">878</span>  }<a name="line.878"></a>
-<span class="sourceLineNo">879</span><a name="line.879"></a>
-<span class="sourceLineNo">880</span>  protected ModifyableTableDescriptor getDelegateeForModification() {<a name="line.880"></a>
-<span class="sourceLineNo">881</span>    return delegatee;<a name="line.881"></a>
-<span class="sourceLineNo">882</span>  }<a name="line.882"></a>
-<span class="sourceLineNo">883</span>}<a name="line.883"></a>
+<span class="sourceLineNo">684</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionCoprocessor.<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.RegionCoprocessor.<a name="line.698"></a>
+<span class="sourceLineNo">699</span>   * It won't check if the class can be loaded or not.<a name="line.699"></a>
+<span class="sourceLineNo">700</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.700"></a>
+<span class="sourceLineNo">701</span>   * a region is opened.<a name="line.701"></a>
+<span class="sourceLineNo">702</span>   * @param jarFilePath Path of the jar file. If it's null, the class will be<a name="line.702"></a>
+<span class="sourceLineNo">703</span>   * loaded from default classloader.<a name="line.703"></a>
+<span class="sourceLineNo">704</span>   * @param className Full class name.<a name="line.704"></a>
+<span class="sourceLineNo">705</span>   * @param priority Priority<a name="line.705"></a>
+<span class="sourceLineNo">706</span>   * @param kvs Arbitrary key-value parameter pairs passed into the coprocessor.<a name="line.706"></a>
+<span class="sourceLineNo">707</span>   * @throws IOException<a name="line.707"></a>
+<span class="sourceLineNo">708</span>   */<a name="line.708"></a>
+<span class="sourceLineNo">709</span>  public HTableDescriptor addCoprocessor(String className, Path jarFilePath,<a name="line.709"></a>
+<span class="sourceLineNo">710</span>                             int priority, final Map&lt;String, String&gt; kvs)<a name="line.710"></a>
+<span class="sourceLineNo">711</span>  throws IOException {<a name="line.711"></a>
+<span class="sourceLineNo">712</span>    getDelegateeForModification().addCoprocessor(className, jarFilePath, priority, kvs);<a name="line.712"></a>
+<span class="sourceLineNo">713</span>    return this;<a name="line.713"></a>
+<span class="sourceLineNo">714</span>  }<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>   * Add a table coprocessor to this table. The coprocessor<a name="line.717"></a>
+<span class="sourceLineNo">718</span>   * type must be org.apache.hadoop.hbase.coprocessor.RegionCoprocessor.<a name="line.718"></a>
+<span class="sourceLineNo">719</span>   * It won't check if the class can be loaded or not.<a name="line.719"></a>
+<span class="sourceLineNo">720</span>   * Whether a coprocessor is loadable or not will be determined when<a name="line.720"></a>
+<span class="sourceLineNo">721</span>   * a region is opened.<a name="line.721"></a>
+<span class="sourceLineNo">722</span>   * @param specStr The Coprocessor specification all in in one String formatted so matches<a name="line.722"></a>
+<span class="sourceLineNo">723</span>   * {@link HConstants#CP_HTD_ATTR_VALUE_PATTERN}<a name="line.723"></a>
+<span class="sourceLineNo">724</span>   * @throws IOException<a name="line.724"></a>
+<span class="sourceLineNo">725</span>   */<a name="line.725"></a>
+<span class="sourceLineNo">726</span>  public HTableDescriptor addCoprocessorWithSpec(final String specStr) throws IOException {<a name="line.726"></a>
+<span class="sourceLineNo">727</span>    getDelegateeForModification().addCoprocessorWithSpec(specStr);<a name="line.727"></a>
+<span class="sourceLineNo">728</span>    return this;<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>  /**<a name="line.731"></a>
+<span class="sourceLineNo">732</span>   * Check if the table has an attached co-processor represented by the name className<a name="line.732"></a>
+<span class="sourceLineNo">733</span>   *<a name="line.733"></a>
+<span class="sourceLineNo">734</span>   * @param classNameToMatch - Class name of the co-processor<a name="line.734"></a>
+<span class="sourceLineNo">735</span>   * @return true of the table has a co-processor className<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 boolean hasCoprocessor(String classNameToMatch) {<a name="line.738"></a>
+<span class="sourceLineNo">739</span>    return delegatee.hasCoprocessor(classNameToMatch);<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>   * Return the list of attached co-processor represented by their name className<a name="line.743"></a>
+<span class="sourceLineNo">744</span>   *<a name="line.744"></a>
+<span class="sourceLineNo">745</span>   * @return The list of co-processors classNames<a name="line.745"></a>
+<span class="sourceLineNo">746</span>   */<a name="line.746"></a>
+<span class="sourceLineNo">747</span>  @Override<a name="line.747"></a>
+<span class="sourceLineNo">748</span>  public List&lt;String&gt; getCoprocessors() {<a name="line.748"></a>
+<span class="sourceLineNo">749</span>    return delegatee.getCoprocessors();<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>  /**<a name="line.752"></a>
+<span class="sourceLineNo">753</span>   * Remove a coprocessor from those set on the table<a name="line.753"></a>
+<span class="sourceLineNo">754</span>   * @param className Class name of the co-processor<a name="line.754"></a>
+<span class="sourceLineNo">755</span>   */<a name="line.755"></a>
+<span class="sourceLineNo">756</span>  public void removeCoprocessor(String className) {<a name="line.756"></a>
+<span class="sourceLineNo">757</span>    getDelegateeForModification().removeCoprocessor(className);<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>  public final static String NAMESPACE_FAMILY_INFO = TableDescriptorBuilder.NAMESPACE_FAMILY_INFO;<a name="line.760"></a>
+<span class="sourceLineNo">761</span>  public final static byte[] NAMESPACE_FAMILY_INFO_BYTES = TableDescriptorBuilder.NAMESPACE_FAMILY_INFO_BYTES;<a name="line.761"></a>
+<span class="sourceLineNo">762</span>  public final static byte[] NAMESPACE_COL_DESC_BYTES = TableDescriptorBuilder.NAMESPACE_COL_DESC_BYTES;<a name="line.762"></a>
+<span class="sourceLineNo">763</span><a name="line.763"></a>
+<span class="sourceLineNo">764</span>  /** Table descriptor for namespace table */<a name="line.764"></a>
+<span class="sourceLineNo">765</span>  public static final HTableDescriptor NAMESPACE_TABLEDESC<a name="line.765"></a>
+<span class="sourceLineNo">766</span>    = new HTableDescriptor(TableDescriptorBuilder.NAMESPACE_TABLEDESC);<a name="line.766"></a>
+<span class="sourceLineNo">767</span><a name="line.767"></a>
+<span class="sourceLineNo">768</span>  @Deprecated<a name="line.768"></a>
+<span class="sourceLineNo">769</span>  public HTableDescriptor setOwner(User owner) {<a name="line.769"></a>
+<span class="sourceLineNo">770</span>    getDelegateeForModification().setOwner(owner);<a name="line.770"></a>
+<span class="sourceLineNo">771</span>    return this;<a name="line.771"></a>
+<span class="sourceLineNo">772</span>  }<a name="line.772"></a>
+<span class="sourceLineNo">773</span><a name="line.773"></a>
+<span class="sourceLineNo">774</span>  // used by admin.rb:alter(table_name,*args) to update owner.<a name="line.774"></a>
+<span class="sourceLineNo">775</span>  @Deprecated<a name="line.775"></a>
+<span class="sourceLineNo">776</span>  public HTableDescriptor setOwnerString(String ownerString) {<a name="line.776"></a>
+<span class="sourceLineNo">777</span>    getDelegateeForModification().setOwnerString(ownerString);<a name="line.777"></a>
+<span class="sourceLineNo">778</span>    return this;<a name="line.778"></a>
+<span class="sourceLineNo">779</span>  }<a name="line.779"></a>
+<span class="sourceLineNo">780</span><a name="line.780"></a>
+<span class="sourceLineNo">781</span>  @Override<a name="line.781"></a>
+<span class="sourceLineNo">782</span>  @Deprecated<a name="line.782"></a>
+<span class="sourceLineNo">783</span>  public String getOwnerString() {<a name="line.783"></a>
+<span class="sourceLineNo">784</span>    return delegatee.getOwnerString();<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>   * @return This instance serialized with pb with pb magic prefix<a name="line.788"></a>
+<span class="sourceLineNo">789</span>   * @see #parseFrom(byte[])<a name="line.789"></a>
+<span class="sourceLineNo">790</span>   */<a name="line.790"></a>
+<span class="sourceLineNo">791</span>  public byte[] toByteArray() {<a name="line.791"></a>
+<span class="sourceLineNo">792</span>    return TableDescriptorBuilder.toByteArray(delegatee);<a name="line.792"></a>
+<span class="sourceLineNo">793</span>  }<a name="line.793"></a>
+<span class="sourceLineNo">794</span><a name="line.794"></a>
+<span class="sourceLineNo">795</span>  /**<a name="line.795"></a>
+<span class="sourceLineNo">796</span>   * @param bytes A pb serialized {@link HTableDescriptor} instance with pb magic prefix<a name="line.796"></a>
+<span class="sourceLineNo">797</span>   * @return An instance of {@link HTableDescriptor} made from &lt;code&gt;bytes&lt;/code&gt;<a name="line.797"></a>
+<span class="sourceLineNo">798</span>   * @throws DeserializationException<a name="line.798"></a>
+<span class="sourceLineNo">799</span>   * @throws IOException<a name="line.799"></a>
+<span class="sourceLineNo">800</span>   * @see #toByteArray()<a name="line.800"></a>
+<span class="sourceLineNo">801</span>   */<a name="line.801"></a>
+<span class="sourceLineNo">802</span>  public static HTableDescriptor parseFrom(final byte [] bytes)<a name="line.802"></a>
+<span class="sourceLineNo">803</span>  throws DeserializationException, IOException {<a name="line.803"></a>
+<span class="sourceLineNo">804</span>    TableDescriptor desc = TableDescriptorBuilder.parseFrom(bytes);<a name="line.804"></a>
+<span class="sourceLineNo">805</span>    if (desc instanceof ModifyableTableDescriptor) {<a name="line.805"></a>
+<span class="sourceLineNo">806</span>      return new HTableDescriptor((ModifyableTableDescriptor) desc);<a name="line.806"></a>
+<span class="sourceLineNo">807</span>    } else {<a name="line.807"></a>
+<span class="sourceLineNo">808</span>      return new HTableDescriptor(desc);<a name="line.808"></a>
+<span class="sourceLineNo">809</span>    }<a name="line.809"></a>
+<span class="sourceLineNo">810</span>  }<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>   * Getter for accessing the configuration value by key<a name="line.813"></a>
+<span class="sourceLineNo">814</span>   */<a name="line.814"></a>
+<span class="sourceLineNo">815</span>  public String getConfigurationValue(String 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>  /**<a name="line.819"></a>
+<span class="sourceLineNo">820</span>   * Getter for fetching an unmodifiable map.<a name="line.820"></a>
+<span class="sourceLineNo">821</span>   */<a name="line.821"></a>
+<span class="sourceLineNo">822</span>  public Map&lt;String, String&gt; getConfiguration() {<a name="line.822"></a>
+<span class="sourceLineNo">823</span>    return delegatee.getValues().entrySet().stream()<a name="line.823"></a>
+<span class="sourceLineNo">824</span>            .collect(Collectors.toMap(<a name="line.824"></a>
+<span class="sourceLineNo">825</span>                    e -&gt; Bytes.toString(e.getKey().get(), e.getKey().getOffset(), e.getKey().getLength()),<a name="line.825"></a>
+<span class="sourceLineNo">826</span>                    e -&gt; Bytes.toString(e.getValue().get(), e.getValue().getOffset(), e.getValue().getLength())<a name="line.826"></a>
+<span class="sourceLineNo">827</span>            ));<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().setValue(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().removeValue(Bytes.toBytes(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">879</span>  }<a name="line.879"></a>
+<span class="sourceLineNo">880</span>}<a name="line.880"></a>
 
 
 


Mime
View raw message