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

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

Best Java code snippets using com.google.cloud.bigtable.grpc.BigtableSession.createBulkMutation (Showing top 8 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: brianfrankcooper/YCSB

/**
 * Little helper to set the table byte array. If it's different than the last
 * table we reset the byte array. Otherwise we just use the existing array.
 * @param table The table we're operating against
 */
private void setTable(final String table) {
 if (!lastTable.equals(table)) {
  lastTable = table;
  BigtableTableName tableName = options
    .getInstanceName()
    .toTableName(table);
  lastTableBytes = tableName
    .toString()
    .getBytes();
  synchronized(this) {
   if (bulkMutation != null) {
    try {
     bulkMutation.flush();
    } catch (InterruptedException e) {
     Thread.currentThread().interrupt();
     throw new RuntimeException(e);
    }
   }
   bulkMutation = session.createBulkMutation(tableName);
  }
 }
}

origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

BigtableWriterImpl(BigtableSession session, BigtableTableName tableName) {
 this.session = session;
 bulkMutation = session.createBulkMutation(tableName);
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>createBulkMutation.</p>
 *
 * @param tableName a {@link com.google.cloud.bigtable.grpc.BigtableTableName} object.
 * @param asyncExecutor a {@link com.google.cloud.bigtable.grpc.async.AsyncExecutor} object.
 * @return a {@link com.google.cloud.bigtable.grpc.async.BulkMutation} object.
 * @deprecated use {@link #createBulkMutation(BigtableTableName)} instead.
 */
@Deprecated
public BulkMutation createBulkMutation(BigtableTableName tableName, AsyncExecutor asyncExecutor) {
 return createBulkMutation(tableName);
}
origin: com.google.cloud.bigtable/bigtable-hbase

protected BulkOperation(
  BigtableSession session,
  BigtableTableName tableName) {
 this.bulkRead = session.createBulkRead(tableName);
 this.bulkMutation = session.createBulkMutation(tableName);
}
origin: GoogleCloudPlatform/cloud-bigtable-client

protected BulkOperation(
  BigtableSession session,
  BigtableTableName tableName) {
 this.bulkRead = session.createBulkRead(tableName);
 this.bulkMutation = session.createBulkMutation(tableName);
}
origin: com.google.cloud.bigtable/bigtable-hbase

/**
 * <p>
 * Constructor for BigtableBufferedMutator.
 * </p>
 * @param adapter Converts HBase objects to Bigtable protos
 * @param configuration For Additional configuration. TODO: move this to options
 * @param session a {@link com.google.cloud.bigtable.grpc.BigtableSession} to get
 *          {@link com.google.cloud.bigtable.config.BigtableOptions},
 *          {@link com.google.cloud.bigtable.grpc.async.AsyncExecutor} and
 *          {@link com.google.cloud.bigtable.grpc.async.BulkMutation} objects from starting the
 *          async operations on the BigtableDataClient.
 */
public BigtableBufferedMutatorHelper(
  HBaseRequestAdapter adapter,
  Configuration configuration,
  BigtableSession session) {
 this.adapter = adapter;
 this.configuration = configuration;
 this.options = session.getOptions();
 this.asyncExecutor = session.createAsyncExecutor();
 BigtableTableName tableName = this.adapter.getBigtableTableName();
 this.bulkMutation = session.createBulkMutation(tableName);
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>
 * Constructor for BigtableBufferedMutator.
 * </p>
 * @param adapter Converts HBase objects to Bigtable protos
 * @param configuration For Additional configuration. TODO: move this to options
 * @param session a {@link com.google.cloud.bigtable.grpc.BigtableSession} to get
 *          {@link com.google.cloud.bigtable.config.BigtableOptions},
 *          {@link com.google.cloud.bigtable.grpc.async.AsyncExecutor} and
 *          {@link com.google.cloud.bigtable.grpc.async.BulkMutation} objects from starting the
 *          async operations on the BigtableDataClient.
 */
public BigtableBufferedMutatorHelper(
  HBaseRequestAdapter adapter,
  Configuration configuration,
  BigtableSession session) {
 this.adapter = adapter;
 this.configuration = configuration;
 this.options = session.getOptions();
 this.asyncExecutor = session.createAsyncExecutor();
 BigtableTableName tableName = this.adapter.getBigtableTableName();
 this.bulkMutation = session.createBulkMutation(tableName);
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

@Before
public void setup() {
 MockitoAnnotations.initMocks(this);
 BigtableOptions options =
   new BigtableOptions.Builder().setProjectId("project").setInstanceId("instance").build();
 when(mockSession.getOptions()).thenReturn(options);
 when(mockSession.createBulkMutation(eq(TABLE_NAME))).thenReturn(mockBulkMutation);
 when(mockSession.getDataClient()).thenReturn(mockBigtableDataClient);
}
com.google.cloud.bigtable.grpcBigtableSessioncreateBulkMutation

Javadoc

createBulkMutation.

Popular methods of BigtableSession

  • <init>
  • close
  • getDataClient
  • getTableAdminClient
  • 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

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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