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

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

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

origin: apache/hbase

@Override
public List<THRegionLocation> getAllRegionLocations(ByteBuffer table)
  throws TIOError, TException {
 RegionLocator locator = null;
 try {
  locator = getLocator(table);
  return ThriftUtilities.regionLocationsFromHBase(locator.getAllRegionLocations());
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  if (locator != null) {
   try {
    locator.close();
   } catch (IOException e) {
    LOG.warn("Couldn't close the locator.", e);
   }
  }
 }
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public List<THRegionLocation> getAllRegionLocations(ByteBuffer table)
  throws TIOError, TException {
 RegionLocator locator = null;
 try {
  locator = getLocator(table);
  return ThriftUtilities.regionLocationsFromHBase(locator.getAllRegionLocations());
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  if (locator != null) {
   try {
    locator.close();
   } catch (IOException e) {
    LOG.warn("Couldn't close the locator.", e);
   }
  }
 }
}
origin: org.apache.hbase/hbase-thrift

@Override
public List<THRegionLocation> getAllRegionLocations(ByteBuffer table)
  throws TIOError, TException {
 RegionLocator locator = null;
 try {
  locator = getLocator(table);
  return ThriftUtilities.regionLocationsFromHBase(locator.getAllRegionLocations());
 } catch (IOException e) {
  throw getTIOError(e);
 } finally {
  if (locator != null) {
   try {
    locator.close();
   } catch (IOException e) {
    LOG.warn("Couldn't close the locator.", e);
   }
  }
 }
}
org.apache.hadoop.hbase.thrift2ThriftUtilitiesregionLocationsFromHBase

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,
  • rowMutationsFromThrift

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Notification (javax.management)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • BoxLayout (javax.swing)
  • JButton (javax.swing)
  • Top 12 Jupyter Notebook extensions
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