congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ThriftUtilities.regionLocationFromHBase
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/hbase

public static List<THRegionLocation> regionLocationsFromHBase(List<HRegionLocation> locations) {
 List<THRegionLocation> tlocations = new ArrayList<>(locations.size());
 for (HRegionLocation hrl:locations) {
  tlocations.add(regionLocationFromHBase(hrl));
 }
 return tlocations;
}
origin: apache/hbase

@Override
public THRegionLocation getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload)
  throws TIOError, TException {
 RegionLocator locator = null;
 try {
  locator = getLocator(table);
  byte[] rowBytes = byteBufferToByteArray(row);
  HRegionLocation hrl = locator.getRegionLocation(rowBytes, reload);
  return ThriftUtilities.regionLocationFromHBase(hrl);
 } 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

public static List<THRegionLocation> regionLocationsFromHBase(List<HRegionLocation> locations) {
 List<THRegionLocation> tlocations = new ArrayList<>(locations.size());
 for (HRegionLocation hrl:locations) {
  tlocations.add(regionLocationFromHBase(hrl));
 }
 return tlocations;
}
origin: org.apache.hbase/hbase-thrift

public static List<THRegionLocation> regionLocationsFromHBase(List<HRegionLocation> locations) {
 List<THRegionLocation> tlocations = new ArrayList<>(locations.size());
 for (HRegionLocation hrl:locations) {
  tlocations.add(regionLocationFromHBase(hrl));
 }
 return tlocations;
}
origin: org.apache.hbase/hbase-thrift

@Override
public THRegionLocation getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload)
  throws TIOError, TException {
 RegionLocator locator = null;
 try {
  locator = getLocator(table);
  byte[] rowBytes = byteBufferToByteArray(row);
  HRegionLocation hrl = locator.getRegionLocation(rowBytes, reload);
  return ThriftUtilities.regionLocationFromHBase(hrl);
 } 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 THRegionLocation getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload)
  throws TIOError, TException {
 RegionLocator locator = null;
 try {
  locator = getLocator(table);
  byte[] rowBytes = byteBufferToByteArray(row);
  HRegionLocation hrl = locator.getRegionLocation(rowBytes, reload);
  return ThriftUtilities.regionLocationFromHBase(hrl);
 } 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.thrift2ThriftUtilitiesregionLocationFromHBase

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

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Kernel (java.awt.image)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JTextField (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now