blob: ffe373f738d35fd19e839e120ff67337da406b00 [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>Source code</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="source: package: org.apache.hadoop.hbase.ipc, class: HBaseRpcControllerImpl">
<meta name="generator" content="javadoc/SourceToHTMLConverter">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body class="source-page">
<main role="main">
<div class="source-container">
<pre><span class="source-line-no">001</span><span id="line-1">/*</span>
<span class="source-line-no">002</span><span id="line-2"> * Licensed to the Apache Software Foundation (ASF) under one</span>
<span class="source-line-no">003</span><span id="line-3"> * or more contributor license agreements. See the NOTICE file</span>
<span class="source-line-no">004</span><span id="line-4"> * distributed with this work for additional information</span>
<span class="source-line-no">005</span><span id="line-5"> * regarding copyright ownership. The ASF licenses this file</span>
<span class="source-line-no">006</span><span id="line-6"> * to you under the Apache License, Version 2.0 (the</span>
<span class="source-line-no">007</span><span id="line-7"> * "License"); you may not use this file except in compliance</span>
<span class="source-line-no">008</span><span id="line-8"> * with the License. You may obtain a copy of the License at</span>
<span class="source-line-no">009</span><span id="line-9"> *</span>
<span class="source-line-no">010</span><span id="line-10"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<span class="source-line-no">011</span><span id="line-11"> *</span>
<span class="source-line-no">012</span><span id="line-12"> * Unless required by applicable law or agreed to in writing, software</span>
<span class="source-line-no">013</span><span id="line-13"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<span class="source-line-no">014</span><span id="line-14"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<span class="source-line-no">015</span><span id="line-15"> * See the License for the specific language governing permissions and</span>
<span class="source-line-no">016</span><span id="line-16"> * limitations under the License.</span>
<span class="source-line-no">017</span><span id="line-17"> */</span>
<span class="source-line-no">018</span><span id="line-18">package org.apache.hadoop.hbase.ipc;</span>
<span class="source-line-no">019</span><span id="line-19"></span>
<span class="source-line-no">020</span><span id="line-20">import java.io.IOException;</span>
<span class="source-line-no">021</span><span id="line-21">import java.util.ArrayList;</span>
<span class="source-line-no">022</span><span id="line-22">import java.util.Collections;</span>
<span class="source-line-no">023</span><span id="line-23">import java.util.List;</span>
<span class="source-line-no">024</span><span id="line-24">import java.util.Map;</span>
<span class="source-line-no">025</span><span id="line-25">import org.apache.hadoop.hbase.ExtendedCellScannable;</span>
<span class="source-line-no">026</span><span id="line-26">import org.apache.hadoop.hbase.ExtendedCellScanner;</span>
<span class="source-line-no">027</span><span id="line-27">import org.apache.hadoop.hbase.HConstants;</span>
<span class="source-line-no">028</span><span id="line-28">import org.apache.hadoop.hbase.PrivateCellUtil;</span>
<span class="source-line-no">029</span><span id="line-29">import org.apache.hadoop.hbase.TableName;</span>
<span class="source-line-no">030</span><span id="line-30">import org.apache.hadoop.hbase.client.RegionInfo;</span>
<span class="source-line-no">031</span><span id="line-31">import org.apache.yetus.audience.InterfaceAudience;</span>
<span class="source-line-no">032</span><span id="line-32"></span>
<span class="source-line-no">033</span><span id="line-33">import org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback;</span>
<span class="source-line-no">034</span><span id="line-34"></span>
<span class="source-line-no">035</span><span id="line-35">/**</span>
<span class="source-line-no">036</span><span id="line-36"> * Get instances via {@link RpcControllerFactory} on client-side.</span>
<span class="source-line-no">037</span><span id="line-37"> * @see RpcControllerFactory</span>
<span class="source-line-no">038</span><span id="line-38"> */</span>
<span class="source-line-no">039</span><span id="line-39">@InterfaceAudience.Private</span>
<span class="source-line-no">040</span><span id="line-40">public class HBaseRpcControllerImpl implements HBaseRpcController {</span>
<span class="source-line-no">041</span><span id="line-41"> /**</span>
<span class="source-line-no">042</span><span id="line-42"> * The time, in ms before the call should expire.</span>
<span class="source-line-no">043</span><span id="line-43"> */</span>
<span class="source-line-no">044</span><span id="line-44"> private Integer callTimeout;</span>
<span class="source-line-no">045</span><span id="line-45"></span>
<span class="source-line-no">046</span><span id="line-46"> private boolean done = false;</span>
<span class="source-line-no">047</span><span id="line-47"></span>
<span class="source-line-no">048</span><span id="line-48"> private boolean cancelled = false;</span>
<span class="source-line-no">049</span><span id="line-49"></span>
<span class="source-line-no">050</span><span id="line-50"> private final List&lt;RpcCallback&lt;Object&gt;&gt; cancellationCbs = new ArrayList&lt;&gt;();</span>
<span class="source-line-no">051</span><span id="line-51"></span>
<span class="source-line-no">052</span><span id="line-52"> private IOException exception;</span>
<span class="source-line-no">053</span><span id="line-53"></span>
<span class="source-line-no">054</span><span id="line-54"> private TableName tableName;</span>
<span class="source-line-no">055</span><span id="line-55"></span>
<span class="source-line-no">056</span><span id="line-56"> /**</span>
<span class="source-line-no">057</span><span id="line-57"> * Rpc target Region's RegionInfo we are going against. May be null.</span>
<span class="source-line-no">058</span><span id="line-58"> * @see #hasRegionInfo()</span>
<span class="source-line-no">059</span><span id="line-59"> */</span>
<span class="source-line-no">060</span><span id="line-60"> private RegionInfo regionInfo;</span>
<span class="source-line-no">061</span><span id="line-61"></span>
<span class="source-line-no">062</span><span id="line-62"> /**</span>
<span class="source-line-no">063</span><span id="line-63"> * Priority to set on this request. Set it here in controller so available composing the request.</span>
<span class="source-line-no">064</span><span id="line-64"> * This is the ordained way of setting priorities going forward. We will be undoing the old</span>
<span class="source-line-no">065</span><span id="line-65"> * annotation-based mechanism.</span>
<span class="source-line-no">066</span><span id="line-66"> */</span>
<span class="source-line-no">067</span><span id="line-67"> private int priority = HConstants.PRIORITY_UNSET;</span>
<span class="source-line-no">068</span><span id="line-68"></span>
<span class="source-line-no">069</span><span id="line-69"> /**</span>
<span class="source-line-no">070</span><span id="line-70"> * They are optionally set on construction, cleared after we make the call, and then optionally</span>
<span class="source-line-no">071</span><span id="line-71"> * set on response with the result. We use this lowest common denominator access to Cells because</span>
<span class="source-line-no">072</span><span id="line-72"> * sometimes the scanner is backed by a List of Cells and other times, it is backed by an encoded</span>
<span class="source-line-no">073</span><span id="line-73"> * block that implements CellScanner.</span>
<span class="source-line-no">074</span><span id="line-74"> */</span>
<span class="source-line-no">075</span><span id="line-75"> private ExtendedCellScanner cellScanner;</span>
<span class="source-line-no">076</span><span id="line-76"></span>
<span class="source-line-no">077</span><span id="line-77"> private Map&lt;String, byte[]&gt; requestAttributes = Collections.emptyMap();</span>
<span class="source-line-no">078</span><span id="line-78"></span>
<span class="source-line-no">079</span><span id="line-79"> public HBaseRpcControllerImpl() {</span>
<span class="source-line-no">080</span><span id="line-80"> this(null, (ExtendedCellScanner) null);</span>
<span class="source-line-no">081</span><span id="line-81"> }</span>
<span class="source-line-no">082</span><span id="line-82"></span>
<span class="source-line-no">083</span><span id="line-83"> /**</span>
<span class="source-line-no">084</span><span id="line-84"> * Used server-side. Clients should go via {@link RpcControllerFactory}</span>
<span class="source-line-no">085</span><span id="line-85"> */</span>
<span class="source-line-no">086</span><span id="line-86"> public HBaseRpcControllerImpl(final ExtendedCellScanner cellScanner) {</span>
<span class="source-line-no">087</span><span id="line-87"> this(null, cellScanner);</span>
<span class="source-line-no">088</span><span id="line-88"> }</span>
<span class="source-line-no">089</span><span id="line-89"></span>
<span class="source-line-no">090</span><span id="line-90"> HBaseRpcControllerImpl(RegionInfo regionInfo, final ExtendedCellScanner cellScanner) {</span>
<span class="source-line-no">091</span><span id="line-91"> this.cellScanner = cellScanner;</span>
<span class="source-line-no">092</span><span id="line-92"> this.regionInfo = regionInfo;</span>
<span class="source-line-no">093</span><span id="line-93"> }</span>
<span class="source-line-no">094</span><span id="line-94"></span>
<span class="source-line-no">095</span><span id="line-95"> HBaseRpcControllerImpl(RegionInfo regionInfo, final List&lt;ExtendedCellScannable&gt; cellIterables) {</span>
<span class="source-line-no">096</span><span id="line-96"> this.cellScanner =</span>
<span class="source-line-no">097</span><span id="line-97"> cellIterables == null ? null : PrivateCellUtil.createExtendedCellScanner(cellIterables);</span>
<span class="source-line-no">098</span><span id="line-98"> this.regionInfo = null;</span>
<span class="source-line-no">099</span><span id="line-99"> }</span>
<span class="source-line-no">100</span><span id="line-100"></span>
<span class="source-line-no">101</span><span id="line-101"> @Override</span>
<span class="source-line-no">102</span><span id="line-102"> public boolean hasRegionInfo() {</span>
<span class="source-line-no">103</span><span id="line-103"> return this.regionInfo != null;</span>
<span class="source-line-no">104</span><span id="line-104"> }</span>
<span class="source-line-no">105</span><span id="line-105"></span>
<span class="source-line-no">106</span><span id="line-106"> @Override</span>
<span class="source-line-no">107</span><span id="line-107"> public RegionInfo getRegionInfo() {</span>
<span class="source-line-no">108</span><span id="line-108"> return this.regionInfo;</span>
<span class="source-line-no">109</span><span id="line-109"> }</span>
<span class="source-line-no">110</span><span id="line-110"></span>
<span class="source-line-no">111</span><span id="line-111"> /** Returns One-shot cell scanner (you cannot back it up and restart) */</span>
<span class="source-line-no">112</span><span id="line-112"> @Override</span>
<span class="source-line-no">113</span><span id="line-113"> public ExtendedCellScanner cellScanner() {</span>
<span class="source-line-no">114</span><span id="line-114"> return cellScanner;</span>
<span class="source-line-no">115</span><span id="line-115"> }</span>
<span class="source-line-no">116</span><span id="line-116"></span>
<span class="source-line-no">117</span><span id="line-117"> @edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "IS2_INCONSISTENT_SYNC",</span>
<span class="source-line-no">118</span><span id="line-118"> justification = "The only possible race method is startCancel")</span>
<span class="source-line-no">119</span><span id="line-119"> @Override</span>
<span class="source-line-no">120</span><span id="line-120"> public void setCellScanner(final ExtendedCellScanner cellScanner) {</span>
<span class="source-line-no">121</span><span id="line-121"> this.cellScanner = cellScanner;</span>
<span class="source-line-no">122</span><span id="line-122"> }</span>
<span class="source-line-no">123</span><span id="line-123"></span>
<span class="source-line-no">124</span><span id="line-124"> @Override</span>
<span class="source-line-no">125</span><span id="line-125"> public void setPriority(int priority) {</span>
<span class="source-line-no">126</span><span id="line-126"> this.priority = Math.max(this.priority, priority);</span>
<span class="source-line-no">127</span><span id="line-127"></span>
<span class="source-line-no">128</span><span id="line-128"> }</span>
<span class="source-line-no">129</span><span id="line-129"></span>
<span class="source-line-no">130</span><span id="line-130"> @Override</span>
<span class="source-line-no">131</span><span id="line-131"> public void setPriority(final TableName tn) {</span>
<span class="source-line-no">132</span><span id="line-132"> setPriority(</span>
<span class="source-line-no">133</span><span id="line-133"> tn != null &amp;&amp; tn.isSystemTable() ? HConstants.SYSTEMTABLE_QOS : HConstants.NORMAL_QOS);</span>
<span class="source-line-no">134</span><span id="line-134"> }</span>
<span class="source-line-no">135</span><span id="line-135"></span>
<span class="source-line-no">136</span><span id="line-136"> @Override</span>
<span class="source-line-no">137</span><span id="line-137"> public int getPriority() {</span>
<span class="source-line-no">138</span><span id="line-138"> return priority &lt; 0 ? HConstants.NORMAL_QOS : priority;</span>
<span class="source-line-no">139</span><span id="line-139"> }</span>
<span class="source-line-no">140</span><span id="line-140"></span>
<span class="source-line-no">141</span><span id="line-141"> @edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "IS2_INCONSISTENT_SYNC",</span>
<span class="source-line-no">142</span><span id="line-142"> justification = "The only possible race method is startCancel")</span>
<span class="source-line-no">143</span><span id="line-143"> @Override</span>
<span class="source-line-no">144</span><span id="line-144"> public void reset() {</span>
<span class="source-line-no">145</span><span id="line-145"> priority = 0;</span>
<span class="source-line-no">146</span><span id="line-146"> cellScanner = null;</span>
<span class="source-line-no">147</span><span id="line-147"> exception = null;</span>
<span class="source-line-no">148</span><span id="line-148"> callTimeout = null;</span>
<span class="source-line-no">149</span><span id="line-149"> regionInfo = null;</span>
<span class="source-line-no">150</span><span id="line-150"> tableName = null;</span>
<span class="source-line-no">151</span><span id="line-151"> // In the implementations of some callable with replicas, rpc calls are executed in a executor</span>
<span class="source-line-no">152</span><span id="line-152"> // and we could cancel the operation from outside which means there could be a race between</span>
<span class="source-line-no">153</span><span id="line-153"> // reset and startCancel. Although I think the race should be handled by the callable since the</span>
<span class="source-line-no">154</span><span id="line-154"> // reset may clear the cancel state...</span>
<span class="source-line-no">155</span><span id="line-155"> synchronized (this) {</span>
<span class="source-line-no">156</span><span id="line-156"> done = false;</span>
<span class="source-line-no">157</span><span id="line-157"> cancelled = false;</span>
<span class="source-line-no">158</span><span id="line-158"> cancellationCbs.clear();</span>
<span class="source-line-no">159</span><span id="line-159"> }</span>
<span class="source-line-no">160</span><span id="line-160"> }</span>
<span class="source-line-no">161</span><span id="line-161"></span>
<span class="source-line-no">162</span><span id="line-162"> @Override</span>
<span class="source-line-no">163</span><span id="line-163"> public int getCallTimeout() {</span>
<span class="source-line-no">164</span><span id="line-164"> return callTimeout != null ? callTimeout : 0;</span>
<span class="source-line-no">165</span><span id="line-165"> }</span>
<span class="source-line-no">166</span><span id="line-166"></span>
<span class="source-line-no">167</span><span id="line-167"> @Override</span>
<span class="source-line-no">168</span><span id="line-168"> public void setCallTimeout(int callTimeout) {</span>
<span class="source-line-no">169</span><span id="line-169"> this.callTimeout = callTimeout;</span>
<span class="source-line-no">170</span><span id="line-170"> }</span>
<span class="source-line-no">171</span><span id="line-171"></span>
<span class="source-line-no">172</span><span id="line-172"> @Override</span>
<span class="source-line-no">173</span><span id="line-173"> public boolean hasCallTimeout() {</span>
<span class="source-line-no">174</span><span id="line-174"> return callTimeout != null;</span>
<span class="source-line-no">175</span><span id="line-175"> }</span>
<span class="source-line-no">176</span><span id="line-176"></span>
<span class="source-line-no">177</span><span id="line-177"> @Override</span>
<span class="source-line-no">178</span><span id="line-178"> public Map&lt;String, byte[]&gt; getRequestAttributes() {</span>
<span class="source-line-no">179</span><span id="line-179"> return requestAttributes;</span>
<span class="source-line-no">180</span><span id="line-180"> }</span>
<span class="source-line-no">181</span><span id="line-181"></span>
<span class="source-line-no">182</span><span id="line-182"> @Override</span>
<span class="source-line-no">183</span><span id="line-183"> public void setRequestAttributes(Map&lt;String, byte[]&gt; requestAttributes) {</span>
<span class="source-line-no">184</span><span id="line-184"> this.requestAttributes = requestAttributes;</span>
<span class="source-line-no">185</span><span id="line-185"> }</span>
<span class="source-line-no">186</span><span id="line-186"></span>
<span class="source-line-no">187</span><span id="line-187"> @Override</span>
<span class="source-line-no">188</span><span id="line-188"> public synchronized String errorText() {</span>
<span class="source-line-no">189</span><span id="line-189"> if (!done || exception == null) {</span>
<span class="source-line-no">190</span><span id="line-190"> return null;</span>
<span class="source-line-no">191</span><span id="line-191"> }</span>
<span class="source-line-no">192</span><span id="line-192"> return exception.getMessage();</span>
<span class="source-line-no">193</span><span id="line-193"> }</span>
<span class="source-line-no">194</span><span id="line-194"></span>
<span class="source-line-no">195</span><span id="line-195"> @Override</span>
<span class="source-line-no">196</span><span id="line-196"> public synchronized boolean failed() {</span>
<span class="source-line-no">197</span><span id="line-197"> return done &amp;&amp; this.exception != null;</span>
<span class="source-line-no">198</span><span id="line-198"> }</span>
<span class="source-line-no">199</span><span id="line-199"></span>
<span class="source-line-no">200</span><span id="line-200"> @Override</span>
<span class="source-line-no">201</span><span id="line-201"> public synchronized boolean isCanceled() {</span>
<span class="source-line-no">202</span><span id="line-202"> return cancelled;</span>
<span class="source-line-no">203</span><span id="line-203"> }</span>
<span class="source-line-no">204</span><span id="line-204"></span>
<span class="source-line-no">205</span><span id="line-205"> @Override</span>
<span class="source-line-no">206</span><span id="line-206"> public void notifyOnCancel(RpcCallback&lt;Object&gt; callback) {</span>
<span class="source-line-no">207</span><span id="line-207"> synchronized (this) {</span>
<span class="source-line-no">208</span><span id="line-208"> if (done) {</span>
<span class="source-line-no">209</span><span id="line-209"> return;</span>
<span class="source-line-no">210</span><span id="line-210"> }</span>
<span class="source-line-no">211</span><span id="line-211"> if (!cancelled) {</span>
<span class="source-line-no">212</span><span id="line-212"> cancellationCbs.add(callback);</span>
<span class="source-line-no">213</span><span id="line-213"> return;</span>
<span class="source-line-no">214</span><span id="line-214"> }</span>
<span class="source-line-no">215</span><span id="line-215"> }</span>
<span class="source-line-no">216</span><span id="line-216"> // run it directly as we have already been cancelled.</span>
<span class="source-line-no">217</span><span id="line-217"> callback.run(null);</span>
<span class="source-line-no">218</span><span id="line-218"> }</span>
<span class="source-line-no">219</span><span id="line-219"></span>
<span class="source-line-no">220</span><span id="line-220"> @Override</span>
<span class="source-line-no">221</span><span id="line-221"> public synchronized void setFailed(String reason) {</span>
<span class="source-line-no">222</span><span id="line-222"> if (done) {</span>
<span class="source-line-no">223</span><span id="line-223"> return;</span>
<span class="source-line-no">224</span><span id="line-224"> }</span>
<span class="source-line-no">225</span><span id="line-225"> done = true;</span>
<span class="source-line-no">226</span><span id="line-226"> exception = new IOException(reason);</span>
<span class="source-line-no">227</span><span id="line-227"> }</span>
<span class="source-line-no">228</span><span id="line-228"></span>
<span class="source-line-no">229</span><span id="line-229"> @Override</span>
<span class="source-line-no">230</span><span id="line-230"> public synchronized void setFailed(IOException e) {</span>
<span class="source-line-no">231</span><span id="line-231"> if (done) {</span>
<span class="source-line-no">232</span><span id="line-232"> return;</span>
<span class="source-line-no">233</span><span id="line-233"> }</span>
<span class="source-line-no">234</span><span id="line-234"> done = true;</span>
<span class="source-line-no">235</span><span id="line-235"> exception = e;</span>
<span class="source-line-no">236</span><span id="line-236"> }</span>
<span class="source-line-no">237</span><span id="line-237"></span>
<span class="source-line-no">238</span><span id="line-238"> @Override</span>
<span class="source-line-no">239</span><span id="line-239"> public synchronized IOException getFailed() {</span>
<span class="source-line-no">240</span><span id="line-240"> return done ? exception : null;</span>
<span class="source-line-no">241</span><span id="line-241"> }</span>
<span class="source-line-no">242</span><span id="line-242"></span>
<span class="source-line-no">243</span><span id="line-243"> @Override</span>
<span class="source-line-no">244</span><span id="line-244"> public synchronized void setDone(ExtendedCellScanner cellScanner) {</span>
<span class="source-line-no">245</span><span id="line-245"> if (done) {</span>
<span class="source-line-no">246</span><span id="line-246"> return;</span>
<span class="source-line-no">247</span><span id="line-247"> }</span>
<span class="source-line-no">248</span><span id="line-248"> done = true;</span>
<span class="source-line-no">249</span><span id="line-249"> this.cellScanner = cellScanner;</span>
<span class="source-line-no">250</span><span id="line-250"> }</span>
<span class="source-line-no">251</span><span id="line-251"></span>
<span class="source-line-no">252</span><span id="line-252"> @Override</span>
<span class="source-line-no">253</span><span id="line-253"> public void startCancel() {</span>
<span class="source-line-no">254</span><span id="line-254"> // As said above in the comment of reset, the cancellationCbs maybe cleared by reset, so we need</span>
<span class="source-line-no">255</span><span id="line-255"> // to copy it.</span>
<span class="source-line-no">256</span><span id="line-256"> List&lt;RpcCallback&lt;Object&gt;&gt; cbs;</span>
<span class="source-line-no">257</span><span id="line-257"> synchronized (this) {</span>
<span class="source-line-no">258</span><span id="line-258"> if (done) {</span>
<span class="source-line-no">259</span><span id="line-259"> return;</span>
<span class="source-line-no">260</span><span id="line-260"> }</span>
<span class="source-line-no">261</span><span id="line-261"> done = true;</span>
<span class="source-line-no">262</span><span id="line-262"> cancelled = true;</span>
<span class="source-line-no">263</span><span id="line-263"> cbs = new ArrayList&lt;&gt;(cancellationCbs);</span>
<span class="source-line-no">264</span><span id="line-264"> }</span>
<span class="source-line-no">265</span><span id="line-265"> for (RpcCallback&lt;?&gt; cb : cbs) {</span>
<span class="source-line-no">266</span><span id="line-266"> cb.run(null);</span>
<span class="source-line-no">267</span><span id="line-267"> }</span>
<span class="source-line-no">268</span><span id="line-268"> }</span>
<span class="source-line-no">269</span><span id="line-269"></span>
<span class="source-line-no">270</span><span id="line-270"> @Override</span>
<span class="source-line-no">271</span><span id="line-271"> public synchronized void notifyOnCancel(RpcCallback&lt;Object&gt; callback, CancellationCallback action)</span>
<span class="source-line-no">272</span><span id="line-272"> throws IOException {</span>
<span class="source-line-no">273</span><span id="line-273"> if (cancelled) {</span>
<span class="source-line-no">274</span><span id="line-274"> action.run(true);</span>
<span class="source-line-no">275</span><span id="line-275"> } else {</span>
<span class="source-line-no">276</span><span id="line-276"> cancellationCbs.add(callback);</span>
<span class="source-line-no">277</span><span id="line-277"> action.run(false);</span>
<span class="source-line-no">278</span><span id="line-278"> }</span>
<span class="source-line-no">279</span><span id="line-279"> }</span>
<span class="source-line-no">280</span><span id="line-280"></span>
<span class="source-line-no">281</span><span id="line-281"> @Override</span>
<span class="source-line-no">282</span><span id="line-282"> public void setTableName(TableName tableName) {</span>
<span class="source-line-no">283</span><span id="line-283"> this.tableName = tableName;</span>
<span class="source-line-no">284</span><span id="line-284"> }</span>
<span class="source-line-no">285</span><span id="line-285"></span>
<span class="source-line-no">286</span><span id="line-286"> @Override</span>
<span class="source-line-no">287</span><span id="line-287"> public TableName getTableName() {</span>
<span class="source-line-no">288</span><span id="line-288"> return tableName;</span>
<span class="source-line-no">289</span><span id="line-289"> }</span>
<span class="source-line-no">290</span><span id="line-290">}</span>
</pre>
</div>
</main>
</body>
</html>