hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [28/51] [partial] hbase-site git commit: Published site at .
Date Thu, 16 Nov 2017 15:17:28 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/67a6e2ec/apidocs/src-html/org/apache/hadoop/hbase/client/RawAsyncTable.CoprocessorCallback.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/RawAsyncTable.CoprocessorCallback.html b/apidocs/src-html/org/apache/hadoop/hbase/client/RawAsyncTable.CoprocessorCallback.html
deleted file mode 100644
index ebf2220..0000000
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/RawAsyncTable.CoprocessorCallback.html
+++ /dev/null
@@ -1,335 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
-<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
-<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
-<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
-<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
-<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
-<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
-<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
-<span class="sourceLineNo">009</span> *<a name="line.9"></a>
-<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
-<span class="sourceLineNo">011</span> *<a name="line.11"></a>
-<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
-<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
-<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
-<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
-<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
-<span class="sourceLineNo">017</span> */<a name="line.17"></a>
-<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>import java.util.concurrent.CompletableFuture;<a name="line.20"></a>
-<span class="sourceLineNo">021</span>import java.util.function.Function;<a name="line.21"></a>
-<span class="sourceLineNo">022</span><a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.23"></a>
-<span class="sourceLineNo">024</span><a name="line.24"></a>
-<span class="sourceLineNo">025</span>import com.google.protobuf.RpcCallback;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import com.google.protobuf.RpcChannel;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import com.google.protobuf.RpcController;<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span>/**<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * A low level asynchronous table.<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * &lt;p&gt;<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * The implementation is required to be thread safe.<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * &lt;p&gt;<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * The returned {@code CompletableFuture} will be finished directly in the rpc framework's callback<a name="line.34"></a>
-<span class="sourceLineNo">035</span> * thread, so typically you should not do any time consuming work inside these methods, otherwise<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * you will be likely to block at least one connection to RS(even more if the rpc framework uses<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * NIO).<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * &lt;p&gt;<a name="line.38"></a>
-<span class="sourceLineNo">039</span> * So, only experts that want to build high performance service should use this interface directly,<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * especially for the {@link #scan(Scan, RawScanResultConsumer)} below.<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * @since 2.0.0<a name="line.41"></a>
-<span class="sourceLineNo">042</span> */<a name="line.42"></a>
-<span class="sourceLineNo">043</span>@InterfaceAudience.Public<a name="line.43"></a>
-<span class="sourceLineNo">044</span>public interface RawAsyncTable extends AsyncTableBase {<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>   * The basic scan API uses the observer pattern. All results that match the given scan object will<a name="line.47"></a>
-<span class="sourceLineNo">048</span>   * be passed to the given {@code consumer} by calling {@code RawScanResultConsumer.onNext}.<a name="line.48"></a>
-<span class="sourceLineNo">049</span>   * {@code RawScanResultConsumer.onComplete} means the scan is finished, and<a name="line.49"></a>
-<span class="sourceLineNo">050</span>   * {@code RawScanResultConsumer.onError} means we hit an unrecoverable error and the scan is<a name="line.50"></a>
-<span class="sourceLineNo">051</span>   * terminated. {@code RawScanResultConsumer.onHeartbeat} means the RS is still working but we can<a name="line.51"></a>
-<span class="sourceLineNo">052</span>   * not get a valid result to call {@code RawScanResultConsumer.onNext}. This is usually because<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   * the matched results are too sparse, for example, a filter which almost filters out everything<a name="line.53"></a>
-<span class="sourceLineNo">054</span>   * is specified.<a name="line.54"></a>
-<span class="sourceLineNo">055</span>   * &lt;p&gt;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   * Notice that, the methods of the given {@code consumer} will be called directly in the rpc<a name="line.56"></a>
-<span class="sourceLineNo">057</span>   * framework's callback thread, so typically you should not do any time consuming work inside<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   * these methods, otherwise you will be likely to block at least one connection to RS(even more if<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   * the rpc framework uses NIO).<a name="line.59"></a>
-<span class="sourceLineNo">060</span>   * @param scan A configured {@link Scan} object.<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   * @param consumer the consumer used to receive results.<a name="line.61"></a>
-<span class="sourceLineNo">062</span>   */<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  void scan(Scan scan, RawScanResultConsumer consumer);<a name="line.63"></a>
-<span class="sourceLineNo">064</span><a name="line.64"></a>
-<span class="sourceLineNo">065</span>  /**<a name="line.65"></a>
-<span class="sourceLineNo">066</span>   * Delegate to a protobuf rpc call.<a name="line.66"></a>
-<span class="sourceLineNo">067</span>   * &lt;p&gt;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>   * Usually, it is just a simple lambda expression, like:<a name="line.68"></a>
-<span class="sourceLineNo">069</span>   *<a name="line.69"></a>
-<span class="sourceLineNo">070</span>   * &lt;pre&gt;<a name="line.70"></a>
-<span class="sourceLineNo">071</span>   * &lt;code&gt;<a name="line.71"></a>
-<span class="sourceLineNo">072</span>   * (stub, controller, rpcCallback) -&gt; {<a name="line.72"></a>
-<span class="sourceLineNo">073</span>   *   XXXRequest request = ...; // prepare the request<a name="line.73"></a>
-<span class="sourceLineNo">074</span>   *   stub.xxx(controller, request, rpcCallback);<a name="line.74"></a>
-<span class="sourceLineNo">075</span>   * }<a name="line.75"></a>
-<span class="sourceLineNo">076</span>   * &lt;/code&gt;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>   * &lt;/pre&gt;<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   *<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   * And if you can prepare the {@code request} before calling the coprocessorService method, the<a name="line.79"></a>
-<span class="sourceLineNo">080</span>   * lambda expression will be:<a name="line.80"></a>
-<span class="sourceLineNo">081</span>   *<a name="line.81"></a>
-<span class="sourceLineNo">082</span>   * &lt;pre&gt;<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   * &lt;code&gt;<a name="line.83"></a>
-<span class="sourceLineNo">084</span>   * (stub, controller, rpcCallback) -&gt; stub.xxx(controller, request, rpcCallback)<a name="line.84"></a>
-<span class="sourceLineNo">085</span>   * &lt;/code&gt;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>   * &lt;/pre&gt;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>   */<a name="line.87"></a>
-<span class="sourceLineNo">088</span>  @InterfaceAudience.Public<a name="line.88"></a>
-<span class="sourceLineNo">089</span>  @FunctionalInterface<a name="line.89"></a>
-<span class="sourceLineNo">090</span>  interface CoprocessorCallable&lt;S, R&gt; {<a name="line.90"></a>
-<span class="sourceLineNo">091</span><a name="line.91"></a>
-<span class="sourceLineNo">092</span>    /**<a name="line.92"></a>
-<span class="sourceLineNo">093</span>     * Represent the actual protobuf rpc call.<a name="line.93"></a>
-<span class="sourceLineNo">094</span>     * @param stub the asynchronous stub<a name="line.94"></a>
-<span class="sourceLineNo">095</span>     * @param controller the rpc controller, has already been prepared for you<a name="line.95"></a>
-<span class="sourceLineNo">096</span>     * @param rpcCallback the rpc callback, has already been prepared for you<a name="line.96"></a>
-<span class="sourceLineNo">097</span>     */<a name="line.97"></a>
-<span class="sourceLineNo">098</span>    void call(S stub, RpcController controller, RpcCallback&lt;R&gt; rpcCallback);<a name="line.98"></a>
-<span class="sourceLineNo">099</span>  }<a name="line.99"></a>
-<span class="sourceLineNo">100</span><a name="line.100"></a>
-<span class="sourceLineNo">101</span>  /**<a name="line.101"></a>
-<span class="sourceLineNo">102</span>   * Execute the given coprocessor call on the region which contains the given {@code row}.<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   * &lt;p&gt;<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   * The {@code stubMaker} is just a delegation to the {@code newStub} call. Usually it is only a<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   * one line lambda expression, like:<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   *<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   * &lt;pre&gt;<a name="line.107"></a>
-<span class="sourceLineNo">108</span>   * &lt;code&gt;<a name="line.108"></a>
-<span class="sourceLineNo">109</span>   * channel -&gt; xxxService.newStub(channel)<a name="line.109"></a>
-<span class="sourceLineNo">110</span>   * &lt;/code&gt;<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   * &lt;/pre&gt;<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   *<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   * @param stubMaker a delegation to the actual {@code newStub} call.<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   * @param callable a delegation to the actual protobuf rpc call. See the comment of<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   *          {@link CoprocessorCallable} for more details.<a name="line.115"></a>
-<span class="sourceLineNo">116</span>   * @param row The row key used to identify the remote region location<a name="line.116"></a>
-<span class="sourceLineNo">117</span>   * @param &lt;S&gt; the type of the asynchronous stub<a name="line.117"></a>
-<span class="sourceLineNo">118</span>   * @param &lt;R&gt; the type of the return value<a name="line.118"></a>
-<span class="sourceLineNo">119</span>   * @return the return value of the protobuf rpc call, wrapped by a {@link CompletableFuture}.<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   * @see CoprocessorCallable<a name="line.120"></a>
-<span class="sourceLineNo">121</span>   */<a name="line.121"></a>
-<span class="sourceLineNo">122</span>  &lt;S, R&gt; CompletableFuture&lt;R&gt; coprocessorService(Function&lt;RpcChannel, S&gt; stubMaker,<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      CoprocessorCallable&lt;S, R&gt; callable, byte[] row);<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>   * The callback when we want to execute a coprocessor call on a range of regions.<a name="line.126"></a>
-<span class="sourceLineNo">127</span>   * &lt;p&gt;<a name="line.127"></a>
-<span class="sourceLineNo">128</span>   * As the locating itself also takes some time, the implementation may want to send rpc calls on<a name="line.128"></a>
-<span class="sourceLineNo">129</span>   * the fly, which means we do not know how many regions we have when we get the return value of<a name="line.129"></a>
-<span class="sourceLineNo">130</span>   * the rpc calls, so we need an {@link #onComplete()} which is used to tell you that we have<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * passed all the return values to you(through the {@link #onRegionComplete(RegionInfo, Object)}<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   * or {@link #onRegionError(RegionInfo, Throwable)} calls), i.e, there will be no<a name="line.132"></a>
-<span class="sourceLineNo">133</span>   * {@link #onRegionComplete(RegionInfo, Object)} or {@link #onRegionError(RegionInfo, Throwable)}<a name="line.133"></a>
-<span class="sourceLineNo">134</span>   * calls in the future.<a name="line.134"></a>
-<span class="sourceLineNo">135</span>   * &lt;p&gt;<a name="line.135"></a>
-<span class="sourceLineNo">136</span>   * Here is a pseudo code to describe a typical implementation of a range coprocessor service<a name="line.136"></a>
-<span class="sourceLineNo">137</span>   * method to help you better understand how the {@link CoprocessorCallback} will be called. The<a name="line.137"></a>
-<span class="sourceLineNo">138</span>   * {@code callback} in the pseudo code is our {@link CoprocessorCallback}. And notice that the<a name="line.138"></a>
-<span class="sourceLineNo">139</span>   * {@code whenComplete} is {@code CompletableFuture.whenComplete}.<a name="line.139"></a>
-<span class="sourceLineNo">140</span>   *<a name="line.140"></a>
-<span class="sourceLineNo">141</span>   * &lt;pre&gt;<a name="line.141"></a>
-<span class="sourceLineNo">142</span>   * locateThenCall(byte[] row) {<a name="line.142"></a>
-<span class="sourceLineNo">143</span>   *   locate(row).whenComplete((location, locateError) -&gt; {<a name="line.143"></a>
-<span class="sourceLineNo">144</span>   *     if (locateError != null) {<a name="line.144"></a>
-<span class="sourceLineNo">145</span>   *       callback.onError(locateError);<a name="line.145"></a>
-<span class="sourceLineNo">146</span>   *       return;<a name="line.146"></a>
-<span class="sourceLineNo">147</span>   *     }<a name="line.147"></a>
-<span class="sourceLineNo">148</span>   *     incPendingCall();<a name="line.148"></a>
-<span class="sourceLineNo">149</span>   *     region = location.getRegion();<a name="line.149"></a>
-<span class="sourceLineNo">150</span>   *     if (region.getEndKey() &gt; endKey) {<a name="line.150"></a>
-<span class="sourceLineNo">151</span>   *       locateEnd = true;<a name="line.151"></a>
-<span class="sourceLineNo">152</span>   *     } else {<a name="line.152"></a>
-<span class="sourceLineNo">153</span>   *       locateThenCall(region.getEndKey());<a name="line.153"></a>
-<span class="sourceLineNo">154</span>   *     }<a name="line.154"></a>
-<span class="sourceLineNo">155</span>   *     sendCall().whenComplete((resp, error) -&gt; {<a name="line.155"></a>
-<span class="sourceLineNo">156</span>   *       if (error != null) {<a name="line.156"></a>
-<span class="sourceLineNo">157</span>   *         callback.onRegionError(region, error);<a name="line.157"></a>
-<span class="sourceLineNo">158</span>   *       } else {<a name="line.158"></a>
-<span class="sourceLineNo">159</span>   *         callback.onRegionComplete(region, resp);<a name="line.159"></a>
-<span class="sourceLineNo">160</span>   *       }<a name="line.160"></a>
-<span class="sourceLineNo">161</span>   *       if (locateEnd &amp;&amp; decPendingCallAndGet() == 0) {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>   *         callback.onComplete();<a name="line.162"></a>
-<span class="sourceLineNo">163</span>   *       }<a name="line.163"></a>
-<span class="sourceLineNo">164</span>   *     });<a name="line.164"></a>
-<span class="sourceLineNo">165</span>   *   });<a name="line.165"></a>
-<span class="sourceLineNo">166</span>   * }<a name="line.166"></a>
-<span class="sourceLineNo">167</span>   * &lt;/pre&gt;<a name="line.167"></a>
-<span class="sourceLineNo">168</span>   */<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  @InterfaceAudience.Public<a name="line.169"></a>
-<span class="sourceLineNo">170</span>  interface CoprocessorCallback&lt;R&gt; {<a name="line.170"></a>
-<span class="sourceLineNo">171</span><a name="line.171"></a>
-<span class="sourceLineNo">172</span>    /**<a name="line.172"></a>
-<span class="sourceLineNo">173</span>     * @param region the region that the response belongs to<a name="line.173"></a>
-<span class="sourceLineNo">174</span>     * @param resp the response of the coprocessor call<a name="line.174"></a>
-<span class="sourceLineNo">175</span>     */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    void onRegionComplete(RegionInfo region, R resp);<a name="line.176"></a>
-<span class="sourceLineNo">177</span><a name="line.177"></a>
-<span class="sourceLineNo">178</span>    /**<a name="line.178"></a>
-<span class="sourceLineNo">179</span>     * @param region the region that the error belongs to<a name="line.179"></a>
-<span class="sourceLineNo">180</span>     * @param error the response error of the coprocessor call<a name="line.180"></a>
-<span class="sourceLineNo">181</span>     */<a name="line.181"></a>
-<span class="sourceLineNo">182</span>    void onRegionError(RegionInfo region, Throwable error);<a name="line.182"></a>
-<span class="sourceLineNo">183</span><a name="line.183"></a>
-<span class="sourceLineNo">184</span>    /**<a name="line.184"></a>
-<span class="sourceLineNo">185</span>     * Indicate that all responses of the regions have been notified by calling<a name="line.185"></a>
-<span class="sourceLineNo">186</span>     * {@link #onRegionComplete(RegionInfo, Object)} or<a name="line.186"></a>
-<span class="sourceLineNo">187</span>     * {@link #onRegionError(RegionInfo, Throwable)}.<a name="line.187"></a>
-<span class="sourceLineNo">188</span>     */<a name="line.188"></a>
-<span class="sourceLineNo">189</span>    void onComplete();<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>    /**<a name="line.191"></a>
-<span class="sourceLineNo">192</span>     * Indicate that we got an error which does not belong to any regions. Usually a locating error.<a name="line.192"></a>
-<span class="sourceLineNo">193</span>     */<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    void onError(Throwable error);<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  }<a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span>  /**<a name="line.197"></a>
-<span class="sourceLineNo">198</span>   * Helper class for sending coprocessorService request that executes a coprocessor call on regions<a name="line.198"></a>
-<span class="sourceLineNo">199</span>   * which are covered by a range.<a name="line.199"></a>
-<span class="sourceLineNo">200</span>   * &lt;p&gt;<a name="line.200"></a>
-<span class="sourceLineNo">201</span>   * If {@code fromRow} is not specified the selection will start with the first table region. If<a name="line.201"></a>
-<span class="sourceLineNo">202</span>   * {@code toRow} is not specified the selection will continue through the last table region.<a name="line.202"></a>
-<span class="sourceLineNo">203</span>   * @param &lt;S&gt; the type of the protobuf Service you want to call.<a name="line.203"></a>
-<span class="sourceLineNo">204</span>   * @param &lt;R&gt; the type of the return value.<a name="line.204"></a>
-<span class="sourceLineNo">205</span>   */<a name="line.205"></a>
-<span class="sourceLineNo">206</span>  interface CoprocessorServiceBuilder&lt;S, R&gt; {<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span>    /**<a name="line.208"></a>
-<span class="sourceLineNo">209</span>     * @param startKey start region selection with region containing this row, inclusive.<a name="line.209"></a>
-<span class="sourceLineNo">210</span>     */<a name="line.210"></a>
-<span class="sourceLineNo">211</span>    default CoprocessorServiceBuilder&lt;S, R&gt; fromRow(byte[] startKey) {<a name="line.211"></a>
-<span class="sourceLineNo">212</span>      return fromRow(startKey, true);<a name="line.212"></a>
-<span class="sourceLineNo">213</span>    }<a name="line.213"></a>
-<span class="sourceLineNo">214</span><a name="line.214"></a>
-<span class="sourceLineNo">215</span>    /**<a name="line.215"></a>
-<span class="sourceLineNo">216</span>     * @param startKey start region selection with region containing this row<a name="line.216"></a>
-<span class="sourceLineNo">217</span>     * @param inclusive whether to include the startKey<a name="line.217"></a>
-<span class="sourceLineNo">218</span>     */<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    CoprocessorServiceBuilder&lt;S, R&gt; fromRow(byte[] startKey, boolean inclusive);<a name="line.219"></a>
-<span class="sourceLineNo">220</span><a name="line.220"></a>
-<span class="sourceLineNo">221</span>    /**<a name="line.221"></a>
-<span class="sourceLineNo">222</span>     * @param endKey select regions up to and including the region containing this row, exclusive.<a name="line.222"></a>
-<span class="sourceLineNo">223</span>     */<a name="line.223"></a>
-<span class="sourceLineNo">224</span>    default CoprocessorServiceBuilder&lt;S, R&gt; toRow(byte[] endKey) {<a name="line.224"></a>
-<span class="sourceLineNo">225</span>      return toRow(endKey, false);<a name="line.225"></a>
-<span class="sourceLineNo">226</span>    }<a name="line.226"></a>
-<span class="sourceLineNo">227</span><a name="line.227"></a>
-<span class="sourceLineNo">228</span>    /**<a name="line.228"></a>
-<span class="sourceLineNo">229</span>     * @param endKey select regions up to and including the region containing this row<a name="line.229"></a>
-<span class="sourceLineNo">230</span>     * @param inclusive whether to include the endKey<a name="line.230"></a>
-<span class="sourceLineNo">231</span>     */<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    CoprocessorServiceBuilder&lt;S, R&gt; toRow(byte[] endKey, boolean inclusive);<a name="line.232"></a>
-<span class="sourceLineNo">233</span><a name="line.233"></a>
-<span class="sourceLineNo">234</span>    /**<a name="line.234"></a>
-<span class="sourceLineNo">235</span>     * Execute the coprocessorService request. You can get the response through the<a name="line.235"></a>
-<span class="sourceLineNo">236</span>     * {@link CoprocessorCallback}.<a name="line.236"></a>
-<span class="sourceLineNo">237</span>     */<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    void execute();<a name="line.238"></a>
-<span class="sourceLineNo">239</span>  }<a name="line.239"></a>
-<span class="sourceLineNo">240</span><a name="line.240"></a>
-<span class="sourceLineNo">241</span>  /**<a name="line.241"></a>
-<span class="sourceLineNo">242</span>   * Execute a coprocessor call on the regions which are covered by a range.<a name="line.242"></a>
-<span class="sourceLineNo">243</span>   * &lt;p&gt;<a name="line.243"></a>
-<span class="sourceLineNo">244</span>   * Use the returned {@link CoprocessorServiceBuilder} construct your request and then execute it.<a name="line.244"></a>
-<span class="sourceLineNo">245</span>   * &lt;p&gt;<a name="line.245"></a>
-<span class="sourceLineNo">246</span>   * The {@code stubMaker} is just a delegation to the {@code xxxService.newStub} call. Usually it<a name="line.246"></a>
-<span class="sourceLineNo">247</span>   * is only a one line lambda expression, like:<a name="line.247"></a>
-<span class="sourceLineNo">248</span>   *<a name="line.248"></a>
-<span class="sourceLineNo">249</span>   * &lt;pre&gt;<a name="line.249"></a>
-<span class="sourceLineNo">250</span>   * &lt;code&gt;<a name="line.250"></a>
-<span class="sourceLineNo">251</span>   * channel -&gt; xxxService.newStub(channel)<a name="line.251"></a>
-<span class="sourceLineNo">252</span>   * &lt;/code&gt;<a name="line.252"></a>
-<span class="sourceLineNo">253</span>   * &lt;/pre&gt;<a name="line.253"></a>
-<span class="sourceLineNo">254</span>   *<a name="line.254"></a>
-<span class="sourceLineNo">255</span>   * @param stubMaker a delegation to the actual {@code newStub} call.<a name="line.255"></a>
-<span class="sourceLineNo">256</span>   * @param callable a delegation to the actual protobuf rpc call. See the comment of<a name="line.256"></a>
-<span class="sourceLineNo">257</span>   *          {@link CoprocessorCallable} for more details.<a name="line.257"></a>
-<span class="sourceLineNo">258</span>   * @param callback callback to get the response. See the comment of {@link CoprocessorCallback}<a name="line.258"></a>
-<span class="sourceLineNo">259</span>   *          for more details.<a name="line.259"></a>
-<span class="sourceLineNo">260</span>   */<a name="line.260"></a>
-<span class="sourceLineNo">261</span>  &lt;S, R&gt; CoprocessorServiceBuilder&lt;S, R&gt; coprocessorService(Function&lt;RpcChannel, S&gt; stubMaker,<a name="line.261"></a>
-<span class="sourceLineNo">262</span>      CoprocessorCallable&lt;S, R&gt; callable, CoprocessorCallback&lt;R&gt; callback);<a name="line.262"></a>
-<span class="sourceLineNo">263</span>}<a name="line.263"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/67a6e2ec/apidocs/src-html/org/apache/hadoop/hbase/client/RawAsyncTable.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/RawAsyncTable.html b/apidocs/src-html/org/apache/hadoop/hbase/client/RawAsyncTable.html
deleted file mode 100644
index ebf2220..0000000
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/RawAsyncTable.html
+++ /dev/null
@@ -1,335 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
-<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
-<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
-<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
-<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
-<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
-<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
-<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
-<span class="sourceLineNo">009</span> *<a name="line.9"></a>
-<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
-<span class="sourceLineNo">011</span> *<a name="line.11"></a>
-<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
-<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
-<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
-<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
-<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
-<span class="sourceLineNo">017</span> */<a name="line.17"></a>
-<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>import java.util.concurrent.CompletableFuture;<a name="line.20"></a>
-<span class="sourceLineNo">021</span>import java.util.function.Function;<a name="line.21"></a>
-<span class="sourceLineNo">022</span><a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.23"></a>
-<span class="sourceLineNo">024</span><a name="line.24"></a>
-<span class="sourceLineNo">025</span>import com.google.protobuf.RpcCallback;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import com.google.protobuf.RpcChannel;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import com.google.protobuf.RpcController;<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span>/**<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * A low level asynchronous table.<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * &lt;p&gt;<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * The implementation is required to be thread safe.<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * &lt;p&gt;<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * The returned {@code CompletableFuture} will be finished directly in the rpc framework's callback<a name="line.34"></a>
-<span class="sourceLineNo">035</span> * thread, so typically you should not do any time consuming work inside these methods, otherwise<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * you will be likely to block at least one connection to RS(even more if the rpc framework uses<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * NIO).<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * &lt;p&gt;<a name="line.38"></a>
-<span class="sourceLineNo">039</span> * So, only experts that want to build high performance service should use this interface directly,<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * especially for the {@link #scan(Scan, RawScanResultConsumer)} below.<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * @since 2.0.0<a name="line.41"></a>
-<span class="sourceLineNo">042</span> */<a name="line.42"></a>
-<span class="sourceLineNo">043</span>@InterfaceAudience.Public<a name="line.43"></a>
-<span class="sourceLineNo">044</span>public interface RawAsyncTable extends AsyncTableBase {<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>   * The basic scan API uses the observer pattern. All results that match the given scan object will<a name="line.47"></a>
-<span class="sourceLineNo">048</span>   * be passed to the given {@code consumer} by calling {@code RawScanResultConsumer.onNext}.<a name="line.48"></a>
-<span class="sourceLineNo">049</span>   * {@code RawScanResultConsumer.onComplete} means the scan is finished, and<a name="line.49"></a>
-<span class="sourceLineNo">050</span>   * {@code RawScanResultConsumer.onError} means we hit an unrecoverable error and the scan is<a name="line.50"></a>
-<span class="sourceLineNo">051</span>   * terminated. {@code RawScanResultConsumer.onHeartbeat} means the RS is still working but we can<a name="line.51"></a>
-<span class="sourceLineNo">052</span>   * not get a valid result to call {@code RawScanResultConsumer.onNext}. This is usually because<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   * the matched results are too sparse, for example, a filter which almost filters out everything<a name="line.53"></a>
-<span class="sourceLineNo">054</span>   * is specified.<a name="line.54"></a>
-<span class="sourceLineNo">055</span>   * &lt;p&gt;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   * Notice that, the methods of the given {@code consumer} will be called directly in the rpc<a name="line.56"></a>
-<span class="sourceLineNo">057</span>   * framework's callback thread, so typically you should not do any time consuming work inside<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   * these methods, otherwise you will be likely to block at least one connection to RS(even more if<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   * the rpc framework uses NIO).<a name="line.59"></a>
-<span class="sourceLineNo">060</span>   * @param scan A configured {@link Scan} object.<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   * @param consumer the consumer used to receive results.<a name="line.61"></a>
-<span class="sourceLineNo">062</span>   */<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  void scan(Scan scan, RawScanResultConsumer consumer);<a name="line.63"></a>
-<span class="sourceLineNo">064</span><a name="line.64"></a>
-<span class="sourceLineNo">065</span>  /**<a name="line.65"></a>
-<span class="sourceLineNo">066</span>   * Delegate to a protobuf rpc call.<a name="line.66"></a>
-<span class="sourceLineNo">067</span>   * &lt;p&gt;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>   * Usually, it is just a simple lambda expression, like:<a name="line.68"></a>
-<span class="sourceLineNo">069</span>   *<a name="line.69"></a>
-<span class="sourceLineNo">070</span>   * &lt;pre&gt;<a name="line.70"></a>
-<span class="sourceLineNo">071</span>   * &lt;code&gt;<a name="line.71"></a>
-<span class="sourceLineNo">072</span>   * (stub, controller, rpcCallback) -&gt; {<a name="line.72"></a>
-<span class="sourceLineNo">073</span>   *   XXXRequest request = ...; // prepare the request<a name="line.73"></a>
-<span class="sourceLineNo">074</span>   *   stub.xxx(controller, request, rpcCallback);<a name="line.74"></a>
-<span class="sourceLineNo">075</span>   * }<a name="line.75"></a>
-<span class="sourceLineNo">076</span>   * &lt;/code&gt;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>   * &lt;/pre&gt;<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   *<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   * And if you can prepare the {@code request} before calling the coprocessorService method, the<a name="line.79"></a>
-<span class="sourceLineNo">080</span>   * lambda expression will be:<a name="line.80"></a>
-<span class="sourceLineNo">081</span>   *<a name="line.81"></a>
-<span class="sourceLineNo">082</span>   * &lt;pre&gt;<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   * &lt;code&gt;<a name="line.83"></a>
-<span class="sourceLineNo">084</span>   * (stub, controller, rpcCallback) -&gt; stub.xxx(controller, request, rpcCallback)<a name="line.84"></a>
-<span class="sourceLineNo">085</span>   * &lt;/code&gt;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>   * &lt;/pre&gt;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>   */<a name="line.87"></a>
-<span class="sourceLineNo">088</span>  @InterfaceAudience.Public<a name="line.88"></a>
-<span class="sourceLineNo">089</span>  @FunctionalInterface<a name="line.89"></a>
-<span class="sourceLineNo">090</span>  interface CoprocessorCallable&lt;S, R&gt; {<a name="line.90"></a>
-<span class="sourceLineNo">091</span><a name="line.91"></a>
-<span class="sourceLineNo">092</span>    /**<a name="line.92"></a>
-<span class="sourceLineNo">093</span>     * Represent the actual protobuf rpc call.<a name="line.93"></a>
-<span class="sourceLineNo">094</span>     * @param stub the asynchronous stub<a name="line.94"></a>
-<span class="sourceLineNo">095</span>     * @param controller the rpc controller, has already been prepared for you<a name="line.95"></a>
-<span class="sourceLineNo">096</span>     * @param rpcCallback the rpc callback, has already been prepared for you<a name="line.96"></a>
-<span class="sourceLineNo">097</span>     */<a name="line.97"></a>
-<span class="sourceLineNo">098</span>    void call(S stub, RpcController controller, RpcCallback&lt;R&gt; rpcCallback);<a name="line.98"></a>
-<span class="sourceLineNo">099</span>  }<a name="line.99"></a>
-<span class="sourceLineNo">100</span><a name="line.100"></a>
-<span class="sourceLineNo">101</span>  /**<a name="line.101"></a>
-<span class="sourceLineNo">102</span>   * Execute the given coprocessor call on the region which contains the given {@code row}.<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   * &lt;p&gt;<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   * The {@code stubMaker} is just a delegation to the {@code newStub} call. Usually it is only a<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   * one line lambda expression, like:<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   *<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   * &lt;pre&gt;<a name="line.107"></a>
-<span class="sourceLineNo">108</span>   * &lt;code&gt;<a name="line.108"></a>
-<span class="sourceLineNo">109</span>   * channel -&gt; xxxService.newStub(channel)<a name="line.109"></a>
-<span class="sourceLineNo">110</span>   * &lt;/code&gt;<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   * &lt;/pre&gt;<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   *<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   * @param stubMaker a delegation to the actual {@code newStub} call.<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   * @param callable a delegation to the actual protobuf rpc call. See the comment of<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   *          {@link CoprocessorCallable} for more details.<a name="line.115"></a>
-<span class="sourceLineNo">116</span>   * @param row The row key used to identify the remote region location<a name="line.116"></a>
-<span class="sourceLineNo">117</span>   * @param &lt;S&gt; the type of the asynchronous stub<a name="line.117"></a>
-<span class="sourceLineNo">118</span>   * @param &lt;R&gt; the type of the return value<a name="line.118"></a>
-<span class="sourceLineNo">119</span>   * @return the return value of the protobuf rpc call, wrapped by a {@link CompletableFuture}.<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   * @see CoprocessorCallable<a name="line.120"></a>
-<span class="sourceLineNo">121</span>   */<a name="line.121"></a>
-<span class="sourceLineNo">122</span>  &lt;S, R&gt; CompletableFuture&lt;R&gt; coprocessorService(Function&lt;RpcChannel, S&gt; stubMaker,<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      CoprocessorCallable&lt;S, R&gt; callable, byte[] row);<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>   * The callback when we want to execute a coprocessor call on a range of regions.<a name="line.126"></a>
-<span class="sourceLineNo">127</span>   * &lt;p&gt;<a name="line.127"></a>
-<span class="sourceLineNo">128</span>   * As the locating itself also takes some time, the implementation may want to send rpc calls on<a name="line.128"></a>
-<span class="sourceLineNo">129</span>   * the fly, which means we do not know how many regions we have when we get the return value of<a name="line.129"></a>
-<span class="sourceLineNo">130</span>   * the rpc calls, so we need an {@link #onComplete()} which is used to tell you that we have<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * passed all the return values to you(through the {@link #onRegionComplete(RegionInfo, Object)}<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   * or {@link #onRegionError(RegionInfo, Throwable)} calls), i.e, there will be no<a name="line.132"></a>
-<span class="sourceLineNo">133</span>   * {@link #onRegionComplete(RegionInfo, Object)} or {@link #onRegionError(RegionInfo, Throwable)}<a name="line.133"></a>
-<span class="sourceLineNo">134</span>   * calls in the future.<a name="line.134"></a>
-<span class="sourceLineNo">135</span>   * &lt;p&gt;<a name="line.135"></a>
-<span class="sourceLineNo">136</span>   * Here is a pseudo code to describe a typical implementation of a range coprocessor service<a name="line.136"></a>
-<span class="sourceLineNo">137</span>   * method to help you better understand how the {@link CoprocessorCallback} will be called. The<a name="line.137"></a>
-<span class="sourceLineNo">138</span>   * {@code callback} in the pseudo code is our {@link CoprocessorCallback}. And notice that the<a name="line.138"></a>
-<span class="sourceLineNo">139</span>   * {@code whenComplete} is {@code CompletableFuture.whenComplete}.<a name="line.139"></a>
-<span class="sourceLineNo">140</span>   *<a name="line.140"></a>
-<span class="sourceLineNo">141</span>   * &lt;pre&gt;<a name="line.141"></a>
-<span class="sourceLineNo">142</span>   * locateThenCall(byte[] row) {<a name="line.142"></a>
-<span class="sourceLineNo">143</span>   *   locate(row).whenComplete((location, locateError) -&gt; {<a name="line.143"></a>
-<span class="sourceLineNo">144</span>   *     if (locateError != null) {<a name="line.144"></a>
-<span class="sourceLineNo">145</span>   *       callback.onError(locateError);<a name="line.145"></a>
-<span class="sourceLineNo">146</span>   *       return;<a name="line.146"></a>
-<span class="sourceLineNo">147</span>   *     }<a name="line.147"></a>
-<span class="sourceLineNo">148</span>   *     incPendingCall();<a name="line.148"></a>
-<span class="sourceLineNo">149</span>   *     region = location.getRegion();<a name="line.149"></a>
-<span class="sourceLineNo">150</span>   *     if (region.getEndKey() &gt; endKey) {<a name="line.150"></a>
-<span class="sourceLineNo">151</span>   *       locateEnd = true;<a name="line.151"></a>
-<span class="sourceLineNo">152</span>   *     } else {<a name="line.152"></a>
-<span class="sourceLineNo">153</span>   *       locateThenCall(region.getEndKey());<a name="line.153"></a>
-<span class="sourceLineNo">154</span>   *     }<a name="line.154"></a>
-<span class="sourceLineNo">155</span>   *     sendCall().whenComplete((resp, error) -&gt; {<a name="line.155"></a>
-<span class="sourceLineNo">156</span>   *       if (error != null) {<a name="line.156"></a>
-<span class="sourceLineNo">157</span>   *         callback.onRegionError(region, error);<a name="line.157"></a>
-<span class="sourceLineNo">158</span>   *       } else {<a name="line.158"></a>
-<span class="sourceLineNo">159</span>   *         callback.onRegionComplete(region, resp);<a name="line.159"></a>
-<span class="sourceLineNo">160</span>   *       }<a name="line.160"></a>
-<span class="sourceLineNo">161</span>   *       if (locateEnd &amp;&amp; decPendingCallAndGet() == 0) {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>   *         callback.onComplete();<a name="line.162"></a>
-<span class="sourceLineNo">163</span>   *       }<a name="line.163"></a>
-<span class="sourceLineNo">164</span>   *     });<a name="line.164"></a>
-<span class="sourceLineNo">165</span>   *   });<a name="line.165"></a>
-<span class="sourceLineNo">166</span>   * }<a name="line.166"></a>
-<span class="sourceLineNo">167</span>   * &lt;/pre&gt;<a name="line.167"></a>
-<span class="sourceLineNo">168</span>   */<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  @InterfaceAudience.Public<a name="line.169"></a>
-<span class="sourceLineNo">170</span>  interface CoprocessorCallback&lt;R&gt; {<a name="line.170"></a>
-<span class="sourceLineNo">171</span><a name="line.171"></a>
-<span class="sourceLineNo">172</span>    /**<a name="line.172"></a>
-<span class="sourceLineNo">173</span>     * @param region the region that the response belongs to<a name="line.173"></a>
-<span class="sourceLineNo">174</span>     * @param resp the response of the coprocessor call<a name="line.174"></a>
-<span class="sourceLineNo">175</span>     */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    void onRegionComplete(RegionInfo region, R resp);<a name="line.176"></a>
-<span class="sourceLineNo">177</span><a name="line.177"></a>
-<span class="sourceLineNo">178</span>    /**<a name="line.178"></a>
-<span class="sourceLineNo">179</span>     * @param region the region that the error belongs to<a name="line.179"></a>
-<span class="sourceLineNo">180</span>     * @param error the response error of the coprocessor call<a name="line.180"></a>
-<span class="sourceLineNo">181</span>     */<a name="line.181"></a>
-<span class="sourceLineNo">182</span>    void onRegionError(RegionInfo region, Throwable error);<a name="line.182"></a>
-<span class="sourceLineNo">183</span><a name="line.183"></a>
-<span class="sourceLineNo">184</span>    /**<a name="line.184"></a>
-<span class="sourceLineNo">185</span>     * Indicate that all responses of the regions have been notified by calling<a name="line.185"></a>
-<span class="sourceLineNo">186</span>     * {@link #onRegionComplete(RegionInfo, Object)} or<a name="line.186"></a>
-<span class="sourceLineNo">187</span>     * {@link #onRegionError(RegionInfo, Throwable)}.<a name="line.187"></a>
-<span class="sourceLineNo">188</span>     */<a name="line.188"></a>
-<span class="sourceLineNo">189</span>    void onComplete();<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>    /**<a name="line.191"></a>
-<span class="sourceLineNo">192</span>     * Indicate that we got an error which does not belong to any regions. Usually a locating error.<a name="line.192"></a>
-<span class="sourceLineNo">193</span>     */<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    void onError(Throwable error);<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  }<a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span>  /**<a name="line.197"></a>
-<span class="sourceLineNo">198</span>   * Helper class for sending coprocessorService request that executes a coprocessor call on regions<a name="line.198"></a>
-<span class="sourceLineNo">199</span>   * which are covered by a range.<a name="line.199"></a>
-<span class="sourceLineNo">200</span>   * &lt;p&gt;<a name="line.200"></a>
-<span class="sourceLineNo">201</span>   * If {@code fromRow} is not specified the selection will start with the first table region. If<a name="line.201"></a>
-<span class="sourceLineNo">202</span>   * {@code toRow} is not specified the selection will continue through the last table region.<a name="line.202"></a>
-<span class="sourceLineNo">203</span>   * @param &lt;S&gt; the type of the protobuf Service you want to call.<a name="line.203"></a>
-<span class="sourceLineNo">204</span>   * @param &lt;R&gt; the type of the return value.<a name="line.204"></a>
-<span class="sourceLineNo">205</span>   */<a name="line.205"></a>
-<span class="sourceLineNo">206</span>  interface CoprocessorServiceBuilder&lt;S, R&gt; {<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span>    /**<a name="line.208"></a>
-<span class="sourceLineNo">209</span>     * @param startKey start region selection with region containing this row, inclusive.<a name="line.209"></a>
-<span class="sourceLineNo">210</span>     */<a name="line.210"></a>
-<span class="sourceLineNo">211</span>    default CoprocessorServiceBuilder&lt;S, R&gt; fromRow(byte[] startKey) {<a name="line.211"></a>
-<span class="sourceLineNo">212</span>      return fromRow(startKey, true);<a name="line.212"></a>
-<span class="sourceLineNo">213</span>    }<a name="line.213"></a>
-<span class="sourceLineNo">214</span><a name="line.214"></a>
-<span class="sourceLineNo">215</span>    /**<a name="line.215"></a>
-<span class="sourceLineNo">216</span>     * @param startKey start region selection with region containing this row<a name="line.216"></a>
-<span class="sourceLineNo">217</span>     * @param inclusive whether to include the startKey<a name="line.217"></a>
-<span class="sourceLineNo">218</span>     */<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    CoprocessorServiceBuilder&lt;S, R&gt; fromRow(byte[] startKey, boolean inclusive);<a name="line.219"></a>
-<span class="sourceLineNo">220</span><a name="line.220"></a>
-<span class="sourceLineNo">221</span>    /**<a name="line.221"></a>
-<span class="sourceLineNo">222</span>     * @param endKey select regions up to and including the region containing this row, exclusive.<a name="line.222"></a>
-<span class="sourceLineNo">223</span>     */<a name="line.223"></a>
-<span class="sourceLineNo">224</span>    default CoprocessorServiceBuilder&lt;S, R&gt; toRow(byte[] endKey) {<a name="line.224"></a>
-<span class="sourceLineNo">225</span>      return toRow(endKey, false);<a name="line.225"></a>
-<span class="sourceLineNo">226</span>    }<a name="line.226"></a>
-<span class="sourceLineNo">227</span><a name="line.227"></a>
-<span class="sourceLineNo">228</span>    /**<a name="line.228"></a>
-<span class="sourceLineNo">229</span>     * @param endKey select regions up to and including the region containing this row<a name="line.229"></a>
-<span class="sourceLineNo">230</span>     * @param inclusive whether to include the endKey<a name="line.230"></a>
-<span class="sourceLineNo">231</span>     */<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    CoprocessorServiceBuilder&lt;S, R&gt; toRow(byte[] endKey, boolean inclusive);<a name="line.232"></a>
-<span class="sourceLineNo">233</span><a name="line.233"></a>
-<span class="sourceLineNo">234</span>    /**<a name="line.234"></a>
-<span class="sourceLineNo">235</span>     * Execute the coprocessorService request. You can get the response through the<a name="line.235"></a>
-<span class="sourceLineNo">236</span>     * {@link CoprocessorCallback}.<a name="line.236"></a>
-<span class="sourceLineNo">237</span>     */<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    void execute();<a name="line.238"></a>
-<span class="sourceLineNo">239</span>  }<a name="line.239"></a>
-<span class="sourceLineNo">240</span><a name="line.240"></a>
-<span class="sourceLineNo">241</span>  /**<a name="line.241"></a>
-<span class="sourceLineNo">242</span>   * Execute a coprocessor call on the regions which are covered by a range.<a name="line.242"></a>
-<span class="sourceLineNo">243</span>   * &lt;p&gt;<a name="line.243"></a>
-<span class="sourceLineNo">244</span>   * Use the returned {@link CoprocessorServiceBuilder} construct your request and then execute it.<a name="line.244"></a>
-<span class="sourceLineNo">245</span>   * &lt;p&gt;<a name="line.245"></a>
-<span class="sourceLineNo">246</span>   * The {@code stubMaker} is just a delegation to the {@code xxxService.newStub} call. Usually it<a name="line.246"></a>
-<span class="sourceLineNo">247</span>   * is only a one line lambda expression, like:<a name="line.247"></a>
-<span class="sourceLineNo">248</span>   *<a name="line.248"></a>
-<span class="sourceLineNo">249</span>   * &lt;pre&gt;<a name="line.249"></a>
-<span class="sourceLineNo">250</span>   * &lt;code&gt;<a name="line.250"></a>
-<span class="sourceLineNo">251</span>   * channel -&gt; xxxService.newStub(channel)<a name="line.251"></a>
-<span class="sourceLineNo">252</span>   * &lt;/code&gt;<a name="line.252"></a>
-<span class="sourceLineNo">253</span>   * &lt;/pre&gt;<a name="line.253"></a>
-<span class="sourceLineNo">254</span>   *<a name="line.254"></a>
-<span class="sourceLineNo">255</span>   * @param stubMaker a delegation to the actual {@code newStub} call.<a name="line.255"></a>
-<span class="sourceLineNo">256</span>   * @param callable a delegation to the actual protobuf rpc call. See the comment of<a name="line.256"></a>
-<span class="sourceLineNo">257</span>   *          {@link CoprocessorCallable} for more details.<a name="line.257"></a>
-<span class="sourceLineNo">258</span>   * @param callback callback to get the response. See the comment of {@link CoprocessorCallback}<a name="line.258"></a>
-<span class="sourceLineNo">259</span>   *          for more details.<a name="line.259"></a>
-<span class="sourceLineNo">260</span>   */<a name="line.260"></a>
-<span class="sourceLineNo">261</span>  &lt;S, R&gt; CoprocessorServiceBuilder&lt;S, R&gt; coprocessorService(Function&lt;RpcChannel, S&gt; stubMaker,<a name="line.261"></a>
-<span class="sourceLineNo">262</span>      CoprocessorCallable&lt;S, R&gt; callable, CoprocessorCallback&lt;R&gt; callback);<a name="line.262"></a>
-<span class="sourceLineNo">263</span>}<a name="line.263"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/67a6e2ec/apidocs/src-html/org/apache/hadoop/hbase/client/RawScanResultConsumer.ScanController.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/RawScanResultConsumer.ScanController.html b/apidocs/src-html/org/apache/hadoop/hbase/client/RawScanResultConsumer.ScanController.html
deleted file mode 100644
index b1841ca..0000000
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/RawScanResultConsumer.ScanController.html
+++ /dev/null
@@ -1,209 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
-<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
-<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
-<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
-<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
-<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
-<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
-<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
-<span class="sourceLineNo">009</span> *<a name="line.9"></a>
-<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
-<span class="sourceLineNo">011</span> *<a name="line.11"></a>
-<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
-<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
-<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
-<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
-<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
-<span class="sourceLineNo">017</span> */<a name="line.17"></a>
-<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>import java.util.Optional;<a name="line.20"></a>
-<span class="sourceLineNo">021</span><a name="line.21"></a>
-<span class="sourceLineNo">022</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.client.Result;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.client.metrics.ScanMetrics;<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> * Receives {@link Result} for an asynchronous scan.<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * &lt;p&gt;<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * Notice that, the {@link #onNext(Result[], ScanController)} method will be called in the thread<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * which we send request to HBase service. So if you want the asynchronous scanner fetch data from<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * HBase in background while you process the returned data, you need to move the processing work to<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * another thread to make the {@code onNext} call return immediately. And please do NOT do any time<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * consuming tasks in all methods below unless you know what you are doing.<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * @since 2.0.0<a name="line.34"></a>
-<span class="sourceLineNo">035</span> */<a name="line.35"></a>
-<span class="sourceLineNo">036</span>@InterfaceAudience.Public<a name="line.36"></a>
-<span class="sourceLineNo">037</span>public interface RawScanResultConsumer {<a name="line.37"></a>
-<span class="sourceLineNo">038</span><a name="line.38"></a>
-<span class="sourceLineNo">039</span>  /**<a name="line.39"></a>
-<span class="sourceLineNo">040</span>   * Used to resume a scan.<a name="line.40"></a>
-<span class="sourceLineNo">041</span>   */<a name="line.41"></a>
-<span class="sourceLineNo">042</span>  @InterfaceAudience.Public<a name="line.42"></a>
-<span class="sourceLineNo">043</span>  interface ScanResumer {<a name="line.43"></a>
-<span class="sourceLineNo">044</span><a name="line.44"></a>
-<span class="sourceLineNo">045</span>    /**<a name="line.45"></a>
-<span class="sourceLineNo">046</span>     * Resume the scan. You are free to call it multiple time but only the first call will take<a name="line.46"></a>
-<span class="sourceLineNo">047</span>     * effect.<a name="line.47"></a>
-<span class="sourceLineNo">048</span>     */<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    void resume();<a name="line.49"></a>
-<span class="sourceLineNo">050</span>  }<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>   * Used to suspend or stop a scan, or get a scan cursor if available.<a name="line.53"></a>
-<span class="sourceLineNo">054</span>   * &lt;p&gt;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>   * Notice that, you should only call the {@link #suspend()} or {@link #terminate()} inside onNext<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   * or onHeartbeat method. A IllegalStateException will be thrown if you call them at other places.<a name="line.56"></a>
-<span class="sourceLineNo">057</span>   * &lt;p&gt;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   * You can only call one of the {@link #suspend()} and {@link #terminate()} methods(of course you<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   * are free to not call them both), and the methods are not reentrant. An IllegalStateException<a name="line.59"></a>
-<span class="sourceLineNo">060</span>   * will be thrown if you have already called one of the methods.<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   */<a name="line.61"></a>
-<span class="sourceLineNo">062</span>  @InterfaceAudience.Public<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  interface ScanController {<a name="line.63"></a>
-<span class="sourceLineNo">064</span><a name="line.64"></a>
-<span class="sourceLineNo">065</span>    /**<a name="line.65"></a>
-<span class="sourceLineNo">066</span>     * Suspend the scan.<a name="line.66"></a>
-<span class="sourceLineNo">067</span>     * &lt;p&gt;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>     * This means we will stop fetching data in background, i.e., will not call onNext any more<a name="line.68"></a>
-<span class="sourceLineNo">069</span>     * before you resume the scan.<a name="line.69"></a>
-<span class="sourceLineNo">070</span>     * @return A resumer used to resume the scan later.<a name="line.70"></a>
-<span class="sourceLineNo">071</span>     */<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    ScanResumer suspend();<a name="line.72"></a>
-<span class="sourceLineNo">073</span><a name="line.73"></a>
-<span class="sourceLineNo">074</span>    /**<a name="line.74"></a>
-<span class="sourceLineNo">075</span>     * Terminate the scan.<a name="line.75"></a>
-<span class="sourceLineNo">076</span>     * &lt;p&gt;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>     * This is useful when you have got enough results and want to stop the scan in onNext method,<a name="line.77"></a>
-<span class="sourceLineNo">078</span>     * or you want to stop the scan in onHeartbeat method because it has spent too many time.<a name="line.78"></a>
-<span class="sourceLineNo">079</span>     */<a name="line.79"></a>
-<span class="sourceLineNo">080</span>    void terminate();<a name="line.80"></a>
-<span class="sourceLineNo">081</span><a name="line.81"></a>
-<span class="sourceLineNo">082</span>    /**<a name="line.82"></a>
-<span class="sourceLineNo">083</span>     * Get the scan cursor if available.<a name="line.83"></a>
-<span class="sourceLineNo">084</span>     * @return The scan cursor.<a name="line.84"></a>
-<span class="sourceLineNo">085</span>     */<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    Optional&lt;Cursor&gt; cursor();<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>   * Indicate that we have receive some data.<a name="line.90"></a>
-<span class="sourceLineNo">091</span>   * @param results the data fetched from HBase service.<a name="line.91"></a>
-<span class="sourceLineNo">092</span>   * @param controller used to suspend or terminate the scan. Notice that the {@code controller}<a name="line.92"></a>
-<span class="sourceLineNo">093</span>   *          instance is only valid within scope of onNext method. You can only call its method in<a name="line.93"></a>
-<span class="sourceLineNo">094</span>   *          onNext, do NOT store it and call it later outside onNext.<a name="line.94"></a>
-<span class="sourceLineNo">095</span>   */<a name="line.95"></a>
-<span class="sourceLineNo">096</span>  void onNext(Result[] results, ScanController controller);<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>   * Indicate that there is a heartbeat message but we have not cumulated enough cells to call<a name="line.99"></a>
-<span class="sourceLineNo">100</span>   * {@link #onNext(Result[], ScanController)}.<a name="line.100"></a>
-<span class="sourceLineNo">101</span>   * &lt;p&gt;<a name="line.101"></a>
-<span class="sourceLineNo">102</span>   * Note that this method will always be called when RS returns something to us but we do not have<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   * enough cells to call {@link #onNext(Result[], ScanController)}. Sometimes it may not be a<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   * 'heartbeat' message for RS, for example, we have a large row with many cells and size limit is<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   * exceeded before sending all the cells for this row. For RS it does send some data to us and the<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   * time limit has not been reached, but we can not return the data to client so here we call this<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   * method to tell client we have already received something.<a name="line.107"></a>
-<span class="sourceLineNo">108</span>   * &lt;p&gt;<a name="line.108"></a>
-<span class="sourceLineNo">109</span>   * This method give you a chance to terminate a slow scan operation.<a name="line.109"></a>
-<span class="sourceLineNo">110</span>   * @param controller used to suspend or terminate the scan. Notice that the {@code controller}<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   *          instance is only valid within the scope of onHeartbeat method. You can only call its<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   *          method in onHeartbeat, do NOT store it and call it later outside onHeartbeat.<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   */<a name="line.113"></a>
-<span class="sourceLineNo">114</span>  default void onHeartbeat(ScanController controller) {<a name="line.114"></a>
-<span class="sourceLineNo">115</span>  }<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>   * Indicate that we hit an unrecoverable error and the scan operation is terminated.<a name="line.118"></a>
-<span class="sourceLineNo">119</span>   * &lt;p&gt;<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   * We will not call {@link #onComplete()} after calling {@link #onError(Throwable)}.<a name="line.120"></a>
-<span class="sourceLineNo">121</span>   */<a name="line.121"></a>
-<span class="sourceLineNo">122</span>  void onError(Throwable error);<a name="line.122"></a>
-<span class="sourceLineNo">123</span><a name="line.123"></a>
-<span class="sourceLineNo">124</span>  /**<a name="line.124"></a>
-<span class="sourceLineNo">125</span>   * Indicate that the scan operation is completed normally.<a name="line.125"></a>
-<span class="sourceLineNo">126</span>   */<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  void onComplete();<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>   * If {@code scan.isScanMetricsEnabled()} returns true, then this method will be called prior to<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * all other methods in this interface to give you the {@link ScanMetrics} instance for this scan<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   * operation. The {@link ScanMetrics} instance will be updated on-the-fly during the scan, you can<a name="line.132"></a>
-<span class="sourceLineNo">133</span>   * store it somewhere to get the metrics at any time if you want.<a name="line.133"></a>
-<span class="sourceLineNo">134</span>   */<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  default void onScanMetricsCreated(ScanMetrics scanMetrics) {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>  }<a name="line.136"></a>
-<span class="sourceLineNo">137</span>}<a name="line.137"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/67a6e2ec/apidocs/src-html/org/apache/hadoop/hbase/client/RawScanResultConsumer.ScanResumer.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/RawScanResultConsumer.ScanResumer.html b/apidocs/src-html/org/apache/hadoop/hbase/client/RawScanResultConsumer.ScanResumer.html
deleted file mode 100644
index b1841ca..0000000
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/RawScanResultConsumer.ScanResumer.html
+++ /dev/null
@@ -1,209 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
-<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
-<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
-<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
-<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
-<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
-<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
-<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
-<span class="sourceLineNo">009</span> *<a name="line.9"></a>
-<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
-<span class="sourceLineNo">011</span> *<a name="line.11"></a>
-<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
-<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
-<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
-<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
-<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
-<span class="sourceLineNo">017</span> */<a name="line.17"></a>
-<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>import java.util.Optional;<a name="line.20"></a>
-<span class="sourceLineNo">021</span><a name="line.21"></a>
-<span class="sourceLineNo">022</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.client.Result;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.client.metrics.ScanMetrics;<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> * Receives {@link Result} for an asynchronous scan.<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * &lt;p&gt;<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * Notice that, the {@link #onNext(Result[], ScanController)} method will be called in the thread<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * which we send request to HBase service. So if you want the asynchronous scanner fetch data from<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * HBase in background while you process the returned data, you need to move the processing work to<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * another thread to make the {@code onNext} call return immediately. And please do NOT do any time<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * consuming tasks in all methods below unless you know what you are doing.<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * @since 2.0.0<a name="line.34"></a>
-<span class="sourceLineNo">035</span> */<a name="line.35"></a>
-<span class="sourceLineNo">036</span>@InterfaceAudience.Public<a name="line.36"></a>
-<span class="sourceLineNo">037</span>public interface RawScanResultConsumer {<a name="line.37"></a>
-<span class="sourceLineNo">038</span><a name="line.38"></a>
-<span class="sourceLineNo">039</span>  /**<a name="line.39"></a>
-<span class="sourceLineNo">040</span>   * Used to resume a scan.<a name="line.40"></a>
-<span class="sourceLineNo">041</span>   */<a name="line.41"></a>
-<span class="sourceLineNo">042</span>  @InterfaceAudience.Public<a name="line.42"></a>
-<span class="sourceLineNo">043</span>  interface ScanResumer {<a name="line.43"></a>
-<span class="sourceLineNo">044</span><a name="line.44"></a>
-<span class="sourceLineNo">045</span>    /**<a name="line.45"></a>
-<span class="sourceLineNo">046</span>     * Resume the scan. You are free to call it multiple time but only the first call will take<a name="line.46"></a>
-<span class="sourceLineNo">047</span>     * effect.<a name="line.47"></a>
-<span class="sourceLineNo">048</span>     */<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    void resume();<a name="line.49"></a>
-<span class="sourceLineNo">050</span>  }<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>   * Used to suspend or stop a scan, or get a scan cursor if available.<a name="line.53"></a>
-<span class="sourceLineNo">054</span>   * &lt;p&gt;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>   * Notice that, you should only call the {@link #suspend()} or {@link #terminate()} inside onNext<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   * or onHeartbeat method. A IllegalStateException will be thrown if you call them at other places.<a name="line.56"></a>
-<span class="sourceLineNo">057</span>   * &lt;p&gt;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   * You can only call one of the {@link #suspend()} and {@link #terminate()} methods(of course you<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   * are free to not call them both), and the methods are not reentrant. An IllegalStateException<a name="line.59"></a>
-<span class="sourceLineNo">060</span>   * will be thrown if you have already called one of the methods.<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   */<a name="line.61"></a>
-<span class="sourceLineNo">062</span>  @InterfaceAudience.Public<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  interface ScanController {<a name="line.63"></a>
-<span class="sourceLineNo">064</span><a name="line.64"></a>
-<span class="sourceLineNo">065</span>    /**<a name="line.65"></a>
-<span class="sourceLineNo">066</span>     * Suspend the scan.<a name="line.66"></a>
-<span class="sourceLineNo">067</span>     * &lt;p&gt;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>     * This means we will stop fetching data in background, i.e., will not call onNext any more<a name="line.68"></a>
-<span class="sourceLineNo">069</span>     * before you resume the scan.<a name="line.69"></a>
-<span class="sourceLineNo">070</span>     * @return A resumer used to resume the scan later.<a name="line.70"></a>
-<span class="sourceLineNo">071</span>     */<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    ScanResumer suspend();<a name="line.72"></a>
-<span class="sourceLineNo">073</span><a name="line.73"></a>
-<span class="sourceLineNo">074</span>    /**<a name="line.74"></a>
-<span class="sourceLineNo">075</span>     * Terminate the scan.<a name="line.75"></a>
-<span class="sourceLineNo">076</span>     * &lt;p&gt;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>     * This is useful when you have got enough results and want to stop the scan in onNext method,<a name="line.77"></a>
-<span class="sourceLineNo">078</span>     * or you want to stop the scan in onHeartbeat method because it has spent too many time.<a name="line.78"></a>
-<span class="sourceLineNo">079</span>     */<a name="line.79"></a>
-<span class="sourceLineNo">080</span>    void terminate();<a name="line.80"></a>
-<span class="sourceLineNo">081</span><a name="line.81"></a>
-<span class="sourceLineNo">082</span>    /**<a name="line.82"></a>
-<span class="sourceLineNo">083</span>     * Get the scan cursor if available.<a name="line.83"></a>
-<span class="sourceLineNo">084</span>     * @return The scan cursor.<a name="line.84"></a>
-<span class="sourceLineNo">085</span>     */<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    Optional&lt;Cursor&gt; cursor();<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>   * Indicate that we have receive some data.<a name="line.90"></a>
-<span class="sourceLineNo">091</span>   * @param results the data fetched from HBase service.<a name="line.91"></a>
-<span class="sourceLineNo">092</span>   * @param controller used to suspend or terminate the scan. Notice that the {@code controller}<a name="line.92"></a>
-<span class="sourceLineNo">093</span>   *          instance is only valid within scope of onNext method. You can only call its method in<a name="line.93"></a>
-<span class="sourceLineNo">094</span>   *          onNext, do NOT store it and call it later outside onNext.<a name="line.94"></a>
-<span class="sourceLineNo">095</span>   */<a name="line.95"></a>
-<span class="sourceLineNo">096</span>  void onNext(Result[] results, ScanController controller);<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>   * Indicate that there is a heartbeat message but we have not cumulated enough cells to call<a name="line.99"></a>
-<span class="sourceLineNo">100</span>   * {@link #onNext(Result[], ScanController)}.<a name="line.100"></a>
-<span class="sourceLineNo">101</span>   * &lt;p&gt;<a name="line.101"></a>
-<span class="sourceLineNo">102</span>   * Note that this method will always be called when RS returns something to us but we do not have<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   * enough cells to call {@link #onNext(Result[], ScanController)}. Sometimes it may not be a<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   * 'heartbeat' message for RS, for example, we have a large row with many cells and size limit is<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   * exceeded before sending all the cells for this row. For RS it does send some data to us and the<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   * time limit has not been reached, but we can not return the data to client so here we call this<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   * method to tell client we have already received something.<a name="line.107"></a>
-<span class="sourceLineNo">108</span>   * &lt;p&gt;<a name="line.108"></a>
-<span class="sourceLineNo">109</span>   * This method give you a chance to terminate a slow scan operation.<a name="line.109"></a>
-<span class="sourceLineNo">110</span>   * @param controller used to suspend or terminate the scan. Notice that the {@code controller}<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   *          instance is only valid within the scope of onHeartbeat method. You can only call its<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   *          method in onHeartbeat, do NOT store it and call it later outside onHeartbeat.<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   */<a name="line.113"></a>
-<span class="sourceLineNo">114</span>  default void onHeartbeat(ScanController controller) {<a name="line.114"></a>
-<span class="sourceLineNo">115</span>  }<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>   * Indicate that we hit an unrecoverable error and the scan operation is terminated.<a name="line.118"></a>
-<span class="sourceLineNo">119</span>   * &lt;p&gt;<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   * We will not call {@link #onComplete()} after calling {@link #onError(Throwable)}.<a name="line.120"></a>
-<span class="sourceLineNo">121</span>   */<a name="line.121"></a>
-<span class="sourceLineNo">122</span>  void onError(Throwable error);<a name="line.122"></a>
-<span class="sourceLineNo">123</span><a name="line.123"></a>
-<span class="sourceLineNo">124</span>  /**<a name="line.124"></a>
-<span class="sourceLineNo">125</span>   * Indicate that the scan operation is completed normally.<a name="line.125"></a>
-<span class="sourceLineNo">126</span>   */<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  void onComplete();<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>   * If {@code scan.isScanMetricsEnabled()} returns true, then this method will be called prior to<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * all other methods in this interface to give you the {@link ScanMetrics} instance for this scan<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   * operation. The {@link ScanMetrics} instance will be updated on-the-fly during the scan, you can<a name="line.132"></a>
-<span class="sourceLineNo">133</span>   * store it somewhere to get the metrics at any time if you want.<a name="line.133"></a>
-<span class="sourceLineNo">134</span>   */<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  default void onScanMetricsCreated(ScanMetrics scanMetrics) {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>  }<a name="line.136"></a>
-<span class="sourceLineNo">137</span>}<a name="line.137"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>


Mime
View raw message