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

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

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

origin: apache/hbase

/**
 * Converts multiple {@link Result}s (HBase) into a list of {@link TResult}s (Thrift).
 *
 * @param in array of <code>Result</code>s to convert
 *
 * @return list of converted <code>TResult</code>s
 *
 * @see #resultFromHBase(Result)
 */
public static List<TResult> resultsFromHBase(Result[] in) {
 List<TResult> out = new ArrayList<>(in.length);
 for (Result result : in) {
  out.add(resultFromHBase(result));
 }
 return out;
}
origin: apache/hbase

@Override
public TResult get(ByteBuffer table, TGet get) throws TIOError, TException {
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.get(getFromThrift(get)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: apache/hbase

@Override
public TResult append(ByteBuffer table, TAppend append) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.append(appendFromThrift(append)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: apache/hbase

@Override
public TResult increment(ByteBuffer table, TIncrement increment) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.increment(incrementFromThrift(increment)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

/**
 * Converts multiple {@link Result}s (HBase) into a list of {@link TResult}s (Thrift).
 *
 * @param in array of <code>Result</code>s to convert
 *
 * @return list of converted <code>TResult</code>s
 *
 * @see #resultFromHBase(Result)
 */
public static List<TResult> resultsFromHBase(Result[] in) {
 List<TResult> out = new ArrayList<>(in.length);
 for (Result result : in) {
  out.add(resultFromHBase(result));
 }
 return out;
}
origin: co.cask.hbase/hbase

/**
 * Converts multiple {@link Result}s (HBase) into a list of {@link TResult}s (Thrift).
 * 
 * @param in array of <code>Result</code>s to convert
 * 
 * @return list of converted <code>TResult</code>s
 * 
 * @see #resultFromHBase(Result)
 */
public static List<TResult> resultsFromHBase(Result[] in) {
 List<TResult> out = new ArrayList<TResult>(in.length);
 for (Result result : in) {
  out.add(resultFromHBase(result));
 }
 return out;
}
origin: org.apache.hbase/hbase-thrift

/**
 * Converts multiple {@link Result}s (HBase) into a list of {@link TResult}s (Thrift).
 *
 * @param in array of <code>Result</code>s to convert
 *
 * @return list of converted <code>TResult</code>s
 *
 * @see #resultFromHBase(Result)
 */
public static List<TResult> resultsFromHBase(Result[] in) {
 List<TResult> out = new ArrayList<>(in.length);
 for (Result result : in) {
  out.add(resultFromHBase(result));
 }
 return out;
}
origin: co.cask.hbase/hbase

@Override
public TResult increment(ByteBuffer table, TIncrement increment) throws TIOError, TException {
 HTableInterface htable = getTable(table.array());
 try {
  return resultFromHBase(htable.increment(incrementFromThrift(increment)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: co.cask.hbase/hbase

@Override
public TResult get(ByteBuffer table, TGet get) throws TIOError, TException {
 HTableInterface htable = getTable(table.array());
 try {
  return resultFromHBase(htable.get(getFromThrift(get)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public TResult get(ByteBuffer table, TGet get) throws TIOError, TException {
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.get(getFromThrift(get)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public TResult get(ByteBuffer table, TGet get) throws TIOError, TException {
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.get(getFromThrift(get)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public TResult append(ByteBuffer table, TAppend append) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.append(appendFromThrift(append)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public TResult increment(ByteBuffer table, TIncrement increment) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.increment(incrementFromThrift(increment)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public TResult append(ByteBuffer table, TAppend append) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.append(appendFromThrift(append)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public TResult increment(ByteBuffer table, TIncrement increment) throws TIOError, TException {
 checkReadOnlyMode();
 Table htable = getTable(table);
 try {
  return resultFromHBase(htable.increment(incrementFromThrift(increment)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
org.apache.hadoop.hbase.thrift2ThriftUtilitiesresultFromHBase

Javadoc

Creates a TResult (Thrift) from a Result (HBase).

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).
  • resultsFromHBase
    Converts multiple Results (HBase) into a list of TResults (Thrift).
  • addAttributes
    Adds all the attributes into the Operation object
  • appendFromThrift
  • compareOpFromThrift
  • appendFromThrift,
  • compareOpFromThrift,
  • deleteFromHBase,
  • deletesFromHBase,
  • durabilityFromThrift,
  • readTypeFromThrift,
  • regionLocationFromHBase,
  • regionLocationsFromHBase,
  • rowMutationsFromThrift

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Kernel (java.awt.image)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • From CI to AI: The AI layer in your organization
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