Tabnine Logo
ThriftUtilities.rowMutationsFromThrift
Code IndexAdd Tabnine to your IDE (free)

How to use
rowMutationsFromThrift
method
in
org.apache.hadoop.hbase.thrift2.ThriftUtilities

Best Java code snippets using org.apache.hadoop.hbase.thrift2.ThriftUtilities.rowMutationsFromThrift (Showing top 6 results out of 315)

origin: apache/hbase

@Override
public void mutateRow(ByteBuffer table, TRowMutations rowMutations) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  htable.mutateRow(rowMutationsFromThrift(rowMutations));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: apache/hbase

@Override
public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family,
  ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations)
    throws TIOError, TException {
 checkReadOnlyMode();
 try (final Table htable = getTable(table)) {
  return htable.checkAndMutate(byteBufferToByteArray(row), byteBufferToByteArray(family))
    .qualifier(byteBufferToByteArray(qualifier))
    .ifMatches(compareOpFromThrift(compareOp), byteBufferToByteArray(value))
    .thenMutate(rowMutationsFromThrift(rowMutations));
 } catch (IOException e) {
  throw getTIOError(e);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public void mutateRow(ByteBuffer table, TRowMutations rowMutations) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  htable.mutateRow(rowMutationsFromThrift(rowMutations));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public void mutateRow(ByteBuffer table, TRowMutations rowMutations) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  htable.mutateRow(rowMutationsFromThrift(rowMutations));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family,
  ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations)
    throws TIOError, TException {
 checkReadOnlyMode();
 try (final Table htable = getTable(table)) {
  return htable.checkAndMutate(byteBufferToByteArray(row), byteBufferToByteArray(family))
    .qualifier(byteBufferToByteArray(qualifier))
    .ifMatches(compareOpFromThrift(compareOp), byteBufferToByteArray(value))
    .thenMutate(rowMutationsFromThrift(rowMutations));
 } catch (IOException e) {
  throw getTIOError(e);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family,
  ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations)
    throws TIOError, TException {
 checkReadOnlyMode();
 try (final Table htable = getTable(table)) {
  return htable.checkAndMutate(byteBufferToByteArray(row), byteBufferToByteArray(family))
    .qualifier(byteBufferToByteArray(qualifier))
    .ifMatches(compareOpFromThrift(compareOp), byteBufferToByteArray(value))
    .thenMutate(rowMutationsFromThrift(rowMutations));
 } catch (IOException e) {
  throw getTIOError(e);
 }
}
org.apache.hadoop.hbase.thrift2ThriftUtilitiesrowMutationsFromThrift

Javadoc

Creates a RowMutations (HBase) from a TRowMutations (Thrift)

Popular methods of ThriftUtilities

  • deleteFromThrift
    Creates a Delete (HBase) from a TDelete (Thrift).
  • getFromThrift
    Creates a Get (HBase) from a TGet (Thrift). This ignores any timestamps set on TColumn objects.
  • incrementFromThrift
  • putFromThrift
    Creates a Put (HBase) from a TPut (Thrift)
  • scanFromThrift
  • deletesFromThrift
    Converts multiple TDeletes (Thrift) into a list of Deletes (HBase).
  • getsFromThrift
    Converts multiple TGets (Thrift) into a list of Gets (HBase).
  • putsFromThrift
    Converts multiple TPuts (Thrift) into a list of Puts (HBase).
  • resultFromHBase
    Creates a TResult (Thrift) from a Result (HBase).
  • resultsFromHBase
    Converts multiple Results (HBase) into a list of TResults (Thrift).
  • addAttributes
    Adds all the attributes into the Operation object
  • appendFromThrift
  • addAttributes,
  • appendFromThrift,
  • compareOpFromThrift,
  • deleteFromHBase,
  • deletesFromHBase,
  • durabilityFromThrift,
  • readTypeFromThrift,
  • regionLocationFromHBase,
  • regionLocationsFromHBase

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Path (java.nio.file)
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Collectors (java.util.stream)
  • Github Copilot alternatives
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