本文整理汇总了Java中org.apache.hadoop.hbase.client.coprocessor.ExecResult.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java ExecResult.getValue方法的具体用法?Java ExecResult.getValue怎么用?Java ExecResult.getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.hbase.client.coprocessor.ExecResult
的用法示例。
在下文中一共展示了ExecResult.getValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: invoke
import org.apache.hadoop.hbase.client.coprocessor.ExecResult; //导入方法依赖的package包/类
@Override
public Object invoke(Object instance, final Method method, final Object[] args)
throws Throwable {
if (LOG.isDebugEnabled()) {
LOG.debug("Call: "+method.getName()+", "+(args != null ? args.length : 0));
}
if (row != null) {
final Exec exec = new Exec(conf, row, protocol, method, args);
ServerCallable<ExecResult> callable =
new ServerCallable<ExecResult>(connection, table, row) {
public ExecResult call() throws Exception {
return server.execCoprocessor(location.getRegionInfo().getRegionName(),
exec);
}
};
ExecResult result = callable.withRetries();
this.regionName = result.getRegionName();
LOG.debug("Result is region="+ Bytes.toStringBinary(regionName) +
", value="+result.getValue());
return result.getValue();
}
return null;
}
示例2: invoke
import org.apache.hadoop.hbase.client.coprocessor.ExecResult; //导入方法依赖的package包/类
@Override
public Object invoke(Object instance, final Method method, final Object[] args)
throws Throwable {
if (LOG.isDebugEnabled()) {
LOG.debug("Call: "+method.getName()+", "+(args != null ? args.length : 0));
}
if (row != null) {
final Exec exec = new Exec(conf, row, protocol, method, args);
ServerCallable<ExecResult> callable =
new ServerCallable<ExecResult>(connection, table, row) {
public ExecResult call() throws Exception {
return server.execCoprocessor(location.getRegionInfo().getRegionName(),
exec);
}
};
ExecResult result = connection.getRegionServerWithRetries(callable);
this.regionName = result.getRegionName();
LOG.debug("Result is region="+ Bytes.toStringBinary(regionName) +
", value="+result.getValue());
return result.getValue();
}
return null;
}
示例3: invoke
import org.apache.hadoop.hbase.client.coprocessor.ExecResult; //导入方法依赖的package包/类
@Override
public Object invoke(Object instance, final Method method, final Object[] args)
throws Throwable {
if (LOG.isDebugEnabled()) {
LOG.debug("Call: "+method.getName()+", "+(args != null ? args.length : 0));
}
Exec exec = new Exec(conf, protocol, method, args);
ExecResult result = connection.getMaster().execCoprocessor(exec);
LOG.debug("Master Result is value="+result.getValue());
return result.getValue();
}