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

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

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

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: 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: 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

@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: 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: 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: 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: 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.clientMultiServerCallablegetConnection

Popular methods of MultiServerCallable

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

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best plugins for Eclipse
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