Tabnine Logo
AdminProtos$GetRegionInfoResponse
Code IndexAdd Tabnine to your IDE (free)

How to use
AdminProtos$GetRegionInfoResponse
in
org.apache.hadoop.hbase.protobuf.generated

Best Java code snippets using org.apache.hadoop.hbase.protobuf.generated.AdminProtos$GetRegionInfoResponse (Showing top 20 results out of 315)

origin: apache/hbase

public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse buildPartial() {
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse(this);
 int from_bitField0_ = bitField0_;
 int to_bitField0_ = 0;
 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  to_bitField0_ |= 0x00000001;
 }
 if (regionInfoBuilder_ == null) {
  result.regionInfo_ = regionInfo_;
 } else {
  result.regionInfo_ = regionInfoBuilder_.build();
 }
 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  to_bitField0_ |= 0x00000002;
 }
 result.compactionState_ = compactionState_;
 result.bitField0_ = to_bitField0_;
 onBuilt();
 return result;
}
origin: apache/hbase

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse) obj;
 boolean result = true;
 result = result && (hasRegionInfo() == other.hasRegionInfo());
 if (hasRegionInfo()) {
  result = result && getRegionInfo()
    .equals(other.getRegionInfo());
 }
 result = result && (hasCompactionState() == other.hasCompactionState());
 if (hasCompactionState()) {
  result = result &&
    (getCompactionState() == other.getCompactionState());
 }
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: apache/hbase

 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.getDefaultInstance();
case 1:
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileResponse.getDefaultInstance();
origin: harbby/presto-connectors

 pair.getFirst().getRegionName(), true);
GetRegionInfoResponse response = admin.getRegionInfo(null, request);
switch (response.getCompactionState()) {
case MAJOR_AND_MINOR:
 return CompactionState.MAJOR_AND_MINOR;
origin: harbby/presto-connectors

  RequestConverter.buildGetRegionInfoRequest(region.getRegionName());
GetRegionInfoResponse response = remoteSvr.getRegionInfo(null, request);
if (HRegionInfo.convert(response.getRegionInfo()) != null) {
 isRecovering.set((response.hasIsRecovering()) ? response.getIsRecovering() : true);
 return loc;
origin: harbby/presto-connectors

 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.getDefaultInstance();
case 1:
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileResponse.getDefaultInstance();
origin: com.aliyun.hbase/alihbase-protocol

 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.getDefaultInstance();
case 1:
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileResponse.getDefaultInstance();
origin: harbby/presto-connectors

 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.getDefaultInstance();
case 1:
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileResponse.getDefaultInstance();
origin: com.aliyun.hbase/alihbase-protocol

 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.getDefaultInstance();
case 1:
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileResponse.getDefaultInstance();
origin: org.apache.hbase/hbase-protocol

 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.getDefaultInstance();
case 1:
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileResponse.getDefaultInstance();
origin: org.apache.hbase/hbase-protocol

 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.getDefaultInstance();
case 1:
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetStoreFileResponse.getDefaultInstance();
origin: harbby/presto-connectors

/**
 * {@inheritDoc}
 */
@Override
public CompactionState getCompactionStateForRegion(final byte[] regionName)
throws IOException {
 try {
  Pair<HRegionInfo, ServerName> regionServerPair = getRegion(regionName);
  if (regionServerPair == null) {
   throw new IllegalArgumentException("Invalid region: " + Bytes.toStringBinary(regionName));
  }
  if (regionServerPair.getSecond() == null) {
   throw new NoServerForRegionException(Bytes.toStringBinary(regionName));
  }
  ServerName sn = regionServerPair.getSecond();
  AdminService.BlockingInterface admin = this.connection.getAdmin(sn);
  GetRegionInfoRequest request = RequestConverter.buildGetRegionInfoRequest(
   regionServerPair.getFirst().getRegionName(), true);
  GetRegionInfoResponse response = admin.getRegionInfo(null, request);
  return response.getCompactionState();
 } catch (ServiceException se) {
  throw ProtobufUtil.getRemoteException(se);
 }
}
origin: harbby/presto-connectors

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse) obj;
 boolean result = true;
 result = result && (hasRegionInfo() == other.hasRegionInfo());
 if (hasRegionInfo()) {
  result = result && getRegionInfo()
    .equals(other.getRegionInfo());
 }
 result = result && (hasCompactionState() == other.hasCompactionState());
 if (hasCompactionState()) {
  result = result &&
    (getCompactionState() == other.getCompactionState());
 }
 result = result && (hasIsRecovering() == other.hasIsRecovering());
 if (hasIsRecovering()) {
  result = result && (getIsRecovering()
    == other.getIsRecovering());
 }
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: harbby/presto-connectors

public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse buildPartial() {
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse(this);
 int from_bitField0_ = bitField0_;
 int to_bitField0_ = 0;
 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  to_bitField0_ |= 0x00000001;
 }
 if (regionInfoBuilder_ == null) {
  result.regionInfo_ = regionInfo_;
 } else {
  result.regionInfo_ = regionInfoBuilder_.build();
 }
 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  to_bitField0_ |= 0x00000002;
 }
 result.compactionState_ = compactionState_;
 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  to_bitField0_ |= 0x00000004;
 }
 result.isRecovering_ = isRecovering_;
 result.bitField0_ = to_bitField0_;
 onBuilt();
 return result;
}
origin: com.aliyun.hbase/alihbase-protocol

public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse buildPartial() {
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse(this);
 int from_bitField0_ = bitField0_;
 int to_bitField0_ = 0;
 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  to_bitField0_ |= 0x00000001;
 }
 if (regionInfoBuilder_ == null) {
  result.regionInfo_ = regionInfo_;
 } else {
  result.regionInfo_ = regionInfoBuilder_.build();
 }
 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  to_bitField0_ |= 0x00000002;
 }
 result.compactionState_ = compactionState_;
 result.bitField0_ = to_bitField0_;
 onBuilt();
 return result;
}
origin: harbby/presto-connectors

/**
 * A helper to retrieve region info given a region name
 * using admin protocol.
 *
 * @param admin
 * @param regionName
 * @return the retrieved region info
 * @throws IOException
 */
public static HRegionInfo getRegionInfo(final AdminService.BlockingInterface admin,
  final byte[] regionName) throws IOException {
 try {
  GetRegionInfoRequest request =
   RequestConverter.buildGetRegionInfoRequest(regionName);
  GetRegionInfoResponse response =
   admin.getRegionInfo(null, request);
  return HRegionInfo.convert(response.getRegionInfo());
 } catch (ServiceException se) {
  throw getRemoteException(se);
 }
}
origin: harbby/presto-connectors

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasRegionInfo()) {
  hash = (37 * hash) + REGION_INFO_FIELD_NUMBER;
  hash = (53 * hash) + getRegionInfo().hashCode();
 }
 if (hasCompactionState()) {
  hash = (37 * hash) + COMPACTION_STATE_FIELD_NUMBER;
  hash = (53 * hash) + hashEnum(getCompactionState());
 }
 if (hasIsRecovering()) {
  hash = (37 * hash) + ISRECOVERING_FIELD_NUMBER;
  hash = (53 * hash) + hashBoolean(getIsRecovering());
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.hbase/hbase-protocol

public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse buildPartial() {
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse(this);
 int from_bitField0_ = bitField0_;
 int to_bitField0_ = 0;
 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  to_bitField0_ |= 0x00000001;
 }
 if (regionInfoBuilder_ == null) {
  result.regionInfo_ = regionInfo_;
 } else {
  result.regionInfo_ = regionInfoBuilder_.build();
 }
 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  to_bitField0_ |= 0x00000002;
 }
 result.compactionState_ = compactionState_;
 result.bitField0_ = to_bitField0_;
 onBuilt();
 return result;
}
origin: harbby/presto-connectors

public int getSerializedSize() {
 int size = memoizedSerializedSize;
 if (size != -1) return size;
 size = 0;
 if (((bitField0_ & 0x00000001) == 0x00000001)) {
  size += com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream
   .computeMessageSize(1, regionInfo_);
 }
 if (((bitField0_ & 0x00000002) == 0x00000002)) {
  size += com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream
   .computeEnumSize(2, compactionState_.getNumber());
 }
 if (((bitField0_ & 0x00000004) == 0x00000004)) {
  size += com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream
   .computeBoolSize(3, isRecovering_);
 }
 size += getUnknownFields().getSerializedSize();
 memoizedSerializedSize = size;
 return size;
}
origin: com.aliyun.hbase/alihbase-protocol

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse) obj;
 boolean result = true;
 result = result && (hasRegionInfo() == other.hasRegionInfo());
 if (hasRegionInfo()) {
  result = result && getRegionInfo()
    .equals(other.getRegionInfo());
 }
 result = result && (hasCompactionState() == other.hasCompactionState());
 if (hasCompactionState()) {
  result = result &&
    (getCompactionState() == other.getCompactionState());
 }
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
org.apache.hadoop.hbase.protobuf.generatedAdminProtos$GetRegionInfoResponse

Javadoc

Protobuf type hbase.pb.GetRegionInfoResponse

Most used methods

  • <init>
  • getCompactionState
    optional .hbase.pb.GetRegionInfoResponse.CompactionState compaction_state = 2; optional bool DEPREC
  • getDefaultInstance
  • getDescriptor
  • getDescriptorForType
  • getRegionInfo
    required .hbase.pb.RegionInfo region_info = 1;
  • getSerializedSize
  • getUnknownFields
  • hasCompactionState
    optional .hbase.pb.GetRegionInfoResponse.CompactionState compaction_state = 2; optional bool DEPREC
  • hasRegionInfo
    required .hbase.pb.RegionInfo region_info = 1;
  • hashEnum
  • initFields
  • hashEnum,
  • initFields,
  • isInitialized,
  • makeExtensionsImmutable,
  • newBuilder,
  • parseUnknownField,
  • getIsRecovering,
  • hasIsRecovering,
  • hashBoolean

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • String (java.lang)
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top plugins for Android Studio
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