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

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

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

origin: apache/hbase

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

@Override
public List<TResult> getScannerRows(int scannerId, int numRows) throws TIOError,
  TIllegalArgument, TException {
 ResultScanner scanner = getScanner(scannerId);
 if (scanner == null) {
  TIllegalArgument ex = new TIllegalArgument();
  ex.setMessage("Invalid scanner Id");
  throw ex;
 }
 try {
  connectionCache.updateConnectionAccessTime();
  return resultsFromHBase(scanner.next(numRows));
 } catch (IOException e) {
  throw getTIOError(e);
 }
}
origin: apache/hbase

@Override
public List<TResult> getScannerResults(ByteBuffer table, TScan scan, int numRows)
  throws TIOError, TException {
 Table htable = getTable(table);
 List<TResult> results = null;
 ResultScanner scanner = null;
 try {
  scanner = htable.getScanner(scanFromThrift(scan));
  results = resultsFromHBase(scanner.next(numRows));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  if (scanner != null) {
   scanner.close();
  }
  closeTable(htable);
 }
 return results;
}
origin: co.cask.hbase/hbase

@Override
public List<TResult> getMultiple(ByteBuffer table, List<TGet> gets) throws TIOError, TException {
 HTableInterface htable = getTable(table.array());
 try {
  return resultsFromHBase(htable.get(getsFromThrift(gets)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

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

@Override
public List<TResult> getMultiple(ByteBuffer table, List<TGet> gets) throws TIOError, TException {
 Table htable = getTable(table);
 try {
  return resultsFromHBase(htable.get(getsFromThrift(gets)));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  closeTable(htable);
 }
}
origin: co.cask.hbase/hbase

@Override
public List<TResult> getScannerRows(int scannerId, int numRows) throws TIOError, TIllegalArgument, TException {
 ResultScanner scanner = getScanner(scannerId);
 if (scanner == null) {
  TIllegalArgument ex = new TIllegalArgument();
  ex.setMessage("Invalid scanner Id");
  throw ex;
 }
 try {
  return resultsFromHBase(scanner.next(numRows));
 } catch (IOException e) {
  throw getTIOError(e);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public List<TResult> getScannerRows(int scannerId, int numRows) throws TIOError,
  TIllegalArgument, TException {
 ResultScanner scanner = getScanner(scannerId);
 if (scanner == null) {
  TIllegalArgument ex = new TIllegalArgument();
  ex.setMessage("Invalid scanner Id");
  throw ex;
 }
 try {
  connectionCache.updateConnectionAccessTime();
  return resultsFromHBase(scanner.next(numRows));
 } catch (IOException e) {
  throw getTIOError(e);
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public List<TResult> getScannerRows(int scannerId, int numRows) throws TIOError,
  TIllegalArgument, TException {
 ResultScanner scanner = getScanner(scannerId);
 if (scanner == null) {
  TIllegalArgument ex = new TIllegalArgument();
  ex.setMessage("Invalid scanner Id");
  throw ex;
 }
 try {
  connectionCache.updateConnectionAccessTime();
  return resultsFromHBase(scanner.next(numRows));
 } catch (IOException e) {
  throw getTIOError(e);
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public List<TResult> getScannerResults(ByteBuffer table, TScan scan, int numRows)
  throws TIOError, TException {
 Table htable = getTable(table);
 List<TResult> results = null;
 ResultScanner scanner = null;
 try {
  scanner = htable.getScanner(scanFromThrift(scan));
  results = resultsFromHBase(scanner.next(numRows));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  if (scanner != null) {
   scanner.close();
  }
  closeTable(htable);
 }
 return results;
}
origin: org.apache.hbase/hbase-thrift

@Override
public List<TResult> getScannerResults(ByteBuffer table, TScan scan, int numRows)
  throws TIOError, TException {
 Table htable = getTable(table);
 List<TResult> results = null;
 ResultScanner scanner = null;
 try {
  scanner = htable.getScanner(scanFromThrift(scan));
  results = resultsFromHBase(scanner.next(numRows));
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  if (scanner != null) {
   scanner.close();
  }
  closeTable(htable);
 }
 return results;
}
org.apache.hadoop.hbase.thrift2ThriftUtilitiesresultsFromHBase

Javadoc

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top Sublime Text plugins
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