MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / setRegion

Method setRegion

src/HBaseRpc.java:582–587  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}).

Callers 15

getRequestMethod · 0.80
getRequestNoTimeoutMethod · 0.80
multiActionMethod · 0.80
multiActionToSingleMethod · 0.80
nullChannelPutDeadMethod · 0.80
wrapMethod · 0.80
serializeMethod · 0.80

Calls

no outgoing calls

Tested by 11

getRequestMethod · 0.64
getRequestNoTimeoutMethod · 0.64
multiActionMethod · 0.64
multiActionToSingleMethod · 0.64
nullChannelPutDeadMethod · 0.64
wrapMethod · 0.64