You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ch...@apache.org on 2016/02/26 01:26:24 UTC
[1/4] hbase git commit: HBASE-15128 Disable region splits and merges
switch in master
Repository: hbase
Updated Branches:
refs/heads/master 75c57a04d -> 24d481c58
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/ZooKeeperProtos.java
----------------------------------------------------------------------
diff --git a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/ZooKeeperProtos.java b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/ZooKeeperProtos.java
index 4371739..0240a67 100644
--- a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/ZooKeeperProtos.java
+++ b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/ZooKeeperProtos.java
@@ -8196,6 +8196,450 @@ public final class ZooKeeperProtos {
// @@protoc_insertion_point(class_scope:hbase.pb.TableLock)
}
+ public interface SwitchStateOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // optional bool enabled = 1;
+ /**
+ * <code>optional bool enabled = 1;</code>
+ */
+ boolean hasEnabled();
+ /**
+ * <code>optional bool enabled = 1;</code>
+ */
+ boolean getEnabled();
+ }
+ /**
+ * Protobuf type {@code hbase.pb.SwitchState}
+ *
+ * <pre>
+ **
+ * State of the switch.
+ * </pre>
+ */
+ public static final class SwitchState extends
+ com.google.protobuf.GeneratedMessage
+ implements SwitchStateOrBuilder {
+ // Use SwitchState.newBuilder() to construct.
+ private SwitchState(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private SwitchState(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final SwitchState defaultInstance;
+ public static SwitchState getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public SwitchState getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SwitchState(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+ bitField0_ |= 0x00000001;
+ enabled_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.internal_static_hbase_pb_SwitchState_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.internal_static_hbase_pb_SwitchState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState.class, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<SwitchState> PARSER =
+ new com.google.protobuf.AbstractParser<SwitchState>() {
+ public SwitchState parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SwitchState(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<SwitchState> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ // optional bool enabled = 1;
+ public static final int ENABLED_FIELD_NUMBER = 1;
+ private boolean enabled_;
+ /**
+ * <code>optional bool enabled = 1;</code>
+ */
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional bool enabled = 1;</code>
+ */
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ private void initFields() {
+ enabled_ = false;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBool(1, enabled_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, enabled_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ @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.ZooKeeperProtos.SwitchState)) {
+ return super.equals(obj);
+ }
+ org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState other = (org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState) obj;
+
+ boolean result = true;
+ result = result && (hasEnabled() == other.hasEnabled());
+ if (hasEnabled()) {
+ result = result && (getEnabled()
+ == other.getEnabled());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ private int memoizedHashCode = 0;
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasEnabled()) {
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + hashBoolean(getEnabled());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code hbase.pb.SwitchState}
+ *
+ * <pre>
+ **
+ * State of the switch.
+ * </pre>
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder>
+ implements org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchStateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.internal_static_hbase_pb_SwitchState_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.internal_static_hbase_pb_SwitchState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState.class, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState.Builder.class);
+ }
+
+ // Construct using org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ enabled_ = false;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.internal_static_hbase_pb_SwitchState_descriptor;
+ }
+
+ public org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState getDefaultInstanceForType() {
+ return org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState.getDefaultInstance();
+ }
+
+ public org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState build() {
+ org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState buildPartial() {
+ org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState result = new org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.enabled_ = enabled_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState) {
+ return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState other) {
+ if (other == org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState.getDefaultInstance()) return this;
+ if (other.hasEnabled()) {
+ setEnabled(other.getEnabled());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ // optional bool enabled = 1;
+ private boolean enabled_ ;
+ /**
+ * <code>optional bool enabled = 1;</code>
+ */
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional bool enabled = 1;</code>
+ */
+ public boolean getEnabled() {
+ return enabled_;
+ }
+ /**
+ * <code>optional bool enabled = 1;</code>
+ */
+ public Builder setEnabled(boolean value) {
+ bitField0_ |= 0x00000001;
+ enabled_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional bool enabled = 1;</code>
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SwitchState)
+ }
+
+ static {
+ defaultInstance = new SwitchState(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:hbase.pb.SwitchState)
+ }
+
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_MetaRegionServer_descriptor;
private static
@@ -8246,6 +8690,11 @@ public final class ZooKeeperProtos {
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_TableLock_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_hbase_pb_SwitchState_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_hbase_pb_SwitchState_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@@ -8286,9 +8735,10 @@ public final class ZooKeeperProtos {
"\022\'\n\ntable_name\030\001 \001(\0132\023.hbase.pb.TableNam" +
"e\022(\n\nlock_owner\030\002 \001(\0132\024.hbase.pb.ServerN",
"ame\022\021\n\tthread_id\030\003 \001(\003\022\021\n\tis_shared\030\004 \001(" +
- "\010\022\017\n\007purpose\030\005 \001(\t\022\023\n\013create_time\030\006 \001(\003B" +
- "E\n*org.apache.hadoop.hbase.protobuf.gene" +
- "ratedB\017ZooKeeperProtosH\001\210\001\001\240\001\001"
+ "\010\022\017\n\007purpose\030\005 \001(\t\022\023\n\013create_time\030\006 \001(\003\"" +
+ "\036\n\013SwitchState\022\017\n\007enabled\030\001 \001(\010BE\n*org.a" +
+ "pache.hadoop.hbase.protobuf.generatedB\017Z" +
+ "ooKeeperProtosH\001\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -8355,6 +8805,12 @@ public final class ZooKeeperProtos {
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_TableLock_descriptor,
new java.lang.String[] { "TableName", "LockOwner", "ThreadId", "IsShared", "Purpose", "CreateTime", });
+ internal_static_hbase_pb_SwitchState_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_hbase_pb_SwitchState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_hbase_pb_SwitchState_descriptor,
+ new java.lang.String[] { "Enabled", });
return null;
}
};
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-protocol/src/main/protobuf/Master.proto
----------------------------------------------------------------------
diff --git a/hbase-protocol/src/main/protobuf/Master.proto b/hbase-protocol/src/main/protobuf/Master.proto
index aa31a5e..79bb862 100644
--- a/hbase-protocol/src/main/protobuf/Master.proto
+++ b/hbase-protocol/src/main/protobuf/Master.proto
@@ -279,6 +279,29 @@ message IsBalancerEnabledResponse {
required bool enabled = 1;
}
+enum MasterSwitchType {
+ SPLIT = 0;
+ MERGE = 1;
+}
+
+message SetSplitOrMergeEnabledRequest {
+ required bool enabled = 1;
+ optional bool synchronous = 2;
+ repeated MasterSwitchType switch_types = 3;
+}
+
+message SetSplitOrMergeEnabledResponse {
+ repeated bool prev_value = 1;
+}
+
+message IsSplitOrMergeEnabledRequest {
+ required MasterSwitchType switch_type = 1;
+}
+
+message IsSplitOrMergeEnabledResponse {
+ required bool enabled = 1;
+}
+
message NormalizeRequest {
}
@@ -633,6 +656,19 @@ service MasterService {
returns(IsBalancerEnabledResponse);
/**
+ * Turn the split or merge switch on or off.
+ * If synchronous is true, it waits until current operation call, if outstanding, to return.
+ */
+ rpc SetSplitOrMergeEnabled(SetSplitOrMergeEnabledRequest)
+ returns(SetSplitOrMergeEnabledResponse);
+
+ /**
+ * Query whether the split or merge switch is on/off.
+ */
+ rpc IsSplitOrMergeEnabled(IsSplitOrMergeEnabledRequest)
+ returns(IsSplitOrMergeEnabledResponse);
+
+ /**
* Run region normalizer. Can NOT run for various reasons. Check logs.
*/
rpc Normalize(NormalizeRequest)
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-protocol/src/main/protobuf/ZooKeeper.proto
----------------------------------------------------------------------
diff --git a/hbase-protocol/src/main/protobuf/ZooKeeper.proto b/hbase-protocol/src/main/protobuf/ZooKeeper.proto
index 54652af..4963c09 100644
--- a/hbase-protocol/src/main/protobuf/ZooKeeper.proto
+++ b/hbase-protocol/src/main/protobuf/ZooKeeper.proto
@@ -153,3 +153,10 @@ message TableLock {
optional string purpose = 5;
optional int64 create_time = 6;
}
+
+/**
+ * State of the switch.
+ */
+message SwitchState {
+ optional bool enabled = 1;
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
index 53a080e..1110db3 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
@@ -62,6 +62,7 @@ import org.apache.hadoop.hbase.RegionStateListener;
import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.TableNotFoundException;
+import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.RegionReplicaUtil;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.TableState;
@@ -2353,6 +2354,11 @@ public class AssignmentManager {
return hri.getShortNameToLog() + " is not opening on " + serverName;
}
+ if (!((HMaster)server).getSplitOrMergeTracker().isSplitOrMergeEnabled(
+ Admin.MasterSwitchType.SPLIT)) {
+ return "split switch is off!";
+ }
+
// Just return in case of retrying
if (current.isSplitting()) {
return null;
@@ -2511,6 +2517,10 @@ public class AssignmentManager {
return "Merging daughter region already exists, p=" + current;
}
+ if (!((HMaster)server).getSplitOrMergeTracker().isSplitOrMergeEnabled(
+ Admin.MasterSwitchType.MERGE)) {
+ return "merge switch is off!";
+ }
// Just return in case of retrying
if (current != null) {
return null;
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
index 5d8c325..6806c2d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
@@ -76,6 +76,7 @@ import org.apache.hadoop.hbase.TableNotDisabledException;
import org.apache.hadoop.hbase.TableNotFoundException;
import org.apache.hadoop.hbase.UnknownRegionException;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
+import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.RegionReplicaUtil;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.TableState;
@@ -155,6 +156,7 @@ import org.apache.hadoop.hbase.zookeeper.MasterAddressTracker;
import org.apache.hadoop.hbase.zookeeper.MetaTableLocator;
import org.apache.hadoop.hbase.zookeeper.RegionNormalizerTracker;
import org.apache.hadoop.hbase.zookeeper.RegionServerTracker;
+import org.apache.hadoop.hbase.zookeeper.SplitOrMergeTrackerManager;
import org.apache.hadoop.hbase.zookeeper.ZKClusterId;
import org.apache.hadoop.hbase.zookeeper.ZKUtil;
import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;
@@ -253,6 +255,9 @@ public class HMaster extends HRegionServer implements MasterServices {
// Tracker for load balancer state
LoadBalancerTracker loadBalancerTracker;
+ // Tracker for split and merge state
+ SplitOrMergeTrackerManager splitOrMergeTracker;
+
// Tracker for region normalizer state
private RegionNormalizerTracker regionNormalizerTracker;
@@ -578,8 +583,13 @@ public class HMaster extends HRegionServer implements MasterServices {
this.normalizer.setMasterServices(this);
this.loadBalancerTracker = new LoadBalancerTracker(zooKeeper, this);
this.loadBalancerTracker.start();
+
this.regionNormalizerTracker = new RegionNormalizerTracker(zooKeeper, this);
this.regionNormalizerTracker.start();
+
+ this.splitOrMergeTracker = new SplitOrMergeTrackerManager(zooKeeper, conf, this);
+ this.splitOrMergeTracker.start();
+
this.assignmentManager = new AssignmentManager(this, serverManager,
this.balancer, this.service, this.metricsMaster,
this.tableLockManager, tableStateManager);
@@ -2783,6 +2793,20 @@ public class HMaster extends HRegionServer implements MasterServices {
return null == regionNormalizerTracker? false: regionNormalizerTracker.isNormalizerOn();
}
+
+ /**
+ * Queries the state of the {@link SplitOrMergeTrackerManager}. If it is not initialized,
+ * false is returned. If switchType is illegal, false will return.
+ * @param switchType see {@link org.apache.hadoop.hbase.client.Admin.MasterSwitchType}
+ * @return The state of the switch
+ */
+ public boolean isSplitOrMergeEnabled(Admin.MasterSwitchType switchType) {
+ if (null == splitOrMergeTracker) {
+ return false;
+ }
+ return splitOrMergeTracker.isSplitOrMergeEnabled(switchType);
+ }
+
/**
* Fetch the configured {@link LoadBalancer} class name. If none is set, a default is returned.
*
@@ -2799,4 +2823,8 @@ public class HMaster extends HRegionServer implements MasterServices {
public RegionNormalizerTracker getRegionNormalizerTracker() {
return regionNormalizerTracker;
}
+
+ public SplitOrMergeTrackerManager getSplitOrMergeTracker() {
+ return splitOrMergeTracker;
+ }
}
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
index 1dd4c14..1c770d1 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
@@ -41,6 +41,7 @@ import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.UnknownRegionException;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
+import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.TableState;
import org.apache.hadoop.hbase.errorhandling.ForeignException;
import org.apache.hadoop.hbase.exceptions.MergeRegionException;
@@ -1506,6 +1507,35 @@ public class MasterRpcServices extends RSRpcServices
}
@Override
+ public SetSplitOrMergeEnabledResponse setSplitOrMergeEnabled(RpcController controller,
+ SetSplitOrMergeEnabledRequest request) throws ServiceException {
+ SetSplitOrMergeEnabledResponse.Builder response = SetSplitOrMergeEnabledResponse.newBuilder();
+ try {
+ master.checkInitialized();
+ for (MasterSwitchType masterSwitchType : request.getSwitchTypesList()) {
+ Admin.MasterSwitchType switchType = convert(masterSwitchType);
+ boolean oldValue = master.isSplitOrMergeEnabled(switchType);
+ boolean newValue = request.getEnabled();
+ master.getSplitOrMergeTracker().setSplitOrMergeEnabled(newValue, switchType);
+ response.addPrevValue(oldValue);
+ }
+ } catch (IOException e) {
+ throw new ServiceException(e);
+ } catch (KeeperException e) {
+ throw new ServiceException(e);
+ }
+ return response.build();
+ }
+
+ @Override
+ public IsSplitOrMergeEnabledResponse isSplitOrMergeEnabled(RpcController controller,
+ IsSplitOrMergeEnabledRequest request) throws ServiceException {
+ IsSplitOrMergeEnabledResponse.Builder response = IsSplitOrMergeEnabledResponse.newBuilder();
+ response.setEnabled(master.isSplitOrMergeEnabled(convert(request.getSwitchType())));
+ return response.build();
+ }
+
+ @Override
public NormalizeResponse normalize(RpcController controller,
NormalizeRequest request) throws ServiceException {
try {
@@ -1574,4 +1604,16 @@ public class MasterRpcServices extends RSRpcServices
}
return response.build();
}
+
+ private Admin.MasterSwitchType convert(MasterSwitchType switchType) {
+ switch (switchType) {
+ case SPLIT:
+ return Admin.MasterSwitchType.SPLIT;
+ case MERGE:
+ return Admin.MasterSwitchType.MERGE;
+ default:
+ break;
+ }
+ return null;
+ }
}
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
index a9113ec..93287ad 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
@@ -235,6 +235,7 @@ public class HBaseFsck extends Configured implements Closeable {
private long timelag = DEFAULT_TIME_LAG; // tables whose modtime is older
private static boolean forceExclusive = false; // only this hbck can modify HBase
private static boolean disableBalancer = false; // disable load balancer to keep regions stable
+ private static boolean disableSplitAndMerge = false; // disable split and merge
private boolean fixAssignments = false; // fix assignment errors?
private boolean fixMeta = false; // fix meta errors?
private boolean checkHdfs = true; // load and check fs consistency?
@@ -683,6 +684,11 @@ public class HBaseFsck extends Configured implements Closeable {
if (shouldDisableBalancer()) {
oldBalancer = admin.setBalancerRunning(false, true);
}
+ boolean[] oldSplitAndMerge = null;
+ if (shouldDisableSplitAndMerge()) {
+ oldSplitAndMerge = admin.setSplitOrMergeEnabled(false, false,
+ Admin.MasterSwitchType.SPLIT, Admin.MasterSwitchType.MERGE);
+ }
try {
onlineConsistencyRepair();
@@ -694,6 +700,17 @@ public class HBaseFsck extends Configured implements Closeable {
if (shouldDisableBalancer() && oldBalancer) {
admin.setBalancerRunning(oldBalancer, false);
}
+
+ if (shouldDisableSplitAndMerge()) {
+ if (oldSplitAndMerge != null) {
+ if (oldSplitAndMerge[0]) {
+ admin.setSplitOrMergeEnabled(true, false, Admin.MasterSwitchType.SPLIT);
+ }
+ if (oldSplitAndMerge[1]) {
+ admin.setSplitOrMergeEnabled(true, false, Admin.MasterSwitchType.MERGE);
+ }
+ }
+ }
}
if (checkRegionBoundaries) {
@@ -4184,6 +4201,13 @@ public class HBaseFsck extends Configured implements Closeable {
}
/**
+ * Disable the split and merge
+ */
+ public static void setDisableSplitAndMerge() {
+ disableSplitAndMerge = true;
+ }
+
+ /**
* The balancer should be disabled if we are modifying HBase.
* It can be disabled if you want to prevent region movement from causing
* false positives.
@@ -4193,6 +4217,15 @@ public class HBaseFsck extends Configured implements Closeable {
}
/**
+ * The split and merge should be disabled if we are modifying HBase.
+ * It can be disabled if you want to prevent region movement from causing
+ * false positives.
+ */
+ public boolean shouldDisableSplitAndMerge() {
+ return fixAny || disableSplitAndMerge;
+ }
+
+ /**
* Set summary mode.
* Print only summary of the tables and status (OK or INCONSISTENT)
*/
@@ -4551,6 +4584,8 @@ public class HBaseFsck extends Configured implements Closeable {
setForceExclusive();
} else if (cmd.equals("-disableBalancer")) {
setDisableBalancer();
+ } else if (cmd.equals("-disableSplitAndMerge")) {
+ setDisableSplitAndMerge();
} else if (cmd.equals("-timelag")) {
if (i == args.length - 1) {
errors.reportError(ERROR_CODE.WRONG_USAGE, "HBaseFsck: -timelag needs a value.");
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/SplitOrMergeTrackerManager.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/SplitOrMergeTrackerManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/SplitOrMergeTrackerManager.java
new file mode 100644
index 0000000..1495dd1
--- /dev/null
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/SplitOrMergeTrackerManager.java
@@ -0,0 +1,151 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hbase.zookeeper;
+
+import java.io.IOException;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.Abortable;
+import org.apache.hadoop.hbase.classification.InterfaceAudience;
+import org.apache.hadoop.hbase.client.Admin;
+import org.apache.hadoop.hbase.exceptions.DeserializationException;
+import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
+import org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.SwitchState;
+import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.zookeeper.KeeperException;
+
+
+/**
+ * Tracks the switch of split and merge states in ZK
+ *
+ */
+@InterfaceAudience.Private
+public class SplitOrMergeTrackerManager {
+
+ private String splitZnode;
+ private String mergeZnode;
+
+ private SwitchStateTracker splitStateTracker;
+ private SwitchStateTracker mergeStateTracker;
+
+ public SplitOrMergeTrackerManager(ZooKeeperWatcher watcher, Configuration conf,
+ Abortable abortable) {
+ try {
+ if (ZKUtil.checkExists(watcher, watcher.getSwitchZNode()) < 0) {
+ ZKUtil.createAndFailSilent(watcher, watcher.getSwitchZNode());
+ }
+ } catch (KeeperException e) {
+ throw new RuntimeException(e);
+ }
+ splitZnode = ZKUtil.joinZNode(watcher.getSwitchZNode(),
+ conf.get("zookeeper.znode.switch.split", "split"));
+ mergeZnode = ZKUtil.joinZNode(watcher.getSwitchZNode(),
+ conf.get("zookeeper.znode.switch.merge", "merge"));
+ splitStateTracker = new SwitchStateTracker(watcher, splitZnode, abortable);
+ mergeStateTracker = new SwitchStateTracker(watcher, mergeZnode, abortable);
+ }
+
+ public void start() {
+ splitStateTracker.start();
+ mergeStateTracker.start();
+ }
+
+ public boolean isSplitOrMergeEnabled(Admin.MasterSwitchType switchType) {
+ switch (switchType) {
+ case SPLIT:
+ return splitStateTracker.isSwitchEnabled();
+ case MERGE:
+ return mergeStateTracker.isSwitchEnabled();
+ default:
+ break;
+ }
+ return false;
+ }
+
+ public void setSplitOrMergeEnabled(boolean enabled, Admin.MasterSwitchType switchType)
+ throws KeeperException {
+ switch (switchType) {
+ case SPLIT:
+ splitStateTracker.setSwitchEnabled(enabled);
+ break;
+ case MERGE:
+ mergeStateTracker.setSwitchEnabled(enabled);
+ break;
+ default:
+ break;
+ }
+ }
+
+ private static class SwitchStateTracker extends ZooKeeperNodeTracker {
+
+ public SwitchStateTracker(ZooKeeperWatcher watcher, String node, Abortable abortable) {
+ super(watcher, node, abortable);
+ }
+
+ /**
+ * Return true if the switch is on, false otherwise
+ */
+ public boolean isSwitchEnabled() {
+ byte [] upData = super.getData(false);
+ try {
+ // if data in ZK is null, use default of on.
+ return upData == null || parseFrom(upData).getEnabled();
+ } catch (DeserializationException dex) {
+ LOG.error("ZK state for LoadBalancer could not be parsed " + Bytes.toStringBinary(upData));
+ // return false to be safe.
+ return false;
+ }
+ }
+
+ /**
+ * Set the switch on/off
+ * @param enabled switch enabled or not?
+ * @throws KeeperException keepException will be thrown out
+ */
+ public void setSwitchEnabled(boolean enabled) throws KeeperException {
+ byte [] upData = toByteArray(enabled);
+ try {
+ ZKUtil.setData(watcher, node, upData);
+ } catch(KeeperException.NoNodeException nne) {
+ ZKUtil.createAndWatch(watcher, node, upData);
+ }
+ super.nodeDataChanged(node);
+ }
+
+ private byte [] toByteArray(boolean enabled) {
+ SwitchState.Builder builder = SwitchState.newBuilder();
+ builder.setEnabled(enabled);
+ return ProtobufUtil.prependPBMagic(builder.build().toByteArray());
+ }
+
+ private SwitchState parseFrom(byte [] bytes)
+ throws DeserializationException {
+ ProtobufUtil.expectPBMagicPrefix(bytes);
+ SwitchState.Builder builder = SwitchState.newBuilder();
+ try {
+ int magicLen = ProtobufUtil.lengthOfPBMagic();
+ ProtobufUtil.mergeFrom(builder, bytes, magicLen, bytes.length - magicLen);
+ } catch (IOException e) {
+ throw new DeserializationException(e);
+ }
+ return builder.build();
+ }
+ }
+
+
+}
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSplitOrMergeStatus.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSplitOrMergeStatus.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSplitOrMergeStatus.java
new file mode 100644
index 0000000..6405a14
--- /dev/null
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSplitOrMergeStatus.java
@@ -0,0 +1,198 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hbase.client;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.hbase.HBaseTestingUtility;
+import org.apache.hadoop.hbase.HRegionInfo;
+import org.apache.hadoop.hbase.HRegionLocation;
+import org.apache.hadoop.hbase.MiniHBaseCluster;
+import org.apache.hadoop.hbase.TableName;
+import org.apache.hadoop.hbase.regionserver.HRegion;
+import org.apache.hadoop.hbase.regionserver.Region;
+import org.apache.hadoop.hbase.testclassification.ClientTests;
+import org.apache.hadoop.hbase.testclassification.MediumTests;
+import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.hadoop.hbase.util.JVMClusterUtil;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+
+import java.io.IOException;
+import java.util.List;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
+@Category({MediumTests.class, ClientTests.class})
+public class TestSplitOrMergeStatus {
+
+ private static final Log LOG = LogFactory.getLog(TestSplitOrMergeStatus.class);
+ private final static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
+ private static byte [] FAMILY = Bytes.toBytes("testFamily");
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @BeforeClass
+ public static void setUpBeforeClass() throws Exception {
+ TEST_UTIL.startMiniCluster(2);
+ }
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @AfterClass
+ public static void tearDownAfterClass() throws Exception {
+ TEST_UTIL.shutdownMiniCluster();
+ }
+
+ @Test
+ public void testSplitSwitch() throws Exception {
+ TableName name = TableName.valueOf("testSplitSwitch");
+ Table t = TEST_UTIL.createTable(name, FAMILY);
+ TEST_UTIL.loadTable(t, FAMILY, false);
+
+ RegionLocator locator = TEST_UTIL.getConnection().getRegionLocator(t.getName());
+ int orignalCount = locator.getAllRegionLocations().size();
+
+ Admin admin = TEST_UTIL.getAdmin();
+ initSwitchStatus(admin);
+ boolean[] results = admin.setSplitOrMergeEnabled(false, false, Admin.MasterSwitchType.SPLIT);
+ assertEquals(results.length, 1);
+ assertTrue(results[0]);
+ admin.split(t.getName());
+ int count = waitOnSplitOrMerge(t).size();
+ assertTrue(orignalCount == count);
+
+ results = admin.setSplitOrMergeEnabled(true, false, Admin.MasterSwitchType.SPLIT);
+ assertEquals(results.length, 1);
+ assertFalse(results[0]);
+ admin.split(t.getName());
+ count = waitOnSplitOrMerge(t).size();
+ assertTrue(orignalCount<count);
+ admin.close();
+ }
+
+
+ @Test
+ public void testMergeSwitch() throws Exception {
+ TableName name = TableName.valueOf("testMergeSwitch");
+ Table t = TEST_UTIL.createTable(name, FAMILY);
+ TEST_UTIL.loadTable(t, FAMILY, false);
+
+ RegionLocator locator = TEST_UTIL.getConnection().getRegionLocator(t.getName());
+
+ Admin admin = TEST_UTIL.getAdmin();
+ initSwitchStatus(admin);
+ admin.split(t.getName());
+ waitOnSplitOrMerge(t); //Split the table to ensure we have two regions at least.
+
+ waitForMergable(admin, name);
+ int orignalCount = locator.getAllRegionLocations().size();
+ boolean[] results = admin.setSplitOrMergeEnabled(false, false, Admin.MasterSwitchType.MERGE);
+ assertEquals(results.length, 1);
+ assertTrue(results[0]);
+ List<HRegionInfo> regions = admin.getTableRegions(t.getName());
+ assertTrue(regions.size() > 1);
+ admin.mergeRegions(regions.get(0).getEncodedNameAsBytes(),
+ regions.get(1).getEncodedNameAsBytes(), true);
+ int count = waitOnSplitOrMerge(t).size();
+ assertTrue(orignalCount == count);
+
+ waitForMergable(admin, name);
+ results = admin.setSplitOrMergeEnabled(true, false, Admin.MasterSwitchType.MERGE);
+ assertEquals(results.length, 1);
+ assertFalse(results[0]);
+ admin.mergeRegions(regions.get(0).getEncodedNameAsBytes(),
+ regions.get(1).getEncodedNameAsBytes(), true);
+ count = waitOnSplitOrMerge(t).size();
+ assertTrue(orignalCount>count);
+ admin.close();
+ }
+
+ @Test
+ public void testMultiSwitches() throws IOException {
+ Admin admin = TEST_UTIL.getAdmin();
+ boolean[] switches = admin.setSplitOrMergeEnabled(false, false,
+ Admin.MasterSwitchType.SPLIT, Admin.MasterSwitchType.MERGE);
+ for (boolean s : switches){
+ assertTrue(s);
+ }
+ assertFalse(admin.isSplitOrMergeEnabled(Admin.MasterSwitchType.SPLIT));
+ assertFalse(admin.isSplitOrMergeEnabled(Admin.MasterSwitchType.MERGE));
+ admin.close();
+ }
+
+ private void initSwitchStatus(Admin admin) throws IOException {
+ if (!admin.isSplitOrMergeEnabled(Admin.MasterSwitchType.SPLIT)) {
+ admin.setSplitOrMergeEnabled(true, false, Admin.MasterSwitchType.SPLIT);
+ }
+ if (!admin.isSplitOrMergeEnabled(Admin.MasterSwitchType.MERGE)) {
+ admin.setSplitOrMergeEnabled(true, false, Admin.MasterSwitchType.MERGE);
+ }
+ assertTrue(admin.isSplitOrMergeEnabled(Admin.MasterSwitchType.SPLIT));
+ assertTrue(admin.isSplitOrMergeEnabled(Admin.MasterSwitchType.MERGE));
+ }
+
+ private void waitForMergable(Admin admin, TableName t) throws InterruptedException, IOException {
+ // Wait for the Regions to be mergeable
+ MiniHBaseCluster miniCluster = TEST_UTIL.getMiniHBaseCluster();
+ int mergeable = 0;
+ while (mergeable < 2) {
+ Thread.sleep(100);
+ admin.majorCompact(t);
+ mergeable = 0;
+ for (JVMClusterUtil.RegionServerThread regionThread: miniCluster.getRegionServerThreads()) {
+ for (Region region: regionThread.getRegionServer().getOnlineRegions(t)) {
+ mergeable += ((HRegion)region).isMergeable() ? 1 : 0;
+ }
+ }
+ }
+ }
+
+ /*
+ * Wait on table split. May return because we waited long enough on the split
+ * and it didn't happen. Caller should check.
+ * @param t
+ * @return Map of table regions; caller needs to check table actually split.
+ */
+ private List<HRegionLocation> waitOnSplitOrMerge(final Table t)
+ throws IOException {
+ try (RegionLocator locator = TEST_UTIL.getConnection().getRegionLocator(t.getName())) {
+ List<HRegionLocation> regions = locator.getAllRegionLocations();
+ int originalCount = regions.size();
+ for (int i = 0; i < TEST_UTIL.getConfiguration().getInt("hbase.test.retries", 10); i++) {
+ Thread.currentThread();
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ regions = locator.getAllRegionLocations();
+ if (regions.size() != originalCount)
+ break;
+ }
+ return regions;
+ }
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-shell/src/main/ruby/hbase/admin.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb b/hbase-shell/src/main/ruby/hbase/admin.rb
index 82f0700..40c3711 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -132,6 +132,38 @@ module Hbase
end
end
+ #----------------------------------------------------------------------------------------------
+ # Enable/disable one split or merge switch
+ # Returns previous switch setting.
+ def splitormerge_switch(type, enabled)
+ switch_type = nil
+ if type == 'SPLIT'
+ switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::SPLIT
+ elsif type == 'MERGE'
+ switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::MERGE
+ else
+ raise ArgumentError, 'only SPLIT or MERGE accepted for type!'
+ end
+ @admin.setSplitOrMergeEnabled(
+ java.lang.Boolean.valueOf(enabled), java.lang.Boolean.valueOf(false),
+ switch_type)[0]
+ end
+
+ #----------------------------------------------------------------------------------------------
+ # Query the current state of the split or merge switch.
+ # Returns the switch's state (true is enabled).
+ def splitormerge_enabled(type)
+ switch_type = nil
+ if type == 'SPLIT'
+ switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::SPLIT
+ elsif type == 'MERGE'
+ switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::MERGE
+ else
+ raise ArgumentError, 'only SPLIT or MERGE accepted for type!'
+ end
+ @admin.isSplitOrMergeEnabled(switch_type)
+ end
+
def locate_region(table_name, row_key)
locator = @connection.getRegionLocator(TableName.valueOf(table_name))
begin
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-shell/src/main/ruby/shell.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell.rb b/hbase-shell/src/main/ruby/shell.rb
index 0ecd3d7..4144b91 100644
--- a/hbase-shell/src/main/ruby/shell.rb
+++ b/hbase-shell/src/main/ruby/shell.rb
@@ -333,6 +333,8 @@ Shell.load_command_group(
catalogjanitor_enabled
compact_rs
trace
+ splitormerge_switch
+ splitormerge_enabled
],
# TODO remove older hlog_roll command
:aliases => {
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-shell/src/main/ruby/shell/commands/splitormerge_enabled.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands/splitormerge_enabled.rb b/hbase-shell/src/main/ruby/shell/commands/splitormerge_enabled.rb
new file mode 100644
index 0000000..7da7564
--- /dev/null
+++ b/hbase-shell/src/main/ruby/shell/commands/splitormerge_enabled.rb
@@ -0,0 +1,41 @@
+#!/usr/bin/env hbase-jruby
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+# Prints the current split or merge status
+module Shell
+ module Commands
+ # Command for check split or merge switch status
+ class SplitormergeEnabled < Command
+ def help
+ print <<-EOF
+Query the switch's state. You can set switch type, 'SPLIT' or 'MERGE'
+Examples:
+
+ hbase> splitormerge_enabled 'SPLIT'
+EOF
+ end
+
+ def command(switch_type)
+ format_simple_command do
+ formatter.row(
+ [admin.splitormerge_enabled(switch_type) ? 'true' : 'false']
+ )
+ end
+ end
+ end
+ end
+end
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-shell/src/main/ruby/shell/commands/splitormerge_switch.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands/splitormerge_switch.rb b/hbase-shell/src/main/ruby/shell/commands/splitormerge_switch.rb
new file mode 100644
index 0000000..f4c2858
--- /dev/null
+++ b/hbase-shell/src/main/ruby/shell/commands/splitormerge_switch.rb
@@ -0,0 +1,43 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+module Shell
+ module Commands
+ # Command for set switch for split and merge
+ class SplitormergeSwitch < Command
+ def help
+ print <<-EOF
+Enable/Disable one switch. You can set switch type 'SPLIT' or 'MERGE'. Returns previous split state.
+Examples:
+
+ hbase> splitormerge_switch 'SPLIT', true
+ hbase> splitormerge_switch 'SPLIT', false
+EOF
+ end
+
+ def command(switch_type, enabled)
+ format_simple_command do
+ formatter.row(
+ [admin.splitormerge_switch(switch_type, enabled) ? 'true' : 'false']
+ )
+ end
+ end
+ end
+ end
+end
[4/4] hbase git commit: HBASE-15128 Disable region splits and merges
switch in master
Posted by ch...@apache.org.
HBASE-15128 Disable region splits and merges switch in master
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/24d481c5
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/24d481c5
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/24d481c5
Branch: refs/heads/master
Commit: 24d481c5803e69a6190339cd8bb218b2c4585459
Parents: 75c57a0
Author: chenheng <ch...@apache.org>
Authored: Fri Feb 26 08:11:16 2016 +0800
Committer: chenheng <ch...@apache.org>
Committed: Fri Feb 26 08:11:16 2016 +0800
----------------------------------------------------------------------
.../org/apache/hadoop/hbase/client/Admin.java | 27 +-
.../hbase/client/ConnectionImplementation.java | 14 +
.../apache/hadoop/hbase/client/HBaseAdmin.java | 31 +
.../hadoop/hbase/protobuf/RequestConverter.java | 49 +
.../hbase/zookeeper/ZooKeeperWatcher.java | 10 +
.../hbase/protobuf/generated/MasterProtos.java | 4304 ++++++++++++++----
.../protobuf/generated/SnapshotProtos.java | 500 +-
.../protobuf/generated/ZooKeeperProtos.java | 462 +-
hbase-protocol/src/main/protobuf/Master.proto | 36 +
.../src/main/protobuf/ZooKeeper.proto | 7 +
.../hadoop/hbase/master/AssignmentManager.java | 10 +
.../org/apache/hadoop/hbase/master/HMaster.java | 28 +
.../hadoop/hbase/master/MasterRpcServices.java | 42 +
.../org/apache/hadoop/hbase/util/HBaseFsck.java | 35 +
.../zookeeper/SplitOrMergeTrackerManager.java | 151 +
.../hbase/client/TestSplitOrMergeStatus.java | 198 +
hbase-shell/src/main/ruby/hbase/admin.rb | 32 +
hbase-shell/src/main/ruby/shell.rb | 2 +
.../ruby/shell/commands/splitormerge_enabled.rb | 41 +
.../ruby/shell/commands/splitormerge_switch.rb | 43 +
20 files changed, 4822 insertions(+), 1200 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
index d7b52d5..c3b524b 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
@@ -1678,11 +1678,28 @@ public interface Admin extends Abortable, Closeable {
List<SecurityCapability> getSecurityCapabilities() throws IOException;
/**
+ * Turn the Split or Merge switches on or off.
+ *
+ * @param enabled enabled or not
+ * @param synchronous If true, it waits until current split() call, if outstanding, to return.
+ * @param switchTypes switchType list {@link MasterSwitchType}
+ * @return Previous switch value array
+ */
+ boolean[] setSplitOrMergeEnabled(final boolean enabled, final boolean synchronous,
+ final MasterSwitchType... switchTypes) throws IOException;
+
+ /**
+ * Query the current state of the switch
+ *
+ * @return true if the switch is enabled, false otherwise.
+ */
+ boolean isSplitOrMergeEnabled(final MasterSwitchType switchType) throws IOException;
+
+ /**
* Currently, there are only two compact types:
* {@code NORMAL} means do store files compaction;
* {@code MOB} means do mob files compaction.
* */
-
@InterfaceAudience.Public
@InterfaceStability.Unstable
public enum CompactType {
@@ -1692,4 +1709,12 @@ public interface Admin extends Abortable, Closeable {
CompactType(int value) {}
}
+
+ @InterfaceAudience.Public
+ @InterfaceStability.Evolving
+ public enum MasterSwitchType {
+ SPLIT,
+ MERGE
+ }
+
}
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
index dfa9937..64eb9fb 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
@@ -1742,6 +1742,20 @@ class ConnectionImplementation implements ClusterConnection, Closeable {
}
@Override
+ public MasterProtos.SetSplitOrMergeEnabledResponse setSplitOrMergeEnabled(
+ RpcController controller, MasterProtos.SetSplitOrMergeEnabledRequest request)
+ throws ServiceException {
+ return stub.setSplitOrMergeEnabled(controller, request);
+ }
+
+ @Override
+ public MasterProtos.IsSplitOrMergeEnabledResponse isSplitOrMergeEnabled(
+ RpcController controller, MasterProtos.IsSplitOrMergeEnabledRequest request)
+ throws ServiceException {
+ return stub.isSplitOrMergeEnabled(controller, request);
+ }
+
+ @Override
public IsNormalizerEnabledResponse isNormalizerEnabled(RpcController controller,
IsNormalizerEnabledRequest request) throws ServiceException {
return stub.isNormalizerEnabled(controller, request);
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
index db94ff4..c2a0bb8 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
@@ -89,6 +89,7 @@ import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescripti
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema;
+import org.apache.hadoop.hbase.protobuf.generated.MasterProtos;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AbortProcedureRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AbortProcedureResponse;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AddColumnRequest;
@@ -3378,6 +3379,36 @@ public class HBaseAdmin implements Admin {
}
}
+ @Override
+ public boolean[] setSplitOrMergeEnabled(final boolean enabled, final boolean synchronous,
+ final MasterSwitchType... switchTypes)
+ throws IOException {
+ return executeCallable(new MasterCallable<boolean[]>(getConnection()) {
+ @Override
+ public boolean[] call(int callTimeout) throws ServiceException {
+ MasterProtos.SetSplitOrMergeEnabledResponse response = master.setSplitOrMergeEnabled(null,
+ RequestConverter.buildSetSplitOrMergeEnabledRequest(enabled, synchronous, switchTypes));
+ boolean[] result = new boolean[switchTypes.length];
+ int i = 0;
+ for (Boolean prevValue : response.getPrevValueList()) {
+ result[i++] = prevValue;
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public boolean isSplitOrMergeEnabled(final MasterSwitchType switchType) throws IOException {
+ return executeCallable(new MasterCallable<Boolean>(getConnection()) {
+ @Override
+ public Boolean call(int callTimeout) throws ServiceException {
+ return master.isSplitOrMergeEnabled(null,
+ RequestConverter.buildIsSplitOrMergeEnabledRequest(switchType)).getEnabled();
+ }
+ });
+ }
+
private HRegionInfo getMobRegionInfo(TableName tableName) {
return new HRegionInfo(tableName, Bytes.toBytes(".mob"),
HConstants.EMPTY_END_ROW, false, 0);
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/RequestConverter.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/RequestConverter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/RequestConverter.java
index 572d92c..99e993d 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/RequestConverter.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/RequestConverter.java
@@ -31,6 +31,7 @@ import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
import org.apache.hadoop.hbase.client.Action;
+import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.Append;
import org.apache.hadoop.hbase.client.Delete;
import org.apache.hadoop.hbase.client.Durability;
@@ -76,6 +77,7 @@ import org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanRequest;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType;
+import org.apache.hadoop.hbase.protobuf.generated.MasterProtos;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AddColumnRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AssignRegionRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BalanceRequest;
@@ -95,6 +97,7 @@ import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsBalancerEnabled
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsCatalogJanitorEnabledRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsMasterRunningRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsNormalizerEnabledRequest;
+import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ModifyColumnRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.ModifyTableRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MoveRegionRequest;
@@ -103,6 +106,7 @@ import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.OfflineRegionRequ
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.RunCatalogScanRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetBalancerRunningRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest;
+import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.TruncateTableRequest;
import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.UnassignRegionRequest;
import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.GetLastFlushedSequenceIdRequest;
@@ -1692,4 +1696,49 @@ public final class RequestConverter {
public static SetNormalizerRunningRequest buildSetNormalizerRunningRequest(boolean on) {
return SetNormalizerRunningRequest.newBuilder().setOn(on).build();
}
+
+ /**
+ * Creates a protocol buffer IsSplitOrMergeEnabledRequest
+ *
+ * @param switchType see {@link org.apache.hadoop.hbase.client.Admin.MasterSwitchType}
+ * @return a IsSplitOrMergeEnabledRequest
+ */
+ public static IsSplitOrMergeEnabledRequest buildIsSplitOrMergeEnabledRequest(
+ Admin.MasterSwitchType switchType) {
+ IsSplitOrMergeEnabledRequest.Builder builder = IsSplitOrMergeEnabledRequest.newBuilder();
+ builder.setSwitchType(convert(switchType));
+ return builder.build();
+ }
+
+ /**
+ * Creates a protocol buffer SetSplitOrMergeEnabledRequest
+ *
+ * @param enabled switch is enabled or not
+ * @param synchronous set switch sync?
+ * @param switchTypes see {@link org.apache.hadoop.hbase.client.Admin.MasterSwitchType}, it is
+ * a list.
+ * @return a SetSplitOrMergeEnabledRequest
+ */
+ public static SetSplitOrMergeEnabledRequest buildSetSplitOrMergeEnabledRequest(boolean enabled,
+ boolean synchronous, Admin.MasterSwitchType... switchTypes) {
+ SetSplitOrMergeEnabledRequest.Builder builder = SetSplitOrMergeEnabledRequest.newBuilder();
+ builder.setEnabled(enabled);
+ builder.setSynchronous(synchronous);
+ for (Admin.MasterSwitchType switchType : switchTypes) {
+ builder.addSwitchTypes(convert(switchType));
+ }
+ return builder.build();
+ }
+
+ private static MasterProtos.MasterSwitchType convert(Admin.MasterSwitchType switchType) {
+ switch (switchType) {
+ case SPLIT:
+ return MasterProtos.MasterSwitchType.SPLIT;
+ case MERGE:
+ return MasterProtos.MasterSwitchType.MERGE;
+ default:
+ break;
+ }
+ throw new UnsupportedOperationException("Unsupport switch type:" + switchType);
+ }
}
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
index 36a9bc5..b665353 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
@@ -115,6 +115,8 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable {
public String balancerZNode;
// znode containing the state of region normalizer
private String regionNormalizerZNode;
+ // znode containing the state of all switches, currently there are split and merge child node.
+ private String switchZNode;
// znode containing the lock for the tables
public String tableLockZNode;
// znode containing the state of recovering regions
@@ -430,6 +432,7 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable {
conf.get("zookeeper.znode.balancer", "balancer"));
regionNormalizerZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.regionNormalizer", "normalizer"));
+ switchZNode = ZKUtil.joinZNode(baseZNode, conf.get("zookeeper.znode.switch", "switch"));
tableLockZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.tableLock", "table-lock"));
recoveringRegionsZNode = ZKUtil.joinZNode(baseZNode,
@@ -789,4 +792,11 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable {
public String getRegionNormalizerZNode() {
return regionNormalizerZNode;
}
+
+ /**
+ * @return ZK node for switch
+ * */
+ public String getSwitchZNode() {
+ return switchZNode;
+ }
}
[3/4] hbase git commit: HBASE-15128 Disable region splits and merges
switch in master
Posted by ch...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
----------------------------------------------------------------------
diff --git a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
index 043d549..073eba9 100644
--- a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
+++ b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
@@ -8,6 +8,88 @@ public final class MasterProtos {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
+ /**
+ * Protobuf enum {@code hbase.pb.MasterSwitchType}
+ */
+ public enum MasterSwitchType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>SPLIT = 0;</code>
+ */
+ SPLIT(0, 0),
+ /**
+ * <code>MERGE = 1;</code>
+ */
+ MERGE(1, 1),
+ ;
+
+ /**
+ * <code>SPLIT = 0;</code>
+ */
+ public static final int SPLIT_VALUE = 0;
+ /**
+ * <code>MERGE = 1;</code>
+ */
+ public static final int MERGE_VALUE = 1;
+
+
+ public final int getNumber() { return value; }
+
+ public static MasterSwitchType valueOf(int value) {
+ switch (value) {
+ case 0: return SPLIT;
+ case 1: return MERGE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<MasterSwitchType>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap<MasterSwitchType>
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<MasterSwitchType>() {
+ public MasterSwitchType findValueByNumber(int number) {
+ return MasterSwitchType.valueOf(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final MasterSwitchType[] VALUES = values();
+
+ public static MasterSwitchType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private MasterSwitchType(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:hbase.pb.MasterSwitchType)
+ }
+
public interface AddColumnRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
@@ -28764,28 +28846,62 @@ public final class MasterProtos {
// @@protoc_insertion_point(class_scope:hbase.pb.IsBalancerEnabledResponse)
}
- public interface NormalizeRequestOrBuilder
+ public interface SetSplitOrMergeEnabledRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
+
+ // required bool enabled = 1;
+ /**
+ * <code>required bool enabled = 1;</code>
+ */
+ boolean hasEnabled();
+ /**
+ * <code>required bool enabled = 1;</code>
+ */
+ boolean getEnabled();
+
+ // optional bool synchronous = 2;
+ /**
+ * <code>optional bool synchronous = 2;</code>
+ */
+ boolean hasSynchronous();
+ /**
+ * <code>optional bool synchronous = 2;</code>
+ */
+ boolean getSynchronous();
+
+ // repeated .hbase.pb.MasterSwitchType switch_types = 3;
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType> getSwitchTypesList();
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ int getSwitchTypesCount();
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType getSwitchTypes(int index);
}
/**
- * Protobuf type {@code hbase.pb.NormalizeRequest}
+ * Protobuf type {@code hbase.pb.SetSplitOrMergeEnabledRequest}
*/
- public static final class NormalizeRequest extends
+ public static final class SetSplitOrMergeEnabledRequest extends
com.google.protobuf.GeneratedMessage
- implements NormalizeRequestOrBuilder {
- // Use NormalizeRequest.newBuilder() to construct.
- private NormalizeRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ implements SetSplitOrMergeEnabledRequestOrBuilder {
+ // Use SetSplitOrMergeEnabledRequest.newBuilder() to construct.
+ private SetSplitOrMergeEnabledRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
- private NormalizeRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ private SetSplitOrMergeEnabledRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final NormalizeRequest defaultInstance;
- public static NormalizeRequest getDefaultInstance() {
+ private static final SetSplitOrMergeEnabledRequest defaultInstance;
+ public static SetSplitOrMergeEnabledRequest getDefaultInstance() {
return defaultInstance;
}
- public NormalizeRequest getDefaultInstanceForType() {
+ public SetSplitOrMergeEnabledRequest getDefaultInstanceForType() {
return defaultInstance;
}
@@ -28795,11 +28911,12 @@ public final class MasterProtos {
getUnknownFields() {
return this.unknownFields;
}
- private NormalizeRequest(
+ private SetSplitOrMergeEnabledRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
+ int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -28817,6 +28934,49 @@ public final class MasterProtos {
}
break;
}
+ case 8: {
+ bitField0_ |= 0x00000001;
+ enabled_ = input.readBool();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ synchronous_ = input.readBool();
+ break;
+ }
+ case 24: {
+ int rawValue = input.readEnum();
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType value = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(3, rawValue);
+ } else {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ switchTypes_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType>();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ switchTypes_.add(value);
+ }
+ break;
+ }
+ case 26: {
+ int length = input.readRawVarint32();
+ int oldLimit = input.pushLimit(length);
+ while(input.getBytesUntilLimit() > 0) {
+ int rawValue = input.readEnum();
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType value = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(3, rawValue);
+ } else {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ switchTypes_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType>();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ switchTypes_.add(value);
+ }
+ }
+ input.popLimit(oldLimit);
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -28825,44 +28985,109 @@ public final class MasterProtos {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ switchTypes_ = java.util.Collections.unmodifiableList(switchTypes_);
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeRequest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeRequest_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest.Builder.class);
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest.Builder.class);
}
- public static com.google.protobuf.Parser<NormalizeRequest> PARSER =
- new com.google.protobuf.AbstractParser<NormalizeRequest>() {
- public NormalizeRequest parsePartialFrom(
+ public static com.google.protobuf.Parser<SetSplitOrMergeEnabledRequest> PARSER =
+ new com.google.protobuf.AbstractParser<SetSplitOrMergeEnabledRequest>() {
+ public SetSplitOrMergeEnabledRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new NormalizeRequest(input, extensionRegistry);
+ return new SetSplitOrMergeEnabledRequest(input, extensionRegistry);
}
};
@java.lang.Override
- public com.google.protobuf.Parser<NormalizeRequest> getParserForType() {
+ public com.google.protobuf.Parser<SetSplitOrMergeEnabledRequest> getParserForType() {
return PARSER;
}
+ private int bitField0_;
+ // required bool enabled = 1;
+ public static final int ENABLED_FIELD_NUMBER = 1;
+ private boolean enabled_;
+ /**
+ * <code>required bool enabled = 1;</code>
+ */
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>required bool enabled = 1;</code>
+ */
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ // optional bool synchronous = 2;
+ public static final int SYNCHRONOUS_FIELD_NUMBER = 2;
+ private boolean synchronous_;
+ /**
+ * <code>optional bool synchronous = 2;</code>
+ */
+ public boolean hasSynchronous() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional bool synchronous = 2;</code>
+ */
+ public boolean getSynchronous() {
+ return synchronous_;
+ }
+
+ // repeated .hbase.pb.MasterSwitchType switch_types = 3;
+ public static final int SWITCH_TYPES_FIELD_NUMBER = 3;
+ private java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType> switchTypes_;
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType> getSwitchTypesList() {
+ return switchTypes_;
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public int getSwitchTypesCount() {
+ return switchTypes_.size();
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType getSwitchTypes(int index) {
+ return switchTypes_.get(index);
+ }
+
private void initFields() {
+ enabled_ = false;
+ synchronous_ = false;
+ switchTypes_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
+ if (!hasEnabled()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
memoizedIsInitialized = 1;
return true;
}
@@ -28870,6 +29095,15 @@ public final class MasterProtos {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBool(1, enabled_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBool(2, synchronous_);
+ }
+ for (int i = 0; i < switchTypes_.size(); i++) {
+ output.writeEnum(3, switchTypes_.get(i).getNumber());
+ }
getUnknownFields().writeTo(output);
}
@@ -28879,6 +29113,23 @@ public final class MasterProtos {
if (size != -1) return size;
size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, enabled_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, synchronous_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < switchTypes_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeEnumSizeNoTag(switchTypes_.get(i).getNumber());
+ }
+ size += dataSize;
+ size += 1 * switchTypes_.size();
+ }
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
@@ -28896,12 +29147,24 @@ public final class MasterProtos {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest)) {
+ if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest)) {
return super.equals(obj);
}
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest other = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest) obj;
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest other = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest) obj;
boolean result = true;
+ result = result && (hasEnabled() == other.hasEnabled());
+ if (hasEnabled()) {
+ result = result && (getEnabled()
+ == other.getEnabled());
+ }
+ result = result && (hasSynchronous() == other.hasSynchronous());
+ if (hasSynchronous()) {
+ result = result && (getSynchronous()
+ == other.getSynchronous());
+ }
+ result = result && getSwitchTypesList()
+ .equals(other.getSwitchTypesList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
@@ -28915,58 +29178,70 @@ public final class MasterProtos {
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasEnabled()) {
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + hashBoolean(getEnabled());
+ }
+ if (hasSynchronous()) {
+ hash = (37 * hash) + SYNCHRONOUS_FIELD_NUMBER;
+ hash = (53 * hash) + hashBoolean(getSynchronous());
+ }
+ if (getSwitchTypesCount() > 0) {
+ hash = (37 * hash) + SWITCH_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + hashEnumList(getSwitchTypesList());
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseFrom(byte[] data)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseDelimitedFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseDelimitedFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -28975,7 +29250,7 @@ public final class MasterProtos {
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest prototype) {
+ public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -28987,24 +29262,24 @@ public final class MasterProtos {
return builder;
}
/**
- * Protobuf type {@code hbase.pb.NormalizeRequest}
+ * Protobuf type {@code hbase.pb.SetSplitOrMergeEnabledRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequestOrBuilder {
+ implements org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeRequest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeRequest_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest.Builder.class);
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest.Builder.class);
}
- // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest.newBuilder()
+ // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -29024,6 +29299,12 @@ public final class MasterProtos {
public Builder clear() {
super.clear();
+ enabled_ = false;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ synchronous_ = false;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ switchTypes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -29033,43 +29314,79 @@ public final class MasterProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeRequest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledRequest_descriptor;
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest.getDefaultInstance();
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest getDefaultInstanceForType() {
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest.getDefaultInstance();
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest build() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest result = buildPartial();
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest build() {
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest result = new org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest(this);
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest buildPartial() {
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest result = new org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.enabled_ = enabled_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.synchronous_ = synchronous_;
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ switchTypes_ = java.util.Collections.unmodifiableList(switchTypes_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.switchTypes_ = switchTypes_;
+ result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest)other);
+ if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest) {
+ return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest.getDefaultInstance()) return this;
+ public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest other) {
+ if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest.getDefaultInstance()) return this;
+ if (other.hasEnabled()) {
+ setEnabled(other.getEnabled());
+ }
+ if (other.hasSynchronous()) {
+ setSynchronous(other.getSynchronous());
+ }
+ if (!other.switchTypes_.isEmpty()) {
+ if (switchTypes_.isEmpty()) {
+ switchTypes_ = other.switchTypes_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureSwitchTypesIsMutable();
+ switchTypes_.addAll(other.switchTypes_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
+ if (!hasEnabled()) {
+
+ return false;
+ }
return true;
}
@@ -29077,11 +29394,11 @@ public final class MasterProtos {
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest parsedMessage = null;
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeRequest) e.getUnfinishedMessage();
+ parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
@@ -29090,50 +29407,193 @@ public final class MasterProtos {
}
return this;
}
+ private int bitField0_;
- // @@protoc_insertion_point(builder_scope:hbase.pb.NormalizeRequest)
+ // required bool enabled = 1;
+ private boolean enabled_ ;
+ /**
+ * <code>required bool enabled = 1;</code>
+ */
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>required bool enabled = 1;</code>
+ */
+ public boolean getEnabled() {
+ return enabled_;
+ }
+ /**
+ * <code>required bool enabled = 1;</code>
+ */
+ public Builder setEnabled(boolean value) {
+ bitField0_ |= 0x00000001;
+ enabled_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required bool enabled = 1;</code>
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ // optional bool synchronous = 2;
+ private boolean synchronous_ ;
+ /**
+ * <code>optional bool synchronous = 2;</code>
+ */
+ public boolean hasSynchronous() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional bool synchronous = 2;</code>
+ */
+ public boolean getSynchronous() {
+ return synchronous_;
+ }
+ /**
+ * <code>optional bool synchronous = 2;</code>
+ */
+ public Builder setSynchronous(boolean value) {
+ bitField0_ |= 0x00000002;
+ synchronous_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional bool synchronous = 2;</code>
+ */
+ public Builder clearSynchronous() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ synchronous_ = false;
+ onChanged();
+ return this;
+ }
+
+ // repeated .hbase.pb.MasterSwitchType switch_types = 3;
+ private java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType> switchTypes_ =
+ java.util.Collections.emptyList();
+ private void ensureSwitchTypesIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ switchTypes_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType>(switchTypes_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType> getSwitchTypesList() {
+ return java.util.Collections.unmodifiableList(switchTypes_);
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public int getSwitchTypesCount() {
+ return switchTypes_.size();
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType getSwitchTypes(int index) {
+ return switchTypes_.get(index);
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public Builder setSwitchTypes(
+ int index, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSwitchTypesIsMutable();
+ switchTypes_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public Builder addSwitchTypes(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSwitchTypesIsMutable();
+ switchTypes_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public Builder addAllSwitchTypes(
+ java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType> values) {
+ ensureSwitchTypesIsMutable();
+ super.addAll(values, switchTypes_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated .hbase.pb.MasterSwitchType switch_types = 3;</code>
+ */
+ public Builder clearSwitchTypes() {
+ switchTypes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SetSplitOrMergeEnabledRequest)
}
static {
- defaultInstance = new NormalizeRequest(true);
+ defaultInstance = new SetSplitOrMergeEnabledRequest(true);
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:hbase.pb.NormalizeRequest)
+ // @@protoc_insertion_point(class_scope:hbase.pb.SetSplitOrMergeEnabledRequest)
}
- public interface NormalizeResponseOrBuilder
+ public interface SetSplitOrMergeEnabledResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required bool normalizer_ran = 1;
+ // repeated bool prev_value = 1;
/**
- * <code>required bool normalizer_ran = 1;</code>
+ * <code>repeated bool prev_value = 1;</code>
*/
- boolean hasNormalizerRan();
+ java.util.List<java.lang.Boolean> getPrevValueList();
/**
- * <code>required bool normalizer_ran = 1;</code>
+ * <code>repeated bool prev_value = 1;</code>
*/
- boolean getNormalizerRan();
+ int getPrevValueCount();
+ /**
+ * <code>repeated bool prev_value = 1;</code>
+ */
+ boolean getPrevValue(int index);
}
/**
- * Protobuf type {@code hbase.pb.NormalizeResponse}
+ * Protobuf type {@code hbase.pb.SetSplitOrMergeEnabledResponse}
*/
- public static final class NormalizeResponse extends
+ public static final class SetSplitOrMergeEnabledResponse extends
com.google.protobuf.GeneratedMessage
- implements NormalizeResponseOrBuilder {
- // Use NormalizeResponse.newBuilder() to construct.
- private NormalizeResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ implements SetSplitOrMergeEnabledResponseOrBuilder {
+ // Use SetSplitOrMergeEnabledResponse.newBuilder() to construct.
+ private SetSplitOrMergeEnabledResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
- private NormalizeResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ private SetSplitOrMergeEnabledResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final NormalizeResponse defaultInstance;
- public static NormalizeResponse getDefaultInstance() {
+ private static final SetSplitOrMergeEnabledResponse defaultInstance;
+ public static SetSplitOrMergeEnabledResponse getDefaultInstance() {
return defaultInstance;
}
- public NormalizeResponse getDefaultInstanceForType() {
+ public SetSplitOrMergeEnabledResponse getDefaultInstanceForType() {
return defaultInstance;
}
@@ -29143,7 +29603,7 @@ public final class MasterProtos {
getUnknownFields() {
return this.unknownFields;
}
- private NormalizeResponse(
+ private SetSplitOrMergeEnabledResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -29167,8 +29627,24 @@ public final class MasterProtos {
break;
}
case 8: {
- bitField0_ |= 0x00000001;
- normalizerRan_ = input.readBool();
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ prevValue_ = new java.util.ArrayList<java.lang.Boolean>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ prevValue_.add(input.readBool());
+ break;
+ }
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
+ prevValue_ = new java.util.ArrayList<java.lang.Boolean>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ prevValue_.add(input.readBool());
+ }
+ input.popLimit(limit);
break;
}
}
@@ -29179,66 +29655,71 @@ public final class MasterProtos {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ prevValue_ = java.util.Collections.unmodifiableList(prevValue_);
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeResponse_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeResponse_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse.Builder.class);
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse.Builder.class);
}
- public static com.google.protobuf.Parser<NormalizeResponse> PARSER =
- new com.google.protobuf.AbstractParser<NormalizeResponse>() {
- public NormalizeResponse parsePartialFrom(
+ public static com.google.protobuf.Parser<SetSplitOrMergeEnabledResponse> PARSER =
+ new com.google.protobuf.AbstractParser<SetSplitOrMergeEnabledResponse>() {
+ public SetSplitOrMergeEnabledResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new NormalizeResponse(input, extensionRegistry);
+ return new SetSplitOrMergeEnabledResponse(input, extensionRegistry);
}
};
@java.lang.Override
- public com.google.protobuf.Parser<NormalizeResponse> getParserForType() {
+ public com.google.protobuf.Parser<SetSplitOrMergeEnabledResponse> getParserForType() {
return PARSER;
}
- private int bitField0_;
- // required bool normalizer_ran = 1;
- public static final int NORMALIZER_RAN_FIELD_NUMBER = 1;
- private boolean normalizerRan_;
+ // repeated bool prev_value = 1;
+ public static final int PREV_VALUE_FIELD_NUMBER = 1;
+ private java.util.List<java.lang.Boolean> prevValue_;
/**
- * <code>required bool normalizer_ran = 1;</code>
+ * <code>repeated bool prev_value = 1;</code>
*/
- public boolean hasNormalizerRan() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ public java.util.List<java.lang.Boolean>
+ getPrevValueList() {
+ return prevValue_;
}
/**
- * <code>required bool normalizer_ran = 1;</code>
+ * <code>repeated bool prev_value = 1;</code>
*/
- public boolean getNormalizerRan() {
- return normalizerRan_;
+ public int getPrevValueCount() {
+ return prevValue_.size();
+ }
+ /**
+ * <code>repeated bool prev_value = 1;</code>
+ */
+ public boolean getPrevValue(int index) {
+ return prevValue_.get(index);
}
private void initFields() {
- normalizerRan_ = false;
+ prevValue_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
- if (!hasNormalizerRan()) {
- memoizedIsInitialized = 0;
- return false;
- }
memoizedIsInitialized = 1;
return true;
}
@@ -29246,8 +29727,8 @@ public final class MasterProtos {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBool(1, normalizerRan_);
+ for (int i = 0; i < prevValue_.size(); i++) {
+ output.writeBool(1, prevValue_.get(i));
}
getUnknownFields().writeTo(output);
}
@@ -29258,9 +29739,11 @@ public final class MasterProtos {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(1, normalizerRan_);
+ {
+ int dataSize = 0;
+ dataSize = 1 * getPrevValueList().size();
+ size += dataSize;
+ size += 1 * getPrevValueList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
@@ -29279,17 +29762,14 @@ public final class MasterProtos {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse)) {
+ if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse)) {
return super.equals(obj);
}
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse other = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse) obj;
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse other = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse) obj;
boolean result = true;
- result = result && (hasNormalizerRan() == other.hasNormalizerRan());
- if (hasNormalizerRan()) {
- result = result && (getNormalizerRan()
- == other.getNormalizerRan());
- }
+ result = result && getPrevValueList()
+ .equals(other.getPrevValueList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
@@ -29303,62 +29783,62 @@ public final class MasterProtos {
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasNormalizerRan()) {
- hash = (37 * hash) + NORMALIZER_RAN_FIELD_NUMBER;
- hash = (53 * hash) + hashBoolean(getNormalizerRan());
+ if (getPrevValueCount() > 0) {
+ hash = (37 * hash) + PREV_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getPrevValueList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseFrom(byte[] data)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseDelimitedFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseDelimitedFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -29367,7 +29847,7 @@ public final class MasterProtos {
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse prototype) {
+ public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -29379,24 +29859,24 @@ public final class MasterProtos {
return builder;
}
/**
- * Protobuf type {@code hbase.pb.NormalizeResponse}
+ * Protobuf type {@code hbase.pb.SetSplitOrMergeEnabledResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponseOrBuilder {
+ implements org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeResponse_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeResponse_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse.Builder.class);
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse.Builder.class);
}
- // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse.newBuilder()
+ // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -29416,7 +29896,7 @@ public final class MasterProtos {
public Builder clear() {
super.clear();
- normalizerRan_ = false;
+ prevValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -29427,57 +29907,59 @@ public final class MasterProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_NormalizeResponse_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetSplitOrMergeEnabledResponse_descriptor;
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse.getDefaultInstance();
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse getDefaultInstanceForType() {
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse.getDefaultInstance();
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse build() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse result = buildPartial();
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse build() {
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse result = new org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse(this);
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse buildPartial() {
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse result = new org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse(this);
int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ prevValue_ = java.util.Collections.unmodifiableList(prevValue_);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
- result.normalizerRan_ = normalizerRan_;
- result.bitField0_ = to_bitField0_;
+ result.prevValue_ = prevValue_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse)other);
+ if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse) {
+ return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse.getDefaultInstance()) return this;
- if (other.hasNormalizerRan()) {
- setNormalizerRan(other.getNormalizerRan());
+ public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse other) {
+ if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse.getDefaultInstance()) return this;
+ if (!other.prevValue_.isEmpty()) {
+ if (prevValue_.isEmpty()) {
+ prevValue_ = other.prevValue_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensurePrevValueIsMutable();
+ prevValue_.addAll(other.prevValue_);
+ }
+ onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
- if (!hasNormalizerRan()) {
-
- return false;
- }
return true;
}
@@ -29485,11 +29967,11 @@ public final class MasterProtos {
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse parsedMessage = null;
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.NormalizeResponse) e.getUnfinishedMessage();
+ parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetSplitOrMergeEnabledResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
@@ -29500,82 +29982,115 @@ public final class MasterProtos {
}
private int bitField0_;
- // required bool normalizer_ran = 1;
- private boolean normalizerRan_ ;
+ // repeated bool prev_value = 1;
+ private java.util.List<java.lang.Boolean> prevValue_ = java.util.Collections.emptyList();
+ private void ensurePrevValueIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ prevValue_ = new java.util.ArrayList<java.lang.Boolean>(prevValue_);
+ bitField0_ |= 0x00000001;
+ }
+ }
/**
- * <code>required bool normalizer_ran = 1;</code>
+ * <code>repeated bool prev_value = 1;</code>
*/
- public boolean hasNormalizerRan() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ public java.util.List<java.lang.Boolean>
+ getPrevValueList() {
+ return java.util.Collections.unmodifiableList(prevValue_);
}
/**
- * <code>required bool normalizer_ran = 1;</code>
+ * <code>repeated bool prev_value = 1;</code>
*/
- public boolean getNormalizerRan() {
- return normalizerRan_;
+ public int getPrevValueCount() {
+ return prevValue_.size();
}
/**
- * <code>required bool normalizer_ran = 1;</code>
+ * <code>repeated bool prev_value = 1;</code>
*/
- public Builder setNormalizerRan(boolean value) {
- bitField0_ |= 0x00000001;
- normalizerRan_ = value;
+ public boolean getPrevValue(int index) {
+ return prevValue_.get(index);
+ }
+ /**
+ * <code>repeated bool prev_value = 1;</code>
+ */
+ public Builder setPrevValue(
+ int index, boolean value) {
+ ensurePrevValueIsMutable();
+ prevValue_.set(index, value);
onChanged();
return this;
}
/**
- * <code>required bool normalizer_ran = 1;</code>
+ * <code>repeated bool prev_value = 1;</code>
*/
- public Builder clearNormalizerRan() {
+ public Builder addPrevValue(boolean value) {
+ ensurePrevValueIsMutable();
+ prevValue_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated bool prev_value = 1;</code>
+ */
+ public Builder addAllPrevValue(
+ java.lang.Iterable<? extends java.lang.Boolean> values) {
+ ensurePrevValueIsMutable();
+ super.addAll(values, prevValue_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated bool prev_value = 1;</code>
+ */
+ public Builder clearPrevValue() {
+ prevValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
- normalizerRan_ = false;
onChanged();
return this;
}
- // @@protoc_insertion_point(builder_scope:hbase.pb.NormalizeResponse)
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SetSplitOrMergeEnabledResponse)
}
static {
- defaultInstance = new NormalizeResponse(true);
+ defaultInstance = new SetSplitOrMergeEnabledResponse(true);
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:hbase.pb.NormalizeResponse)
+ // @@protoc_insertion_point(class_scope:hbase.pb.SetSplitOrMergeEnabledResponse)
}
- public interface SetNormalizerRunningRequestOrBuilder
+ public interface IsSplitOrMergeEnabledRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required bool on = 1;
+ // required .hbase.pb.MasterSwitchType switch_type = 1;
/**
- * <code>required bool on = 1;</code>
+ * <code>required .hbase.pb.MasterSwitchType switch_type = 1;</code>
*/
- boolean hasOn();
+ boolean hasSwitchType();
/**
- * <code>required bool on = 1;</code>
+ * <code>required .hbase.pb.MasterSwitchType switch_type = 1;</code>
*/
- boolean getOn();
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType getSwitchType();
}
/**
- * Protobuf type {@code hbase.pb.SetNormalizerRunningRequest}
+ * Protobuf type {@code hbase.pb.IsSplitOrMergeEnabledRequest}
*/
- public static final class SetNormalizerRunningRequest extends
+ public static final class IsSplitOrMergeEnabledRequest extends
com.google.protobuf.GeneratedMessage
- implements SetNormalizerRunningRequestOrBuilder {
- // Use SetNormalizerRunningRequest.newBuilder() to construct.
- private SetNormalizerRunningRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ implements IsSplitOrMergeEnabledRequestOrBuilder {
+ // Use IsSplitOrMergeEnabledRequest.newBuilder() to construct.
+ private IsSplitOrMergeEnabledRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
- private SetNormalizerRunningRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ private IsSplitOrMergeEnabledRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final SetNormalizerRunningRequest defaultInstance;
- public static SetNormalizerRunningRequest getDefaultInstance() {
+ private static final IsSplitOrMergeEnabledRequest defaultInstance;
+ public static IsSplitOrMergeEnabledRequest getDefaultInstance() {
return defaultInstance;
}
- public SetNormalizerRunningRequest getDefaultInstanceForType() {
+ public IsSplitOrMergeEnabledRequest getDefaultInstanceForType() {
return defaultInstance;
}
@@ -29585,7 +30100,7 @@ public final class MasterProtos {
getUnknownFields() {
return this.unknownFields;
}
- private SetNormalizerRunningRequest(
+ private IsSplitOrMergeEnabledRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -29609,8 +30124,14 @@ public final class MasterProtos {
break;
}
case 8: {
- bitField0_ |= 0x00000001;
- on_ = input.readBool();
+ int rawValue = input.readEnum();
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType value = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(1, rawValue);
+ } else {
+ bitField0_ |= 0x00000001;
+ switchType_ = value;
+ }
break;
}
}
@@ -29627,57 +30148,57 @@ public final class MasterProtos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetNormalizerRunningRequest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_IsSplitOrMergeEnabledRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetNormalizerRunningRequest_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_IsSplitOrMergeEnabledRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest.Builder.class);
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest.Builder.class);
}
- public static com.google.protobuf.Parser<SetNormalizerRunningRequest> PARSER =
- new com.google.protobuf.AbstractParser<SetNormalizerRunningRequest>() {
- public SetNormalizerRunningRequest parsePartialFrom(
+ public static com.google.protobuf.Parser<IsSplitOrMergeEnabledRequest> PARSER =
+ new com.google.protobuf.AbstractParser<IsSplitOrMergeEnabledRequest>() {
+ public IsSplitOrMergeEnabledRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new SetNormalizerRunningRequest(input, extensionRegistry);
+ return new IsSplitOrMergeEnabledRequest(input, extensionRegistry);
}
};
@java.lang.Override
- public com.google.protobuf.Parser<SetNormalizerRunningRequest> getParserForType() {
+ public com.google.protobuf.Parser<IsSplitOrMergeEnabledRequest> getParserForType() {
return PARSER;
}
private int bitField0_;
- // required bool on = 1;
- public static final int ON_FIELD_NUMBER = 1;
- private boolean on_;
+ // required .hbase.pb.MasterSwitchType switch_type = 1;
+ public static final int SWITCH_TYPE_FIELD_NUMBER = 1;
+ private org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType switchType_;
/**
- * <code>required bool on = 1;</code>
+ * <code>required .hbase.pb.MasterSwitchType switch_type = 1;</code>
*/
- public boolean hasOn() {
+ public boolean hasSwitchType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>required bool on = 1;</code>
+ * <code>required .hbase.pb.MasterSwitchType switch_type = 1;</code>
*/
- public boolean getOn() {
- return on_;
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType getSwitchType() {
+ return switchType_;
}
private void initFields() {
- on_ = false;
+ switchType_ = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType.SPLIT;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
- if (!hasOn()) {
+ if (!hasSwitchType()) {
memoizedIsInitialized = 0;
return false;
}
@@ -29689,7 +30210,7 @@ public final class MasterProtos {
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBool(1, on_);
+ output.writeEnum(1, switchType_.getNumber());
}
getUnknownFields().writeTo(output);
}
@@ -29702,7 +30223,7 @@ public final class MasterProtos {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(1, on_);
+ .computeEnumSize(1, switchType_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
@@ -29721,16 +30242,16 @@ public final class MasterProtos {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest)) {
+ if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest)) {
return super.equals(obj);
}
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest other = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest) obj;
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest other = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest) obj;
boolean result = true;
- result = result && (hasOn() == other.hasOn());
- if (hasOn()) {
- result = result && (getOn()
- == other.getOn());
+ result = result && (hasSwitchType() == other.hasSwitchType());
+ if (hasSwitchType()) {
+ result = result &&
+ (getSwitchType() == other.getSwitchType());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
@@ -29745,62 +30266,62 @@ public final class MasterProtos {
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasOn()) {
- hash = (37 * hash) + ON_FIELD_NUMBER;
- hash = (53 * hash) + hashBoolean(getOn());
+ if (hasSwitchType()) {
+ hash = (37 * hash) + SWITCH_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + hashEnum(getSwitchType());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseFrom(byte[] data)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseDelimitedFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseDelimitedFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -29809,7 +30330,7 @@ public final class MasterProtos {
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest prototype) {
+ public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -29821,24 +30342,24 @@ public final class MasterProtos {
return builder;
}
/**
- * Protobuf type {@code hbase.pb.SetNormalizerRunningRequest}
+ * Protobuf type {@code hbase.pb.IsSplitOrMergeEnabledRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequestOrBuilder {
+ implements org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetNormalizerRunningRequest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_IsSplitOrMergeEnabledRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetNormalizerRunningRequest_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_IsSplitOrMergeEnabledRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest.Builder.class);
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest.Builder.class);
}
- // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest.newBuilder()
+ // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -29858,7 +30379,7 @@ public final class MasterProtos {
public Builder clear() {
super.clear();
- on_ = false;
+ switchType_ = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType.SPLIT;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -29869,54 +30390,54 @@ public final class MasterProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SetNormalizerRunningRequest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_IsSplitOrMergeEnabledRequest_descriptor;
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest.getDefaultInstance();
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest getDefaultInstanceForType() {
+ return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest.getDefaultInstance();
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest build() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest result = buildPartial();
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest build() {
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest result = new org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest(this);
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest buildPartial() {
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest result = new org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
- result.on_ = on_;
+ result.switchType_ = switchType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest)other);
+ if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest) {
+ return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest.getDefaultInstance()) return this;
- if (other.hasOn()) {
- setOn(other.getOn());
+ public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest other) {
+ if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest.getDefaultInstance()) return this;
+ if (other.hasSwitchType()) {
+ setSwitchType(other.getSwitchType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
- if (!hasOn()) {
+ if (!hasSwitchType()) {
return false;
}
@@ -29927,11 +30448,11 @@ public final class MasterProtos {
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest parsedMessage = null;
+ org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SetNormalizerRunningRequest) e.getUnfinishedMessage();
+ parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.IsSplitOrMergeEnabledRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
@@ -29942,82 +30463,85 @@ public final class MasterProtos {
}
private int bitField0_;
- // required bool on = 1;
- private boolean on_ ;
+ // required .hbase.pb.MasterSwitchType switch_type = 1;
+ private org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType switchType_ = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType.SPLIT;
/**
- * <code>required bool on = 1;</code>
+ * <code>required .hbase.pb.MasterSwitchType switch_type = 1;</code>
*/
- public boolean hasOn() {
+ public boolean hasSwitchType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>required bool on = 1;</code>
+ * <code>required .hbase.pb.MasterSwitchType switch_type = 1;</code>
*/
- public boolean getOn() {
- return on_;
+ public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType getSwitchType() {
+ return switchType_;
}
/**
- * <code>required bool on = 1;</code>
+ * <code>required .hbase.pb.MasterSwitchType switch_type = 1;</code>
*/
- public Builder setOn(boolean value) {
+ public Builder setSwitchType(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
bitField0_ |= 0x00000001;
- on_ = value;
+ switchType_ = value;
onChanged();
return this;
}
/**
- * <code>required bool on = 1;</code>
+ * <code>required .hbase.pb.MasterSwitchType switch_type = 1;</code>
*/
- public Builder clearOn() {
+ public Builder clearSwitchType() {
bitField0_ = (bitField0_ & ~0x00000001);
- on_ = false;
+ switchType_ = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.MasterSwitchType.SPLIT;
onChanged();
return this;
}
- // @@protoc_insertion_point(builder_scope:hbase.pb.SetNormalizerRunningRequest)
+ // @@protoc_insertion_point(builder_scope:hbase.pb.IsSplitOrMergeEnabledRequest)
}
static {
- defaultInstance = new SetNormalizerRunningRequest(true);
+ defaultInstance = new IsSplitOrMergeEnabledRequest(true);
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:hbase.pb.SetNormalizerRunningRequest)
+ // @@protoc_insertion_point(class_scope:hbase.pb.IsSplitOrMergeEnabledRequest)
}
- public interface SetNormalizerRunningResponseOrBuilder
+ public interface IsSplitOrMergeEnabledResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // optional bool prev_normalizer_value = 1;
+ // required bool enabled = 1;
/**
- * <code>optional bool prev_normalizer_value = 1;</code>
+ * <code>required bool enabled = 1;</code>
*/
- boolean hasPrevNormalizerValue();
+ boolean hasEnabled();
/**
- * <code>optional bool prev_normalizer_value = 1;</code>
+ * <code>required bool enabled = 1;</code>
*/
- boolean getPrevNormalizerValue();
+ boolean getEnabled();
}
/**
- * Protobuf type {@code hbase.pb.SetNormalizerRunningResponse}
+ * Protobuf type {@code hbase.pb.IsSplitOrMergeEnabledResponse}
*/
- public static final class SetNormalizerRunningResponse extends
+ public static final class IsSplitOrMergeEnabledResponse extends
com.google.protobuf.GeneratedMessage
- implements SetNormalizerRunningResponseOrBuilder {
- // Use SetNormalizerRunningResponse.newBuilder() to construct.
- private SetNormalizerRunningResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ implements IsSplitOrMergeEnabledResponseOrBuilder {
+ // Use IsSplitOrMergeEnabledResponse.newBuilder() to construct.
+ private IsSplitOrMergeEnabledResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
- private SetNormalizerRunningResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ private IsSplitOrMergeEnabledResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final SetNormalizerRunningResponse defaultInstance;
- public static SetNormalizerRunningResponse getDefaultInstance() {
+ private static final IsSplitOrMergeEnabledResponse defaultInstance;
+ public static IsSplitOrMergeEnabledResponse getDefaultInstance() {
return defaultInstance;
}
- public SetNormalizerRunningResponse getDefaultInstanceForType() {
+ public IsSplitOrMergeEnabledRes
<TRUNCATED>
[2/4] hbase git commit: HBASE-15128 Disable region splits and merges
switch in master
Posted by ch...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase/blob/24d481c5/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SnapshotProtos.java
----------------------------------------------------------------------
diff --git a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SnapshotProtos.java b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SnapshotProtos.java
index 8dbb5ad..9805d50 100644
--- a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SnapshotProtos.java
+++ b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SnapshotProtos.java
@@ -11,13 +11,13 @@ public final class SnapshotProtos {
public interface SnapshotFileInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required .SnapshotFileInfo.Type type = 1;
+ // required .hbase.pb.SnapshotFileInfo.Type type = 1;
/**
- * <code>required .SnapshotFileInfo.Type type = 1;</code>
+ * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code>
*/
boolean hasType();
/**
- * <code>required .SnapshotFileInfo.Type type = 1;</code>
+ * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType();
@@ -67,7 +67,7 @@ public final class SnapshotProtos {
getWalNameBytes();
}
/**
- * Protobuf type {@code SnapshotFileInfo}
+ * Protobuf type {@code hbase.pb.SnapshotFileInfo}
*/
public static final class SnapshotFileInfo extends
com.google.protobuf.GeneratedMessage
@@ -157,12 +157,12 @@ public final class SnapshotProtos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotFileInfo_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotFileInfo_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Builder.class);
}
@@ -183,7 +183,7 @@ public final class SnapshotProtos {
}
/**
- * Protobuf enum {@code SnapshotFileInfo.Type}
+ * Protobuf enum {@code hbase.pb.SnapshotFileInfo.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
@@ -261,21 +261,21 @@ public final class SnapshotProtos {
this.value = value;
}
- // @@protoc_insertion_point(enum_scope:SnapshotFileInfo.Type)
+ // @@protoc_insertion_point(enum_scope:hbase.pb.SnapshotFileInfo.Type)
}
private int bitField0_;
- // required .SnapshotFileInfo.Type type = 1;
+ // required .hbase.pb.SnapshotFileInfo.Type type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type type_;
/**
- * <code>required .SnapshotFileInfo.Type type = 1;</code>
+ * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>required .SnapshotFileInfo.Type type = 1;</code>
+ * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType() {
return type_;
@@ -613,19 +613,19 @@ public final class SnapshotProtos {
return builder;
}
/**
- * Protobuf type {@code SnapshotFileInfo}
+ * Protobuf type {@code hbase.pb.SnapshotFileInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotFileInfo_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotFileInfo_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Builder.class);
}
@@ -667,7 +667,7 @@ public final class SnapshotProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotFileInfo_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo getDefaultInstanceForType() {
@@ -767,22 +767,22 @@ public final class SnapshotProtos {
}
private int bitField0_;
- // required .SnapshotFileInfo.Type type = 1;
+ // required .hbase.pb.SnapshotFileInfo.Type type = 1;
private org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type type_ = org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE;
/**
- * <code>required .SnapshotFileInfo.Type type = 1;</code>
+ * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>required .SnapshotFileInfo.Type type = 1;</code>
+ * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType() {
return type_;
}
/**
- * <code>required .SnapshotFileInfo.Type type = 1;</code>
+ * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code>
*/
public Builder setType(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type value) {
if (value == null) {
@@ -794,7 +794,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .SnapshotFileInfo.Type type = 1;</code>
+ * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -1025,7 +1025,7 @@ public final class SnapshotProtos {
return this;
}
- // @@protoc_insertion_point(builder_scope:SnapshotFileInfo)
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotFileInfo)
}
static {
@@ -1033,7 +1033,7 @@ public final class SnapshotProtos {
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:SnapshotFileInfo)
+ // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotFileInfo)
}
public interface SnapshotRegionManifestOrBuilder
@@ -1049,47 +1049,47 @@ public final class SnapshotProtos {
*/
int getVersion();
- // required .RegionInfo region_info = 2;
+ // required .hbase.pb.RegionInfo region_info = 2;
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
boolean hasRegionInfo();
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionInfo();
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder();
- // repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;
+ // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles>
getFamilyFilesList();
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles getFamilyFiles(int index);
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
int getFamilyFilesCount();
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder>
getFamilyFilesOrBuilderList();
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder getFamilyFilesOrBuilder(
int index);
}
/**
- * Protobuf type {@code SnapshotRegionManifest}
+ * Protobuf type {@code hbase.pb.SnapshotRegionManifest}
*/
public static final class SnapshotRegionManifest extends
com.google.protobuf.GeneratedMessage
@@ -1182,12 +1182,12 @@ public final class SnapshotProtos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder.class);
}
@@ -1225,17 +1225,17 @@ public final class SnapshotProtos {
com.google.protobuf.ByteString
getNameBytes();
- // optional .Reference reference = 2;
+ // optional .hbase.pb.Reference reference = 2;
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
boolean hasReference();
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference getReference();
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder getReferenceOrBuilder();
@@ -1258,7 +1258,7 @@ public final class SnapshotProtos {
long getFileSize();
}
/**
- * Protobuf type {@code SnapshotRegionManifest.StoreFile}
+ * Protobuf type {@code hbase.pb.SnapshotRegionManifest.StoreFile}
*/
public static final class StoreFile extends
com.google.protobuf.GeneratedMessage
@@ -1345,12 +1345,12 @@ public final class SnapshotProtos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_StoreFile_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_StoreFile_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder.class);
}
@@ -1414,23 +1414,23 @@ public final class SnapshotProtos {
}
}
- // optional .Reference reference = 2;
+ // optional .hbase.pb.Reference reference = 2;
public static final int REFERENCE_FIELD_NUMBER = 2;
private org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference reference_;
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public boolean hasReference() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference getReference() {
return reference_;
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder getReferenceOrBuilder() {
return reference_;
@@ -1652,19 +1652,19 @@ public final class SnapshotProtos {
return builder;
}
/**
- * Protobuf type {@code SnapshotRegionManifest.StoreFile}
+ * Protobuf type {@code hbase.pb.SnapshotRegionManifest.StoreFile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_StoreFile_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_StoreFile_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder.class);
}
@@ -1709,7 +1709,7 @@ public final class SnapshotProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_StoreFile_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getDefaultInstanceForType() {
@@ -1882,18 +1882,18 @@ public final class SnapshotProtos {
return this;
}
- // optional .Reference reference = 2;
+ // optional .hbase.pb.Reference reference = 2;
private org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference reference_ = org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference, org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder, org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder> referenceBuilder_;
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public boolean hasReference() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference getReference() {
if (referenceBuilder_ == null) {
@@ -1903,7 +1903,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public Builder setReference(org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference value) {
if (referenceBuilder_ == null) {
@@ -1919,7 +1919,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public Builder setReference(
org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder builderForValue) {
@@ -1933,7 +1933,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public Builder mergeReference(org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference value) {
if (referenceBuilder_ == null) {
@@ -1952,7 +1952,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public Builder clearReference() {
if (referenceBuilder_ == null) {
@@ -1965,7 +1965,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder getReferenceBuilder() {
bitField0_ |= 0x00000002;
@@ -1973,7 +1973,7 @@ public final class SnapshotProtos {
return getReferenceFieldBuilder().getBuilder();
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder getReferenceOrBuilder() {
if (referenceBuilder_ != null) {
@@ -1983,7 +1983,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>optional .Reference reference = 2;</code>
+ * <code>optional .hbase.pb.Reference reference = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference, org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder, org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder>
@@ -2048,7 +2048,7 @@ public final class SnapshotProtos {
return this;
}
- // @@protoc_insertion_point(builder_scope:SnapshotRegionManifest.StoreFile)
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotRegionManifest.StoreFile)
}
static {
@@ -2056,7 +2056,7 @@ public final class SnapshotProtos {
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:SnapshotRegionManifest.StoreFile)
+ // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.StoreFile)
}
public interface FamilyFilesOrBuilder
@@ -2072,33 +2072,33 @@ public final class SnapshotProtos {
*/
com.google.protobuf.ByteString getFamilyName();
- // repeated .SnapshotRegionManifest.StoreFile store_files = 2;
+ // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile>
getStoreFilesList();
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getStoreFiles(int index);
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
int getStoreFilesCount();
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder>
getStoreFilesOrBuilderList();
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder getStoreFilesOrBuilder(
int index);
}
/**
- * Protobuf type {@code SnapshotRegionManifest.FamilyFiles}
+ * Protobuf type {@code hbase.pb.SnapshotRegionManifest.FamilyFiles}
*/
public static final class FamilyFiles extends
com.google.protobuf.GeneratedMessage
@@ -2178,12 +2178,12 @@ public final class SnapshotProtos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_FamilyFiles_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder.class);
}
@@ -2220,36 +2220,36 @@ public final class SnapshotProtos {
return familyName_;
}
- // repeated .SnapshotRegionManifest.StoreFile store_files = 2;
+ // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;
public static final int STORE_FILES_FIELD_NUMBER = 2;
private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> storeFiles_;
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> getStoreFilesList() {
return storeFiles_;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder>
getStoreFilesOrBuilderList() {
return storeFiles_;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public int getStoreFilesCount() {
return storeFiles_.size();
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getStoreFiles(int index) {
return storeFiles_.get(index);
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder getStoreFilesOrBuilder(
int index) {
@@ -2428,19 +2428,19 @@ public final class SnapshotProtos {
return builder;
}
/**
- * Protobuf type {@code SnapshotRegionManifest.FamilyFiles}
+ * Protobuf type {@code hbase.pb.SnapshotRegionManifest.FamilyFiles}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_FamilyFiles_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder.class);
}
@@ -2483,7 +2483,7 @@ public final class SnapshotProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_FamilyFiles_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles getDefaultInstanceForType() {
@@ -2633,7 +2633,7 @@ public final class SnapshotProtos {
return this;
}
- // repeated .SnapshotRegionManifest.StoreFile store_files = 2;
+ // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;
private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> storeFiles_ =
java.util.Collections.emptyList();
private void ensureStoreFilesIsMutable() {
@@ -2647,7 +2647,7 @@ public final class SnapshotProtos {
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder> storeFilesBuilder_;
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> getStoreFilesList() {
if (storeFilesBuilder_ == null) {
@@ -2657,7 +2657,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public int getStoreFilesCount() {
if (storeFilesBuilder_ == null) {
@@ -2667,7 +2667,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getStoreFiles(int index) {
if (storeFilesBuilder_ == null) {
@@ -2677,7 +2677,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder setStoreFiles(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile value) {
@@ -2694,7 +2694,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder setStoreFiles(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder builderForValue) {
@@ -2708,7 +2708,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder addStoreFiles(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile value) {
if (storeFilesBuilder_ == null) {
@@ -2724,7 +2724,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder addStoreFiles(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile value) {
@@ -2741,7 +2741,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder addStoreFiles(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder builderForValue) {
@@ -2755,7 +2755,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder addStoreFiles(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder builderForValue) {
@@ -2769,7 +2769,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder addAllStoreFiles(
java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> values) {
@@ -2783,7 +2783,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder clearStoreFiles() {
if (storeFilesBuilder_ == null) {
@@ -2796,7 +2796,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public Builder removeStoreFiles(int index) {
if (storeFilesBuilder_ == null) {
@@ -2809,14 +2809,14 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder getStoreFilesBuilder(
int index) {
return getStoreFilesFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder getStoreFilesOrBuilder(
int index) {
@@ -2826,7 +2826,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder>
getStoreFilesOrBuilderList() {
@@ -2837,14 +2837,14 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder addStoreFilesBuilder() {
return getStoreFilesFieldBuilder().addBuilder(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.getDefaultInstance());
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder addStoreFilesBuilder(
int index) {
@@ -2852,7 +2852,7 @@ public final class SnapshotProtos {
index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.getDefaultInstance());
}
/**
- * <code>repeated .SnapshotRegionManifest.StoreFile store_files = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder>
getStoreFilesBuilderList() {
@@ -2873,7 +2873,7 @@ public final class SnapshotProtos {
return storeFilesBuilder_;
}
- // @@protoc_insertion_point(builder_scope:SnapshotRegionManifest.FamilyFiles)
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotRegionManifest.FamilyFiles)
}
static {
@@ -2881,7 +2881,7 @@ public final class SnapshotProtos {
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:SnapshotRegionManifest.FamilyFiles)
+ // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.FamilyFiles)
}
private int bitField0_;
@@ -2901,58 +2901,58 @@ public final class SnapshotProtos {
return version_;
}
- // required .RegionInfo region_info = 2;
+ // required .hbase.pb.RegionInfo region_info = 2;
public static final int REGION_INFO_FIELD_NUMBER = 2;
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo regionInfo_;
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public boolean hasRegionInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionInfo() {
return regionInfo_;
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder() {
return regionInfo_;
}
- // repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;
+ // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;
public static final int FAMILY_FILES_FIELD_NUMBER = 3;
private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> familyFiles_;
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> getFamilyFilesList() {
return familyFiles_;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder>
getFamilyFilesOrBuilderList() {
return familyFiles_;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public int getFamilyFilesCount() {
return familyFiles_.size();
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles getFamilyFiles(int index) {
return familyFiles_.get(index);
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder getFamilyFilesOrBuilder(
int index) {
@@ -3152,19 +3152,19 @@ public final class SnapshotProtos {
return builder;
}
/**
- * Protobuf type {@code SnapshotRegionManifest}
+ * Protobuf type {@code hbase.pb.SnapshotRegionManifest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder.class);
}
@@ -3214,7 +3214,7 @@ public final class SnapshotProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotRegionManifest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest getDefaultInstanceForType() {
@@ -3376,18 +3376,18 @@ public final class SnapshotProtos {
return this;
}
- // required .RegionInfo region_info = 2;
+ // required .hbase.pb.RegionInfo region_info = 2;
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo regionInfo_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder> regionInfoBuilder_;
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public boolean hasRegionInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionInfo() {
if (regionInfoBuilder_ == null) {
@@ -3397,7 +3397,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public Builder setRegionInfo(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo value) {
if (regionInfoBuilder_ == null) {
@@ -3413,7 +3413,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public Builder setRegionInfo(
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder builderForValue) {
@@ -3427,7 +3427,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public Builder mergeRegionInfo(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo value) {
if (regionInfoBuilder_ == null) {
@@ -3446,7 +3446,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public Builder clearRegionInfo() {
if (regionInfoBuilder_ == null) {
@@ -3459,7 +3459,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder getRegionInfoBuilder() {
bitField0_ |= 0x00000002;
@@ -3467,7 +3467,7 @@ public final class SnapshotProtos {
return getRegionInfoFieldBuilder().getBuilder();
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder() {
if (regionInfoBuilder_ != null) {
@@ -3477,7 +3477,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>required .RegionInfo region_info = 2;</code>
+ * <code>required .hbase.pb.RegionInfo region_info = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder>
@@ -3493,7 +3493,7 @@ public final class SnapshotProtos {
return regionInfoBuilder_;
}
- // repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;
+ // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;
private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> familyFiles_ =
java.util.Collections.emptyList();
private void ensureFamilyFilesIsMutable() {
@@ -3507,7 +3507,7 @@ public final class SnapshotProtos {
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder> familyFilesBuilder_;
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> getFamilyFilesList() {
if (familyFilesBuilder_ == null) {
@@ -3517,7 +3517,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public int getFamilyFilesCount() {
if (familyFilesBuilder_ == null) {
@@ -3527,7 +3527,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles getFamilyFiles(int index) {
if (familyFilesBuilder_ == null) {
@@ -3537,7 +3537,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder setFamilyFiles(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles value) {
@@ -3554,7 +3554,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder setFamilyFiles(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder builderForValue) {
@@ -3568,7 +3568,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder addFamilyFiles(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles value) {
if (familyFilesBuilder_ == null) {
@@ -3584,7 +3584,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder addFamilyFiles(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles value) {
@@ -3601,7 +3601,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder addFamilyFiles(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder builderForValue) {
@@ -3615,7 +3615,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder addFamilyFiles(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder builderForValue) {
@@ -3629,7 +3629,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder addAllFamilyFiles(
java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> values) {
@@ -3643,7 +3643,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder clearFamilyFiles() {
if (familyFilesBuilder_ == null) {
@@ -3656,7 +3656,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public Builder removeFamilyFiles(int index) {
if (familyFilesBuilder_ == null) {
@@ -3669,14 +3669,14 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder getFamilyFilesBuilder(
int index) {
return getFamilyFilesFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder getFamilyFilesOrBuilder(
int index) {
@@ -3686,7 +3686,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder>
getFamilyFilesOrBuilderList() {
@@ -3697,14 +3697,14 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder addFamilyFilesBuilder() {
return getFamilyFilesFieldBuilder().addBuilder(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.getDefaultInstance());
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder addFamilyFilesBuilder(
int index) {
@@ -3712,7 +3712,7 @@ public final class SnapshotProtos {
index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.getDefaultInstance());
}
/**
- * <code>repeated .SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder>
getFamilyFilesBuilderList() {
@@ -3733,7 +3733,7 @@ public final class SnapshotProtos {
return familyFilesBuilder_;
}
- // @@protoc_insertion_point(builder_scope:SnapshotRegionManifest)
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotRegionManifest)
}
static {
@@ -3741,53 +3741,53 @@ public final class SnapshotProtos {
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:SnapshotRegionManifest)
+ // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest)
}
public interface SnapshotDataManifestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required .TableSchema table_schema = 1;
+ // required .hbase.pb.TableSchema table_schema = 1;
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
boolean hasTableSchema();
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getTableSchema();
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder();
- // repeated .SnapshotRegionManifest region_manifests = 2;
+ // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest>
getRegionManifestsList();
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest getRegionManifests(int index);
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
int getRegionManifestsCount();
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder>
getRegionManifestsOrBuilderList();
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder getRegionManifestsOrBuilder(
int index);
}
/**
- * Protobuf type {@code SnapshotDataManifest}
+ * Protobuf type {@code hbase.pb.SnapshotDataManifest}
*/
public static final class SnapshotDataManifest extends
com.google.protobuf.GeneratedMessage
@@ -3875,12 +3875,12 @@ public final class SnapshotProtos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotDataManifest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotDataManifest_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.Builder.class);
}
@@ -3901,58 +3901,58 @@ public final class SnapshotProtos {
}
private int bitField0_;
- // required .TableSchema table_schema = 1;
+ // required .hbase.pb.TableSchema table_schema = 1;
public static final int TABLE_SCHEMA_FIELD_NUMBER = 1;
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema tableSchema_;
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public boolean hasTableSchema() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getTableSchema() {
return tableSchema_;
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder() {
return tableSchema_;
}
- // repeated .SnapshotRegionManifest region_manifests = 2;
+ // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;
public static final int REGION_MANIFESTS_FIELD_NUMBER = 2;
private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> regionManifests_;
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> getRegionManifestsList() {
return regionManifests_;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder>
getRegionManifestsOrBuilderList() {
return regionManifests_;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public int getRegionManifestsCount() {
return regionManifests_.size();
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest getRegionManifests(int index) {
return regionManifests_.get(index);
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder getRegionManifestsOrBuilder(
int index) {
@@ -4135,19 +4135,19 @@ public final class SnapshotProtos {
return builder;
}
/**
- * Protobuf type {@code SnapshotDataManifest}
+ * Protobuf type {@code hbase.pb.SnapshotDataManifest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotDataManifest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotDataManifest_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.Builder.class);
}
@@ -4195,7 +4195,7 @@ public final class SnapshotProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_SnapshotDataManifest_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest getDefaultInstanceForType() {
@@ -4317,18 +4317,18 @@ public final class SnapshotProtos {
}
private int bitField0_;
- // required .TableSchema table_schema = 1;
+ // required .hbase.pb.TableSchema table_schema = 1;
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema tableSchema_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder> tableSchemaBuilder_;
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public boolean hasTableSchema() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getTableSchema() {
if (tableSchemaBuilder_ == null) {
@@ -4338,7 +4338,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public Builder setTableSchema(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema value) {
if (tableSchemaBuilder_ == null) {
@@ -4354,7 +4354,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public Builder setTableSchema(
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder builderForValue) {
@@ -4368,7 +4368,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public Builder mergeTableSchema(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema value) {
if (tableSchemaBuilder_ == null) {
@@ -4387,7 +4387,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public Builder clearTableSchema() {
if (tableSchemaBuilder_ == null) {
@@ -4400,7 +4400,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder getTableSchemaBuilder() {
bitField0_ |= 0x00000001;
@@ -4408,7 +4408,7 @@ public final class SnapshotProtos {
return getTableSchemaFieldBuilder().getBuilder();
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder() {
if (tableSchemaBuilder_ != null) {
@@ -4418,7 +4418,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>required .TableSchema table_schema = 1;</code>
+ * <code>required .hbase.pb.TableSchema table_schema = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder>
@@ -4434,7 +4434,7 @@ public final class SnapshotProtos {
return tableSchemaBuilder_;
}
- // repeated .SnapshotRegionManifest region_manifests = 2;
+ // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;
private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> regionManifests_ =
java.util.Collections.emptyList();
private void ensureRegionManifestsIsMutable() {
@@ -4448,7 +4448,7 @@ public final class SnapshotProtos {
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder> regionManifestsBuilder_;
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> getRegionManifestsList() {
if (regionManifestsBuilder_ == null) {
@@ -4458,7 +4458,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public int getRegionManifestsCount() {
if (regionManifestsBuilder_ == null) {
@@ -4468,7 +4468,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest getRegionManifests(int index) {
if (regionManifestsBuilder_ == null) {
@@ -4478,7 +4478,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder setRegionManifests(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest value) {
@@ -4495,7 +4495,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder setRegionManifests(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder builderForValue) {
@@ -4509,7 +4509,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder addRegionManifests(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest value) {
if (regionManifestsBuilder_ == null) {
@@ -4525,7 +4525,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder addRegionManifests(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest value) {
@@ -4542,7 +4542,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder addRegionManifests(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder builderForValue) {
@@ -4556,7 +4556,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder addRegionManifests(
int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder builderForValue) {
@@ -4570,7 +4570,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder addAllRegionManifests(
java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> values) {
@@ -4584,7 +4584,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder clearRegionManifests() {
if (regionManifestsBuilder_ == null) {
@@ -4597,7 +4597,7 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public Builder removeRegionManifests(int index) {
if (regionManifestsBuilder_ == null) {
@@ -4610,14 +4610,14 @@ public final class SnapshotProtos {
return this;
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder getRegionManifestsBuilder(
int index) {
return getRegionManifestsFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder getRegionManifestsOrBuilder(
int index) {
@@ -4627,7 +4627,7 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder>
getRegionManifestsOrBuilderList() {
@@ -4638,14 +4638,14 @@ public final class SnapshotProtos {
}
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder addRegionManifestsBuilder() {
return getRegionManifestsFieldBuilder().addBuilder(
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.getDefaultInstance());
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder addRegionManifestsBuilder(
int index) {
@@ -4653,7 +4653,7 @@ public final class SnapshotProtos {
index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.getDefaultInstance());
}
/**
- * <code>repeated .SnapshotRegionManifest region_manifests = 2;</code>
+ * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code>
*/
public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder>
getRegionManifestsBuilderList() {
@@ -4674,7 +4674,7 @@ public final class SnapshotProtos {
return regionManifestsBuilder_;
}
- // @@protoc_insertion_point(builder_scope:SnapshotDataManifest)
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotDataManifest)
}
static {
@@ -4682,34 +4682,34 @@ public final class SnapshotProtos {
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:SnapshotDataManifest)
+ // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotDataManifest)
}
private static com.google.protobuf.Descriptors.Descriptor
- internal_static_SnapshotFileInfo_descriptor;
+ internal_static_hbase_pb_SnapshotFileInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_SnapshotFileInfo_fieldAccessorTable;
+ internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
- internal_static_SnapshotRegionManifest_descriptor;
+ internal_static_hbase_pb_SnapshotRegionManifest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_SnapshotRegionManifest_fieldAccessorTable;
+ internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
- internal_static_SnapshotRegionManifest_StoreFile_descriptor;
+ internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_SnapshotRegionManifest_StoreFile_fieldAccessorTable;
+ internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
- internal_static_SnapshotRegionManifest_FamilyFiles_descriptor;
+ internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable;
+ internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
- internal_static_SnapshotDataManifest_descriptor;
+ internal_static_hbase_pb_SnapshotDataManifest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_SnapshotDataManifest_fieldAccessorTable;
+ internal_static_hbase_pb_SnapshotDataManifest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@@ -4719,58 +4719,60 @@ public final class SnapshotProtos {
descriptor;
static {
java.lang.String[] descriptorData = {
- "\n\016Snapshot.proto\032\010FS.proto\032\013HBase.proto\"" +
- "\211\001\n\020SnapshotFileInfo\022$\n\004type\030\001 \002(\0162\026.Sna" +
- "pshotFileInfo.Type\022\r\n\005hfile\030\003 \001(\t\022\022\n\nwal" +
- "_server\030\004 \001(\t\022\020\n\010wal_name\030\005 \001(\t\"\032\n\004Type\022" +
- "\t\n\005HFILE\020\001\022\007\n\003WAL\020\002\"\257\002\n\026SnapshotRegionMa" +
- "nifest\022\017\n\007version\030\001 \001(\005\022 \n\013region_info\030\002" +
- " \002(\0132\013.RegionInfo\0229\n\014family_files\030\003 \003(\0132" +
- "#.SnapshotRegionManifest.FamilyFiles\032K\n\t" +
- "StoreFile\022\014\n\004name\030\001 \002(\t\022\035\n\treference\030\002 \001" +
- "(\0132\n.Reference\022\021\n\tfile_size\030\003 \001(\004\032Z\n\013Fam",
- "ilyFiles\022\023\n\013family_name\030\001 \002(\014\0226\n\013store_f" +
- "iles\030\002 \003(\0132!.SnapshotRegionManifest.Stor" +
- "eFile\"m\n\024SnapshotDataManifest\022\"\n\014table_s" +
- "chema\030\001 \002(\0132\014.TableSchema\0221\n\020region_mani" +
- "fests\030\002 \003(\0132\027.SnapshotRegionManifestBD\n*" +
- "org.apache.hadoop.hbase.protobuf.generat" +
- "edB\016SnapshotProtosH\001\210\001\001\240\001\001"
+ "\n\016Snapshot.proto\022\010hbase.pb\032\010FS.proto\032\013HB" +
+ "ase.proto\"\222\001\n\020SnapshotFileInfo\022-\n\004type\030\001" +
+ " \002(\0162\037.hbase.pb.SnapshotFileInfo.Type\022\r\n" +
+ "\005hfile\030\003 \001(\t\022\022\n\nwal_server\030\004 \001(\t\022\020\n\010wal_" +
+ "name\030\005 \001(\t\"\032\n\004Type\022\t\n\005HFILE\020\001\022\007\n\003WAL\020\002\"\323" +
+ "\002\n\026SnapshotRegionManifest\022\017\n\007version\030\001 \001" +
+ "(\005\022)\n\013region_info\030\002 \002(\0132\024.hbase.pb.Regio" +
+ "nInfo\022B\n\014family_files\030\003 \003(\0132,.hbase.pb.S" +
+ "napshotRegionManifest.FamilyFiles\032T\n\tSto" +
+ "reFile\022\014\n\004name\030\001 \002(\t\022&\n\treference\030\002 \001(\0132",
+ "\023.hbase.pb.Reference\022\021\n\tfile_size\030\003 \001(\004\032" +
+ "c\n\013FamilyFiles\022\023\n\013family_name\030\001 \002(\014\022?\n\013s" +
+ "tore_files\030\002 \003(\0132*.hbase.pb.SnapshotRegi" +
+ "onManifest.StoreFile\"\177\n\024SnapshotDataMani" +
+ "fest\022+\n\014table_schema\030\001 \002(\0132\025.hbase.pb.Ta" +
+ "bleSchema\022:\n\020region_manifests\030\002 \003(\0132 .hb" +
+ "ase.pb.SnapshotRegionManifestBD\n*org.apa" +
+ "che.hadoop.hbase.protobuf.generatedB\016Sna" +
+ "pshotProtosH\001\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
- internal_static_SnapshotFileInfo_descriptor =
+ internal_static_hbase_pb_SnapshotFileInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
- internal_static_SnapshotFileInfo_fieldAccessorTable = new
+ internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_SnapshotFileInfo_descriptor,
+ internal_static_hbase_pb_SnapshotFileInfo_descriptor,
new java.lang.String[] { "Type", "Hfile", "WalServer", "WalName", });
- internal_static_SnapshotRegionManifest_descriptor =
+ internal_static_hbase_pb_SnapshotRegionManifest_descriptor =
getDescriptor().getMessageTypes().get(1);
- internal_static_SnapshotRegionManifest_fieldAccessorTable = new
+ internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_SnapshotRegionManifest_descriptor,
+ internal_static_hbase_pb_SnapshotRegionManifest_descriptor,
new java.lang.String[] { "Version", "RegionInfo", "FamilyFiles", });
- internal_static_SnapshotRegionManifest_StoreFile_descriptor =
- internal_static_SnapshotRegionManifest_descriptor.getNestedTypes().get(0);
- internal_static_SnapshotRegionManifest_StoreFile_fieldAccessorTable = new
+ internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor =
+ internal_static_hbase_pb_SnapshotRegionManifest_descriptor.getNestedTypes().get(0);
+ internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_SnapshotRegionManifest_StoreFile_descriptor,
+ internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor,
new java.lang.String[] { "Name", "Reference", "FileSize", });
- internal_static_SnapshotRegionManifest_FamilyFiles_descriptor =
- internal_static_SnapshotRegionManifest_descriptor.getNestedTypes().get(1);
- internal_static_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable = new
+ internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor =
+ internal_static_hbase_pb_SnapshotRegionManifest_descriptor.getNestedTypes().get(1);
+ internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_SnapshotRegionManifest_FamilyFiles_descriptor,
+ internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor,
<TRUNCATED>