diff --git a/.gitignore b/.gitignore
index c0e9b3c..9ceb4ad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,4 +16,10 @@ common/src/gen
ql/derby.log
derby.log
.arc
+hcatalog/hcatalog-pig-adapter/target
+hcatalog/server-extensions/target
+hcatalog/core/target
+hcatalog/webhcat/java-client/target
+hcatalog/storage-handlers/hbase/target
+hcatalog/webhcat/svr/target
ql/TempStatsStore
diff --git a/ant/src/org/apache/hadoop/hive/ant/SetSystemProperty.java b/ant/src/org/apache/hadoop/hive/ant/SetSystemProperty.java
new file mode 100644
index 0000000..b45f40b
--- /dev/null
+++ b/ant/src/org/apache/hadoop/hive/ant/SetSystemProperty.java
@@ -0,0 +1,52 @@
+/**
+ * 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.hive.ant;
+
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Task;
+
+public class SetSystemProperty extends Task {
+
+ private String propertyName;
+ private String propertyValue;
+
+ public void setPropertyName(String propertyName) {
+ this.propertyName = propertyName;
+ }
+ public String getPropertyName() {
+ return propertyName;
+ }
+ public void setPropertyValue(String propertyValue) {
+ this.propertyValue = propertyValue;
+ }
+ public String getPropertyValue() {
+ return propertyValue;
+ }
+ @Override
+ public void execute() throws BuildException {
+ if (propertyName == null) {
+ throw new BuildException("No property name specified");
+ }
+ if (propertyValue == null) {
+ System.clearProperty(propertyName);
+ } else {
+ System.setProperty(propertyName, propertyValue);
+ }
+ }
+}
diff --git a/ant/src/org/apache/hadoop/hive/ant/antlib.xml b/ant/src/org/apache/hadoop/hive/ant/antlib.xml
index 8f66348..80dde69 100644
--- a/ant/src/org/apache/hadoop/hive/ant/antlib.xml
+++ b/ant/src/org/apache/hadoop/hive/ant/antlib.xml
@@ -23,4 +23,6 @@
classname="org.apache.hadoop.hive.ant.QTestGenTask" />
+
diff --git a/build-common.xml b/build-common.xml
index 0807827..0d888e4 100644
--- a/build-common.xml
+++ b/build-common.xml
@@ -120,8 +120,16 @@
-
+
+
+
+
+
+
+
+
+
@@ -143,6 +151,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/hbase-handler/ivy.xml b/hbase-handler/ivy.xml
index 7be8649..932bdee 100644
--- a/hbase-handler/ivy.xml
+++ b/hbase-handler/ivy.xml
@@ -28,12 +28,45 @@
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java
index 65c81bf..a3d98be 100644
--- a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java
+++ b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java
@@ -28,7 +28,6 @@
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.client.Put;
-import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hive.serde.serdeConstants;
import org.apache.hadoop.hive.serde2.AbstractSerDe;
@@ -503,11 +502,11 @@ private void initHBaseSerDeParameters(
@Override
public Object deserialize(Writable result) throws SerDeException {
- if (!(result instanceof Result)) {
- throw new SerDeException(getClass().getName() + ": expects Result!");
+ if (!(result instanceof ResultWritable)) {
+ throw new SerDeException(getClass().getName() + ": expects ResultWritable!");
}
- cachedHBaseRow.init((Result) result, columnsMapping);
+ cachedHBaseRow.init(((ResultWritable) result).getResult(), columnsMapping);
return cachedHBaseRow;
}
@@ -519,7 +518,7 @@ public ObjectInspector getObjectInspector() throws SerDeException {
@Override
public Class extends Writable> getSerializedClass() {
- return Put.class;
+ return PutWritable.class;
}
@Override
@@ -569,7 +568,7 @@ public Writable serialize(Object obj, ObjectInspector objInspector)
throw new SerDeException(e);
}
- return put;
+ return new PutWritable(put);
}
private byte [] serializeField(
@@ -798,6 +797,7 @@ int getKeyColumnOffset() {
return columnsMapping.get(colPos).binaryStorage;
}
+ @Override
public SerDeStats getSerDeStats() {
// no support for statistics
return null;
diff --git a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java
index b550f45..f24ea27 100644
--- a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java
+++ b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java
@@ -31,7 +31,6 @@
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor;
-import org.apache.hadoop.hbase.MasterNotRunningException;
import org.apache.hadoop.hbase.client.HBaseAdmin;
import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.mapred.TableMapReduceUtil;
@@ -194,11 +193,7 @@ public void preCreateTable(Table tbl) throws MetaException {
// ensure the table is online
new HTable(hbaseConf, tableDesc.getName());
- } catch (MasterNotRunningException mnre) {
- throw new MetaException(StringUtils.stringifyException(mnre));
- } catch (IOException ie) {
- throw new MetaException(StringUtils.stringifyException(ie));
- } catch (SerDeException se) {
+ } catch (Exception se) {
throw new MetaException(StringUtils.stringifyException(se));
}
}
diff --git a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java
index 01938a7..57d7cb9 100644
--- a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java
+++ b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java
@@ -35,7 +35,6 @@
import org.apache.hadoop.hbase.mapreduce.TableInputFormatBase;
import org.apache.hadoop.hbase.mapreduce.TableSplit;
import org.apache.hadoop.hbase.util.Bytes;
-import org.apache.hadoop.hbase.util.Writables;
import org.apache.hadoop.hive.hbase.HBaseSerDe.ColumnMapping;
import org.apache.hadoop.hive.ql.exec.ExprNodeConstantEvaluator;
import org.apache.hadoop.hive.ql.exec.Utilities;
@@ -76,12 +75,12 @@
* such as column pruning and filter pushdown.
*/
public class HiveHBaseTableInputFormat extends TableInputFormatBase
- implements InputFormat {
+ implements InputFormat {
static final Log LOG = LogFactory.getLog(HiveHBaseTableInputFormat.class);
@Override
- public RecordReader getRecordReader(
+ public RecordReader getRecordReader(
InputSplit split,
JobConf jobConf,
final Reporter reporter) throws IOException {
@@ -183,7 +182,7 @@
final org.apache.hadoop.mapreduce.RecordReader
recordReader = createRecordReader(tableSplit, tac);
- return new RecordReader() {
+ return new RecordReader() {
@Override
public void close() throws IOException {
@@ -196,8 +195,8 @@ public ImmutableBytesWritable createKey() {
}
@Override
- public Result createValue() {
- return new Result();
+ public ResultWritable createValue() {
+ return new ResultWritable(new Result());
}
@Override
@@ -219,7 +218,7 @@ public float getProgress() throws IOException {
}
@Override
- public boolean next(ImmutableBytesWritable rowKey, Result value) throws IOException {
+ public boolean next(ImmutableBytesWritable rowKey, ResultWritable value) throws IOException {
boolean next = false;
@@ -228,7 +227,7 @@ public boolean next(ImmutableBytesWritable rowKey, Result value) throws IOExcept
if (next) {
rowKey.set(recordReader.getCurrentValue().getRow());
- Writables.copyWritable(recordReader.getCurrentValue(), value);
+ value.setResult(recordReader.getCurrentValue());
}
} catch (InterruptedException e) {
throw new IOException(e);
diff --git a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat.java b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat.java
index 2e2a80e..14a48bc 100644
--- a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat.java
+++ b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat.java
@@ -26,6 +26,7 @@
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.client.Durability;
import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
@@ -93,8 +94,12 @@ public void close(boolean abort) throws IOException {
@Override
public void write(Writable w) throws IOException {
- Put put = (Put) w;
- put.setWriteToWAL(walEnabled);
+ Put put = ((PutWritable) w).getPut();
+ if(walEnabled) {
+ put.setDurability(Durability.SYNC_WAL);
+ } else {
+ put.setDurability(Durability.SKIP_WAL);
+ }
table.put(put);
}
};
diff --git a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/PutWritable.java b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/PutWritable.java
new file mode 100644
index 0000000..9d98988
--- /dev/null
+++ b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/PutWritable.java
@@ -0,0 +1,138 @@
+/**
+ * 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.hive.hbase;
+import java.io.DataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.NavigableMap;
+import java.util.TreeMap;
+
+import org.apache.hadoop.hbase.Cell;
+import org.apache.hadoop.hbase.KeyValue;
+import org.apache.hadoop.hbase.client.Durability;
+import org.apache.hadoop.hbase.client.Put;
+import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.hadoop.io.Writable;
+import org.apache.hadoop.io.WritableUtils;
+
+public class PutWritable implements Writable {
+ private static final byte PUT_VERSION = (byte)0;
+
+ private Put put;
+
+ public PutWritable() {
+
+ }
+ public PutWritable(Put put) {
+ this.put = put;
+ }
+ public Put getPut() {
+ return put;
+ }
+ //Writable
+ public void readFields(final DataInput in)
+ throws IOException {
+ int version = in.readByte();
+ if (version > PUT_VERSION) {
+ throw new IOException("version not supported");
+ }
+ byte[] row = Bytes.readByteArray(in);
+ long ts = in.readLong();
+ Durability durability = Durability.valueOf(in.readUTF());
+ int numFamilies = in.readInt();
+ NavigableMap> familyMap = new TreeMap>();
+ for(int i = 0; i < numFamilies; i++) {
+ byte [] family = Bytes.readByteArray(in);
+ int numKeys = in.readInt();
+ List keys = new ArrayList(numKeys);
+ int totalLen = in.readInt();
+ byte [] buf = new byte[totalLen];
+ int offset = 0;
+ for (int j = 0; j < numKeys; j++) {
+ int keyLength = in.readInt();
+ in.readFully(buf, offset, keyLength);
+ keys.add(new KeyValue(buf, offset, keyLength));
+ offset += keyLength;
+ }
+ familyMap.put(family, keys);
+ }
+ put = new Put(row, ts);
+ put.setFamilyMap(familyMap);
+ put.setDurability(durability);
+ readAttributes(in);
+ }
+
+ public void write(final DataOutput out)
+ throws IOException {
+ out.writeByte(PUT_VERSION);
+ Bytes.writeByteArray(out, put.getRow());
+ out.writeLong(put.getTimeStamp());
+ Durability durabilty = put.getDurability();
+ if(durabilty == null) {
+ durabilty = Durability.USE_DEFAULT;
+ }
+ out.writeUTF(durabilty.name());
+ NavigableMap> familyMap = put.getFamilyMap();
+ out.writeInt(familyMap.size());
+ for (Map.Entry> entry : familyMap.entrySet()) {
+ Bytes.writeByteArray(out, entry.getKey());
+ List keys = (List)entry.getValue();
+ out.writeInt(keys.size());
+ int totalLen = 0;
+ for(KeyValue kv : keys) {
+ totalLen += kv.getLength();
+ }
+ out.writeInt(totalLen);
+ for(KeyValue kv : keys) {
+ out.writeInt(kv.getLength());
+ out.write(kv.getBuffer(), kv.getOffset(), kv.getLength());
+ }
+ }
+ writeAttributes(out);
+ }
+
+ private void writeAttributes(final DataOutput out) throws IOException {
+ Map attributes = put.getAttributesMap();
+ if (attributes == null) {
+ out.writeInt(0);
+ } else {
+ out.writeInt(attributes.size());
+ for (Map.Entry attr : attributes.entrySet()) {
+ WritableUtils.writeString(out, attr.getKey());
+ Bytes.writeByteArray(out, attr.getValue());
+ }
+ }
+ }
+
+ private void readAttributes(final DataInput in) throws IOException {
+ int numAttributes = in.readInt();
+ if (numAttributes > 0) {
+ Map attributes = new HashMap(numAttributes);
+ for(int i=0; i RESULT_VERSION) {
+ throw new IOException("version not supported");
+ }
+ int size = in.readInt();
+ if(size < 0) {
+ throw new IOException("Invalid size " + size);
+ }
+ KeyValue[] kvs = new KeyValue[size];
+ int totalBuffer = in.readInt();
+ if(totalBuffer > 0) {
+ byte [] raw = new byte[totalBuffer];
+ DataInputStream kvIn = new DataInputStream(new ByteArrayInputStream(raw));
+ for (int i = 0; i < kvs.length; i++) {
+ int kvLength = kvIn.readInt();
+ if(kvLength < 0) {
+ throw new IOException("Invalid length " + kvLength);
+ }
+ byte[] kvBuff = new byte[kvLength];
+ kvIn.readFully(kvBuff);
+ kvs[i] = new KeyValue(kvBuff);
+ }
+ }
+ result = new Result(kvs);
+ }
+
+ public void write(final DataOutput out)
+ throws IOException {
+ out.writeByte(RESULT_VERSION);
+ if(result.isEmpty()) {
+ out.writeInt(0);
+ } else {
+ out.writeInt(result.size());
+ int totalLen = 0;
+ for(KeyValue kv : result.list()) {
+ totalLen += kv.getLength() + Bytes.SIZEOF_INT;
+ }
+ out.writeInt(totalLen);
+ for(KeyValue kv : result.list()) {
+ out.writeInt(kv.getLength());
+ out.write(kv.getBuffer(), kv.getOffset(), kv.getLength());
+ }
+ }
+ }
+
+}
diff --git a/hbase-handler/src/test/org/apache/hadoop/hive/hbase/HBaseTestSetup.java b/hbase-handler/src/test/org/apache/hadoop/hive/hbase/HBaseTestSetup.java
index e0918b0..b3c9bf4 100644
--- a/hbase-handler/src/test/org/apache/hadoop/hive/hbase/HBaseTestSetup.java
+++ b/hbase-handler/src/test/org/apache/hadoop/hive/hbase/HBaseTestSetup.java
@@ -153,7 +153,7 @@ private static int findFreePort() throws IOException {
@Override
protected void tearDown() throws Exception {
if (hbaseCluster != null) {
- HConnectionManager.deleteAllConnections(true);
+ HConnectionManager.deleteAllConnections();
hbaseCluster.shutdown();
hbaseCluster = null;
}
diff --git a/hbase-handler/src/test/org/apache/hadoop/hive/hbase/TestHBaseSerDe.java b/hbase-handler/src/test/org/apache/hadoop/hive/hbase/TestHBaseSerDe.java
index e821282..95c7a19 100644
--- a/hbase-handler/src/test/org/apache/hadoop/hive/hbase/TestHBaseSerDe.java
+++ b/hbase-handler/src/test/org/apache/hadoop/hive/hbase/TestHBaseSerDe.java
@@ -215,7 +215,7 @@ private void deserializeAndSerialize(
assertEquals(9, fieldRefs.size());
// Deserialize
- Object row = serDe.deserialize(r);
+ Object row = serDe.deserialize(new ResultWritable(r));
for (int i = 0; i < fieldRefs.size(); i++) {
Object fieldData = oi.getStructFieldData(row, fieldRefs.get(i));
if (fieldData != null) {
@@ -225,8 +225,8 @@ private void deserializeAndSerialize(
}
// Serialize
assertEquals(Put.class, serDe.getSerializedClass());
- Put serializedPut = (Put) serDe.serialize(row, oi);
- assertEquals("Serialized data", p.toString(), serializedPut.toString());
+ PutWritable serializedPut = (PutWritable) serDe.serialize(row, oi);
+ assertEquals("Serialized data", p.toString(),String.valueOf(serializedPut.getPut()));
}
// No specifications default to UTF8 String storage for backwards compatibility
@@ -511,8 +511,8 @@ private void deserializeAndSerializeHiveMapHBaseColumnFamily(
// Deserialize
for (int i = 0; i < r.length; i++) {
- Object row = hbaseSerDe.deserialize(r[i]);
- Put serializedPut = (Put) hbaseSerDe.serialize(row, soi);
+ Object row = hbaseSerDe.deserialize(new ResultWritable(r[i]));
+ Put serializedPut = ((PutWritable) hbaseSerDe.serialize(row, soi)).getPut();
byte [] rowKey = serializedPut.getRow();
for (int k = 0; k < rowKey.length; k++) {
@@ -667,7 +667,7 @@ private void deserializeAndSerializeHiveMapHBaseColumnFamilyII(
assertEquals(9, fieldRefs.size());
// Deserialize
- Object row = hbaseSerDe.deserialize(r);
+ Object row = hbaseSerDe.deserialize(new ResultWritable(r));
for (int j = 0; j < fieldRefs.size(); j++) {
Object fieldData = soi.getStructFieldData(row, fieldRefs.get(j));
diff --git a/hcatalog/build-support/ant/build-common.xml b/hcatalog/build-support/ant/build-common.xml
index e5e7b64..b5f34cf 100644
--- a/hcatalog/build-support/ant/build-common.xml
+++ b/hcatalog/build-support/ant/build-common.xml
@@ -24,11 +24,15 @@
+
+
+
+
-
+
-
+
@@ -99,6 +103,13 @@
+
+
+
+
+
+
+
diff --git a/hcatalog/build-support/ant/checkstyle.xml b/hcatalog/build-support/ant/checkstyle.xml
index 84e8c39..d446e22 100644
--- a/hcatalog/build-support/ant/checkstyle.xml
+++ b/hcatalog/build-support/ant/checkstyle.xml
@@ -33,6 +33,7 @@
+
@@ -47,6 +48,12 @@
+
+
+
+
+
+
@@ -54,6 +61,7 @@
+
diff --git a/hcatalog/build-support/ant/deploy.xml b/hcatalog/build-support/ant/deploy.xml
index 5ede3d0..c7919f6 100644
--- a/hcatalog/build-support/ant/deploy.xml
+++ b/hcatalog/build-support/ant/deploy.xml
@@ -83,7 +83,7 @@
-
+
@@ -97,6 +97,11 @@
depends="mvn-init,_check-mvn-dependencies"
unless="mvn-dependencies.complete">
+
+
+
+
+
diff --git a/hcatalog/build.properties b/hcatalog/build.properties
index a7ded31..6b06a3d 100644
--- a/hcatalog/build.properties
+++ b/hcatalog/build.properties
@@ -91,5 +91,4 @@ mvn.deploy.repo.id=apache.snapshots.https
mvn.deploy.repo.url=https://repository.apache.org/content/repositories/snapshots
maven-ant-tasks.version=2.1.3
mvn.local.repo=${user.home}/.m2/repository
-mvn.hadoop.profile=hadoop20
diff --git a/hcatalog/build.xml b/hcatalog/build.xml
index a716385..cd1a6ae 100644
--- a/hcatalog/build.xml
+++ b/hcatalog/build.xml
@@ -32,6 +32,10 @@
description="where all hive build artifacts are placed to make binary tar ball"/>
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/hcatalog/core/build.xml b/hcatalog/core/build.xml
index 28bf1b8..938c3fa 100644
--- a/hcatalog/core/build.xml
+++ b/hcatalog/core/build.xml
@@ -42,11 +42,17 @@
+
+
+
+
+
+
<_javac srcDir="${basedir}/src/main/java"
destDir="${build.classes}"
classPathRef="compile.class.path"/>
-
+
diff --git a/hcatalog/pom.xml b/hcatalog/pom.xml
index 81f1e71..415dbc4 100644
--- a/hcatalog/pom.xml
+++ b/hcatalog/pom.xml
@@ -27,8 +27,9 @@
2.4
11.0.2
1.0.3
- 2.0.3-alpha
- 0.94.5
+ 2.0.5-alpha
+ 0.95.0-hadoop1-SNAPSHOT
+ 0.95.0-hadoop2-SNAPSHOT
${project.version}
${project.version}
1.9.2
@@ -216,6 +217,15 @@
+
+ apache.snapshot.repo
+ https://repository.apache.org/content/groups/snapshots/
+ Apache Snapshots
+
+ true
+
+
+
diff --git a/hcatalog/shims/build.xml b/hcatalog/shims/build.xml
index 020edaa..b9da325 100644
--- a/hcatalog/shims/build.xml
+++ b/hcatalog/shims/build.xml
@@ -28,6 +28,12 @@
+
+
+
+
+
+
<_javac srcDir="${basedir}/src/${hadoopversion}/java"
destDir="${path.to.basedir}/core/build/classes"
classPathRef="compile.class.path"/>
diff --git a/hcatalog/storage-handlers/hbase/pom.xml b/hcatalog/storage-handlers/hbase/pom.xml
index 7806c8d..c21a536 100644
--- a/hcatalog/storage-handlers/hbase/pom.xml
+++ b/hcatalog/storage-handlers/hbase/pom.xml
@@ -60,12 +60,6 @@
${zookeeper.version}
compile
-
- org.apache.hbase
- hbase
- ${hbase.version}
- compile
-
@@ -75,19 +69,6 @@
test
- org.apache.hbase
- hbase
- ${hbase.version}
- tests
- test
-
-
- com.google.guava
- guava
-
-
-
-
org.apache.zookeeper
zookeeper
${zookeeper.version}
@@ -101,4 +82,110 @@
test
+
+
+
+
+ hadoop20
+
+
+ org.apache.hbase
+ hbase-client
+ ${hbase.hadoop1.version}
+ compile
+
+
+
+ org.apache.hbase
+ hbase-server
+ ${hbase.hadoop1.version}
+ compile
+
+
+ org.apache.hbase
+ hbase-common
+ ${hbase.hadoop1.version}
+ compile
+
+
+ org.apache.hbase
+ hbase-hadoop1-compat
+ ${hbase.hadoop1.version}
+ compile
+
+
+ com.google.guava
+ guava
+
+
+
+
+
+ org.apache.hbase
+ hbase-server
+ ${hbase.hadoop2.version}
+ tests
+ test
+
+
+ org.apache.hbase
+ hbase-common
+ ${hbase.hadoop1.version}
+ tests
+ test
+
+
+
+
+ hadoop23
+
+
+ org.apache.hbase
+ hbase-client
+ ${hbase.hadoop2.version}
+ compile
+
+
+
+ org.apache.hbase
+ hbase-server
+ ${hbase.hadoop2.version}
+ compile
+
+
+ org.apache.hbase
+ hbase-common
+ ${hbase.hadoop2.version}
+ compile
+
+
+ org.apache.hbase
+ hbase-hadoop2-compat
+ ${hbase.hadoop2.version}
+ compile
+
+
+ com.google.guava
+ guava
+
+
+
+
+
+ org.apache.hbase
+ hbase-server
+ ${hbase.hadoop2.version}
+ tests
+ test
+
+
+ org.apache.hbase
+ hbase-common
+ ${hbase.hadoop2.version}
+ tests
+ test
+
+
+
+
diff --git a/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpointProtos.java b/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpointProtos.java
new file mode 100644
index 0000000..7818286
--- /dev/null
+++ b/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpointProtos.java
@@ -0,0 +1,10520 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: storage-handlers/hbase/src/protobuf/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpoint.proto
+
+package org.apache.hive.hcatalog.hbase.snapshot;
+
+public final class RevisionManagerEndpointProtos {
+ private RevisionManagerEndpointProtos() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ public interface CreateTableRequestOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string table_name = 1;
+ boolean hasTableName();
+ String getTableName();
+
+ // repeated string column_families = 2;
+ java.util.List getColumnFamiliesList();
+ int getColumnFamiliesCount();
+ String getColumnFamilies(int index);
+ }
+ public static final class CreateTableRequest extends
+ com.google.protobuf.GeneratedMessage
+ implements CreateTableRequestOrBuilder {
+ // Use CreateTableRequest.newBuilder() to construct.
+ private CreateTableRequest(Builder builder) {
+ super(builder);
+ }
+ private CreateTableRequest(boolean noInit) {}
+
+ private static final CreateTableRequest defaultInstance;
+ public static CreateTableRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public CreateTableRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required string table_name = 1;
+ public static final int TABLE_NAME_FIELD_NUMBER = 1;
+ private java.lang.Object tableName_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ tableName_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getTableNameBytes() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ tableName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // repeated string column_families = 2;
+ public static final int COLUMN_FAMILIES_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList columnFamilies_;
+ public java.util.List
+ getColumnFamiliesList() {
+ return columnFamilies_;
+ }
+ public int getColumnFamiliesCount() {
+ return columnFamilies_.size();
+ }
+ public String getColumnFamilies(int index) {
+ return columnFamilies_.get(index);
+ }
+
+ private void initFields() {
+ tableName_ = "";
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTableName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTableNameBytes());
+ }
+ for (int i = 0; i < columnFamilies_.size(); i++) {
+ output.writeBytes(2, columnFamilies_.getByteString(i));
+ }
+ 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
+ .computeBytesSize(1, getTableNameBytes());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < columnFamilies_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeBytesSizeNoTag(columnFamilies_.getByteString(i));
+ }
+ size += dataSize;
+ size += 1 * getColumnFamiliesList().size();
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest) obj;
+
+ boolean result = true;
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && getColumnFamiliesList()
+ .equals(other.getColumnFamiliesList());
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (getColumnFamiliesCount() > 0) {
+ hash = (37 * hash) + COLUMN_FAMILIES_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnFamiliesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ tableName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.tableName_ = tableName_;
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ columnFamilies_ = new com.google.protobuf.UnmodifiableLazyStringList(
+ columnFamilies_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.columnFamilies_ = columnFamilies_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.getDefaultInstance()) return this;
+ if (other.hasTableName()) {
+ setTableName(other.getTableName());
+ }
+ if (!other.columnFamilies_.isEmpty()) {
+ if (columnFamilies_.isEmpty()) {
+ columnFamilies_ = other.columnFamilies_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.addAll(other.columnFamilies_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTableName()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ tableName_ = input.readBytes();
+ break;
+ }
+ case 18: {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(input.readBytes());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required string table_name = 1;
+ private java.lang.Object tableName_ = "";
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ tableName_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setTableName(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTableName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tableName_ = getDefaultInstance().getTableName();
+ onChanged();
+ return this;
+ }
+ void setTableName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ }
+
+ // repeated string column_families = 2;
+ private com.google.protobuf.LazyStringList columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureColumnFamiliesIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ columnFamilies_ = new com.google.protobuf.LazyStringArrayList(columnFamilies_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ public java.util.List
+ getColumnFamiliesList() {
+ return java.util.Collections.unmodifiableList(columnFamilies_);
+ }
+ public int getColumnFamiliesCount() {
+ return columnFamilies_.size();
+ }
+ public String getColumnFamilies(int index) {
+ return columnFamilies_.get(index);
+ }
+ public Builder setColumnFamilies(
+ int index, String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.set(index, value);
+ onChanged();
+ return this;
+ }
+ public Builder addColumnFamilies(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(value);
+ onChanged();
+ return this;
+ }
+ public Builder addAllColumnFamilies(
+ java.lang.Iterable values) {
+ ensureColumnFamiliesIsMutable();
+ super.addAll(values, columnFamilies_);
+ onChanged();
+ return this;
+ }
+ public Builder clearColumnFamilies() {
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ void addColumnFamilies(com.google.protobuf.ByteString value) {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(value);
+ onChanged();
+ }
+
+ // @@protoc_insertion_point(builder_scope:CreateTableRequest)
+ }
+
+ static {
+ defaultInstance = new CreateTableRequest(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:CreateTableRequest)
+ }
+
+ public interface CreateTableResponseOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ }
+ public static final class CreateTableResponse extends
+ com.google.protobuf.GeneratedMessage
+ implements CreateTableResponseOrBuilder {
+ // Use CreateTableResponse.newBuilder() to construct.
+ private CreateTableResponse(Builder builder) {
+ super(builder);
+ }
+ private CreateTableResponse(boolean noInit) {}
+
+ private static final CreateTableResponse defaultInstance;
+ public static CreateTableResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public CreateTableResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_fieldAccessorTable;
+ }
+
+ private void initFields() {
+ }
+ 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();
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse) obj;
+
+ boolean result = true;
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse(this);
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance()) return this;
+ 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 {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ }
+ }
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:CreateTableResponse)
+ }
+
+ static {
+ defaultInstance = new CreateTableResponse(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:CreateTableResponse)
+ }
+
+ public interface DropTableRequestOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string table_name = 1;
+ boolean hasTableName();
+ String getTableName();
+ }
+ public static final class DropTableRequest extends
+ com.google.protobuf.GeneratedMessage
+ implements DropTableRequestOrBuilder {
+ // Use DropTableRequest.newBuilder() to construct.
+ private DropTableRequest(Builder builder) {
+ super(builder);
+ }
+ private DropTableRequest(boolean noInit) {}
+
+ private static final DropTableRequest defaultInstance;
+ public static DropTableRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public DropTableRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required string table_name = 1;
+ public static final int TABLE_NAME_FIELD_NUMBER = 1;
+ private java.lang.Object tableName_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ tableName_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getTableNameBytes() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ tableName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private void initFields() {
+ tableName_ = "";
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTableName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTableNameBytes());
+ }
+ 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
+ .computeBytesSize(1, getTableNameBytes());
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest) obj;
+
+ boolean result = true;
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ tableName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.tableName_ = tableName_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.getDefaultInstance()) return this;
+ if (other.hasTableName()) {
+ setTableName(other.getTableName());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTableName()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ tableName_ = input.readBytes();
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required string table_name = 1;
+ private java.lang.Object tableName_ = "";
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ tableName_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setTableName(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTableName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tableName_ = getDefaultInstance().getTableName();
+ onChanged();
+ return this;
+ }
+ void setTableName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ }
+
+ // @@protoc_insertion_point(builder_scope:DropTableRequest)
+ }
+
+ static {
+ defaultInstance = new DropTableRequest(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:DropTableRequest)
+ }
+
+ public interface DropTableResponseOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ }
+ public static final class DropTableResponse extends
+ com.google.protobuf.GeneratedMessage
+ implements DropTableResponseOrBuilder {
+ // Use DropTableResponse.newBuilder() to construct.
+ private DropTableResponse(Builder builder) {
+ super(builder);
+ }
+ private DropTableResponse(boolean noInit) {}
+
+ private static final DropTableResponse defaultInstance;
+ public static DropTableResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public DropTableResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_fieldAccessorTable;
+ }
+
+ private void initFields() {
+ }
+ 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();
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse) obj;
+
+ boolean result = true;
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse(this);
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance()) return this;
+ 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 {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ }
+ }
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:DropTableResponse)
+ }
+
+ static {
+ defaultInstance = new DropTableResponse(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:DropTableResponse)
+ }
+
+ public interface BeginWriteTransactionRequestOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string table_name = 1;
+ boolean hasTableName();
+ String getTableName();
+
+ // optional int64 keep_alive = 2;
+ boolean hasKeepAlive();
+ long getKeepAlive();
+
+ // repeated string column_families = 3;
+ java.util.List getColumnFamiliesList();
+ int getColumnFamiliesCount();
+ String getColumnFamilies(int index);
+ }
+ public static final class BeginWriteTransactionRequest extends
+ com.google.protobuf.GeneratedMessage
+ implements BeginWriteTransactionRequestOrBuilder {
+ // Use BeginWriteTransactionRequest.newBuilder() to construct.
+ private BeginWriteTransactionRequest(Builder builder) {
+ super(builder);
+ }
+ private BeginWriteTransactionRequest(boolean noInit) {}
+
+ private static final BeginWriteTransactionRequest defaultInstance;
+ public static BeginWriteTransactionRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public BeginWriteTransactionRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required string table_name = 1;
+ public static final int TABLE_NAME_FIELD_NUMBER = 1;
+ private java.lang.Object tableName_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ tableName_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getTableNameBytes() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ tableName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // optional int64 keep_alive = 2;
+ public static final int KEEP_ALIVE_FIELD_NUMBER = 2;
+ private long keepAlive_;
+ public boolean hasKeepAlive() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getKeepAlive() {
+ return keepAlive_;
+ }
+
+ // repeated string column_families = 3;
+ public static final int COLUMN_FAMILIES_FIELD_NUMBER = 3;
+ private com.google.protobuf.LazyStringList columnFamilies_;
+ public java.util.List
+ getColumnFamiliesList() {
+ return columnFamilies_;
+ }
+ public int getColumnFamiliesCount() {
+ return columnFamilies_.size();
+ }
+ public String getColumnFamilies(int index) {
+ return columnFamilies_.get(index);
+ }
+
+ private void initFields() {
+ tableName_ = "";
+ keepAlive_ = 0L;
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTableName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt64(2, keepAlive_);
+ }
+ for (int i = 0; i < columnFamilies_.size(); i++) {
+ output.writeBytes(3, columnFamilies_.getByteString(i));
+ }
+ 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
+ .computeBytesSize(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, keepAlive_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < columnFamilies_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeBytesSizeNoTag(columnFamilies_.getByteString(i));
+ }
+ size += dataSize;
+ size += 1 * getColumnFamiliesList().size();
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest) obj;
+
+ boolean result = true;
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && (hasKeepAlive() == other.hasKeepAlive());
+ if (hasKeepAlive()) {
+ result = result && (getKeepAlive()
+ == other.getKeepAlive());
+ }
+ result = result && getColumnFamiliesList()
+ .equals(other.getColumnFamiliesList());
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (hasKeepAlive()) {
+ hash = (37 * hash) + KEEP_ALIVE_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getKeepAlive());
+ }
+ if (getColumnFamiliesCount() > 0) {
+ hash = (37 * hash) + COLUMN_FAMILIES_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnFamiliesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ tableName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ keepAlive_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.tableName_ = tableName_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.keepAlive_ = keepAlive_;
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ columnFamilies_ = new com.google.protobuf.UnmodifiableLazyStringList(
+ columnFamilies_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.columnFamilies_ = columnFamilies_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.getDefaultInstance()) return this;
+ if (other.hasTableName()) {
+ setTableName(other.getTableName());
+ }
+ if (other.hasKeepAlive()) {
+ setKeepAlive(other.getKeepAlive());
+ }
+ if (!other.columnFamilies_.isEmpty()) {
+ if (columnFamilies_.isEmpty()) {
+ columnFamilies_ = other.columnFamilies_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.addAll(other.columnFamilies_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTableName()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ tableName_ = input.readBytes();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ keepAlive_ = input.readInt64();
+ break;
+ }
+ case 26: {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(input.readBytes());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required string table_name = 1;
+ private java.lang.Object tableName_ = "";
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ tableName_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setTableName(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTableName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tableName_ = getDefaultInstance().getTableName();
+ onChanged();
+ return this;
+ }
+ void setTableName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ }
+
+ // optional int64 keep_alive = 2;
+ private long keepAlive_ ;
+ public boolean hasKeepAlive() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getKeepAlive() {
+ return keepAlive_;
+ }
+ public Builder setKeepAlive(long value) {
+ bitField0_ |= 0x00000002;
+ keepAlive_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearKeepAlive() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ keepAlive_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // repeated string column_families = 3;
+ private com.google.protobuf.LazyStringList columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureColumnFamiliesIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ columnFamilies_ = new com.google.protobuf.LazyStringArrayList(columnFamilies_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ public java.util.List
+ getColumnFamiliesList() {
+ return java.util.Collections.unmodifiableList(columnFamilies_);
+ }
+ public int getColumnFamiliesCount() {
+ return columnFamilies_.size();
+ }
+ public String getColumnFamilies(int index) {
+ return columnFamilies_.get(index);
+ }
+ public Builder setColumnFamilies(
+ int index, String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.set(index, value);
+ onChanged();
+ return this;
+ }
+ public Builder addColumnFamilies(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(value);
+ onChanged();
+ return this;
+ }
+ public Builder addAllColumnFamilies(
+ java.lang.Iterable values) {
+ ensureColumnFamiliesIsMutable();
+ super.addAll(values, columnFamilies_);
+ onChanged();
+ return this;
+ }
+ public Builder clearColumnFamilies() {
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ void addColumnFamilies(com.google.protobuf.ByteString value) {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(value);
+ onChanged();
+ }
+
+ // @@protoc_insertion_point(builder_scope:BeginWriteTransactionRequest)
+ }
+
+ static {
+ defaultInstance = new BeginWriteTransactionRequest(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:BeginWriteTransactionRequest)
+ }
+
+ public interface BeginWriteTransactionResponseOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required .Transaction transaction = 1;
+ boolean hasTransaction();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder();
+ }
+ public static final class BeginWriteTransactionResponse extends
+ com.google.protobuf.GeneratedMessage
+ implements BeginWriteTransactionResponseOrBuilder {
+ // Use BeginWriteTransactionResponse.newBuilder() to construct.
+ private BeginWriteTransactionResponse(Builder builder) {
+ super(builder);
+ }
+ private BeginWriteTransactionResponse(boolean noInit) {}
+
+ private static final BeginWriteTransactionResponse defaultInstance;
+ public static BeginWriteTransactionResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public BeginWriteTransactionResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required .Transaction transaction = 1;
+ public static final int TRANSACTION_FIELD_NUMBER = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_;
+ public boolean hasTransaction() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() {
+ return transaction_;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() {
+ return transaction_;
+ }
+
+ private void initFields() {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTransaction()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!getTransaction().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, transaction_);
+ }
+ 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
+ .computeMessageSize(1, transaction_);
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse) obj;
+
+ boolean result = true;
+ result = result && (hasTransaction() == other.hasTransaction());
+ if (hasTransaction()) {
+ result = result && getTransaction()
+ .equals(other.getTransaction());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTransaction()) {
+ hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getTransaction().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getTransactionFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (transactionBuilder_ == null) {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ } else {
+ transactionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (transactionBuilder_ == null) {
+ result.transaction_ = transaction_;
+ } else {
+ result.transaction_ = transactionBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance()) return this;
+ if (other.hasTransaction()) {
+ mergeTransaction(other.getTransaction());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTransaction()) {
+
+ return false;
+ }
+ if (!getTransaction().isInitialized()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder();
+ if (hasTransaction()) {
+ subBuilder.mergeFrom(getTransaction());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setTransaction(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required .Transaction transaction = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> transactionBuilder_;
+ public boolean hasTransaction() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() {
+ if (transactionBuilder_ == null) {
+ return transaction_;
+ } else {
+ return transactionBuilder_.getMessage();
+ }
+ }
+ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transaction_ = value;
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder setTransaction(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder builderForValue) {
+ if (transactionBuilder_ == null) {
+ transaction_ = builderForValue.build();
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ transaction_ != org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance()) {
+ transaction_ =
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
+ } else {
+ transaction_ = value;
+ }
+ onChanged();
+ } else {
+ transactionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder clearTransaction() {
+ if (transactionBuilder_ == null) {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ onChanged();
+ } else {
+ transactionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder getTransactionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTransactionFieldBuilder().getBuilder();
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() {
+ if (transactionBuilder_ != null) {
+ return transactionBuilder_.getMessageOrBuilder();
+ } else {
+ return transaction_;
+ }
+ }
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder>
+ getTransactionFieldBuilder() {
+ if (transactionBuilder_ == null) {
+ transactionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder>(
+ transaction_,
+ getParentForChildren(),
+ isClean());
+ transaction_ = null;
+ }
+ return transactionBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:BeginWriteTransactionResponse)
+ }
+
+ static {
+ defaultInstance = new BeginWriteTransactionResponse(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:BeginWriteTransactionResponse)
+ }
+
+ public interface CommitWriteTransactionRequestOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required .Transaction transaction = 1;
+ boolean hasTransaction();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder();
+ }
+ public static final class CommitWriteTransactionRequest extends
+ com.google.protobuf.GeneratedMessage
+ implements CommitWriteTransactionRequestOrBuilder {
+ // Use CommitWriteTransactionRequest.newBuilder() to construct.
+ private CommitWriteTransactionRequest(Builder builder) {
+ super(builder);
+ }
+ private CommitWriteTransactionRequest(boolean noInit) {}
+
+ private static final CommitWriteTransactionRequest defaultInstance;
+ public static CommitWriteTransactionRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public CommitWriteTransactionRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required .Transaction transaction = 1;
+ public static final int TRANSACTION_FIELD_NUMBER = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_;
+ public boolean hasTransaction() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() {
+ return transaction_;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() {
+ return transaction_;
+ }
+
+ private void initFields() {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTransaction()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!getTransaction().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, transaction_);
+ }
+ 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
+ .computeMessageSize(1, transaction_);
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest) obj;
+
+ boolean result = true;
+ result = result && (hasTransaction() == other.hasTransaction());
+ if (hasTransaction()) {
+ result = result && getTransaction()
+ .equals(other.getTransaction());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTransaction()) {
+ hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getTransaction().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getTransactionFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (transactionBuilder_ == null) {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ } else {
+ transactionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (transactionBuilder_ == null) {
+ result.transaction_ = transaction_;
+ } else {
+ result.transaction_ = transactionBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.getDefaultInstance()) return this;
+ if (other.hasTransaction()) {
+ mergeTransaction(other.getTransaction());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTransaction()) {
+
+ return false;
+ }
+ if (!getTransaction().isInitialized()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder();
+ if (hasTransaction()) {
+ subBuilder.mergeFrom(getTransaction());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setTransaction(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required .Transaction transaction = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> transactionBuilder_;
+ public boolean hasTransaction() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() {
+ if (transactionBuilder_ == null) {
+ return transaction_;
+ } else {
+ return transactionBuilder_.getMessage();
+ }
+ }
+ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transaction_ = value;
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder setTransaction(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder builderForValue) {
+ if (transactionBuilder_ == null) {
+ transaction_ = builderForValue.build();
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ transaction_ != org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance()) {
+ transaction_ =
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
+ } else {
+ transaction_ = value;
+ }
+ onChanged();
+ } else {
+ transactionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder clearTransaction() {
+ if (transactionBuilder_ == null) {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ onChanged();
+ } else {
+ transactionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder getTransactionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTransactionFieldBuilder().getBuilder();
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() {
+ if (transactionBuilder_ != null) {
+ return transactionBuilder_.getMessageOrBuilder();
+ } else {
+ return transaction_;
+ }
+ }
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder>
+ getTransactionFieldBuilder() {
+ if (transactionBuilder_ == null) {
+ transactionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder>(
+ transaction_,
+ getParentForChildren(),
+ isClean());
+ transaction_ = null;
+ }
+ return transactionBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:CommitWriteTransactionRequest)
+ }
+
+ static {
+ defaultInstance = new CommitWriteTransactionRequest(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:CommitWriteTransactionRequest)
+ }
+
+ public interface CommitWriteTransactionResponseOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ }
+ public static final class CommitWriteTransactionResponse extends
+ com.google.protobuf.GeneratedMessage
+ implements CommitWriteTransactionResponseOrBuilder {
+ // Use CommitWriteTransactionResponse.newBuilder() to construct.
+ private CommitWriteTransactionResponse(Builder builder) {
+ super(builder);
+ }
+ private CommitWriteTransactionResponse(boolean noInit) {}
+
+ private static final CommitWriteTransactionResponse defaultInstance;
+ public static CommitWriteTransactionResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public CommitWriteTransactionResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_fieldAccessorTable;
+ }
+
+ private void initFields() {
+ }
+ 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();
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse) obj;
+
+ boolean result = true;
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse(this);
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance()) return this;
+ 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 {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ }
+ }
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:CommitWriteTransactionResponse)
+ }
+
+ static {
+ defaultInstance = new CommitWriteTransactionResponse(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:CommitWriteTransactionResponse)
+ }
+
+ public interface AbortWriteTransactionRequestOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required .Transaction transaction = 1;
+ boolean hasTransaction();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder();
+ }
+ public static final class AbortWriteTransactionRequest extends
+ com.google.protobuf.GeneratedMessage
+ implements AbortWriteTransactionRequestOrBuilder {
+ // Use AbortWriteTransactionRequest.newBuilder() to construct.
+ private AbortWriteTransactionRequest(Builder builder) {
+ super(builder);
+ }
+ private AbortWriteTransactionRequest(boolean noInit) {}
+
+ private static final AbortWriteTransactionRequest defaultInstance;
+ public static AbortWriteTransactionRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public AbortWriteTransactionRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required .Transaction transaction = 1;
+ public static final int TRANSACTION_FIELD_NUMBER = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_;
+ public boolean hasTransaction() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() {
+ return transaction_;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() {
+ return transaction_;
+ }
+
+ private void initFields() {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTransaction()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!getTransaction().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, transaction_);
+ }
+ 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
+ .computeMessageSize(1, transaction_);
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest) obj;
+
+ boolean result = true;
+ result = result && (hasTransaction() == other.hasTransaction());
+ if (hasTransaction()) {
+ result = result && getTransaction()
+ .equals(other.getTransaction());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTransaction()) {
+ hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getTransaction().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getTransactionFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (transactionBuilder_ == null) {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ } else {
+ transactionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (transactionBuilder_ == null) {
+ result.transaction_ = transaction_;
+ } else {
+ result.transaction_ = transactionBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.getDefaultInstance()) return this;
+ if (other.hasTransaction()) {
+ mergeTransaction(other.getTransaction());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTransaction()) {
+
+ return false;
+ }
+ if (!getTransaction().isInitialized()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder();
+ if (hasTransaction()) {
+ subBuilder.mergeFrom(getTransaction());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setTransaction(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required .Transaction transaction = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> transactionBuilder_;
+ public boolean hasTransaction() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() {
+ if (transactionBuilder_ == null) {
+ return transaction_;
+ } else {
+ return transactionBuilder_.getMessage();
+ }
+ }
+ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transaction_ = value;
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder setTransaction(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder builderForValue) {
+ if (transactionBuilder_ == null) {
+ transaction_ = builderForValue.build();
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ transaction_ != org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance()) {
+ transaction_ =
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
+ } else {
+ transaction_ = value;
+ }
+ onChanged();
+ } else {
+ transactionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder clearTransaction() {
+ if (transactionBuilder_ == null) {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ onChanged();
+ } else {
+ transactionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder getTransactionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTransactionFieldBuilder().getBuilder();
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() {
+ if (transactionBuilder_ != null) {
+ return transactionBuilder_.getMessageOrBuilder();
+ } else {
+ return transaction_;
+ }
+ }
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder>
+ getTransactionFieldBuilder() {
+ if (transactionBuilder_ == null) {
+ transactionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder>(
+ transaction_,
+ getParentForChildren(),
+ isClean());
+ transaction_ = null;
+ }
+ return transactionBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:AbortWriteTransactionRequest)
+ }
+
+ static {
+ defaultInstance = new AbortWriteTransactionRequest(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:AbortWriteTransactionRequest)
+ }
+
+ public interface AbortWriteTransactionResponseOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ }
+ public static final class AbortWriteTransactionResponse extends
+ com.google.protobuf.GeneratedMessage
+ implements AbortWriteTransactionResponseOrBuilder {
+ // Use AbortWriteTransactionResponse.newBuilder() to construct.
+ private AbortWriteTransactionResponse(Builder builder) {
+ super(builder);
+ }
+ private AbortWriteTransactionResponse(boolean noInit) {}
+
+ private static final AbortWriteTransactionResponse defaultInstance;
+ public static AbortWriteTransactionResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public AbortWriteTransactionResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_fieldAccessorTable;
+ }
+
+ private void initFields() {
+ }
+ 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();
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse) obj;
+
+ boolean result = true;
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse(this);
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance()) return this;
+ 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 {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ }
+ }
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:AbortWriteTransactionResponse)
+ }
+
+ static {
+ defaultInstance = new AbortWriteTransactionResponse(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:AbortWriteTransactionResponse)
+ }
+
+ public interface GetAbortedWriteTransactionsRequestOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string table_name = 1;
+ boolean hasTableName();
+ String getTableName();
+
+ // required string column_family = 2;
+ boolean hasColumnFamily();
+ String getColumnFamily();
+ }
+ public static final class GetAbortedWriteTransactionsRequest extends
+ com.google.protobuf.GeneratedMessage
+ implements GetAbortedWriteTransactionsRequestOrBuilder {
+ // Use GetAbortedWriteTransactionsRequest.newBuilder() to construct.
+ private GetAbortedWriteTransactionsRequest(Builder builder) {
+ super(builder);
+ }
+ private GetAbortedWriteTransactionsRequest(boolean noInit) {}
+
+ private static final GetAbortedWriteTransactionsRequest defaultInstance;
+ public static GetAbortedWriteTransactionsRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public GetAbortedWriteTransactionsRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required string table_name = 1;
+ public static final int TABLE_NAME_FIELD_NUMBER = 1;
+ private java.lang.Object tableName_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ tableName_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getTableNameBytes() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ tableName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // required string column_family = 2;
+ public static final int COLUMN_FAMILY_FIELD_NUMBER = 2;
+ private java.lang.Object columnFamily_;
+ public boolean hasColumnFamily() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public String getColumnFamily() {
+ java.lang.Object ref = columnFamily_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ columnFamily_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getColumnFamilyBytes() {
+ java.lang.Object ref = columnFamily_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ columnFamily_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private void initFields() {
+ tableName_ = "";
+ columnFamily_ = "";
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTableName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasColumnFamily()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getColumnFamilyBytes());
+ }
+ 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
+ .computeBytesSize(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getColumnFamilyBytes());
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest) obj;
+
+ boolean result = true;
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && (hasColumnFamily() == other.hasColumnFamily());
+ if (hasColumnFamily()) {
+ result = result && getColumnFamily()
+ .equals(other.getColumnFamily());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (hasColumnFamily()) {
+ hash = (37 * hash) + COLUMN_FAMILY_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnFamily().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ tableName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ columnFamily_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.tableName_ = tableName_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.columnFamily_ = columnFamily_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.getDefaultInstance()) return this;
+ if (other.hasTableName()) {
+ setTableName(other.getTableName());
+ }
+ if (other.hasColumnFamily()) {
+ setColumnFamily(other.getColumnFamily());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTableName()) {
+
+ return false;
+ }
+ if (!hasColumnFamily()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ tableName_ = input.readBytes();
+ break;
+ }
+ case 18: {
+ bitField0_ |= 0x00000002;
+ columnFamily_ = input.readBytes();
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required string table_name = 1;
+ private java.lang.Object tableName_ = "";
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ tableName_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setTableName(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTableName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tableName_ = getDefaultInstance().getTableName();
+ onChanged();
+ return this;
+ }
+ void setTableName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ }
+
+ // required string column_family = 2;
+ private java.lang.Object columnFamily_ = "";
+ public boolean hasColumnFamily() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public String getColumnFamily() {
+ java.lang.Object ref = columnFamily_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ columnFamily_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setColumnFamily(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ columnFamily_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearColumnFamily() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ columnFamily_ = getDefaultInstance().getColumnFamily();
+ onChanged();
+ return this;
+ }
+ void setColumnFamily(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000002;
+ columnFamily_ = value;
+ onChanged();
+ }
+
+ // @@protoc_insertion_point(builder_scope:GetAbortedWriteTransactionsRequest)
+ }
+
+ static {
+ defaultInstance = new GetAbortedWriteTransactionsRequest(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:GetAbortedWriteTransactionsRequest)
+ }
+
+ public interface GetAbortedWriteTransactionsResponseOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // repeated .FamilyRevision family_revisions = 1;
+ java.util.List
+ getFamilyRevisionsList();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision getFamilyRevisions(int index);
+ int getFamilyRevisionsCount();
+ java.util.List extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder>
+ getFamilyRevisionsOrBuilderList();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder getFamilyRevisionsOrBuilder(
+ int index);
+ }
+ public static final class GetAbortedWriteTransactionsResponse extends
+ com.google.protobuf.GeneratedMessage
+ implements GetAbortedWriteTransactionsResponseOrBuilder {
+ // Use GetAbortedWriteTransactionsResponse.newBuilder() to construct.
+ private GetAbortedWriteTransactionsResponse(Builder builder) {
+ super(builder);
+ }
+ private GetAbortedWriteTransactionsResponse(boolean noInit) {}
+
+ private static final GetAbortedWriteTransactionsResponse defaultInstance;
+ public static GetAbortedWriteTransactionsResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public GetAbortedWriteTransactionsResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable;
+ }
+
+ // repeated .FamilyRevision family_revisions = 1;
+ public static final int FAMILY_REVISIONS_FIELD_NUMBER = 1;
+ private java.util.List familyRevisions_;
+ public java.util.List getFamilyRevisionsList() {
+ return familyRevisions_;
+ }
+ public java.util.List extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder>
+ getFamilyRevisionsOrBuilderList() {
+ return familyRevisions_;
+ }
+ public int getFamilyRevisionsCount() {
+ return familyRevisions_.size();
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision getFamilyRevisions(int index) {
+ return familyRevisions_.get(index);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder getFamilyRevisionsOrBuilder(
+ int index) {
+ return familyRevisions_.get(index);
+ }
+
+ private void initFields() {
+ familyRevisions_ = java.util.Collections.emptyList();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ for (int i = 0; i < getFamilyRevisionsCount(); i++) {
+ if (!getFamilyRevisions(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ for (int i = 0; i < familyRevisions_.size(); i++) {
+ output.writeMessage(1, familyRevisions_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < familyRevisions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, familyRevisions_.get(i));
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse) obj;
+
+ boolean result = true;
+ result = result && getFamilyRevisionsList()
+ .equals(other.getFamilyRevisionsList());
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (getFamilyRevisionsCount() > 0) {
+ hash = (37 * hash) + FAMILY_REVISIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getFamilyRevisionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getFamilyRevisionsFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (familyRevisionsBuilder_ == null) {
+ familyRevisions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ familyRevisionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse(this);
+ int from_bitField0_ = bitField0_;
+ if (familyRevisionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ familyRevisions_ = java.util.Collections.unmodifiableList(familyRevisions_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.familyRevisions_ = familyRevisions_;
+ } else {
+ result.familyRevisions_ = familyRevisionsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance()) return this;
+ if (familyRevisionsBuilder_ == null) {
+ if (!other.familyRevisions_.isEmpty()) {
+ if (familyRevisions_.isEmpty()) {
+ familyRevisions_ = other.familyRevisions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureFamilyRevisionsIsMutable();
+ familyRevisions_.addAll(other.familyRevisions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.familyRevisions_.isEmpty()) {
+ if (familyRevisionsBuilder_.isEmpty()) {
+ familyRevisionsBuilder_.dispose();
+ familyRevisionsBuilder_ = null;
+ familyRevisions_ = other.familyRevisions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ familyRevisionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getFamilyRevisionsFieldBuilder() : null;
+ } else {
+ familyRevisionsBuilder_.addAllMessages(other.familyRevisions_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ for (int i = 0; i < getFamilyRevisionsCount(); i++) {
+ if (!getFamilyRevisions(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.newBuilder();
+ input.readMessage(subBuilder, extensionRegistry);
+ addFamilyRevisions(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // repeated .FamilyRevision family_revisions = 1;
+ private java.util.List familyRevisions_ =
+ java.util.Collections.emptyList();
+ private void ensureFamilyRevisionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ familyRevisions_ = new java.util.ArrayList(familyRevisions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder> familyRevisionsBuilder_;
+
+ public java.util.List getFamilyRevisionsList() {
+ if (familyRevisionsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(familyRevisions_);
+ } else {
+ return familyRevisionsBuilder_.getMessageList();
+ }
+ }
+ public int getFamilyRevisionsCount() {
+ if (familyRevisionsBuilder_ == null) {
+ return familyRevisions_.size();
+ } else {
+ return familyRevisionsBuilder_.getCount();
+ }
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision getFamilyRevisions(int index) {
+ if (familyRevisionsBuilder_ == null) {
+ return familyRevisions_.get(index);
+ } else {
+ return familyRevisionsBuilder_.getMessage(index);
+ }
+ }
+ public Builder setFamilyRevisions(
+ int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision value) {
+ if (familyRevisionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFamilyRevisionsIsMutable();
+ familyRevisions_.set(index, value);
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ public Builder setFamilyRevisions(
+ int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder builderForValue) {
+ if (familyRevisionsBuilder_ == null) {
+ ensureFamilyRevisionsIsMutable();
+ familyRevisions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addFamilyRevisions(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision value) {
+ if (familyRevisionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFamilyRevisionsIsMutable();
+ familyRevisions_.add(value);
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ public Builder addFamilyRevisions(
+ int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision value) {
+ if (familyRevisionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFamilyRevisionsIsMutable();
+ familyRevisions_.add(index, value);
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addFamilyRevisions(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder builderForValue) {
+ if (familyRevisionsBuilder_ == null) {
+ ensureFamilyRevisionsIsMutable();
+ familyRevisions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addFamilyRevisions(
+ int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder builderForValue) {
+ if (familyRevisionsBuilder_ == null) {
+ ensureFamilyRevisionsIsMutable();
+ familyRevisions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addAllFamilyRevisions(
+ java.lang.Iterable extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision> values) {
+ if (familyRevisionsBuilder_ == null) {
+ ensureFamilyRevisionsIsMutable();
+ super.addAll(values, familyRevisions_);
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ public Builder clearFamilyRevisions() {
+ if (familyRevisionsBuilder_ == null) {
+ familyRevisions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.clear();
+ }
+ return this;
+ }
+ public Builder removeFamilyRevisions(int index) {
+ if (familyRevisionsBuilder_ == null) {
+ ensureFamilyRevisionsIsMutable();
+ familyRevisions_.remove(index);
+ onChanged();
+ } else {
+ familyRevisionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder getFamilyRevisionsBuilder(
+ int index) {
+ return getFamilyRevisionsFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder getFamilyRevisionsOrBuilder(
+ int index) {
+ if (familyRevisionsBuilder_ == null) {
+ return familyRevisions_.get(index); } else {
+ return familyRevisionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder>
+ getFamilyRevisionsOrBuilderList() {
+ if (familyRevisionsBuilder_ != null) {
+ return familyRevisionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(familyRevisions_);
+ }
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder addFamilyRevisionsBuilder() {
+ return getFamilyRevisionsFieldBuilder().addBuilder(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDefaultInstance());
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder addFamilyRevisionsBuilder(
+ int index) {
+ return getFamilyRevisionsFieldBuilder().addBuilder(
+ index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDefaultInstance());
+ }
+ public java.util.List
+ getFamilyRevisionsBuilderList() {
+ return getFamilyRevisionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder>
+ getFamilyRevisionsFieldBuilder() {
+ if (familyRevisionsBuilder_ == null) {
+ familyRevisionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder>(
+ familyRevisions_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ familyRevisions_ = null;
+ }
+ return familyRevisionsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:GetAbortedWriteTransactionsResponse)
+ }
+
+ static {
+ defaultInstance = new GetAbortedWriteTransactionsResponse(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:GetAbortedWriteTransactionsResponse)
+ }
+
+ public interface CreateSnapshotRequestOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string table_name = 1;
+ boolean hasTableName();
+ String getTableName();
+
+ // optional int64 revision = 2;
+ boolean hasRevision();
+ long getRevision();
+ }
+ public static final class CreateSnapshotRequest extends
+ com.google.protobuf.GeneratedMessage
+ implements CreateSnapshotRequestOrBuilder {
+ // Use CreateSnapshotRequest.newBuilder() to construct.
+ private CreateSnapshotRequest(Builder builder) {
+ super(builder);
+ }
+ private CreateSnapshotRequest(boolean noInit) {}
+
+ private static final CreateSnapshotRequest defaultInstance;
+ public static CreateSnapshotRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public CreateSnapshotRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required string table_name = 1;
+ public static final int TABLE_NAME_FIELD_NUMBER = 1;
+ private java.lang.Object tableName_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ tableName_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getTableNameBytes() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ tableName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // optional int64 revision = 2;
+ public static final int REVISION_FIELD_NUMBER = 2;
+ private long revision_;
+ public boolean hasRevision() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getRevision() {
+ return revision_;
+ }
+
+ private void initFields() {
+ tableName_ = "";
+ revision_ = 0L;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTableName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt64(2, revision_);
+ }
+ 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
+ .computeBytesSize(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, revision_);
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest) obj;
+
+ boolean result = true;
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && (hasRevision() == other.hasRevision());
+ if (hasRevision()) {
+ result = result && (getRevision()
+ == other.getRevision());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (hasRevision()) {
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getRevision());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ tableName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ revision_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.tableName_ = tableName_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.revision_ = revision_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.getDefaultInstance()) return this;
+ if (other.hasTableName()) {
+ setTableName(other.getTableName());
+ }
+ if (other.hasRevision()) {
+ setRevision(other.getRevision());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTableName()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ tableName_ = input.readBytes();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ revision_ = input.readInt64();
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required string table_name = 1;
+ private java.lang.Object tableName_ = "";
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ tableName_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setTableName(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTableName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tableName_ = getDefaultInstance().getTableName();
+ onChanged();
+ return this;
+ }
+ void setTableName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ }
+
+ // optional int64 revision = 2;
+ private long revision_ ;
+ public boolean hasRevision() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getRevision() {
+ return revision_;
+ }
+ public Builder setRevision(long value) {
+ bitField0_ |= 0x00000002;
+ revision_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearRevision() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ revision_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:CreateSnapshotRequest)
+ }
+
+ static {
+ defaultInstance = new CreateSnapshotRequest(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:CreateSnapshotRequest)
+ }
+
+ public interface CreateSnapshotResponseOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required .TableSnapshot table_snapshot = 1;
+ boolean hasTableSnapshot();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot getTableSnapshot();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder getTableSnapshotOrBuilder();
+ }
+ public static final class CreateSnapshotResponse extends
+ com.google.protobuf.GeneratedMessage
+ implements CreateSnapshotResponseOrBuilder {
+ // Use CreateSnapshotResponse.newBuilder() to construct.
+ private CreateSnapshotResponse(Builder builder) {
+ super(builder);
+ }
+ private CreateSnapshotResponse(boolean noInit) {}
+
+ private static final CreateSnapshotResponse defaultInstance;
+ public static CreateSnapshotResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public CreateSnapshotResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required .TableSnapshot table_snapshot = 1;
+ public static final int TABLE_SNAPSHOT_FIELD_NUMBER = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot tableSnapshot_;
+ public boolean hasTableSnapshot() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot getTableSnapshot() {
+ return tableSnapshot_;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder getTableSnapshotOrBuilder() {
+ return tableSnapshot_;
+ }
+
+ private void initFields() {
+ tableSnapshot_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTableSnapshot()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!getTableSnapshot().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, tableSnapshot_);
+ }
+ 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
+ .computeMessageSize(1, tableSnapshot_);
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse) obj;
+
+ boolean result = true;
+ result = result && (hasTableSnapshot() == other.hasTableSnapshot());
+ if (hasTableSnapshot()) {
+ result = result && getTableSnapshot()
+ .equals(other.getTableSnapshot());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTableSnapshot()) {
+ hash = (37 * hash) + TABLE_SNAPSHOT_FIELD_NUMBER;
+ hash = (53 * hash) + getTableSnapshot().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getTableSnapshotFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (tableSnapshotBuilder_ == null) {
+ tableSnapshot_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance();
+ } else {
+ tableSnapshotBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (tableSnapshotBuilder_ == null) {
+ result.tableSnapshot_ = tableSnapshot_;
+ } else {
+ result.tableSnapshot_ = tableSnapshotBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance()) return this;
+ if (other.hasTableSnapshot()) {
+ mergeTableSnapshot(other.getTableSnapshot());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTableSnapshot()) {
+
+ return false;
+ }
+ if (!getTableSnapshot().isInitialized()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.newBuilder();
+ if (hasTableSnapshot()) {
+ subBuilder.mergeFrom(getTableSnapshot());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setTableSnapshot(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required .TableSnapshot table_snapshot = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot tableSnapshot_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder> tableSnapshotBuilder_;
+ public boolean hasTableSnapshot() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot getTableSnapshot() {
+ if (tableSnapshotBuilder_ == null) {
+ return tableSnapshot_;
+ } else {
+ return tableSnapshotBuilder_.getMessage();
+ }
+ }
+ public Builder setTableSnapshot(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot value) {
+ if (tableSnapshotBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tableSnapshot_ = value;
+ onChanged();
+ } else {
+ tableSnapshotBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder setTableSnapshot(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder builderForValue) {
+ if (tableSnapshotBuilder_ == null) {
+ tableSnapshot_ = builderForValue.build();
+ onChanged();
+ } else {
+ tableSnapshotBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder mergeTableSnapshot(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot value) {
+ if (tableSnapshotBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ tableSnapshot_ != org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance()) {
+ tableSnapshot_ =
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.newBuilder(tableSnapshot_).mergeFrom(value).buildPartial();
+ } else {
+ tableSnapshot_ = value;
+ }
+ onChanged();
+ } else {
+ tableSnapshotBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder clearTableSnapshot() {
+ if (tableSnapshotBuilder_ == null) {
+ tableSnapshot_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance();
+ onChanged();
+ } else {
+ tableSnapshotBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder getTableSnapshotBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTableSnapshotFieldBuilder().getBuilder();
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder getTableSnapshotOrBuilder() {
+ if (tableSnapshotBuilder_ != null) {
+ return tableSnapshotBuilder_.getMessageOrBuilder();
+ } else {
+ return tableSnapshot_;
+ }
+ }
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder>
+ getTableSnapshotFieldBuilder() {
+ if (tableSnapshotBuilder_ == null) {
+ tableSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder>(
+ tableSnapshot_,
+ getParentForChildren(),
+ isClean());
+ tableSnapshot_ = null;
+ }
+ return tableSnapshotBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:CreateSnapshotResponse)
+ }
+
+ static {
+ defaultInstance = new CreateSnapshotResponse(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:CreateSnapshotResponse)
+ }
+
+ public interface KeepAliveTransactionRequestOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required .Transaction transaction = 1;
+ boolean hasTransaction();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder();
+ }
+ public static final class KeepAliveTransactionRequest extends
+ com.google.protobuf.GeneratedMessage
+ implements KeepAliveTransactionRequestOrBuilder {
+ // Use KeepAliveTransactionRequest.newBuilder() to construct.
+ private KeepAliveTransactionRequest(Builder builder) {
+ super(builder);
+ }
+ private KeepAliveTransactionRequest(boolean noInit) {}
+
+ private static final KeepAliveTransactionRequest defaultInstance;
+ public static KeepAliveTransactionRequest getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public KeepAliveTransactionRequest getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required .Transaction transaction = 1;
+ public static final int TRANSACTION_FIELD_NUMBER = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_;
+ public boolean hasTransaction() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() {
+ return transaction_;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() {
+ return transaction_;
+ }
+
+ private void initFields() {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTransaction()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!getTransaction().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, transaction_);
+ }
+ 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
+ .computeMessageSize(1, transaction_);
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest) obj;
+
+ boolean result = true;
+ result = result && (hasTransaction() == other.hasTransaction());
+ if (hasTransaction()) {
+ result = result && getTransaction()
+ .equals(other.getTransaction());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTransaction()) {
+ hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getTransaction().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getTransactionFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (transactionBuilder_ == null) {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ } else {
+ transactionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (transactionBuilder_ == null) {
+ result.transaction_ = transaction_;
+ } else {
+ result.transaction_ = transactionBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.getDefaultInstance()) return this;
+ if (other.hasTransaction()) {
+ mergeTransaction(other.getTransaction());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTransaction()) {
+
+ return false;
+ }
+ if (!getTransaction().isInitialized()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder();
+ if (hasTransaction()) {
+ subBuilder.mergeFrom(getTransaction());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setTransaction(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required .Transaction transaction = 1;
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> transactionBuilder_;
+ public boolean hasTransaction() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() {
+ if (transactionBuilder_ == null) {
+ return transaction_;
+ } else {
+ return transactionBuilder_.getMessage();
+ }
+ }
+ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transaction_ = value;
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder setTransaction(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder builderForValue) {
+ if (transactionBuilder_ == null) {
+ transaction_ = builderForValue.build();
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ transaction_ != org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance()) {
+ transaction_ =
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
+ } else {
+ transaction_ = value;
+ }
+ onChanged();
+ } else {
+ transactionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder clearTransaction() {
+ if (transactionBuilder_ == null) {
+ transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ onChanged();
+ } else {
+ transactionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder getTransactionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTransactionFieldBuilder().getBuilder();
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() {
+ if (transactionBuilder_ != null) {
+ return transactionBuilder_.getMessageOrBuilder();
+ } else {
+ return transaction_;
+ }
+ }
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder>
+ getTransactionFieldBuilder() {
+ if (transactionBuilder_ == null) {
+ transactionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder>(
+ transaction_,
+ getParentForChildren(),
+ isClean());
+ transaction_ = null;
+ }
+ return transactionBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:KeepAliveTransactionRequest)
+ }
+
+ static {
+ defaultInstance = new KeepAliveTransactionRequest(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:KeepAliveTransactionRequest)
+ }
+
+ public interface KeepAliveTransactionResponseOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+ }
+ public static final class KeepAliveTransactionResponse extends
+ com.google.protobuf.GeneratedMessage
+ implements KeepAliveTransactionResponseOrBuilder {
+ // Use KeepAliveTransactionResponse.newBuilder() to construct.
+ private KeepAliveTransactionResponse(Builder builder) {
+ super(builder);
+ }
+ private KeepAliveTransactionResponse(boolean noInit) {}
+
+ private static final KeepAliveTransactionResponse defaultInstance;
+ public static KeepAliveTransactionResponse getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public KeepAliveTransactionResponse getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_fieldAccessorTable;
+ }
+
+ private void initFields() {
+ }
+ 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();
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse) obj;
+
+ boolean result = true;
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse(this);
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance()) return this;
+ 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 {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ }
+ }
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:KeepAliveTransactionResponse)
+ }
+
+ static {
+ defaultInstance = new KeepAliveTransactionResponse(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:KeepAliveTransactionResponse)
+ }
+
+ public interface FamilyRevisionOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required int64 revision = 1;
+ boolean hasRevision();
+ long getRevision();
+
+ // required int64 timestamp = 2;
+ boolean hasTimestamp();
+ long getTimestamp();
+ }
+ public static final class FamilyRevision extends
+ com.google.protobuf.GeneratedMessage
+ implements FamilyRevisionOrBuilder {
+ // Use FamilyRevision.newBuilder() to construct.
+ private FamilyRevision(Builder builder) {
+ super(builder);
+ }
+ private FamilyRevision(boolean noInit) {}
+
+ private static final FamilyRevision defaultInstance;
+ public static FamilyRevision getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public FamilyRevision getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required int64 revision = 1;
+ public static final int REVISION_FIELD_NUMBER = 1;
+ private long revision_;
+ public boolean hasRevision() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public long getRevision() {
+ return revision_;
+ }
+
+ // required int64 timestamp = 2;
+ public static final int TIMESTAMP_FIELD_NUMBER = 2;
+ private long timestamp_;
+ public boolean hasTimestamp() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ private void initFields() {
+ revision_ = 0L;
+ timestamp_ = 0L;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasRevision()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasTimestamp()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeInt64(1, revision_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt64(2, timestamp_);
+ }
+ 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
+ .computeInt64Size(1, revision_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, timestamp_);
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision) obj;
+
+ boolean result = true;
+ result = result && (hasRevision() == other.hasRevision());
+ if (hasRevision()) {
+ result = result && (getRevision()
+ == other.getRevision());
+ }
+ result = result && (hasTimestamp() == other.hasTimestamp());
+ if (hasTimestamp()) {
+ result = result && (getTimestamp()
+ == other.getTimestamp());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasRevision()) {
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getRevision());
+ }
+ if (hasTimestamp()) {
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getTimestamp());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ revision_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ timestamp_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.revision_ = revision_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.timestamp_ = timestamp_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDefaultInstance()) return this;
+ if (other.hasRevision()) {
+ setRevision(other.getRevision());
+ }
+ if (other.hasTimestamp()) {
+ setTimestamp(other.getTimestamp());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasRevision()) {
+
+ return false;
+ }
+ if (!hasTimestamp()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 8: {
+ bitField0_ |= 0x00000001;
+ revision_ = input.readInt64();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ timestamp_ = input.readInt64();
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required int64 revision = 1;
+ private long revision_ ;
+ public boolean hasRevision() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public long getRevision() {
+ return revision_;
+ }
+ public Builder setRevision(long value) {
+ bitField0_ |= 0x00000001;
+ revision_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearRevision() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ revision_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // required int64 timestamp = 2;
+ private long timestamp_ ;
+ public boolean hasTimestamp() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getTimestamp() {
+ return timestamp_;
+ }
+ public Builder setTimestamp(long value) {
+ bitField0_ |= 0x00000002;
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:FamilyRevision)
+ }
+
+ static {
+ defaultInstance = new FamilyRevision(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:FamilyRevision)
+ }
+
+ public interface TransactionOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string table_name = 1;
+ boolean hasTableName();
+ String getTableName();
+
+ // required int64 time_stamp = 2;
+ boolean hasTimeStamp();
+ long getTimeStamp();
+
+ // required int64 keep_alive = 3;
+ boolean hasKeepAlive();
+ long getKeepAlive();
+
+ // required int64 revision = 4;
+ boolean hasRevision();
+ long getRevision();
+
+ // repeated string column_families = 5;
+ java.util.List getColumnFamiliesList();
+ int getColumnFamiliesCount();
+ String getColumnFamilies(int index);
+ }
+ public static final class Transaction extends
+ com.google.protobuf.GeneratedMessage
+ implements TransactionOrBuilder {
+ // Use Transaction.newBuilder() to construct.
+ private Transaction(Builder builder) {
+ super(builder);
+ }
+ private Transaction(boolean noInit) {}
+
+ private static final Transaction defaultInstance;
+ public static Transaction getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Transaction getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required string table_name = 1;
+ public static final int TABLE_NAME_FIELD_NUMBER = 1;
+ private java.lang.Object tableName_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ tableName_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getTableNameBytes() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ tableName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // required int64 time_stamp = 2;
+ public static final int TIME_STAMP_FIELD_NUMBER = 2;
+ private long timeStamp_;
+ public boolean hasTimeStamp() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getTimeStamp() {
+ return timeStamp_;
+ }
+
+ // required int64 keep_alive = 3;
+ public static final int KEEP_ALIVE_FIELD_NUMBER = 3;
+ private long keepAlive_;
+ public boolean hasKeepAlive() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ public long getKeepAlive() {
+ return keepAlive_;
+ }
+
+ // required int64 revision = 4;
+ public static final int REVISION_FIELD_NUMBER = 4;
+ private long revision_;
+ public boolean hasRevision() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ public long getRevision() {
+ return revision_;
+ }
+
+ // repeated string column_families = 5;
+ public static final int COLUMN_FAMILIES_FIELD_NUMBER = 5;
+ private com.google.protobuf.LazyStringList columnFamilies_;
+ public java.util.List
+ getColumnFamiliesList() {
+ return columnFamilies_;
+ }
+ public int getColumnFamiliesCount() {
+ return columnFamilies_.size();
+ }
+ public String getColumnFamilies(int index) {
+ return columnFamilies_.get(index);
+ }
+
+ private void initFields() {
+ tableName_ = "";
+ timeStamp_ = 0L;
+ keepAlive_ = 0L;
+ revision_ = 0L;
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTableName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasTimeStamp()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasKeepAlive()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasRevision()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt64(2, timeStamp_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeInt64(3, keepAlive_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeInt64(4, revision_);
+ }
+ for (int i = 0; i < columnFamilies_.size(); i++) {
+ output.writeBytes(5, columnFamilies_.getByteString(i));
+ }
+ 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
+ .computeBytesSize(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, timeStamp_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, keepAlive_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, revision_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < columnFamilies_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeBytesSizeNoTag(columnFamilies_.getByteString(i));
+ }
+ size += dataSize;
+ size += 1 * getColumnFamiliesList().size();
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction) obj;
+
+ boolean result = true;
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && (hasTimeStamp() == other.hasTimeStamp());
+ if (hasTimeStamp()) {
+ result = result && (getTimeStamp()
+ == other.getTimeStamp());
+ }
+ result = result && (hasKeepAlive() == other.hasKeepAlive());
+ if (hasKeepAlive()) {
+ result = result && (getKeepAlive()
+ == other.getKeepAlive());
+ }
+ result = result && (hasRevision() == other.hasRevision());
+ if (hasRevision()) {
+ result = result && (getRevision()
+ == other.getRevision());
+ }
+ result = result && getColumnFamiliesList()
+ .equals(other.getColumnFamiliesList());
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (hasTimeStamp()) {
+ hash = (37 * hash) + TIME_STAMP_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getTimeStamp());
+ }
+ if (hasKeepAlive()) {
+ hash = (37 * hash) + KEEP_ALIVE_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getKeepAlive());
+ }
+ if (hasRevision()) {
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getRevision());
+ }
+ if (getColumnFamiliesCount() > 0) {
+ hash = (37 * hash) + COLUMN_FAMILIES_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnFamiliesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ tableName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ timeStamp_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ keepAlive_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ revision_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.tableName_ = tableName_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.timeStamp_ = timeStamp_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.keepAlive_ = keepAlive_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.revision_ = revision_;
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ columnFamilies_ = new com.google.protobuf.UnmodifiableLazyStringList(
+ columnFamilies_);
+ bitField0_ = (bitField0_ & ~0x00000010);
+ }
+ result.columnFamilies_ = columnFamilies_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance()) return this;
+ if (other.hasTableName()) {
+ setTableName(other.getTableName());
+ }
+ if (other.hasTimeStamp()) {
+ setTimeStamp(other.getTimeStamp());
+ }
+ if (other.hasKeepAlive()) {
+ setKeepAlive(other.getKeepAlive());
+ }
+ if (other.hasRevision()) {
+ setRevision(other.getRevision());
+ }
+ if (!other.columnFamilies_.isEmpty()) {
+ if (columnFamilies_.isEmpty()) {
+ columnFamilies_ = other.columnFamilies_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.addAll(other.columnFamilies_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTableName()) {
+
+ return false;
+ }
+ if (!hasTimeStamp()) {
+
+ return false;
+ }
+ if (!hasKeepAlive()) {
+
+ return false;
+ }
+ if (!hasRevision()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ tableName_ = input.readBytes();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ timeStamp_ = input.readInt64();
+ break;
+ }
+ case 24: {
+ bitField0_ |= 0x00000004;
+ keepAlive_ = input.readInt64();
+ break;
+ }
+ case 32: {
+ bitField0_ |= 0x00000008;
+ revision_ = input.readInt64();
+ break;
+ }
+ case 42: {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(input.readBytes());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required string table_name = 1;
+ private java.lang.Object tableName_ = "";
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ tableName_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setTableName(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTableName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tableName_ = getDefaultInstance().getTableName();
+ onChanged();
+ return this;
+ }
+ void setTableName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ }
+
+ // required int64 time_stamp = 2;
+ private long timeStamp_ ;
+ public boolean hasTimeStamp() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getTimeStamp() {
+ return timeStamp_;
+ }
+ public Builder setTimeStamp(long value) {
+ bitField0_ |= 0x00000002;
+ timeStamp_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTimeStamp() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ timeStamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // required int64 keep_alive = 3;
+ private long keepAlive_ ;
+ public boolean hasKeepAlive() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ public long getKeepAlive() {
+ return keepAlive_;
+ }
+ public Builder setKeepAlive(long value) {
+ bitField0_ |= 0x00000004;
+ keepAlive_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearKeepAlive() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ keepAlive_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // required int64 revision = 4;
+ private long revision_ ;
+ public boolean hasRevision() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ public long getRevision() {
+ return revision_;
+ }
+ public Builder setRevision(long value) {
+ bitField0_ |= 0x00000008;
+ revision_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearRevision() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ revision_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // repeated string column_families = 5;
+ private com.google.protobuf.LazyStringList columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureColumnFamiliesIsMutable() {
+ if (!((bitField0_ & 0x00000010) == 0x00000010)) {
+ columnFamilies_ = new com.google.protobuf.LazyStringArrayList(columnFamilies_);
+ bitField0_ |= 0x00000010;
+ }
+ }
+ public java.util.List
+ getColumnFamiliesList() {
+ return java.util.Collections.unmodifiableList(columnFamilies_);
+ }
+ public int getColumnFamiliesCount() {
+ return columnFamilies_.size();
+ }
+ public String getColumnFamilies(int index) {
+ return columnFamilies_.get(index);
+ }
+ public Builder setColumnFamilies(
+ int index, String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.set(index, value);
+ onChanged();
+ return this;
+ }
+ public Builder addColumnFamilies(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(value);
+ onChanged();
+ return this;
+ }
+ public Builder addAllColumnFamilies(
+ java.lang.Iterable values) {
+ ensureColumnFamiliesIsMutable();
+ super.addAll(values, columnFamilies_);
+ onChanged();
+ return this;
+ }
+ public Builder clearColumnFamilies() {
+ columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ void addColumnFamilies(com.google.protobuf.ByteString value) {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(value);
+ onChanged();
+ }
+
+ // @@protoc_insertion_point(builder_scope:Transaction)
+ }
+
+ static {
+ defaultInstance = new Transaction(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:Transaction)
+ }
+
+ public interface TableSnapshotOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string table_name = 1;
+ boolean hasTableName();
+ String getTableName();
+
+ // required int64 latest_revision = 2;
+ boolean hasLatestRevision();
+ long getLatestRevision();
+
+ // repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3;
+ java.util.List
+ getColumnFamilyRevisionList();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision getColumnFamilyRevision(int index);
+ int getColumnFamilyRevisionCount();
+ java.util.List extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder>
+ getColumnFamilyRevisionOrBuilderList();
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder getColumnFamilyRevisionOrBuilder(
+ int index);
+ }
+ public static final class TableSnapshot extends
+ com.google.protobuf.GeneratedMessage
+ implements TableSnapshotOrBuilder {
+ // Use TableSnapshot.newBuilder() to construct.
+ private TableSnapshot(Builder builder) {
+ super(builder);
+ }
+ private TableSnapshot(boolean noInit) {}
+
+ private static final TableSnapshot defaultInstance;
+ public static TableSnapshot getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public TableSnapshot getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_fieldAccessorTable;
+ }
+
+ public interface ColumnFamilyRevisionOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string key = 1;
+ boolean hasKey();
+ String getKey();
+
+ // required int64 value = 2;
+ boolean hasValue();
+ long getValue();
+ }
+ public static final class ColumnFamilyRevision extends
+ com.google.protobuf.GeneratedMessage
+ implements ColumnFamilyRevisionOrBuilder {
+ // Use ColumnFamilyRevision.newBuilder() to construct.
+ private ColumnFamilyRevision(Builder builder) {
+ super(builder);
+ }
+ private ColumnFamilyRevision(boolean noInit) {}
+
+ private static final ColumnFamilyRevision defaultInstance;
+ public static ColumnFamilyRevision getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public ColumnFamilyRevision getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable;
+ }
+
+ private int bitField0_;
+ // required string key = 1;
+ public static final int KEY_FIELD_NUMBER = 1;
+ private java.lang.Object key_;
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ key_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // required int64 value = 2;
+ public static final int VALUE_FIELD_NUMBER = 2;
+ private long value_;
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getValue() {
+ return value_;
+ }
+
+ private void initFields() {
+ key_ = "";
+ value_ = 0L;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasKey()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasValue()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getKeyBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt64(2, value_);
+ }
+ 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
+ .computeBytesSize(1, getKeyBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, value_);
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision) obj;
+
+ boolean result = true;
+ result = result && (hasKey() == other.hasKey());
+ if (hasKey()) {
+ result = result && getKey()
+ .equals(other.getKey());
+ }
+ result = result && (hasValue() == other.hasValue());
+ if (hasValue()) {
+ result = result && (getValue()
+ == other.getValue());
+ }
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasKey()) {
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ }
+ if (hasValue()) {
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getValue());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(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();
+ key_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ value_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.key_ = key_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.value_ = value_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDefaultInstance()) return this;
+ if (other.hasKey()) {
+ setKey(other.getKey());
+ }
+ if (other.hasValue()) {
+ setValue(other.getValue());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasKey()) {
+
+ return false;
+ }
+ if (!hasValue()) {
+
+ return false;
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ key_ = input.readBytes();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ value_ = input.readInt64();
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required string key = 1;
+ private java.lang.Object key_ = "";
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setKey(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearKey() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ void setKey(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ }
+
+ // required int64 value = 2;
+ private long value_ ;
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getValue() {
+ return value_;
+ }
+ public Builder setValue(long value) {
+ bitField0_ |= 0x00000002;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ value_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:TableSnapshot.ColumnFamilyRevision)
+ }
+
+ static {
+ defaultInstance = new ColumnFamilyRevision(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:TableSnapshot.ColumnFamilyRevision)
+ }
+
+ private int bitField0_;
+ // required string table_name = 1;
+ public static final int TABLE_NAME_FIELD_NUMBER = 1;
+ private java.lang.Object tableName_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ tableName_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getTableNameBytes() {
+ java.lang.Object ref = tableName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ tableName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // required int64 latest_revision = 2;
+ public static final int LATEST_REVISION_FIELD_NUMBER = 2;
+ private long latestRevision_;
+ public boolean hasLatestRevision() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getLatestRevision() {
+ return latestRevision_;
+ }
+
+ // repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3;
+ public static final int COLUMN_FAMILY_REVISION_FIELD_NUMBER = 3;
+ private java.util.List columnFamilyRevision_;
+ public java.util.List getColumnFamilyRevisionList() {
+ return columnFamilyRevision_;
+ }
+ public java.util.List extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder>
+ getColumnFamilyRevisionOrBuilderList() {
+ return columnFamilyRevision_;
+ }
+ public int getColumnFamilyRevisionCount() {
+ return columnFamilyRevision_.size();
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision getColumnFamilyRevision(int index) {
+ return columnFamilyRevision_.get(index);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder getColumnFamilyRevisionOrBuilder(
+ int index) {
+ return columnFamilyRevision_.get(index);
+ }
+
+ private void initFields() {
+ tableName_ = "";
+ latestRevision_ = 0L;
+ columnFamilyRevision_ = java.util.Collections.emptyList();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasTableName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasLatestRevision()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ for (int i = 0; i < getColumnFamilyRevisionCount(); i++) {
+ if (!getColumnFamilyRevision(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt64(2, latestRevision_);
+ }
+ for (int i = 0; i < columnFamilyRevision_.size(); i++) {
+ output.writeMessage(3, columnFamilyRevision_.get(i));
+ }
+ 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
+ .computeBytesSize(1, getTableNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, latestRevision_);
+ }
+ for (int i = 0; i < columnFamilyRevision_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, columnFamilyRevision_.get(i));
+ }
+ 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot)) {
+ return super.equals(obj);
+ }
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot) obj;
+
+ boolean result = true;
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && (hasLatestRevision() == other.hasLatestRevision());
+ if (hasLatestRevision()) {
+ result = result && (getLatestRevision()
+ == other.getLatestRevision());
+ }
+ result = result && getColumnFamilyRevisionList()
+ .equals(other.getColumnFamilyRevisionList());
+ result = result &&
+ getUnknownFields().equals(other.getUnknownFields());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (hasLatestRevision()) {
+ hash = (37 * hash) + LATEST_REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + hashLong(getLatestRevision());
+ }
+ if (getColumnFamilyRevisionCount() > 0) {
+ hash = (37 * hash) + COLUMN_FAMILY_REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnFamilyRevisionList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ return hash;
+ }
+
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot 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;
+ }
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getColumnFamilyRevisionFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ tableName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ latestRevision_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ if (columnFamilyRevisionBuilder_ == null) {
+ columnFamilyRevision_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ columnFamilyRevisionBuilder_.clear();
+ }
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDescriptor();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot getDefaultInstanceForType() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance();
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot build() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return result;
+ }
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot buildPartial() {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.tableName_ = tableName_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.latestRevision_ = latestRevision_;
+ if (columnFamilyRevisionBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ columnFamilyRevision_ = java.util.Collections.unmodifiableList(columnFamilyRevision_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.columnFamilyRevision_ = columnFamilyRevision_;
+ } else {
+ result.columnFamilyRevision_ = columnFamilyRevisionBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot) {
+ return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot other) {
+ if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance()) return this;
+ if (other.hasTableName()) {
+ setTableName(other.getTableName());
+ }
+ if (other.hasLatestRevision()) {
+ setLatestRevision(other.getLatestRevision());
+ }
+ if (columnFamilyRevisionBuilder_ == null) {
+ if (!other.columnFamilyRevision_.isEmpty()) {
+ if (columnFamilyRevision_.isEmpty()) {
+ columnFamilyRevision_ = other.columnFamilyRevision_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureColumnFamilyRevisionIsMutable();
+ columnFamilyRevision_.addAll(other.columnFamilyRevision_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.columnFamilyRevision_.isEmpty()) {
+ if (columnFamilyRevisionBuilder_.isEmpty()) {
+ columnFamilyRevisionBuilder_.dispose();
+ columnFamilyRevisionBuilder_ = null;
+ columnFamilyRevision_ = other.columnFamilyRevision_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ columnFamilyRevisionBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getColumnFamilyRevisionFieldBuilder() : null;
+ } else {
+ columnFamilyRevisionBuilder_.addAllMessages(other.columnFamilyRevision_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTableName()) {
+
+ return false;
+ }
+ if (!hasLatestRevision()) {
+
+ return false;
+ }
+ for (int i = 0; i < getColumnFamilyRevisionCount(); i++) {
+ if (!getColumnFamilyRevision(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ onChanged();
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ tableName_ = input.readBytes();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ latestRevision_ = input.readInt64();
+ break;
+ }
+ case 26: {
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.newBuilder();
+ input.readMessage(subBuilder, extensionRegistry);
+ addColumnFamilyRevision(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+ private int bitField0_;
+
+ // required string table_name = 1;
+ private java.lang.Object tableName_ = "";
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getTableName() {
+ java.lang.Object ref = tableName_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ tableName_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ public Builder setTableName(String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearTableName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tableName_ = getDefaultInstance().getTableName();
+ onChanged();
+ return this;
+ }
+ void setTableName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ tableName_ = value;
+ onChanged();
+ }
+
+ // required int64 latest_revision = 2;
+ private long latestRevision_ ;
+ public boolean hasLatestRevision() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getLatestRevision() {
+ return latestRevision_;
+ }
+ public Builder setLatestRevision(long value) {
+ bitField0_ |= 0x00000002;
+ latestRevision_ = value;
+ onChanged();
+ return this;
+ }
+ public Builder clearLatestRevision() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ latestRevision_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3;
+ private java.util.List columnFamilyRevision_ =
+ java.util.Collections.emptyList();
+ private void ensureColumnFamilyRevisionIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ columnFamilyRevision_ = new java.util.ArrayList(columnFamilyRevision_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder> columnFamilyRevisionBuilder_;
+
+ public java.util.List getColumnFamilyRevisionList() {
+ if (columnFamilyRevisionBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(columnFamilyRevision_);
+ } else {
+ return columnFamilyRevisionBuilder_.getMessageList();
+ }
+ }
+ public int getColumnFamilyRevisionCount() {
+ if (columnFamilyRevisionBuilder_ == null) {
+ return columnFamilyRevision_.size();
+ } else {
+ return columnFamilyRevisionBuilder_.getCount();
+ }
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision getColumnFamilyRevision(int index) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ return columnFamilyRevision_.get(index);
+ } else {
+ return columnFamilyRevisionBuilder_.getMessage(index);
+ }
+ }
+ public Builder setColumnFamilyRevision(
+ int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision value) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamilyRevisionIsMutable();
+ columnFamilyRevision_.set(index, value);
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ public Builder setColumnFamilyRevision(
+ int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder builderForValue) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ ensureColumnFamilyRevisionIsMutable();
+ columnFamilyRevision_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addColumnFamilyRevision(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision value) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamilyRevisionIsMutable();
+ columnFamilyRevision_.add(value);
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ public Builder addColumnFamilyRevision(
+ int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision value) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamilyRevisionIsMutable();
+ columnFamilyRevision_.add(index, value);
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addColumnFamilyRevision(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder builderForValue) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ ensureColumnFamilyRevisionIsMutable();
+ columnFamilyRevision_.add(builderForValue.build());
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addColumnFamilyRevision(
+ int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder builderForValue) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ ensureColumnFamilyRevisionIsMutable();
+ columnFamilyRevision_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addAllColumnFamilyRevision(
+ java.lang.Iterable extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision> values) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ ensureColumnFamilyRevisionIsMutable();
+ super.addAll(values, columnFamilyRevision_);
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ public Builder clearColumnFamilyRevision() {
+ if (columnFamilyRevisionBuilder_ == null) {
+ columnFamilyRevision_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.clear();
+ }
+ return this;
+ }
+ public Builder removeColumnFamilyRevision(int index) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ ensureColumnFamilyRevisionIsMutable();
+ columnFamilyRevision_.remove(index);
+ onChanged();
+ } else {
+ columnFamilyRevisionBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder getColumnFamilyRevisionBuilder(
+ int index) {
+ return getColumnFamilyRevisionFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder getColumnFamilyRevisionOrBuilder(
+ int index) {
+ if (columnFamilyRevisionBuilder_ == null) {
+ return columnFamilyRevision_.get(index); } else {
+ return columnFamilyRevisionBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder>
+ getColumnFamilyRevisionOrBuilderList() {
+ if (columnFamilyRevisionBuilder_ != null) {
+ return columnFamilyRevisionBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(columnFamilyRevision_);
+ }
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder addColumnFamilyRevisionBuilder() {
+ return getColumnFamilyRevisionFieldBuilder().addBuilder(
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDefaultInstance());
+ }
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder addColumnFamilyRevisionBuilder(
+ int index) {
+ return getColumnFamilyRevisionFieldBuilder().addBuilder(
+ index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDefaultInstance());
+ }
+ public java.util.List
+ getColumnFamilyRevisionBuilderList() {
+ return getColumnFamilyRevisionFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder>
+ getColumnFamilyRevisionFieldBuilder() {
+ if (columnFamilyRevisionBuilder_ == null) {
+ columnFamilyRevisionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder>(
+ columnFamilyRevision_,
+ ((bitField0_ & 0x00000004) == 0x00000004),
+ getParentForChildren(),
+ isClean());
+ columnFamilyRevision_ = null;
+ }
+ return columnFamilyRevisionBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:TableSnapshot)
+ }
+
+ static {
+ defaultInstance = new TableSnapshot(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:TableSnapshot)
+ }
+
+ public static abstract class RevisionManagerEndpointService
+ implements com.google.protobuf.Service {
+ protected RevisionManagerEndpointService() {}
+
+ public interface Interface {
+ public abstract void createTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void dropTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void beginWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void commitWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void abortWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void getAbortedWriteTransactions(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void createSnapshot(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void keepAliveTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ }
+
+ public static com.google.protobuf.Service newReflectiveService(
+ final Interface impl) {
+ return new RevisionManagerEndpointService() {
+ @java.lang.Override
+ public void createTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request,
+ com.google.protobuf.RpcCallback done) {
+ impl.createTable(controller, request, done);
+ }
+
+ @java.lang.Override
+ public void dropTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request,
+ com.google.protobuf.RpcCallback done) {
+ impl.dropTable(controller, request, done);
+ }
+
+ @java.lang.Override
+ public void beginWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done) {
+ impl.beginWriteTransaction(controller, request, done);
+ }
+
+ @java.lang.Override
+ public void commitWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done) {
+ impl.commitWriteTransaction(controller, request, done);
+ }
+
+ @java.lang.Override
+ public void abortWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done) {
+ impl.abortWriteTransaction(controller, request, done);
+ }
+
+ @java.lang.Override
+ public void getAbortedWriteTransactions(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request,
+ com.google.protobuf.RpcCallback done) {
+ impl.getAbortedWriteTransactions(controller, request, done);
+ }
+
+ @java.lang.Override
+ public void createSnapshot(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request,
+ com.google.protobuf.RpcCallback done) {
+ impl.createSnapshot(controller, request, done);
+ }
+
+ @java.lang.Override
+ public void keepAliveTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request,
+ com.google.protobuf.RpcCallback done) {
+ impl.keepAliveTransaction(controller, request, done);
+ }
+
+ };
+ }
+
+ public static com.google.protobuf.BlockingService
+ newReflectiveBlockingService(final BlockingInterface impl) {
+ return new com.google.protobuf.BlockingService() {
+ public final com.google.protobuf.Descriptors.ServiceDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public final com.google.protobuf.Message callBlockingMethod(
+ com.google.protobuf.Descriptors.MethodDescriptor method,
+ com.google.protobuf.RpcController controller,
+ com.google.protobuf.Message request)
+ throws com.google.protobuf.ServiceException {
+ if (method.getService() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "Service.callBlockingMethod() given method descriptor for " +
+ "wrong service type.");
+ }
+ switch(method.getIndex()) {
+ case 0:
+ return impl.createTable(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest)request);
+ case 1:
+ return impl.dropTable(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest)request);
+ case 2:
+ return impl.beginWriteTransaction(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest)request);
+ case 3:
+ return impl.commitWriteTransaction(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest)request);
+ case 4:
+ return impl.abortWriteTransaction(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest)request);
+ case 5:
+ return impl.getAbortedWriteTransactions(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest)request);
+ case 6:
+ return impl.createSnapshot(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest)request);
+ case 7:
+ return impl.keepAliveTransaction(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest)request);
+ default:
+ throw new java.lang.AssertionError("Can't get here.");
+ }
+ }
+
+ public final com.google.protobuf.Message
+ getRequestPrototype(
+ com.google.protobuf.Descriptors.MethodDescriptor method) {
+ if (method.getService() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "Service.getRequestPrototype() given method " +
+ "descriptor for wrong service type.");
+ }
+ switch(method.getIndex()) {
+ case 0:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.getDefaultInstance();
+ case 1:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.getDefaultInstance();
+ case 2:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.getDefaultInstance();
+ case 3:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.getDefaultInstance();
+ case 4:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.getDefaultInstance();
+ case 5:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.getDefaultInstance();
+ case 6:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.getDefaultInstance();
+ case 7:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.getDefaultInstance();
+ default:
+ throw new java.lang.AssertionError("Can't get here.");
+ }
+ }
+
+ public final com.google.protobuf.Message
+ getResponsePrototype(
+ com.google.protobuf.Descriptors.MethodDescriptor method) {
+ if (method.getService() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "Service.getResponsePrototype() given method " +
+ "descriptor for wrong service type.");
+ }
+ switch(method.getIndex()) {
+ case 0:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance();
+ case 1:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance();
+ case 2:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance();
+ case 3:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance();
+ case 4:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance();
+ case 5:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance();
+ case 6:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance();
+ case 7:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance();
+ default:
+ throw new java.lang.AssertionError("Can't get here.");
+ }
+ }
+
+ };
+ }
+
+ public abstract void createTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void dropTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void beginWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void commitWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void abortWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void getAbortedWriteTransactions(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void createSnapshot(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public abstract void keepAliveTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request,
+ com.google.protobuf.RpcCallback done);
+
+ public static final
+ com.google.protobuf.Descriptors.ServiceDescriptor
+ getDescriptor() {
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.getDescriptor().getServices().get(0);
+ }
+ public final com.google.protobuf.Descriptors.ServiceDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public final void callMethod(
+ com.google.protobuf.Descriptors.MethodDescriptor method,
+ com.google.protobuf.RpcController controller,
+ com.google.protobuf.Message request,
+ com.google.protobuf.RpcCallback<
+ com.google.protobuf.Message> done) {
+ if (method.getService() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "Service.callMethod() given method descriptor for wrong " +
+ "service type.");
+ }
+ switch(method.getIndex()) {
+ case 0:
+ this.createTable(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest)request,
+ com.google.protobuf.RpcUtil.specializeCallback(
+ done));
+ return;
+ case 1:
+ this.dropTable(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest)request,
+ com.google.protobuf.RpcUtil.specializeCallback(
+ done));
+ return;
+ case 2:
+ this.beginWriteTransaction(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest)request,
+ com.google.protobuf.RpcUtil.specializeCallback(
+ done));
+ return;
+ case 3:
+ this.commitWriteTransaction(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest)request,
+ com.google.protobuf.RpcUtil.specializeCallback(
+ done));
+ return;
+ case 4:
+ this.abortWriteTransaction(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest)request,
+ com.google.protobuf.RpcUtil.specializeCallback(
+ done));
+ return;
+ case 5:
+ this.getAbortedWriteTransactions(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest)request,
+ com.google.protobuf.RpcUtil.specializeCallback(
+ done));
+ return;
+ case 6:
+ this.createSnapshot(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest)request,
+ com.google.protobuf.RpcUtil.specializeCallback(
+ done));
+ return;
+ case 7:
+ this.keepAliveTransaction(controller, (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest)request,
+ com.google.protobuf.RpcUtil.specializeCallback(
+ done));
+ return;
+ default:
+ throw new java.lang.AssertionError("Can't get here.");
+ }
+ }
+
+ public final com.google.protobuf.Message
+ getRequestPrototype(
+ com.google.protobuf.Descriptors.MethodDescriptor method) {
+ if (method.getService() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "Service.getRequestPrototype() given method " +
+ "descriptor for wrong service type.");
+ }
+ switch(method.getIndex()) {
+ case 0:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.getDefaultInstance();
+ case 1:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.getDefaultInstance();
+ case 2:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.getDefaultInstance();
+ case 3:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.getDefaultInstance();
+ case 4:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.getDefaultInstance();
+ case 5:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.getDefaultInstance();
+ case 6:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.getDefaultInstance();
+ case 7:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.getDefaultInstance();
+ default:
+ throw new java.lang.AssertionError("Can't get here.");
+ }
+ }
+
+ public final com.google.protobuf.Message
+ getResponsePrototype(
+ com.google.protobuf.Descriptors.MethodDescriptor method) {
+ if (method.getService() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "Service.getResponsePrototype() given method " +
+ "descriptor for wrong service type.");
+ }
+ switch(method.getIndex()) {
+ case 0:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance();
+ case 1:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance();
+ case 2:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance();
+ case 3:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance();
+ case 4:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance();
+ case 5:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance();
+ case 6:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance();
+ case 7:
+ return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance();
+ default:
+ throw new java.lang.AssertionError("Can't get here.");
+ }
+ }
+
+ public static Stub newStub(
+ com.google.protobuf.RpcChannel channel) {
+ return new Stub(channel);
+ }
+
+ public static final class Stub extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.RevisionManagerEndpointService implements Interface {
+ private Stub(com.google.protobuf.RpcChannel channel) {
+ this.channel = channel;
+ }
+
+ private final com.google.protobuf.RpcChannel channel;
+
+ public com.google.protobuf.RpcChannel getChannel() {
+ return channel;
+ }
+
+ public void createTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request,
+ com.google.protobuf.RpcCallback done) {
+ channel.callMethod(
+ getDescriptor().getMethods().get(0),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance(),
+ com.google.protobuf.RpcUtil.generalizeCallback(
+ done,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance()));
+ }
+
+ public void dropTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request,
+ com.google.protobuf.RpcCallback done) {
+ channel.callMethod(
+ getDescriptor().getMethods().get(1),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance(),
+ com.google.protobuf.RpcUtil.generalizeCallback(
+ done,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance()));
+ }
+
+ public void beginWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done) {
+ channel.callMethod(
+ getDescriptor().getMethods().get(2),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance(),
+ com.google.protobuf.RpcUtil.generalizeCallback(
+ done,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance()));
+ }
+
+ public void commitWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done) {
+ channel.callMethod(
+ getDescriptor().getMethods().get(3),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance(),
+ com.google.protobuf.RpcUtil.generalizeCallback(
+ done,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance()));
+ }
+
+ public void abortWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request,
+ com.google.protobuf.RpcCallback done) {
+ channel.callMethod(
+ getDescriptor().getMethods().get(4),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance(),
+ com.google.protobuf.RpcUtil.generalizeCallback(
+ done,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance()));
+ }
+
+ public void getAbortedWriteTransactions(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request,
+ com.google.protobuf.RpcCallback done) {
+ channel.callMethod(
+ getDescriptor().getMethods().get(5),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance(),
+ com.google.protobuf.RpcUtil.generalizeCallback(
+ done,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance()));
+ }
+
+ public void createSnapshot(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request,
+ com.google.protobuf.RpcCallback done) {
+ channel.callMethod(
+ getDescriptor().getMethods().get(6),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance(),
+ com.google.protobuf.RpcUtil.generalizeCallback(
+ done,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance()));
+ }
+
+ public void keepAliveTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request,
+ com.google.protobuf.RpcCallback done) {
+ channel.callMethod(
+ getDescriptor().getMethods().get(7),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance(),
+ com.google.protobuf.RpcUtil.generalizeCallback(
+ done,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance()));
+ }
+ }
+
+ public static BlockingInterface newBlockingStub(
+ com.google.protobuf.BlockingRpcChannel channel) {
+ return new BlockingStub(channel);
+ }
+
+ public interface BlockingInterface {
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse createTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request)
+ throws com.google.protobuf.ServiceException;
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse dropTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request)
+ throws com.google.protobuf.ServiceException;
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse beginWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request)
+ throws com.google.protobuf.ServiceException;
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse commitWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request)
+ throws com.google.protobuf.ServiceException;
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse abortWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request)
+ throws com.google.protobuf.ServiceException;
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse getAbortedWriteTransactions(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request)
+ throws com.google.protobuf.ServiceException;
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse createSnapshot(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request)
+ throws com.google.protobuf.ServiceException;
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse keepAliveTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request)
+ throws com.google.protobuf.ServiceException;
+ }
+
+ private static final class BlockingStub implements BlockingInterface {
+ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
+ this.channel = channel;
+ }
+
+ private final com.google.protobuf.BlockingRpcChannel channel;
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse createTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request)
+ throws com.google.protobuf.ServiceException {
+ return (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse) channel.callBlockingMethod(
+ getDescriptor().getMethods().get(0),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance());
+ }
+
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse dropTable(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request)
+ throws com.google.protobuf.ServiceException {
+ return (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse) channel.callBlockingMethod(
+ getDescriptor().getMethods().get(1),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance());
+ }
+
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse beginWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request)
+ throws com.google.protobuf.ServiceException {
+ return (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse) channel.callBlockingMethod(
+ getDescriptor().getMethods().get(2),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance());
+ }
+
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse commitWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request)
+ throws com.google.protobuf.ServiceException {
+ return (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse) channel.callBlockingMethod(
+ getDescriptor().getMethods().get(3),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance());
+ }
+
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse abortWriteTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request)
+ throws com.google.protobuf.ServiceException {
+ return (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse) channel.callBlockingMethod(
+ getDescriptor().getMethods().get(4),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance());
+ }
+
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse getAbortedWriteTransactions(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request)
+ throws com.google.protobuf.ServiceException {
+ return (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse) channel.callBlockingMethod(
+ getDescriptor().getMethods().get(5),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance());
+ }
+
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse createSnapshot(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request)
+ throws com.google.protobuf.ServiceException {
+ return (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse) channel.callBlockingMethod(
+ getDescriptor().getMethods().get(6),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance());
+ }
+
+
+ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse keepAliveTransaction(
+ com.google.protobuf.RpcController controller,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request)
+ throws com.google.protobuf.ServiceException {
+ return (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse) channel.callBlockingMethod(
+ getDescriptor().getMethods().get(7),
+ controller,
+ request,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance());
+ }
+
+ }
+ }
+
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_CreateTableRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_CreateTableRequest_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_CreateTableResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_CreateTableResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_DropTableRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_DropTableRequest_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_DropTableResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_DropTableResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_BeginWriteTransactionRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_BeginWriteTransactionRequest_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_BeginWriteTransactionResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_BeginWriteTransactionResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_CommitWriteTransactionRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_CommitWriteTransactionRequest_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_CommitWriteTransactionResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_CommitWriteTransactionResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_AbortWriteTransactionRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_AbortWriteTransactionRequest_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_AbortWriteTransactionResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_AbortWriteTransactionResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_GetAbortedWriteTransactionsRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_GetAbortedWriteTransactionsResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_CreateSnapshotRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_CreateSnapshotRequest_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_CreateSnapshotResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_CreateSnapshotResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_KeepAliveTransactionRequest_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_KeepAliveTransactionRequest_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_KeepAliveTransactionResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_KeepAliveTransactionResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_FamilyRevision_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_FamilyRevision_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_Transaction_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_Transaction_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_TableSnapshot_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_TableSnapshot_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_TableSnapshot_ColumnFamilyRevision_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\nistorage-handlers/hbase/src/protobuf/or" +
+ "g/apache/hive/hcatalog/hbase/snapshot/Re" +
+ "visionManagerEndpoint.proto\"A\n\022CreateTab" +
+ "leRequest\022\022\n\ntable_name\030\001 \002(\t\022\027\n\017column_" +
+ "families\030\002 \003(\t\"\025\n\023CreateTableResponse\"&\n" +
+ "\020DropTableRequest\022\022\n\ntable_name\030\001 \002(\t\"\023\n" +
+ "\021DropTableResponse\"_\n\034BeginWriteTransact" +
+ "ionRequest\022\022\n\ntable_name\030\001 \002(\t\022\022\n\nkeep_a" +
+ "live\030\002 \001(\003\022\027\n\017column_families\030\003 \003(\t\"B\n\035B" +
+ "eginWriteTransactionResponse\022!\n\013transact",
+ "ion\030\001 \002(\0132\014.Transaction\"B\n\035CommitWriteTr" +
+ "ansactionRequest\022!\n\013transaction\030\001 \002(\0132\014." +
+ "Transaction\" \n\036CommitWriteTransactionRes" +
+ "ponse\"A\n\034AbortWriteTransactionRequest\022!\n" +
+ "\013transaction\030\001 \002(\0132\014.Transaction\"\037\n\035Abor" +
+ "tWriteTransactionResponse\"O\n\"GetAbortedW" +
+ "riteTransactionsRequest\022\022\n\ntable_name\030\001 " +
+ "\002(\t\022\025\n\rcolumn_family\030\002 \002(\t\"P\n#GetAborted" +
+ "WriteTransactionsResponse\022)\n\020family_revi" +
+ "sions\030\001 \003(\0132\017.FamilyRevision\"=\n\025CreateSn",
+ "apshotRequest\022\022\n\ntable_name\030\001 \002(\t\022\020\n\010rev" +
+ "ision\030\002 \001(\003\"@\n\026CreateSnapshotResponse\022&\n" +
+ "\016table_snapshot\030\001 \002(\0132\016.TableSnapshot\"@\n" +
+ "\033KeepAliveTransactionRequest\022!\n\013transact" +
+ "ion\030\001 \002(\0132\014.Transaction\"\036\n\034KeepAliveTran" +
+ "sactionResponse\"5\n\016FamilyRevision\022\020\n\010rev" +
+ "ision\030\001 \002(\003\022\021\n\ttimestamp\030\002 \002(\003\"t\n\013Transa" +
+ "ction\022\022\n\ntable_name\030\001 \002(\t\022\022\n\ntime_stamp\030" +
+ "\002 \002(\003\022\022\n\nkeep_alive\030\003 \002(\003\022\020\n\010revision\030\004 " +
+ "\002(\003\022\027\n\017column_families\030\005 \003(\t\"\265\001\n\rTableSn",
+ "apshot\022\022\n\ntable_name\030\001 \002(\t\022\027\n\017latest_rev" +
+ "ision\030\002 \002(\003\022C\n\026column_family_revision\030\003 " +
+ "\003(\0132#.TableSnapshot.ColumnFamilyRevision" +
+ "\0322\n\024ColumnFamilyRevision\022\013\n\003key\030\001 \002(\t\022\r\n" +
+ "\005value\030\002 \002(\0032\233\005\n\036RevisionManagerEndpoint" +
+ "Service\0228\n\013createTable\022\023.CreateTableRequ" +
+ "est\032\024.CreateTableResponse\0222\n\tdropTable\022\021" +
+ ".DropTableRequest\032\022.DropTableResponse\022V\n" +
+ "\025beginWriteTransaction\022\035.BeginWriteTrans" +
+ "actionRequest\032\036.BeginWriteTransactionRes",
+ "ponse\022Y\n\026commitWriteTransaction\022\036.Commit" +
+ "WriteTransactionRequest\032\037.CommitWriteTra" +
+ "nsactionResponse\022V\n\025abortWriteTransactio" +
+ "n\022\035.AbortWriteTransactionRequest\032\036.Abort" +
+ "WriteTransactionResponse\022h\n\033getAbortedWr" +
+ "iteTransactions\022#.GetAbortedWriteTransac" +
+ "tionsRequest\032$.GetAbortedWriteTransactio" +
+ "nsResponse\022A\n\016createSnapshot\022\026.CreateSna" +
+ "pshotRequest\032\027.CreateSnapshotResponse\022S\n" +
+ "\024keepAliveTransaction\022\034.KeepAliveTransac",
+ "tionRequest\032\035.KeepAliveTransactionRespon" +
+ "seBN\n\'org.apache.hive.hcatalog.hbase.sna" +
+ "pshotB\035RevisionManagerEndpointProtos\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_CreateTableRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_CreateTableRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_CreateTableRequest_descriptor,
+ new java.lang.String[] { "TableName", "ColumnFamilies", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.Builder.class);
+ internal_static_CreateTableResponse_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_CreateTableResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_CreateTableResponse_descriptor,
+ new java.lang.String[] { },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.Builder.class);
+ internal_static_DropTableRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_DropTableRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_DropTableRequest_descriptor,
+ new java.lang.String[] { "TableName", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.Builder.class);
+ internal_static_DropTableResponse_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_DropTableResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_DropTableResponse_descriptor,
+ new java.lang.String[] { },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.Builder.class);
+ internal_static_BeginWriteTransactionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_BeginWriteTransactionRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_BeginWriteTransactionRequest_descriptor,
+ new java.lang.String[] { "TableName", "KeepAlive", "ColumnFamilies", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.Builder.class);
+ internal_static_BeginWriteTransactionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_BeginWriteTransactionResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_BeginWriteTransactionResponse_descriptor,
+ new java.lang.String[] { "Transaction", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.Builder.class);
+ internal_static_CommitWriteTransactionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_CommitWriteTransactionRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_CommitWriteTransactionRequest_descriptor,
+ new java.lang.String[] { "Transaction", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.Builder.class);
+ internal_static_CommitWriteTransactionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_CommitWriteTransactionResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_CommitWriteTransactionResponse_descriptor,
+ new java.lang.String[] { },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.Builder.class);
+ internal_static_AbortWriteTransactionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_AbortWriteTransactionRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_AbortWriteTransactionRequest_descriptor,
+ new java.lang.String[] { "Transaction", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.Builder.class);
+ internal_static_AbortWriteTransactionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_AbortWriteTransactionResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_AbortWriteTransactionResponse_descriptor,
+ new java.lang.String[] { },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.Builder.class);
+ internal_static_GetAbortedWriteTransactionsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_GetAbortedWriteTransactionsRequest_descriptor,
+ new java.lang.String[] { "TableName", "ColumnFamily", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.Builder.class);
+ internal_static_GetAbortedWriteTransactionsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_GetAbortedWriteTransactionsResponse_descriptor,
+ new java.lang.String[] { "FamilyRevisions", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.Builder.class);
+ internal_static_CreateSnapshotRequest_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_CreateSnapshotRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_CreateSnapshotRequest_descriptor,
+ new java.lang.String[] { "TableName", "Revision", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.Builder.class);
+ internal_static_CreateSnapshotResponse_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_CreateSnapshotResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_CreateSnapshotResponse_descriptor,
+ new java.lang.String[] { "TableSnapshot", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.Builder.class);
+ internal_static_KeepAliveTransactionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_KeepAliveTransactionRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_KeepAliveTransactionRequest_descriptor,
+ new java.lang.String[] { "Transaction", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.Builder.class);
+ internal_static_KeepAliveTransactionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_KeepAliveTransactionResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_KeepAliveTransactionResponse_descriptor,
+ new java.lang.String[] { },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.Builder.class);
+ internal_static_FamilyRevision_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_FamilyRevision_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_FamilyRevision_descriptor,
+ new java.lang.String[] { "Revision", "Timestamp", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder.class);
+ internal_static_Transaction_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_Transaction_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Transaction_descriptor,
+ new java.lang.String[] { "TableName", "TimeStamp", "KeepAlive", "Revision", "ColumnFamilies", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder.class);
+ internal_static_TableSnapshot_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_TableSnapshot_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_TableSnapshot_descriptor,
+ new java.lang.String[] { "TableName", "LatestRevision", "ColumnFamilyRevision", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder.class);
+ internal_static_TableSnapshot_ColumnFamilyRevision_descriptor =
+ internal_static_TableSnapshot_descriptor.getNestedTypes().get(0);
+ internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_TableSnapshot_ColumnFamilyRevision_descriptor,
+ new java.lang.String[] { "Key", "Value", },
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.class,
+ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder.class);
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseBulkOutputFormat.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseBulkOutputFormat.java
index 4a188e0..9714c32 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseBulkOutputFormat.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseBulkOutputFormat.java
@@ -25,6 +25,7 @@
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
+import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
@@ -111,8 +112,9 @@ public void write(WritableComparable> key, Put value)
Put put = value;
if (outputVersion != null) {
put = new Put(value.getRow(), outputVersion.longValue());
- for (List row : value.getFamilyMap().values()) {
- for (KeyValue el : row) {
+ for (List extends Cell> row : value.getFamilyMap().values()) {
+ for (Cell cell : row) {
+ KeyValue el = (KeyValue)cell;
put.add(el.getFamily(), el.getQualifier(), el.getValue());
}
}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseDirectOutputFormat.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseDirectOutputFormat.java
index b7537d4..1ae5777 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseDirectOutputFormat.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseDirectOutputFormat.java
@@ -23,6 +23,7 @@
import java.util.List;
import org.apache.hadoop.fs.FileSystem;
+import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.mapred.TableOutputFormat;
@@ -87,8 +88,9 @@ public void write(WritableComparable> key, Put value)
Put put = value;
if (outputVersion != null) {
put = new Put(value.getRow(), outputVersion.longValue());
- for (List row : value.getFamilyMap().values()) {
- for (KeyValue el : row) {
+ for (List extends Cell> row : value.getFamilyMap().values()) {
+ for (Cell cell : row) {
+ KeyValue el = (KeyValue)cell;
put.add(el.getFamily(), el.getQualifier(), el.getValue());
}
}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseHCatStorageHandler.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseHCatStorageHandler.java
index 31b7741..1d275e8 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseHCatStorageHandler.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HBaseHCatStorageHandler.java
@@ -33,8 +33,6 @@
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor;
-import org.apache.hadoop.hbase.MasterNotRunningException;
-import org.apache.hadoop.hbase.ZooKeeperConnectionException;
import org.apache.hadoop.hbase.client.HBaseAdmin;
import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.mapred.TableOutputFormat;
@@ -328,12 +326,8 @@ public void preCreateTable(Table tbl) throws MetaException {
RevisionManager rm = HBaseRevisionManagerUtil.getOpenedRevisionManager(hbaseConf);
rm.createTable(tableName, new ArrayList(uniqueColumnFamilies));
- } catch (MasterNotRunningException mnre) {
- throw new MetaException(StringUtils.stringifyException(mnre));
- } catch (IOException ie) {
- throw new MetaException(StringUtils.stringifyException(ie));
- } catch (IllegalArgumentException iae) {
- throw new MetaException(StringUtils.stringifyException(iae));
+ } catch (Exception e) {
+ throw new MetaException(StringUtils.stringifyException(e));
}
}
@@ -391,10 +385,8 @@ private HBaseAdmin getHBaseAdmin() throws MetaException {
admin = new HBaseAdmin(this.getConf());
}
return admin;
- } catch (MasterNotRunningException mnre) {
- throw new MetaException(StringUtils.stringifyException(mnre));
- } catch (ZooKeeperConnectionException zkce) {
- throw new MetaException(StringUtils.stringifyException(zkce));
+ } catch (Exception e) {
+ throw new MetaException(StringUtils.stringifyException(e));
}
}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HbaseSnapshotRecordReader.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HbaseSnapshotRecordReader.java
index 6f18846..2156151 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HbaseSnapshotRecordReader.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/HbaseSnapshotRecordReader.java
@@ -35,8 +35,6 @@
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
import org.apache.hadoop.hbase.util.Bytes;
-import org.apache.hadoop.io.DataInputBuffer;
-import org.apache.hadoop.io.DataOutputBuffer;
import org.apache.hadoop.mapred.RecordReader;
import org.apache.hcatalog.common.HCatUtil;
import org.apache.hcatalog.hbase.snapshot.FamilyRevision;
@@ -62,8 +60,6 @@
private TableSnapshot snapshot;
private Iterator resultItr;
private Set allAbortedTransactions;
- private DataOutputBuffer valueOut = new DataOutputBuffer();
- private DataInputBuffer valueIn = new DataInputBuffer();
HbaseSnapshotRecordReader(InputJobInfo inputJobInfo, Configuration conf) throws IOException {
this.inpJobInfo = inputJobInfo;
@@ -182,10 +178,7 @@ public boolean next(ImmutableBytesWritable key, Result value) throws IOException
// Update key and value. Currently no way to avoid serialization/de-serialization
// as no setters are available.
key.set(hbaseRow.getRow());
- valueOut.reset();
- hbaseRow.write(valueOut);
- valueIn.reset(valueOut.getData(), valueOut.getLength());
- value.readFields(valueIn);
+ value.copyFrom(hbaseRow);
return true;
}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/ImportSequenceFile.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/ImportSequenceFile.java
index 72c50ec..fffa380 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/ImportSequenceFile.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/ImportSequenceFile.java
@@ -25,7 +25,6 @@
import org.apache.hadoop.hbase.mapreduce.HFileOutputFormat;
import org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles;
import org.apache.hadoop.hbase.mapreduce.PutSortReducer;
-import org.apache.hadoop.hbase.mapreduce.hadoopbackport.TotalOrderPartitioner;
import java.io.IOException;
import java.net.URI;
@@ -46,10 +45,11 @@
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
+import org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import static org.apache.hadoop.hbase.mapreduce.hadoopbackport.TotalOrderPartitioner.DEFAULT_PATH;
+
/**
@@ -176,7 +176,7 @@ private static Job createSubmittableJob(Configuration conf, String tableName, Pa
if (localMode) {
String partitionFile = null;
for (URI uri : DistributedCache.getCacheFiles(job.getConfiguration())) {
- if (DEFAULT_PATH.equals(uri.getFragment())) {
+ if (TotalOrderPartitioner.DEFAULT_PATH.equals(uri.getFragment())) {
partitionFile = uri.toString();
break;
}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RPCConverter.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RPCConverter.java
new file mode 100644
index 0000000..b3ea2d4
--- /dev/null
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RPCConverter.java
@@ -0,0 +1,74 @@
+/**
+ * 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.hcatalog.hbase.snapshot;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos;
+
+public class RPCConverter {
+
+ List convertFamilyRevisions(List revisions) {
+ List result = new ArrayList();
+ for(RevisionManagerEndpointProtos.FamilyRevision revision : revisions) {
+ result.add(new FamilyRevision(revision.getRevision(), revision.getTimestamp()));
+ }
+ return result;
+ }
+ RevisionManagerEndpointProtos.TableSnapshot convertTableSnapshot(TableSnapshot tableSnapshot) {
+ RevisionManagerEndpointProtos.TableSnapshot.Builder builder =
+ RevisionManagerEndpointProtos.TableSnapshot.newBuilder()
+ .setTableName(tableSnapshot.getTableName())
+ .setLatestRevision(tableSnapshot.getLatestRevision());
+ Map cfRevisionMap = tableSnapshot.getColumnFamilyRevisionMap();
+ for(Map.Entry entry : cfRevisionMap.entrySet()) {
+ builder.addColumnFamilyRevision(RevisionManagerEndpointProtos.TableSnapshot.
+ ColumnFamilyRevision.newBuilder()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue()).build());
+ }
+ return builder.build();
+ }
+
+ TableSnapshot convertTableSnapshot(RevisionManagerEndpointProtos.TableSnapshot tableSnapshot) {
+ Map columnFamilyRevisions = new HashMap();
+ for(RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision rev : tableSnapshot.getColumnFamilyRevisionList()) {
+ columnFamilyRevisions.put(rev.getKey(), rev.getValue());
+ }
+ return new TableSnapshot(tableSnapshot.getTableName(), columnFamilyRevisions, tableSnapshot.getLatestRevision());
+ }
+
+ RevisionManagerEndpointProtos.Transaction convertTransaction(Transaction transaction) {
+ return RevisionManagerEndpointProtos.Transaction.newBuilder()
+ .setTableName(transaction.getTableName())
+ .addAllColumnFamilies(transaction.getColumnFamilies())
+ .setRevision(transaction.getRevisionNumber())
+ .setTimeStamp(transaction.getTimeStamp())
+ .setKeepAlive(transaction.getKeepAliveValue())
+ .build();
+ }
+ Transaction convertTransaction(RevisionManagerEndpointProtos.Transaction transaction) {
+ Transaction result = new Transaction(transaction.getTableName(), transaction.getColumnFamiliesList(), transaction.getRevision(), transaction.getTimeStamp());
+ result.setKeepAlive(transaction.getKeepAlive());
+ return result;
+ }
+}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManager.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManager.java
index 4a6f842..856ec8d 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManager.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManager.java
@@ -86,7 +86,7 @@ public Transaction beginWriteTransaction(String table, List families)
* @throws IOException
*/
public Transaction beginWriteTransaction(String table,
- List families, long keepAlive) throws IOException;
+ List families, Long keepAlive) throws IOException;
/**
* Commit the write transaction.
@@ -134,7 +134,7 @@ public void abortWriteTransaction(Transaction transaction)
* @return a new snapshot
* @throws IOException
*/
- public TableSnapshot createSnapshot(String tableName, long revision)
+ public TableSnapshot createSnapshot(String tableName, Long revision)
throws IOException;
/**
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerEndpoint.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerEndpoint.java
index 49d9ad1..05afe96 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerEndpoint.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerEndpoint.java
@@ -19,14 +19,36 @@
package org.apache.hcatalog.hbase.snapshot;
import java.io.IOException;
-import java.util.List;
import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.Coprocessor;
import org.apache.hadoop.hbase.CoprocessorEnvironment;
-import org.apache.hadoop.hbase.coprocessor.BaseEndpointCoprocessor;
+import org.apache.hadoop.hbase.coprocessor.CoprocessorService;
+import org.apache.hadoop.hbase.protobuf.ResponseConverter;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.RevisionManagerEndpointService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import com.google.protobuf.RpcCallback;
+import com.google.protobuf.RpcController;
+import com.google.protobuf.Service;
+
/**
* Implementation of RevisionManager as HBase RPC endpoint. This class will control the lifecycle of
* and delegate to the actual RevisionManager implementation and make it available as a service
@@ -34,16 +56,16 @@
* In the case of {@link ZKBasedRevisionManager} now only the region servers need write access to
* manage revision data.
*/
-public class RevisionManagerEndpoint extends BaseEndpointCoprocessor implements RevisionManagerProtocol {
+public class RevisionManagerEndpoint extends RevisionManagerEndpointService implements Coprocessor, CoprocessorService {
private static final Logger LOGGER =
LoggerFactory.getLogger(RevisionManagerEndpoint.class.getName());
private RevisionManager rmImpl = null;
+ private RPCConverter rpcConverter = new RPCConverter();
@Override
public void start(CoprocessorEnvironment env) {
- super.start(env);
try {
Configuration conf = RevisionManagerConfiguration.create(env.getConfiguration());
String className = conf.get(RMConstants.REVISION_MGR_ENDPOINT_IMPL_CLASS,
@@ -57,85 +79,139 @@ public void start(CoprocessorEnvironment env) {
@Override
public void stop(CoprocessorEnvironment env) {
- if (rmImpl != null) {
- try {
+ try {
+ if (rmImpl != null) {
rmImpl.close();
- } catch (IOException e) {
- LOGGER.warn("Error closing revision manager.", e);
}
+ } catch (IOException e) {
+ LOGGER.warn("Error closing revision manager.", e);
}
- super.stop(env);
}
@Override
- public void initialize(Configuration conf) {
- // do nothing, HBase controls life cycle
+ public Service getService() {
+ return this;
}
@Override
- public void open() throws IOException {
- // do nothing, HBase controls life cycle
- }
-
- @Override
- public void close() throws IOException {
- // do nothing, HBase controls life cycle
- }
-
- @Override
- public void createTable(String table, List columnFamilies) throws IOException {
- rmImpl.createTable(table, columnFamilies);
- }
-
- @Override
- public void dropTable(String table) throws IOException {
- rmImpl.dropTable(table);
- }
-
- @Override
- public Transaction beginWriteTransaction(String table, List families)
- throws IOException {
- return rmImpl.beginWriteTransaction(table, families);
+ public void createTable(RpcController controller,
+ CreateTableRequest request, RpcCallback done) {
+ if(rmImpl != null) {
+ try {
+ rmImpl.createTable(request.getTableName(), request.getColumnFamiliesList());
+ done.run(CreateTableResponse.newBuilder().build());
+ } catch(IOException e) {
+ ResponseConverter.setControllerException(controller, e);
+ }
+ }
}
@Override
- public Transaction beginWriteTransaction(String table,
- List families, long keepAlive) throws IOException {
- return rmImpl.beginWriteTransaction(table, families, keepAlive);
+ public void dropTable(RpcController controller, DropTableRequest request,
+ RpcCallback done) {
+ if(rmImpl != null) {
+ try {
+ rmImpl.dropTable(request.getTableName());
+ done.run(DropTableResponse.newBuilder().build());
+ } catch(IOException e) {
+ ResponseConverter.setControllerException(controller, e);
+ }
+ }
}
@Override
- public void commitWriteTransaction(Transaction transaction)
- throws IOException {
- rmImpl.commitWriteTransaction(transaction);
+ public void beginWriteTransaction(RpcController controller,
+ BeginWriteTransactionRequest request,
+ RpcCallback done) {
+ if(rmImpl != null) {
+ try {
+ Transaction transaction;
+ if(request.hasKeepAlive()) {
+ transaction = rmImpl.beginWriteTransaction(request.getTableName(), request.getColumnFamiliesList(),
+ request.getKeepAlive());
+ } else {
+ transaction = rmImpl.beginWriteTransaction(request.getTableName(), request.getColumnFamiliesList());
+ }
+ done.run(BeginWriteTransactionResponse.newBuilder()
+ .setTransaction(rpcConverter.convertTransaction(transaction)).build());
+ } catch(IOException e) {
+ ResponseConverter.setControllerException(controller, e);
+ }
+ }
}
@Override
- public void abortWriteTransaction(Transaction transaction)
- throws IOException {
- rmImpl.abortWriteTransaction(transaction);
+ public void commitWriteTransaction(RpcController controller,
+ CommitWriteTransactionRequest request,
+ RpcCallback done) {
+ if(rmImpl != null) {
+ try {
+ rmImpl.commitWriteTransaction(rpcConverter.convertTransaction(request.getTransaction()));
+ done.run(CommitWriteTransactionResponse.newBuilder().build());
+ } catch(IOException e) {
+ ResponseConverter.setControllerException(controller, e);
+ }
+ }
}
@Override
- public TableSnapshot createSnapshot(String tableName) throws IOException {
- return rmImpl.createSnapshot(tableName);
+ public void abortWriteTransaction(RpcController controller,
+ AbortWriteTransactionRequest request,
+ RpcCallback done) {
+ if(rmImpl != null) {
+ try {
+ rmImpl.abortWriteTransaction(rpcConverter.convertTransaction(request.getTransaction()));
+ done.run(AbortWriteTransactionResponse.newBuilder().build());
+ } catch(IOException e) {
+ ResponseConverter.setControllerException(controller, e);
+ }
+ }
}
@Override
- public TableSnapshot createSnapshot(String tableName, long revision)
- throws IOException {
- return rmImpl.createSnapshot(tableName, revision);
+ public void getAbortedWriteTransactions(RpcController controller,
+ GetAbortedWriteTransactionsRequest request,
+ RpcCallback done) {
+ if(rmImpl != null) {
+ try {
+ rmImpl.getAbortedWriteTransactions(request.getTableName(), request.getColumnFamily());
+ done.run(GetAbortedWriteTransactionsResponse.newBuilder().build());
+ } catch(IOException e) {
+ ResponseConverter.setControllerException(controller, e);
+ }
+ }
}
@Override
- public void keepAlive(Transaction transaction) throws IOException {
- rmImpl.keepAlive(transaction);
+ public void createSnapshot(RpcController controller,
+ CreateSnapshotRequest request, RpcCallback done) {
+ if(rmImpl != null) {
+ try {
+ TableSnapshot snapshot;
+ if(request.hasRevision()) {
+ snapshot = rmImpl.createSnapshot(request.getTableName(), request.getRevision());
+ } else {
+ snapshot = rmImpl.createSnapshot(request.getTableName());
+ }
+ done.run(CreateSnapshotResponse.newBuilder()
+ .setTableSnapshot(rpcConverter.convertTableSnapshot(snapshot)).build());
+ } catch(IOException e) {
+ ResponseConverter.setControllerException(controller, e);
+ }
+ }
}
@Override
- public List getAbortedWriteTransactions(String table,
- String columnFamily) throws IOException {
- return rmImpl.getAbortedWriteTransactions(table, columnFamily);
- }
-
+ public void keepAliveTransaction(RpcController controller,
+ KeepAliveTransactionRequest request,
+ RpcCallback done) {
+ if(rmImpl != null) {
+ try {
+ rmImpl.keepAlive(rpcConverter.convertTransaction(request.getTransaction()));
+ done.run(KeepAliveTransactionResponse.newBuilder().build());
+ } catch(IOException e) {
+ ResponseConverter.setControllerException(controller, e);
+ }
+ }
+ }
}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerEndpointClient.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerEndpointClient.java
index c6ee50e..d918888 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerEndpointClient.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerEndpointClient.java
@@ -21,12 +21,32 @@
import java.io.IOException;
import java.util.List;
+import java.util.Map;
import org.apache.hadoop.conf.Configurable;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.client.HTable;
-import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.hadoop.hbase.client.coprocessor.Batch;
+import org.apache.hadoop.hbase.ipc.BlockingRpcCallback;
+import org.apache.hadoop.hbase.ipc.ServerRpcController;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse;
+import org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.RevisionManagerEndpointService;
/**
* This class is nothing but a delegate for the enclosed proxy,
@@ -34,17 +54,18 @@
*/
public class RevisionManagerEndpointClient implements RevisionManager, Configurable {
- private Configuration conf = null;
- private RevisionManager rmProxy;
-
+ private final RPCConverter rpcConverter = new RPCConverter();
+ private Configuration conf;
+ private HTable htable;
+
@Override
public Configuration getConf() {
- return this.conf;
+ return conf;
}
@Override
- public void setConf(Configuration arg0) {
- this.conf = arg0;
+ public void setConf(Configuration conf) {
+ this.conf = conf;
}
@Override
@@ -56,70 +77,206 @@ public void initialize(Configuration conf) {
public void open() throws IOException {
// clone to adjust RPC settings unique to proxy
Configuration clonedConf = new Configuration(conf);
- // conf.set("hbase.ipc.client.connect.max.retries", "0");
- // conf.setInt(HConstants.HBASE_CLIENT_RPC_MAXATTEMPTS, 1);
clonedConf.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 1); // do not retry RPC
- HTable table = new HTable(clonedConf, HConstants.ROOT_TABLE_NAME);
- rmProxy = table.coprocessorProxy(RevisionManagerProtocol.class,
- Bytes.toBytes("anyRow"));
- rmProxy.open();
+ htable = new HTable(clonedConf, HConstants.ROOT_TABLE_NAME);
}
@Override
public void close() throws IOException {
- rmProxy.close();
+ htable.close();
}
@Override
- public void createTable(String table, List columnFamilies) throws IOException {
- rmProxy.createTable(table, columnFamilies);
+ public void createTable(final String table, final List columnFamilies) throws IOException {
+ call(new Batch.Call() {
+ @Override
+ public Void call(RevisionManagerEndpointService service)
+ throws IOException {
+ ServerRpcController controller = new ServerRpcController();
+ BlockingRpcCallback done =
+ new BlockingRpcCallback();
+ CreateTableRequest request = CreateTableRequest.newBuilder()
+ .setTableName(table).addAllColumnFamilies(columnFamilies).build();
+ service.createTable(controller, request, done);
+ blockOnResponse(done, controller);
+ return null;
+ }
+ });
}
@Override
- public void dropTable(String table) throws IOException {
- rmProxy.dropTable(table);
+ public void dropTable(final String table) throws IOException {
+ call(new Batch.Call() {
+ @Override
+ public Void call(RevisionManagerEndpointService service)
+ throws IOException {
+ ServerRpcController controller = new ServerRpcController();
+ BlockingRpcCallback done =
+ new BlockingRpcCallback();
+ DropTableRequest request = DropTableRequest.newBuilder()
+ .setTableName(table).build();
+ service.dropTable(null, request, done);
+ blockOnResponse(done, controller);
+ return null;
+ }
+ });
}
@Override
- public Transaction beginWriteTransaction(String table, List families) throws IOException {
- return rmProxy.beginWriteTransaction(table, families);
+ public Transaction beginWriteTransaction(final String table, final List families) throws IOException {
+ return beginWriteTransaction(table, families, null);
}
@Override
- public Transaction beginWriteTransaction(String table, List families, long keepAlive)
+ public Transaction beginWriteTransaction(final String table, final List families, final Long keepAlive)
throws IOException {
- return rmProxy.beginWriteTransaction(table, families, keepAlive);
+ return call(new Batch.Call() {
+ @Override
+ public Transaction call(RevisionManagerEndpointService service)
+ throws IOException {
+ ServerRpcController controller = new ServerRpcController();
+ BlockingRpcCallback done =
+ new BlockingRpcCallback();
+ BeginWriteTransactionRequest.Builder builder = BeginWriteTransactionRequest.newBuilder()
+ .setTableName(table)
+ .addAllColumnFamilies(families);
+ if(keepAlive != null) {
+ builder.setKeepAlive(keepAlive);
+ }
+ service.beginWriteTransaction(controller, builder.build(), done);
+ return rpcConverter.convertTransaction(blockOnResponse(done, controller).getTransaction());
+ }
+ });
}
@Override
- public void commitWriteTransaction(Transaction transaction) throws IOException {
- rmProxy.commitWriteTransaction(transaction);
+ public void commitWriteTransaction(final Transaction transaction) throws IOException {
+ call(new Batch.Call() {
+ @Override
+ public Void call(RevisionManagerEndpointService service)
+ throws IOException {
+ ServerRpcController controller = new ServerRpcController();
+ BlockingRpcCallback done =
+ new BlockingRpcCallback();
+ CommitWriteTransactionRequest request = CommitWriteTransactionRequest.newBuilder()
+ .setTransaction(rpcConverter.convertTransaction(transaction)).build();
+ service.commitWriteTransaction(controller, request, done);
+ blockOnResponse(done, controller);
+ return null;
+ }
+ });
}
@Override
- public void abortWriteTransaction(Transaction transaction) throws IOException {
- rmProxy.abortWriteTransaction(transaction);
+ public void abortWriteTransaction(final Transaction transaction) throws IOException {
+ call(new Batch.Call() {
+ @Override
+ public Void call(RevisionManagerEndpointService service)
+ throws IOException {
+ ServerRpcController controller = new ServerRpcController();
+ BlockingRpcCallback done =
+ new BlockingRpcCallback();
+ AbortWriteTransactionRequest request = AbortWriteTransactionRequest.newBuilder()
+ .setTransaction(rpcConverter.convertTransaction(transaction)).build();
+ service.abortWriteTransaction(controller, request, done);
+ blockOnResponse(done, controller);
+ return null;
+ }
+ });
}
@Override
- public List getAbortedWriteTransactions(String table, String columnFamily)
+ public List getAbortedWriteTransactions(final String table, final String columnFamily)
throws IOException {
- return rmProxy.getAbortedWriteTransactions(table, columnFamily);
+ return call(new Batch.Call>() {
+ @Override
+ public List call(RevisionManagerEndpointService service)
+ throws IOException {
+ ServerRpcController controller = new ServerRpcController();
+ BlockingRpcCallback done =
+ new BlockingRpcCallback();
+ GetAbortedWriteTransactionsRequest request = GetAbortedWriteTransactionsRequest.newBuilder()
+ .setTableName(table)
+ .setColumnFamily(columnFamily)
+ .build();
+ service.getAbortedWriteTransactions(controller, request, done);
+ return rpcConverter.convertFamilyRevisions(blockOnResponse(done, controller).getFamilyRevisionsList());
+ }
+ });
}
@Override
public TableSnapshot createSnapshot(String tableName) throws IOException {
- return rmProxy.createSnapshot(tableName);
+ return createSnapshot(tableName, null);
}
@Override
- public TableSnapshot createSnapshot(String tableName, long revision) throws IOException {
- return rmProxy.createSnapshot(tableName, revision);
+ public TableSnapshot createSnapshot(final String tableName, final Long revision) throws IOException {
+ return call(new Batch.Call() {
+ @Override
+ public TableSnapshot call(RevisionManagerEndpointService service)
+ throws IOException {
+ ServerRpcController controller = new ServerRpcController();
+ BlockingRpcCallback done =
+ new BlockingRpcCallback();
+ CreateSnapshotRequest.Builder builder = CreateSnapshotRequest.newBuilder()
+ .setTableName(tableName);
+ if(revision != null) {
+ builder.setRevision(revision);
+ }
+ service.createSnapshot(controller, builder.build(), done);
+ return rpcConverter.convertTableSnapshot(blockOnResponse(done, controller).getTableSnapshot());
+ }
+ });
}
@Override
- public void keepAlive(Transaction transaction) throws IOException {
- rmProxy.keepAlive(transaction);
+ public void keepAlive(final Transaction transaction) throws IOException {
+ call(new Batch.Call() {
+ @Override
+ public Void call(RevisionManagerEndpointService service)
+ throws IOException {
+ ServerRpcController controller = new ServerRpcController();
+ BlockingRpcCallback done =
+ new BlockingRpcCallback();
+ KeepAliveTransactionRequest request = KeepAliveTransactionRequest.newBuilder()
+ .setTransaction(rpcConverter.convertTransaction(transaction)).build();
+ service.keepAliveTransaction(controller, request, done);
+ blockOnResponse(done, controller);
+ return null;
+ }
+ });
+ }
+ private R blockOnResponse(BlockingRpcCallback done, ServerRpcController controller)
+ throws IOException {
+ R response = done.get();
+ if(controller.failedOnException()) {
+ throw controller.getFailedOn();
+ }
+ if(controller.failed()) {
+ String error = controller.errorText();
+ if(error == null) {
+ error = "Server indicated failure but error text was empty";
+ }
+ throw new RuntimeException(error);
+ }
+ return response;
+ }
+ private R call(Batch.Call callable) throws IOException {
+ try {
+ Map result = htable.coprocessorService(RevisionManagerEndpointService.class, null, null, callable);
+ if(result.isEmpty()) {
+ return null;
+ }
+ return result.values().iterator().next();
+ } catch(IOException e) {
+ throw (IOException)e;
+ } catch(RuntimeException e) {
+ throw (RuntimeException)e;
+ } catch(Error e) {
+ throw (Error)e;
+ } catch(Throwable throwable) {
+ throw new RuntimeException(throwable);
+ }
}
-
}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerProtocol.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerProtocol.java
deleted file mode 100644
index 4cbde74..0000000
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/RevisionManagerProtocol.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * 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.hcatalog.hbase.snapshot;
-
-import org.apache.hadoop.hbase.ipc.CoprocessorProtocol;
-
-/**
- * Interface marker to implement RevisionManager as Coprocessor.
- * (needs to extend CoprocessorProtocol)
- */
-public interface RevisionManagerProtocol extends RevisionManager,
- CoprocessorProtocol {
-
-}
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/TableSnapshot.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/TableSnapshot.java
index fa94157..91085ae 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/TableSnapshot.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/TableSnapshot.java
@@ -61,7 +61,12 @@ public String getTableName() {
public List getColumnFamilies(){
return new ArrayList(this.cfRevisionMap.keySet());
}
-
+ /**
+ * For wire serialization only
+ */
+ Map getColumnFamilyRevisionMap() {
+ return cfRevisionMap;
+ }
/**
* Gets the revision.
*
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/Transaction.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/Transaction.java
index 1d17ca5..6fa5a66 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/Transaction.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/Transaction.java
@@ -64,6 +64,13 @@ public String getTableName() {
}
/**
+ * For wire serialization only
+ */
+ long getTimeStamp() {
+ return timeStamp;
+ }
+
+ /**
* @return The expire timestamp associated with a transaction.
*/
long getTransactionExpireTimeStamp() {
diff --git a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/ZKBasedRevisionManager.java b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/ZKBasedRevisionManager.java
index f4556d1..4d97107 100644
--- a/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/ZKBasedRevisionManager.java
+++ b/hcatalog/storage-handlers/hbase/src/java/org/apache/hcatalog/hbase/snapshot/ZKBasedRevisionManager.java
@@ -119,7 +119,7 @@ public void dropTable(String table) throws IOException {
* @see org.apache.hcatalog.hbase.snapshot.RevisionManager#beginWriteTransaction(java.lang.String, java.util.List, long)
*/
public Transaction beginWriteTransaction(String table,
- List families, long keepAlive) throws IOException {
+ List families, Long keepAlive) throws IOException {
checkInputParams(table, families);
zkUtil.setUpZnodesForTable(table, families);
@@ -175,7 +175,7 @@ public Transaction beginWriteTransaction(String table,
*/
public Transaction beginWriteTransaction(String table, List families)
throws IOException {
- return beginWriteTransaction(table, families, -1);
+ return beginWriteTransaction(table, families, -1L);
}
/**
@@ -352,7 +352,7 @@ public TableSnapshot createSnapshot(String tableName) throws IOException {
/* @throws IOException
* @see org.apache.hcatalog.hbase.snapshot.RevsionManager#createSnapshot(java.lang.String, long)
*/
- public TableSnapshot createSnapshot(String tableName, long revision) throws IOException {
+ public TableSnapshot createSnapshot(String tableName, Long revision) throws IOException {
long currentID = zkUtil.currentID(tableName);
if (revision > currentID) {
diff --git a/hcatalog/storage-handlers/hbase/src/protobuf/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpoint.proto b/hcatalog/storage-handlers/hbase/src/protobuf/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpoint.proto
new file mode 100644
index 0000000..f74749d
--- /dev/null
+++ b/hcatalog/storage-handlers/hbase/src/protobuf/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpoint.proto
@@ -0,0 +1,105 @@
+/**
+ * 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.
+ */
+option java_package = "org.apache.hive.hcatalog.hbase.snapshot";
+option java_outer_classname = "RevisionManagerEndpointProtos";
+option java_generic_services = true;
+option java_generate_equals_and_hash = true;
+
+message CreateTableRequest {
+ required string table_name = 1;
+ repeated string column_families = 2;
+}
+message CreateTableResponse {}
+
+message DropTableRequest {
+ required string table_name = 1;
+}
+message DropTableResponse {}
+
+message BeginWriteTransactionRequest {
+ required string table_name = 1;
+ optional int64 keep_alive = 2;
+ repeated string column_families = 3;
+}
+message BeginWriteTransactionResponse {
+ required Transaction transaction = 1;
+}
+
+message CommitWriteTransactionRequest {
+ required Transaction transaction = 1;
+}
+message CommitWriteTransactionResponse {}
+
+message AbortWriteTransactionRequest {
+ required Transaction transaction = 1;
+}
+message AbortWriteTransactionResponse {}
+
+message GetAbortedWriteTransactionsRequest {
+ required string table_name = 1;
+ required string column_family = 2;
+}
+message GetAbortedWriteTransactionsResponse {
+ repeated FamilyRevision family_revisions = 1;
+}
+
+message CreateSnapshotRequest {
+ required string table_name = 1;
+ optional int64 revision = 2;
+}
+message CreateSnapshotResponse {
+ required TableSnapshot table_snapshot = 1;
+}
+
+message KeepAliveTransactionRequest {
+ required Transaction transaction = 1;
+}
+message KeepAliveTransactionResponse{}
+
+message FamilyRevision {
+ required int64 revision = 1;
+ required int64 timestamp = 2;
+}
+message Transaction {
+ required string table_name = 1;
+ required int64 time_stamp = 2;
+ required int64 keep_alive = 3;
+ required int64 revision = 4;
+ repeated string column_families = 5;
+}
+message TableSnapshot {
+ required string table_name = 1;
+ required int64 latest_revision = 2;
+ message ColumnFamilyRevision {
+ required string key = 1;
+ required int64 value = 2;
+ }
+ repeated ColumnFamilyRevision column_family_revision = 3;
+}
+
+service RevisionManagerEndpointService {
+ rpc createTable(CreateTableRequest) returns(CreateTableResponse);
+ rpc dropTable(DropTableRequest) returns(DropTableResponse);
+ rpc beginWriteTransaction(BeginWriteTransactionRequest) returns(BeginWriteTransactionResponse);
+ rpc commitWriteTransaction(CommitWriteTransactionRequest) returns(CommitWriteTransactionResponse);
+ rpc abortWriteTransaction(AbortWriteTransactionRequest) returns(AbortWriteTransactionResponse);
+ rpc getAbortedWriteTransactions(GetAbortedWriteTransactionsRequest) returns(GetAbortedWriteTransactionsResponse);
+ rpc createSnapshot(CreateSnapshotRequest) returns(CreateSnapshotResponse);
+ rpc keepAliveTransaction(KeepAliveTransactionRequest) returns (KeepAliveTransactionResponse);
+}
+
diff --git a/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/ManyMiniCluster.java b/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/ManyMiniCluster.java
index cd14143..d7a5404 100644
--- a/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/ManyMiniCluster.java
+++ b/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/ManyMiniCluster.java
@@ -121,7 +121,7 @@ protected synchronized void start() {
protected synchronized void stop() {
if (hbaseCluster != null) {
- HConnectionManager.deleteAllConnections(true);
+ HConnectionManager.deleteAllConnections();
try {
hbaseCluster.shutdown();
} catch (Exception e) {
diff --git a/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/snapshot/TestRevisionManager.java b/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/snapshot/TestRevisionManager.java
index 114895a..1bcffd3 100644
--- a/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/snapshot/TestRevisionManager.java
+++ b/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/snapshot/TestRevisionManager.java
@@ -204,7 +204,7 @@ public void testKeepAliveTransaction() throws InterruptedException, IOException
String tableName = newTableName("testTable");
List columnFamilies = Arrays.asList("cf1", "cf2");
Transaction txn = manager.beginWriteTransaction(tableName,
- columnFamilies, 40);
+ columnFamilies, 40L);
Thread.sleep(100);
try {
manager.commitWriteTransaction(txn);
diff --git a/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/snapshot/TestRevisionManagerEndpoint.java b/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/snapshot/TestRevisionManagerEndpoint.java
index fe9ca40..b302a05 100644
--- a/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/snapshot/TestRevisionManagerEndpoint.java
+++ b/hcatalog/storage-handlers/hbase/src/test/org/apache/hcatalog/hbase/snapshot/TestRevisionManagerEndpoint.java
@@ -137,7 +137,7 @@ public Transaction beginWriteTransaction(String table,
@Override
public Transaction beginWriteTransaction(String table,
- List families, long keepAlive) throws IOException {
+ List families, Long keepAlive) throws IOException {
return recordCall(null, table, families, keepAlive);
}
@@ -164,7 +164,7 @@ public TableSnapshot createSnapshot(String tableName)
}
@Override
- public TableSnapshot createSnapshot(String tableName, long revision)
+ public TableSnapshot createSnapshot(String tableName, Long revision)
throws IOException {
TableSnapshot ret = new TableSnapshot(tableName, new HashMap(), revision);
return recordCall(ret, tableName, revision);
@@ -198,7 +198,7 @@ public void testRevisionManagerProtocol() throws Throwable {
Assert.assertEquals(call.methodName, call, mockImpl.lastCall);
call = new MockRM.Invocation("createSnapshot", null, "t3", 1L);
- call.ret = rm.createSnapshot("t3", 1);
+ call.ret = rm.createSnapshot("t3", 1L);
Assert.assertEquals(call.methodName, call, mockImpl.lastCall);
}
diff --git a/ivy/libraries.properties b/ivy/libraries.properties
index 0e1b992..f578553 100644
--- a/ivy/libraries.properties
+++ b/ivy/libraries.properties
@@ -44,7 +44,7 @@ commons-logging-api.version=1.0.4
commons-pool.version=1.5.4
derby.version=10.4.2.0
guava.version=11.0.2
-hbase.version=0.94.6.1
+hbase.version=0.95.0
jackson.version=1.8.8
javaewah.version=0.3.2
jdo-api.version=3.0.1
diff --git a/ql/ivy.xml b/ql/ivy.xml
index bfb3116..8d4cd97 100644
--- a/ql/ivy.xml
+++ b/ql/ivy.xml
@@ -34,11 +34,10 @@
conf="test->default" transitive="false"/>
-
-
-
+
+
+