Codota Logo
BigtableSession.getTableAdminClient
Code IndexAdd Codota to your IDE (free)

How to use
getTableAdminClient
method
in
com.google.cloud.bigtable.grpc.BigtableSession

Best Java code snippets using com.google.cloud.bigtable.grpc.BigtableSession.getTableAdminClient (Showing top 9 results out of 315)

  • Common ways to obtain BigtableSession
private void myMethod () {
BigtableSession b =
  • Codota IconBigtableOptions opts;new BigtableSession(opts)
  • Smart code suggestions by Codota
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>getBigtableTableAdminClient.</p>
 *
 * @return a {@link com.google.cloud.bigtable.grpc.BigtableTableAdminClient} object.
 * @throws java.io.IOException if any.
 */
protected BigtableTableAdminClient getBigtableTableAdminClient() throws IOException {
 return session.getTableAdminClient();
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>
 * Constructor for AbstractBigtableAdmin.
 * </p>
 * @param connection a {@link CommonConnection} object.
 * @throws IOException
 */
public AbstractBigtableAdmin(CommonConnection connection) throws IOException {
 LOG.debug("Creating BigtableAdmin");
 configuration = connection.getConfiguration();
 options = connection.getOptions();
 this.connection = connection;
 bigtableTableAdminClient = connection.getSession().getTableAdminClient();
 disabledTables = connection.getDisabledTables();
 bigtableInstanceName = options.getInstanceName();
 tableAdapter = new TableAdapter(bigtableInstanceName);
 tableAdminClientWrapper = connection.getSession().getTableAdminClientWrapper();
 String clusterId = configuration.get(BigtableOptionsFactory.BIGTABLE_SNAPSHOT_CLUSTER_ID_KEY, null);
 if (clusterId != null) {
  bigtableSnapshotClusterName = bigtableInstanceName.toClusterName(clusterId);
 }
}
origin: com.google.cloud.bigtable/bigtable-hbase

/**
 * <p>getBigtableTableAdminClient.</p>
 *
 * @return a {@link com.google.cloud.bigtable.grpc.BigtableTableAdminClient} object.
 * @throws java.io.IOException if any.
 */
protected BigtableTableAdminClient getBigtableTableAdminClient() throws IOException {
 return session.getTableAdminClient();
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>Getter for the field <code>adminClientWrapper</code>.</p>
 *
 * @return a {@link BigtableTableAdminClientWrapper} object.
 * @throws java.io.IOException if any.
 */
public synchronized IBigtableTableAdminClient getTableAdminClientWrapper() throws IOException {
 if (adminClientWrapper == null) {
  adminClientWrapper = new BigtableTableAdminClientWrapper(getTableAdminClient(), options);
 }
 return adminClientWrapper;
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

@Override
public boolean tableExists(String tableId) throws IOException {
 try (BigtableSession session = new BigtableSession(options)) {
  GetTableRequest getTable =
    GetTableRequest.newBuilder()
      .setName(options.getInstanceName().toTableNameStr(tableId))
      .build();
  session.getTableAdminClient().getTable(getTable);
  return true;
 } catch (StatusRuntimeException e) {
  if (e.getStatus().getCode() == Code.NOT_FOUND) {
   return false;
  }
  String message =
    String.format(
      "Error checking whether table %s (BigtableOptions %s) exists", tableId, options);
  LOG.error(message, e);
  throw new IOException(message, e);
 }
}
origin: com.google.cloud.bigtable/bigtable-hbase-2.x

public BigtableAsyncAdmin(CommonConnection asyncConnection) throws IOException {
 LOG.debug("Creating BigtableAsyncAdmin");
 this.options = asyncConnection.getOptions();
 this.bigtableTableAdminClient = new BigtableTableAdminClient(
   asyncConnection.getSession().getTableAdminClient());
 this.disabledTables = asyncConnection.getDisabledTables();
 this.bigtableInstanceName = options.getInstanceName();
 this.tableAdapter2x = new TableAdapter2x(options);
 this.asyncConnection = asyncConnection;
 this.configuration = asyncConnection.getConfiguration();
 String clusterId = configuration.get(BigtableOptionsFactory.BIGTABLE_SNAPSHOT_CLUSTER_ID_KEY, null);
 if (clusterId != null) {
  bigtableSnapshotClusterName = bigtableInstanceName.toClusterName(clusterId);
 }
}
origin: GoogleCloudPlatform/cloud-bigtable-client

public BigtableAsyncAdmin(CommonConnection asyncConnection) throws IOException {
 LOG.debug("Creating BigtableAsyncAdmin");
 this.options = asyncConnection.getOptions();
 this.bigtableTableAdminClient = new BigtableTableAdminClient(
   asyncConnection.getSession().getTableAdminClient());
 this.disabledTables = asyncConnection.getDisabledTables();
 this.bigtableInstanceName = options.getInstanceName();
 this.tableAdapter2x = new TableAdapter2x(options);
 this.asyncConnection = asyncConnection;
 this.configuration = asyncConnection.getConfiguration();
 String clusterId = configuration.get(BigtableOptionsFactory.BIGTABLE_SNAPSHOT_CLUSTER_ID_KEY, null);
 if (clusterId != null) {
  bigtableSnapshotClusterName = bigtableInstanceName.toClusterName(clusterId);
 }
}
origin: com.google.cloud.bigtable/bigtable-hbase

/**
 * <p>
 * Constructor for AbstractBigtableAdmin.
 * </p>
 * @param connection a {@link CommonConnection} object.
 * @throws IOException
 */
public AbstractBigtableAdmin(CommonConnection connection) throws IOException {
 LOG.debug("Creating BigtableAdmin");
 configuration = connection.getConfiguration();
 options = connection.getOptions();
 this.connection = connection;
 bigtableTableAdminClient = connection.getSession().getTableAdminClient();
 disabledTables = connection.getDisabledTables();
 bigtableInstanceName = options.getInstanceName();
 tableAdapter = new TableAdapter(bigtableInstanceName);
 String clusterId = configuration.get(BigtableOptionsFactory.BIGTABLE_SNAPSHOT_CLUSTER_ID_KEY, null);
 if (clusterId != null) {
  bigtableSnapshotClusterName = bigtableInstanceName.toClusterName(clusterId);
 }
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

@Before
public void setup() throws Exception {
 PipelineOptionsFactory.register(BigtableTestOptions.class);
 options = TestPipeline.testingPipelineOptions().as(BigtableTestOptions.class);
 project = options.as(GcpOptions.class).getProject();
 bigtableOptions =
   new Builder()
     .setProjectId(project)
     .setInstanceId(options.getInstanceId())
     .setUserAgent("apache-beam-test")
     .build();
 session =
   new BigtableSession(
     bigtableOptions
       .toBuilder()
       .setCredentialOptions(
         CredentialOptions.credential(options.as(GcpOptions.class).getGcpCredential()))
       .build());
 tableAdminClient = session.getTableAdminClient();
}
com.google.cloud.bigtable.grpcBigtableSessiongetTableAdminClient

Javadoc

Getter for the field tableAdminClient.

Popular methods of BigtableSession

  • <init>
  • close
  • createBulkMutation
  • getDataClient
  • getOptions
  • getClusterName
  • createAsyncExecutor
  • createBulkRead
  • createChannelPool
    Create a new com.google.cloud.bigtable.grpc.io.ChannelPool, with auth headers.
  • createManagedPool
    Create a new com.google.cloud.bigtable.grpc.io.ChannelPool, with auth headers, that will be cleaned
  • createNettyChannel
    createNettyChannel.
  • getClientWrapper
  • createNettyChannel,
  • getClientWrapper,
  • getDataChannelPool,
  • getInstanceAdminClient,
  • getTableAdminClientWrapper,
  • initializeResourceLimiter,
  • setupWatchdog

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • orElseThrow (Optional)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now