Codota Logo
BigtableDataClient.mutateRow
Code IndexAdd Codota to your IDE (free)

How to use
mutateRow
method
in
com.google.cloud.bigtable.grpc.BigtableDataClient

Best Java code snippets using com.google.cloud.bigtable.grpc.BigtableDataClient.mutateRow (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: brianfrankcooper/YCSB

@Override
public Status delete(String table, String key) {
 if (debug) {
  System.out.println("Doing delete for key: " + key);
 }
 
 setTable(table);
 
 final MutateRowRequest.Builder rowMutation = MutateRowRequest.newBuilder()
   .setRowKey(ByteString.copyFromUtf8(key))
   .setTableNameBytes(ByteStringer.wrap(lastTableBytes));
 rowMutation.addMutationsBuilder().setDeleteFromRow(
   DeleteFromRow.getDefaultInstance());
 
 try {
  if (clientSideBuffering) {
   bulkMutation.add(rowMutation.build());
  } else {
   client.mutateRow(rowMutation.build());
  }
  return Status.OK;
 } catch (RuntimeException e) {
  System.err.println("Failed to delete key: " + key + " " + e.getMessage());
  return Status.ERROR;
 }
}
origin: brianfrankcooper/YCSB

 bulkMutation.add(rowMutation.build());
} else {
 client.mutateRow(rowMutation.build());
origin: GoogleCloudPlatform/cloud-bigtable-client

/** {@inheritDoc} */
@Override
public void mutateRow(RowMutation rowMutation) {
 MutateRowRequest mutateRowRequest = rowMutation.toProto(requestContext);
 delegate.mutateRow(mutateRowRequest);
}
origin: com.google.cloud.bigtable/bigtable-hbase

/** {@inheritDoc} */
@Override
public void mutateRow(RowMutations rm) throws IOException {
 LOG.trace("mutateRow(RowMutation)");
 Span span = TRACER.spanBuilder("BigtableTable.mutateRow").startSpan();
 try (Scope scope = TRACER.withSpan(span)) {
  MutateRowRequest request = hbaseAdapter.adapt(rm).toProto(requestContext);
  client.mutateRow(request);
 } catch (Throwable t) {
  span.setStatus(Status.UNKNOWN);
  throw logAndCreateIOException("mutateRow", rm.getRow(), t);
 } finally {
  span.end();
 }
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/** {@inheritDoc} */
@Override
public void mutateRow(RowMutations rm) throws IOException {
 LOG.trace("mutateRow(RowMutation)");
 Span span = TRACER.spanBuilder("BigtableTable.mutateRow").startSpan();
 try (Scope scope = TRACER.withSpan(span)) {
  MutateRowRequest request = hbaseAdapter.adapt(rm).toProto(requestContext);
  client.mutateRow(request);
 } catch (Throwable t) {
  span.setStatus(Status.UNKNOWN);
  throw logAndCreateIOException("mutateRow", rm.getRow(), t);
 } finally {
  span.end();
 }
}
com.google.cloud.bigtable.grpcBigtableDataClientmutateRow

Javadoc

Mutate a row atomically.

Popular methods of BigtableDataClient

  • readFlatRows
  • sampleRowKeys
  • sampleRowKeysAsync
  • checkAndMutateRow
  • checkAndMutateRowAsync
  • mutateRowAsync
  • readFlatRowsAsync
  • readFlatRowsList
  • readModifyWriteRow
  • readModifyWriteRowAsync
  • readRows
  • readRowsAsync
    Read multiple Rows into an in-memory list, in key order.
  • readRows,
  • readRowsAsync,
  • mutateRowsAsync,
  • setCallOptionsFactory

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Collectors (java.util.stream)
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
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