Sets the region this RPC is going to. This method is invoked by HBaseClient once the user give it their HBaseRpc, because HBaseClient is the only thing that knows about and keeps track of regions. Users don't care about regions. @param region The target region of this RP
(final RegionInfo region)
| 580 | * @param region The target region of this RPC. |
| 581 | */ |
| 582 | final void setRegion(final RegionInfo region) { |
| 583 | if (table == null) { |
| 584 | throw new AssertionError("Can't use setRegion if no table was given."); |
| 585 | } |
| 586 | this.region = region; |
| 587 | } |
| 588 | |
| 589 | /** |
| 590 | * Returns the region this RPC is supposed to go to (can be {@code null}). |
no outgoing calls