Tabnine Logo
MultiServerCallable
Code IndexAdd Tabnine to your IDE (free)

How to use
MultiServerCallable
in
org.apache.hadoop.hbase.client

Best Java code snippets using org.apache.hadoop.hbase.client.MultiServerCallable (Showing top 20 results out of 315)

origin: apache/hbase

/**
 * Create a callable. Isolated to be easily overridden in the tests.
 */
private MultiServerCallable createCallable(final ServerName server, TableName tableName,
  final MultiAction multi) {
 return new MultiServerCallable(asyncProcess.connection, tableName, server,
   multi, asyncProcess.rpcFactory.newController(), rpcTimeout, tracker, multi.getPriority());
}
origin: apache/hbase

@Override
public void prepare(boolean reload) throws IOException {
 // Use the location we were given in the constructor rather than go look it up.
 setStub(getConnection().getClient(this.location.getServerName()));
}
origin: apache/hbase

 setRpcControllerCellScanner(CellUtil.createCellScanner(cells));
ClientProtos.MultiResponse responseProto = getStub().multi(getRpcController(), requestProto);
if (responseProto == null) return null; // Occurs on cancel
return ResponseConverter.getResults(requestProto, rowMutationsIndexMap, responseProto,
 getRpcControllerCellScanner());
origin: apache/hbase

MultiServerCallable(final ClusterConnection connection, final TableName tableName,
  final ServerName location, final MultiAction multi, RpcController rpcController,
  int rpcTimeout, RetryingTimeTracker tracker, int priority) {
 super(connection, tableName, null, rpcController, rpcTimeout, tracker, priority);
 this.multiAction = multi;
 // RegionServerCallable has HRegionLocation field, but this is a multi-region request.
 // Using region info from parent HRegionLocation would be a mistake for this class; so
 // we will store the server here, and throw if someone tries to obtain location/regioninfo.
 this.location = new HRegionLocation(null, location);
 this.cellBlock = isCellBlock();
}
origin: apache/hbase

/**
 * @return True if we should send data in cellblocks.  This is an expensive call.  Cache the
 * result if you can rather than call each time.
 */
private boolean isCellBlock() {
 // This is not exact -- the configuration could have changed on us after connection was set up
 // but it will do for now.
 ClusterConnection conn = getConnection();
 return conn.hasCellBlockSupport();
}
origin: harbby/presto-connectors

controller.setPriority(getTableName());
controller.setCallTimeout(callTimeout);
ClientProtos.MultiResponse responseProto;
ClientProtos.MultiRequest requestProto = multiRequestBuilder.build();
try {
 responseProto = getStub().multi(controller, requestProto);
} catch (ServiceException e) {
 throw ProtobufUtil.getRemoteException(e);
origin: harbby/presto-connectors

@Override
public void waitUntilDone() throws InterruptedIOException {
 try {
  waitUntilDone(Long.MAX_VALUE);
 } catch (InterruptedException iex) {
  throw new InterruptedIOException(iex.getMessage());
 } finally {
  if (callsInProgress != null) {
   for (MultiServerCallable<Row> clb : callsInProgress) {
    clb.cancel();
   }
  }
 }
}
origin: apache/hbase

public void reset(ServerName location, MultiAction multiAction) {
 this.location = new HRegionLocation(null, location);
 this.multiAction = multiAction;
 this.cellBlock = isCellBlock();
}
origin: org.apache.hbase/hbase-client

/**
 * @return True if we should send data in cellblocks.  This is an expensive call.  Cache the
 * result if you can rather than call each time.
 */
private boolean isCellBlock() {
 // This is not exact -- the configuration could have changed on us after connection was set up
 // but it will do for now.
 ClusterConnection conn = getConnection();
 return conn.hasCellBlockSupport();
}
origin: org.apache.hbase/hbase-client

 setRpcControllerCellScanner(CellUtil.createCellScanner(cells));
ClientProtos.MultiResponse responseProto = getStub().multi(getRpcController(), requestProto);
if (responseProto == null) return null; // Occurs on cancel
return ResponseConverter.getResults(requestProto, rowMutationsIndexMap, responseProto,
 getRpcControllerCellScanner());
origin: org.apache.hbase/hbase-client

@Override
public void prepare(boolean reload) throws IOException {
 // Use the location we were given in the constructor rather than go look it up.
 setStub(getConnection().getClient(this.location.getServerName()));
}
origin: org.apache.hbase/hbase-client

public void reset(ServerName location, MultiAction multiAction) {
 this.location = new HRegionLocation(null, location);
 this.multiAction = multiAction;
 this.cellBlock = isCellBlock();
}
origin: com.aliyun.hbase/alihbase-client

/**
 * @return True if we should send data in cellblocks.  This is an expensive call.  Cache the
 * result if you can rather than call each time.
 */
private boolean isCellBlock() {
 // This is not exact -- the configuration could have changed on us after connection was set up
 // but it will do for now.
 ClusterConnection conn = getConnection();
 return conn.hasCellBlockSupport();
}
origin: org.apache.hbase/hbase-client

/**
 * Create a callable. Isolated to be easily overridden in the tests.
 */
private MultiServerCallable createCallable(final ServerName server, TableName tableName,
  final MultiAction multi) {
 return new MultiServerCallable(asyncProcess.connection, tableName, server,
   multi, asyncProcess.rpcFactory.newController(), rpcTimeout, tracker, multi.getPriority());
}
origin: com.aliyun.hbase/alihbase-client

 setRpcControllerCellScanner(CellUtil.createCellScanner(cells));
ClientProtos.MultiResponse responseProto = getStub().multi(getRpcController(), requestProto);
if (responseProto == null) return null; // Occurs on cancel
return ResponseConverter.getResults(requestProto, rowMutationsIndexMap, responseProto,
 getRpcControllerCellScanner());
origin: com.aliyun.hbase/alihbase-client

@Override
public void prepare(boolean reload) throws IOException {
 // Use the location we were given in the constructor rather than go look it up.
 setStub(getConnection().getClient(this.location.getServerName()));
}
origin: org.apache.hbase/hbase-client

MultiServerCallable(final ClusterConnection connection, final TableName tableName,
  final ServerName location, final MultiAction multi, RpcController rpcController,
  int rpcTimeout, RetryingTimeTracker tracker, int priority) {
 super(connection, tableName, null, rpcController, rpcTimeout, tracker, priority);
 this.multiAction = multi;
 // RegionServerCallable has HRegionLocation field, but this is a multi-region request.
 // Using region info from parent HRegionLocation would be a mistake for this class; so
 // we will store the server here, and throw if someone tries to obtain location/regioninfo.
 this.location = new HRegionLocation(null, location);
 this.cellBlock = isCellBlock();
}
origin: harbby/presto-connectors

/**
 * @return True if we should send data in cellblocks.  This is an expensive call.  Cache the
 * result if you can rather than call each time.
 */
private boolean isCellBlock() {
 // This is not exact -- the configuration could have changed on us after connection was set up
 // but it will do for now.
 HConnection connection = getConnection();
 if (!(connection instanceof ClusterConnection)) return true; // Default is to do cellblocks.
 return ((ClusterConnection) connection).hasCellBlockSupport();
}
origin: harbby/presto-connectors

/**
 * Create a callable. Isolated to be easily overridden in the tests.
 */
@VisibleForTesting
protected MultiServerCallable<Row> createCallable(final ServerName server,
  TableName tableName, final MultiAction<Row> multi) {
 return new MultiServerCallable<Row>(connection, tableName, server, this.rpcFactory, multi);
}
origin: harbby/presto-connectors

@Override
public void prepare(boolean reload) throws IOException {
 // Use the location we were given in the constructor rather than go look it up.
 setStub(getConnection().getClient(this.location.getServerName()));
}
org.apache.hadoop.hbase.clientMultiServerCallable

Javadoc

Callable that handles the multi method call going against a single regionserver; i.e. A RegionServerCallable for the multi call (It is not a RegionServerCallable that goes against multiple regions.

Most used methods

  • <init>
  • getConnection
  • getStub
  • isCellBlock
  • setStub
  • getRpcController
  • getRpcControllerCellScanner
  • setRpcControllerCellScanner
  • cancel
  • getMulti
  • getServerName
  • getTableName
  • getServerName,
  • getTableName

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JPanel (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now