diff --git a/src/java/org/apache/hadoop/hbase/thrift/Hbase.thrift b/src/java/org/apache/hadoop/hbase/thrift/Hbase.thrift index f2c1d00..2844e77 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/Hbase.thrift +++ b/src/java/org/apache/hadoop/hbase/thrift/Hbase.thrift @@ -31,9 +31,10 @@ // used to generate the *.java files checked into the Hbase project. // ---------------------------------------------------------------- -java_package org.apache.hadoop.hbase.thrift.generated -cpp_namespace apache.hadoop.hbase.thrift -ruby_namespace Apache.Hadoop.Hbase.Thrift +namespace java org.apache.hadoop.hbase.thrift.generated +namespace cpp apache.hadoop.hbase.thrift +namespace ruby Apache.Hadoop.Hbase.Thrift +namespace py hbase // note: other language namespaces tbd... // @@ -105,6 +106,15 @@ struct ScanEntry { 2:map columns } + +/** + * A HCell is a timestamps, value pair. + */ +struct HCell { + 1:i64 timestamps + 2:Bytes value +} + // // Exceptions // @@ -234,6 +244,34 @@ service Hbase { throws (1:IOError io, 2:NotFound nf) /** + * Get the specified number of versions for the specified table, + * row, and column. Return cells. + * + * @param tableName name of table + * @param row row key + * @param column column name + * @param numVersions number of versions to retrieve + * @return list of values for specified row/column + */ + list getCells(1:Text tableName, 2:Text row, 3:Text column, 4:i32 numVersions) + throws (1:IOError io, 2:NotFound nf) + + /** + * Get the specified number of versions for the specified table, + * row, and column. Only versions less than or equal to the specified + * timestamp will be returned. Return cells. + * + * @param tableName name of table + * @param row row key + * @param column column name + * @param timestamp timestamp + * @param numVersions number of versions to retrieve + * @return list of values for specified row/column + */ + list getCellsTs(1:Text tableName, 2:Text row, 3:Text column, 4:i64 timestamp, 5:i32 numVersions) + throws (1:IOError io, 2:NotFound nf) + + /** * Get all the data for the specified table and row at the latest * timestamp. * diff --git a/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java b/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java index a8ca10d..91b711e 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java +++ b/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java @@ -23,6 +23,7 @@ import java.nio.charset.MalformedInputException; import java.util.AbstractMap; import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.Map.Entry; @@ -44,6 +45,7 @@ import org.apache.hadoop.hbase.thrift.generated.AlreadyExists; import org.apache.hadoop.hbase.thrift.generated.BatchMutation; import org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor; import org.apache.hadoop.hbase.thrift.generated.Hbase; +import org.apache.hadoop.hbase.thrift.generated.HCell; import org.apache.hadoop.hbase.thrift.generated.IOError; import org.apache.hadoop.hbase.thrift.generated.IllegalArgument; import org.apache.hadoop.hbase.thrift.generated.Mutation; @@ -164,11 +166,11 @@ public class ThriftServer { // used to generate the interface. // - public ArrayList getTableNames() throws IOError { + public List getTableNames() throws IOError { LOG.debug("getTableNames"); try { HTableDescriptor[] tables = this.admin.listTables(); - ArrayList list = new ArrayList(tables.length); + List list = new ArrayList(tables.length); for (int i = 0; i < tables.length; i++) { list.add(tables[i].getName()); } @@ -178,13 +180,13 @@ public class ThriftServer { } } - public ArrayList getTableRegions(byte[] tableName) + public List getTableRegions(byte[] tableName) throws IOError { LOG.debug("getTableRegions: " + new String(tableName)); try { HTable table = getTable(tableName); byte [][] startKeys = table.getStartKeys(); - ArrayList regions = new ArrayList(); + List regions = new ArrayList(); for (int i = 0; i < startKeys.length; i++) { RegionDescriptor region = new RegionDescriptor(); region.startKey = startKeys[i]; @@ -214,7 +216,7 @@ public class ThriftServer { } } - public ArrayList getVer(byte[] tableName, byte[] row, + public List getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound { if (LOG.isDebugEnabled()) { LOG.debug("getVer: table=" + new String(tableName) + ", row=" @@ -228,7 +230,7 @@ public class ThriftServer { if (values == null) { throw new NotFound(); } - ArrayList list = new ArrayList(); + List list = new ArrayList(); for (int i = 0; i < values.length; i++) { list.add(values[i].getValue()); } @@ -238,7 +240,7 @@ public class ThriftServer { } } - public ArrayList getVerTs(byte[] tableName, byte[] row, + public List getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound { if (LOG.isDebugEnabled()) { @@ -253,7 +255,7 @@ public class ThriftServer { if (values == null) { throw new NotFound(); } - ArrayList list = new ArrayList(); + List list = new ArrayList(); for (int i = 0; i < values.length; i++) { list.add(values[i].getValue()); } @@ -262,6 +264,55 @@ public class ThriftServer { throw new IOError(e.getMessage()); } } + + public List getCells(byte[] tableName, byte[] row, + byte[] column, int numVersions) throws IOError, NotFound { + if (LOG.isDebugEnabled()) { + LOG.debug("getCells: table=" + new String(tableName) + ", row=" + + new String(row) + ", col=" + new String(column) + ", numVers=" + + numVersions); + } + try { + HTable table = getTable(tableName); + Cell[] values = + table.get(getText(row), getText(column), numVersions); + if (values == null) { + throw new NotFound(); + } + List list = new ArrayList(); + for (int i = 0; i < values.length; i++) { + list.add(new HCell(values[i].getTimestamp(), values[i].getValue())); + } + return list; + } catch (IOException e) { + throw new IOError(e.getMessage()); + } + } + + public List getCellsTs(byte[] tableName, byte[] row, + byte[] column, long timestamp, int numVersions) throws IOError, + NotFound { + if (LOG.isDebugEnabled()) { + LOG.debug("getCellsTs: table=" + new String(tableName) + ", row=" + + new String(row) + ", col=" + new String(column) + ", ts=" + + timestamp + ", numVers=" + numVersions); + } + try { + HTable table = getTable(tableName); + Cell[] values = table.get(getText(row), + getText(column), timestamp, numVersions); + if (values == null) { + throw new NotFound(); + } + List list = new ArrayList(); + for (int i = 0; i < values.length; i++) { + list.add(new HCell(values[i].getTimestamp(), values[i].getValue())); + } + return list; + } catch (IOException e) { + throw new IOError(e.getMessage()); + } + } public AbstractMap getRow(byte[] tableName, byte[] row) throws IOError { @@ -348,7 +399,7 @@ public class ThriftServer { } public void createTable(byte[] tableName, - ArrayList columnFamilies) throws IOError, + List columnFamilies) throws IOError, IllegalArgument, AlreadyExists { if (LOG.isDebugEnabled()) { LOG.debug("createTable: table=" + new String(tableName)); @@ -390,12 +441,12 @@ public class ThriftServer { } public void mutateRow(byte[] tableName, byte[] row, - ArrayList mutations) throws IOError, IllegalArgument { + List mutations) throws IOError, IllegalArgument { mutateRowTs(tableName, row, mutations, HConstants.LATEST_TIMESTAMP); } public void mutateRowTs(byte[] tableName, byte[] row, - ArrayList mutations, long timestamp) throws IOError, IllegalArgument { + List mutations, long timestamp) throws IOError, IllegalArgument { if (LOG.isDebugEnabled()) { LOG.debug("mutateRowTs: table=" + new String(tableName) + ", row=" + new String(row) + ", ts=" + timestamp + " mutations=" @@ -432,18 +483,18 @@ public class ThriftServer { } - public void mutateRows(byte[] tableName, ArrayList rowBatches) + public void mutateRows(byte[] tableName, List rowBatches) throws IOError, IllegalArgument, TException { mutateRowsTs(tableName, rowBatches, HConstants.LATEST_TIMESTAMP); } - public void mutateRowsTs(byte[] tableName, ArrayList rowBatches, long timestamp) + public void mutateRowsTs(byte[] tableName, List rowBatches, long timestamp) throws IOError, IllegalArgument, TException { - ArrayList batchUpdates = new ArrayList(); + List batchUpdates = new ArrayList(); for (BatchMutation batch : rowBatches) { byte[] row = batch.row; - ArrayList mutations = batch.mutations; + List mutations = batch.mutations; if (LOG.isDebugEnabled()) { LOG.debug("mutateRowTs: table=" + new String(tableName) + ", row=" + new String(row) + ", ts=" + timestamp + " mutations=" @@ -519,7 +570,7 @@ public class ThriftServer { } public int scannerOpen(byte[] tableName, byte[] startRow, - ArrayList columns) throws IOError { + List columns) throws IOError { if (LOG.isDebugEnabled()) { LOG.debug("scannerOpen: table=" + getText(tableName) + ", start=" + getText(startRow) + ", columns=" + columns.toString()); @@ -539,7 +590,7 @@ public class ThriftServer { } public int scannerOpenWithStop(byte[] tableName, byte[] startRow, - byte[] stopRow, ArrayList columns) throws IOError, TException { + byte[] stopRow, List columns) throws IOError, TException { if (LOG.isDebugEnabled()) { LOG.debug("scannerOpen: table=" + getText(tableName) + ", start=" + getText(startRow) + ", stop=" + getText(stopRow) + ", columns=" @@ -560,7 +611,7 @@ public class ThriftServer { } public int scannerOpenTs(byte[] tableName, byte[] startRow, - ArrayList columns, long timestamp) throws IOError, TException { + List columns, long timestamp) throws IOError, TException { if (LOG.isDebugEnabled()) { LOG.debug("scannerOpen: table=" + getText(tableName) + ", start=" + getText(startRow) + ", columns=" + columns.toString() @@ -581,7 +632,7 @@ public class ThriftServer { } public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, - byte[] stopRow, ArrayList columns, long timestamp) + byte[] stopRow, List columns, long timestamp) throws IOError, TException { if (LOG.isDebugEnabled()) { LOG.debug("scannerOpen: table=" + getText(tableName) + ", start=" diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java b/src/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java index c1be39f..2e58ed0 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -40,7 +24,7 @@ public class AlreadyExists extends Exception implements TBase, java.io.Serializa public String message; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean message = false; } @@ -55,6 +39,34 @@ public class AlreadyExists extends Exception implements TBase, java.io.Serializa this.__isset.message = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AlreadyExists) + return this.equals((AlreadyExists)that); + return false; + } + + public boolean equals(AlreadyExists that) { + if (that == null) + return false; + + boolean this_present_message = true && (this.message != null); + boolean that_present_message = true && (that.message != null); + if (this_present_message || that_present_message) { + if (!(this_present_message && that_present_message)) + return false; + if (!this.message.equals(that.message)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java b/src/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java index 5d506bf..a9b296b 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -37,10 +21,10 @@ import com.facebook.thrift.transport.*; */ public class BatchMutation implements TBase, java.io.Serializable { public byte[] row; - public ArrayList mutations; + public List mutations; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean row = false; public boolean mutations = false; } @@ -50,7 +34,7 @@ public class BatchMutation implements TBase, java.io.Serializable { public BatchMutation( byte[] row, - ArrayList mutations) + List mutations) { this(); this.row = row; @@ -59,6 +43,43 @@ public class BatchMutation implements TBase, java.io.Serializable { this.__isset.mutations = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof BatchMutation) + return this.equals((BatchMutation)that); + return false; + } + + public boolean equals(BatchMutation that) { + if (that == null) + return false; + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_mutations = true && (this.mutations != null); + boolean that_present_mutations = true && (that.mutations != null); + if (this_present_mutations || that_present_mutations) { + if (!(this_present_mutations && that_present_mutations)) + return false; + if (!this.mutations.equals(that.mutations)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java b/src/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java index b05740e..38a5e6a 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -50,7 +34,7 @@ public class ColumnDescriptor implements TBase, java.io.Serializable { public int timeToLive; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean name = false; public boolean maxVersions = false; public boolean compression = false; @@ -119,6 +103,115 @@ public class ColumnDescriptor implements TBase, java.io.Serializable { this.__isset.timeToLive = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof ColumnDescriptor) + return this.equals((ColumnDescriptor)that); + return false; + } + + public boolean equals(ColumnDescriptor that) { + if (that == null) + return false; + + boolean this_present_name = true && (this.name != null); + boolean that_present_name = true && (that.name != null); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) + return false; + if (!java.util.Arrays.equals(this.name, that.name)) + return false; + } + + boolean this_present_maxVersions = true; + boolean that_present_maxVersions = true; + if (this_present_maxVersions || that_present_maxVersions) { + if (!(this_present_maxVersions && that_present_maxVersions)) + return false; + if (this.maxVersions != that.maxVersions) + return false; + } + + boolean this_present_compression = true && (this.compression != null); + boolean that_present_compression = true && (that.compression != null); + if (this_present_compression || that_present_compression) { + if (!(this_present_compression && that_present_compression)) + return false; + if (!this.compression.equals(that.compression)) + return false; + } + + boolean this_present_inMemory = true; + boolean that_present_inMemory = true; + if (this_present_inMemory || that_present_inMemory) { + if (!(this_present_inMemory && that_present_inMemory)) + return false; + if (this.inMemory != that.inMemory) + return false; + } + + boolean this_present_maxValueLength = true; + boolean that_present_maxValueLength = true; + if (this_present_maxValueLength || that_present_maxValueLength) { + if (!(this_present_maxValueLength && that_present_maxValueLength)) + return false; + if (this.maxValueLength != that.maxValueLength) + return false; + } + + boolean this_present_bloomFilterType = true && (this.bloomFilterType != null); + boolean that_present_bloomFilterType = true && (that.bloomFilterType != null); + if (this_present_bloomFilterType || that_present_bloomFilterType) { + if (!(this_present_bloomFilterType && that_present_bloomFilterType)) + return false; + if (!this.bloomFilterType.equals(that.bloomFilterType)) + return false; + } + + boolean this_present_bloomFilterVectorSize = true; + boolean that_present_bloomFilterVectorSize = true; + if (this_present_bloomFilterVectorSize || that_present_bloomFilterVectorSize) { + if (!(this_present_bloomFilterVectorSize && that_present_bloomFilterVectorSize)) + return false; + if (this.bloomFilterVectorSize != that.bloomFilterVectorSize) + return false; + } + + boolean this_present_bloomFilterNbHashes = true; + boolean that_present_bloomFilterNbHashes = true; + if (this_present_bloomFilterNbHashes || that_present_bloomFilterNbHashes) { + if (!(this_present_bloomFilterNbHashes && that_present_bloomFilterNbHashes)) + return false; + if (this.bloomFilterNbHashes != that.bloomFilterNbHashes) + return false; + } + + boolean this_present_blockCacheEnabled = true; + boolean that_present_blockCacheEnabled = true; + if (this_present_blockCacheEnabled || that_present_blockCacheEnabled) { + if (!(this_present_blockCacheEnabled && that_present_blockCacheEnabled)) + return false; + if (this.blockCacheEnabled != that.blockCacheEnabled) + return false; + } + + boolean this_present_timeToLive = true; + boolean that_present_timeToLive = true; + if (this_present_timeToLive || that_present_timeToLive) { + if (!(this_present_timeToLive && that_present_timeToLive)) + return false; + if (this.timeToLive != that.timeToLive) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -203,13 +296,13 @@ public class ColumnDescriptor implements TBase, java.io.Serializable { } break; case 10: - if (field.type == TType.I32) { - this.timeToLive = iprot.readI32(); - this.__isset.timeToLive = true; - } else { - TProtocolUtil.skip(iprot, field.type); - } - break; + if (field.type == TType.I32) { + this.timeToLive = iprot.readI32(); + this.__isset.timeToLive = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; default: TProtocolUtil.skip(iprot, field.type); break; diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/Constants.java b/src/java/org/apache/hadoop/hbase/thrift/generated/Constants.java deleted file mode 100644 index bee2177..0000000 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/Constants.java +++ /dev/null @@ -1,34 +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. - */ - -/** - * Autogenerated by Thrift - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - */ -package org.apache.hadoop.hbase.thrift.generated; - -import java.util.ArrayList; -import java.util.AbstractMap; -import java.util.HashMap; -import java.util.HashSet; -import com.facebook.thrift.*; - -public class Constants { - -} diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/HCell.java b/src/java/org/apache/hadoop/hbase/thrift/generated/HCell.java new file mode 100644 index 0000000..94bfacb --- /dev/null +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/HCell.java @@ -0,0 +1,152 @@ +/** + * Autogenerated by Thrift + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + */ +package org.apache.hadoop.hbase.thrift.generated; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.Set; +import java.util.HashSet; +import com.facebook.thrift.*; + +import com.facebook.thrift.protocol.*; +import com.facebook.thrift.transport.*; + +/** + * A HCell is a timestamps, value pair. + */ +public class HCell implements TBase, java.io.Serializable { + public long timestamps; + public byte[] value; + + public final Isset __isset = new Isset(); + public static final class Isset implements java.io.Serializable { + public boolean timestamps = false; + public boolean value = false; + } + + public HCell() { + } + + public HCell( + long timestamps, + byte[] value) + { + this(); + this.timestamps = timestamps; + this.__isset.timestamps = true; + this.value = value; + this.__isset.value = true; + } + + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof HCell) + return this.equals((HCell)that); + return false; + } + + public boolean equals(HCell that) { + if (that == null) + return false; + + boolean this_present_timestamps = true; + boolean that_present_timestamps = true; + if (this_present_timestamps || that_present_timestamps) { + if (!(this_present_timestamps && that_present_timestamps)) + return false; + if (this.timestamps != that.timestamps) + return false; + } + + boolean this_present_value = true && (this.value != null); + boolean that_present_value = true && (that.value != null); + if (this_present_value || that_present_value) { + if (!(this_present_value && that_present_value)) + return false; + if (!java.util.Arrays.equals(this.value, that.value)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField field; + iprot.readStructBegin(); + while (true) + { + field = iprot.readFieldBegin(); + if (field.type == TType.STOP) { + break; + } + switch (field.id) + { + case 1: + if (field.type == TType.I64) { + this.timestamps = iprot.readI64(); + this.__isset.timestamps = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 2: + if (field.type == TType.STRING) { + this.value = iprot.readBinary(); + this.__isset.value = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + default: + TProtocolUtil.skip(iprot, field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + } + + public void write(TProtocol oprot) throws TException { + TStruct struct = new TStruct("HCell"); + oprot.writeStructBegin(struct); + TField field = new TField(); + field.name = "timestamps"; + field.type = TType.I64; + field.id = 1; + oprot.writeFieldBegin(field); + oprot.writeI64(this.timestamps); + oprot.writeFieldEnd(); + if (this.value != null) { + field.name = "value"; + field.type = TType.STRING; + field.id = 2; + oprot.writeFieldBegin(field); + oprot.writeBinary(this.value); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + public String toString() { + StringBuilder sb = new StringBuilder("HCell("); + sb.append("timestamps:"); + sb.append(this.timestamps); + sb.append(",value:"); + sb.append(this.value); + sb.append(")"); + return sb.toString(); + } + +} + diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java b/src/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java index f7d881c..2f829e7 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -40,21 +24,21 @@ public class Hbase { * List all the userspace tables. * @return - returns a list of names */ - public ArrayList getTableNames() throws IOError, TException; + public List getTableNames() throws IOError, TException; /** * List all the column families assoicated with a table. * @param tableName table name * @return list of column family descriptors */ - public AbstractMap getColumnDescriptors(byte[] tableName) throws IOError, TException; + public Map getColumnDescriptors(byte[] tableName) throws IOError, TException; /** * List the regions associated with a table. * @param tableName table name * @return list of region descriptors */ - public ArrayList getTableRegions(byte[] tableName) throws IOError, TException; + public List getTableRegions(byte[] tableName) throws IOError, TException; /** * Create a table with the specified column families. The name @@ -68,7 +52,7 @@ public class Hbase { * @throws IllegalArgument if an input parameter is invalid * @throws AlreadyExists if the table name already exists */ - public void createTable(byte[] tableName, ArrayList columnFamilies) throws IOError, IllegalArgument, AlreadyExists, TException; + public void createTable(byte[] tableName, List columnFamilies) throws IOError, IllegalArgument, AlreadyExists, TException; /** * Deletes a table @@ -98,7 +82,7 @@ public class Hbase { * @param numVersions number of versions to retrieve * @return list of values for specified row/column */ - public ArrayList getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException; + public List getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException; /** * Get the specified number of versions for the specified table, @@ -112,7 +96,33 @@ public class Hbase { * @param numVersions number of versions to retrieve * @return list of values for specified row/column */ - public ArrayList getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException; + public List getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException; + + /** + * Get the specified number of versions for the specified table, + * row, and column. Return cells. + * + * @param tableName name of table + * @param row row key + * @param column column name + * @param numVersions number of versions to retrieve + * @return list of values for specified row/column + */ + public List getCells(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException; + + /** + * Get the specified number of versions for the specified table, + * row, and column. Only versions less than or equal to the specified + * timestamp will be returned. Return cells. + * + * @param tableName name of table + * @param row row key + * @param column column name + * @param timestamp timestamp + * @param numVersions number of versions to retrieve + * @return list of values for specified row/column + */ + public List getCellsTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException; /** * Get all the data for the specified table and row at the latest @@ -122,7 +132,7 @@ public class Hbase { * @param row row key * @return Map of columns to values. Map is empty if row does not exist. */ - public AbstractMap getRow(byte[] tableName, byte[] row) throws IOError, TException; + public Map getRow(byte[] tableName, byte[] row) throws IOError, TException; /** * Get all the data for the specified table and row at the specified @@ -133,7 +143,7 @@ public class Hbase { * @param timestamp timestamp * @return Map of columns to values. Map is empty if row does not exist. */ - public AbstractMap getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, TException; + public Map getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, TException; /** * Put a single value at the specified table, row, and column. @@ -157,7 +167,7 @@ public class Hbase { * @param row row key * @param mutations list of mutation commands */ - public void mutateRow(byte[] tableName, byte[] row, ArrayList mutations) throws IOError, IllegalArgument, TException; + public void mutateRow(byte[] tableName, byte[] row, List mutations) throws IOError, IllegalArgument, TException; /** * Apply a series of mutations (updates/deletes) to a row in a @@ -170,7 +180,7 @@ public class Hbase { * @param mutations list of mutation commands * @param timestamp timestamp */ - public void mutateRowTs(byte[] tableName, byte[] row, ArrayList mutations, long timestamp) throws IOError, IllegalArgument, TException; + public void mutateRowTs(byte[] tableName, byte[] row, List mutations, long timestamp) throws IOError, IllegalArgument, TException; /** * Apply a series of batches (each a series of mutations on a single row) @@ -181,7 +191,7 @@ public class Hbase { * @param tableName name of table * @param rowBatches list of row batches */ - public void mutateRows(byte[] tableName, ArrayList rowBatches) throws IOError, IllegalArgument, TException; + public void mutateRows(byte[] tableName, List rowBatches) throws IOError, IllegalArgument, TException; /** * Apply a series of batches (each a series of mutations on a single row) @@ -193,7 +203,7 @@ public class Hbase { * @param rowBatches list of row batches * @param timestamp timestamp */ - public void mutateRowsTs(byte[] tableName, ArrayList rowBatches, long timestamp) throws IOError, IllegalArgument, TException; + public void mutateRowsTs(byte[] tableName, List rowBatches, long timestamp) throws IOError, IllegalArgument, TException; /** * Delete all cells that match the passed row and column. @@ -246,7 +256,7 @@ public class Hbase { * * @return scanner id to be used with other scanner procedures */ - public int scannerOpen(byte[] tableName, byte[] startRow, ArrayList columns) throws IOError, TException; + public int scannerOpen(byte[] tableName, byte[] startRow, List columns) throws IOError, TException; /** * Get a scanner on the current table starting and stopping at the @@ -264,7 +274,7 @@ public class Hbase { * * @return scanner id to be used with other scanner procedures */ - public int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns) throws IOError, TException; + public int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, List columns) throws IOError, TException; /** * Get a scanner on the current table starting at the specified row and @@ -281,7 +291,7 @@ public class Hbase { * * @return scanner id to be used with other scanner procedures */ - public int scannerOpenTs(byte[] tableName, byte[] startRow, ArrayList columns, long timestamp) throws IOError, TException; + public int scannerOpenTs(byte[] tableName, byte[] startRow, List columns, long timestamp) throws IOError, TException; /** * Get a scanner on the current table starting and stopping at the @@ -301,7 +311,7 @@ public class Hbase { * * @return scanner id to be used with other scanner procedures */ - public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns, long timestamp) throws IOError, TException; + public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, List columns, long timestamp) throws IOError, TException; /** * Returns the scanner's current row value and advances to the next @@ -343,7 +353,17 @@ public class Hbase { protected int seqid_; - public ArrayList getTableNames() throws IOError, TException + public TProtocol getInputProtocol() + { + return this.iprot_; + } + + public TProtocol getOutputProtocol() + { + return this.oprot_; + } + + public List getTableNames() throws IOError, TException { send_getTableNames(); return recv_getTableNames(); @@ -358,7 +378,7 @@ public class Hbase { oprot_.getTransport().flush(); } - public ArrayList recv_getTableNames() throws IOError, TException + public List recv_getTableNames() throws IOError, TException { TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { @@ -378,7 +398,7 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result"); } - public AbstractMap getColumnDescriptors(byte[] tableName) throws IOError, TException + public Map getColumnDescriptors(byte[] tableName) throws IOError, TException { send_getColumnDescriptors(tableName); return recv_getColumnDescriptors(); @@ -394,7 +414,7 @@ public class Hbase { oprot_.getTransport().flush(); } - public AbstractMap recv_getColumnDescriptors() throws IOError, TException + public Map recv_getColumnDescriptors() throws IOError, TException { TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { @@ -414,7 +434,7 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result"); } - public ArrayList getTableRegions(byte[] tableName) throws IOError, TException + public List getTableRegions(byte[] tableName) throws IOError, TException { send_getTableRegions(tableName); return recv_getTableRegions(); @@ -430,7 +450,7 @@ public class Hbase { oprot_.getTransport().flush(); } - public ArrayList recv_getTableRegions() throws IOError, TException + public List recv_getTableRegions() throws IOError, TException { TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { @@ -450,13 +470,13 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result"); } - public void createTable(byte[] tableName, ArrayList columnFamilies) throws IOError, IllegalArgument, AlreadyExists, TException + public void createTable(byte[] tableName, List columnFamilies) throws IOError, IllegalArgument, AlreadyExists, TException { send_createTable(tableName, columnFamilies); recv_createTable(); } - public void send_createTable(byte[] tableName, ArrayList columnFamilies) throws TException + public void send_createTable(byte[] tableName, List columnFamilies) throws TException { oprot_.writeMessageBegin(new TMessage("createTable", TMessageType.CALL, seqid_)); createTable_args args = new createTable_args(); @@ -567,7 +587,7 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result"); } - public ArrayList getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException + public List getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException { send_getVer(tableName, row, column, numVersions); return recv_getVer(); @@ -586,7 +606,7 @@ public class Hbase { oprot_.getTransport().flush(); } - public ArrayList recv_getVer() throws IOError, NotFound, TException + public List recv_getVer() throws IOError, NotFound, TException { TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { @@ -609,7 +629,7 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "getVer failed: unknown result"); } - public ArrayList getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException + public List getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException { send_getVerTs(tableName, row, column, timestamp, numVersions); return recv_getVerTs(); @@ -629,7 +649,7 @@ public class Hbase { oprot_.getTransport().flush(); } - public ArrayList recv_getVerTs() throws IOError, NotFound, TException + public List recv_getVerTs() throws IOError, NotFound, TException { TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { @@ -652,7 +672,92 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result"); } - public AbstractMap getRow(byte[] tableName, byte[] row) throws IOError, TException + public List getCells(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException + { + send_getCells(tableName, row, column, numVersions); + return recv_getCells(); + } + + public void send_getCells(byte[] tableName, byte[] row, byte[] column, int numVersions) throws TException + { + oprot_.writeMessageBegin(new TMessage("getCells", TMessageType.CALL, seqid_)); + getCells_args args = new getCells_args(); + args.tableName = tableName; + args.row = row; + args.column = column; + args.numVersions = numVersions; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + } + + public List recv_getCells() throws IOError, NotFound, TException + { + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + getCells_result result = new getCells_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + if (result.__isset.success) { + return result.success; + } + if (result.__isset.io) { + throw result.io; + } + if (result.__isset.nf) { + throw result.nf; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getCells failed: unknown result"); + } + + public List getCellsTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException + { + send_getCellsTs(tableName, row, column, timestamp, numVersions); + return recv_getCellsTs(); + } + + public void send_getCellsTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws TException + { + oprot_.writeMessageBegin(new TMessage("getCellsTs", TMessageType.CALL, seqid_)); + getCellsTs_args args = new getCellsTs_args(); + args.tableName = tableName; + args.row = row; + args.column = column; + args.timestamp = timestamp; + args.numVersions = numVersions; + args.write(oprot_); + oprot_.writeMessageEnd(); + oprot_.getTransport().flush(); + } + + public List recv_getCellsTs() throws IOError, NotFound, TException + { + TMessage msg = iprot_.readMessageBegin(); + if (msg.type == TMessageType.EXCEPTION) { + TApplicationException x = TApplicationException.read(iprot_); + iprot_.readMessageEnd(); + throw x; + } + getCellsTs_result result = new getCellsTs_result(); + result.read(iprot_); + iprot_.readMessageEnd(); + if (result.__isset.success) { + return result.success; + } + if (result.__isset.io) { + throw result.io; + } + if (result.__isset.nf) { + throw result.nf; + } + throw new TApplicationException(TApplicationException.MISSING_RESULT, "getCellsTs failed: unknown result"); + } + + public Map getRow(byte[] tableName, byte[] row) throws IOError, TException { send_getRow(tableName, row); return recv_getRow(); @@ -669,7 +774,7 @@ public class Hbase { oprot_.getTransport().flush(); } - public AbstractMap recv_getRow() throws IOError, TException + public Map recv_getRow() throws IOError, TException { TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { @@ -689,7 +794,7 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "getRow failed: unknown result"); } - public AbstractMap getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, TException + public Map getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, TException { send_getRowTs(tableName, row, timestamp); return recv_getRowTs(); @@ -707,7 +812,7 @@ public class Hbase { oprot_.getTransport().flush(); } - public AbstractMap recv_getRowTs() throws IOError, TException + public Map recv_getRowTs() throws IOError, TException { TMessage msg = iprot_.readMessageBegin(); if (msg.type == TMessageType.EXCEPTION) { @@ -766,13 +871,13 @@ public class Hbase { return; } - public void mutateRow(byte[] tableName, byte[] row, ArrayList mutations) throws IOError, IllegalArgument, TException + public void mutateRow(byte[] tableName, byte[] row, List mutations) throws IOError, IllegalArgument, TException { send_mutateRow(tableName, row, mutations); recv_mutateRow(); } - public void send_mutateRow(byte[] tableName, byte[] row, ArrayList mutations) throws TException + public void send_mutateRow(byte[] tableName, byte[] row, List mutations) throws TException { oprot_.writeMessageBegin(new TMessage("mutateRow", TMessageType.CALL, seqid_)); mutateRow_args args = new mutateRow_args(); @@ -804,13 +909,13 @@ public class Hbase { return; } - public void mutateRowTs(byte[] tableName, byte[] row, ArrayList mutations, long timestamp) throws IOError, IllegalArgument, TException + public void mutateRowTs(byte[] tableName, byte[] row, List mutations, long timestamp) throws IOError, IllegalArgument, TException { send_mutateRowTs(tableName, row, mutations, timestamp); recv_mutateRowTs(); } - public void send_mutateRowTs(byte[] tableName, byte[] row, ArrayList mutations, long timestamp) throws TException + public void send_mutateRowTs(byte[] tableName, byte[] row, List mutations, long timestamp) throws TException { oprot_.writeMessageBegin(new TMessage("mutateRowTs", TMessageType.CALL, seqid_)); mutateRowTs_args args = new mutateRowTs_args(); @@ -843,13 +948,13 @@ public class Hbase { return; } - public void mutateRows(byte[] tableName, ArrayList rowBatches) throws IOError, IllegalArgument, TException + public void mutateRows(byte[] tableName, List rowBatches) throws IOError, IllegalArgument, TException { send_mutateRows(tableName, rowBatches); recv_mutateRows(); } - public void send_mutateRows(byte[] tableName, ArrayList rowBatches) throws TException + public void send_mutateRows(byte[] tableName, List rowBatches) throws TException { oprot_.writeMessageBegin(new TMessage("mutateRows", TMessageType.CALL, seqid_)); mutateRows_args args = new mutateRows_args(); @@ -880,13 +985,13 @@ public class Hbase { return; } - public void mutateRowsTs(byte[] tableName, ArrayList rowBatches, long timestamp) throws IOError, IllegalArgument, TException + public void mutateRowsTs(byte[] tableName, List rowBatches, long timestamp) throws IOError, IllegalArgument, TException { send_mutateRowsTs(tableName, rowBatches, timestamp); recv_mutateRowsTs(); } - public void send_mutateRowsTs(byte[] tableName, ArrayList rowBatches, long timestamp) throws TException + public void send_mutateRowsTs(byte[] tableName, List rowBatches, long timestamp) throws TException { oprot_.writeMessageBegin(new TMessage("mutateRowsTs", TMessageType.CALL, seqid_)); mutateRowsTs_args args = new mutateRowsTs_args(); @@ -1058,13 +1163,13 @@ public class Hbase { return; } - public int scannerOpen(byte[] tableName, byte[] startRow, ArrayList columns) throws IOError, TException + public int scannerOpen(byte[] tableName, byte[] startRow, List columns) throws IOError, TException { send_scannerOpen(tableName, startRow, columns); return recv_scannerOpen(); } - public void send_scannerOpen(byte[] tableName, byte[] startRow, ArrayList columns) throws TException + public void send_scannerOpen(byte[] tableName, byte[] startRow, List columns) throws TException { oprot_.writeMessageBegin(new TMessage("scannerOpen", TMessageType.CALL, seqid_)); scannerOpen_args args = new scannerOpen_args(); @@ -1096,13 +1201,13 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result"); } - public int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns) throws IOError, TException + public int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, List columns) throws IOError, TException { send_scannerOpenWithStop(tableName, startRow, stopRow, columns); return recv_scannerOpenWithStop(); } - public void send_scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns) throws TException + public void send_scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, List columns) throws TException { oprot_.writeMessageBegin(new TMessage("scannerOpenWithStop", TMessageType.CALL, seqid_)); scannerOpenWithStop_args args = new scannerOpenWithStop_args(); @@ -1135,13 +1240,13 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result"); } - public int scannerOpenTs(byte[] tableName, byte[] startRow, ArrayList columns, long timestamp) throws IOError, TException + public int scannerOpenTs(byte[] tableName, byte[] startRow, List columns, long timestamp) throws IOError, TException { send_scannerOpenTs(tableName, startRow, columns, timestamp); return recv_scannerOpenTs(); } - public void send_scannerOpenTs(byte[] tableName, byte[] startRow, ArrayList columns, long timestamp) throws TException + public void send_scannerOpenTs(byte[] tableName, byte[] startRow, List columns, long timestamp) throws TException { oprot_.writeMessageBegin(new TMessage("scannerOpenTs", TMessageType.CALL, seqid_)); scannerOpenTs_args args = new scannerOpenTs_args(); @@ -1174,13 +1279,13 @@ public class Hbase { throw new TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result"); } - public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns, long timestamp) throws IOError, TException + public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, List columns, long timestamp) throws IOError, TException { send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp); return recv_scannerOpenWithStopTs(); } - public void send_scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns, long timestamp) throws TException + public void send_scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, List columns, long timestamp) throws TException { oprot_.writeMessageBegin(new TMessage("scannerOpenWithStopTs", TMessageType.CALL, seqid_)); scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args(); @@ -1305,6 +1410,8 @@ public class Hbase { processMap_.put("get", new get()); processMap_.put("getVer", new getVer()); processMap_.put("getVerTs", new getVerTs()); + processMap_.put("getCells", new getCells()); + processMap_.put("getCellsTs", new getCellsTs()); processMap_.put("getRow", new getRow()); processMap_.put("getRowTs", new getRowTs()); processMap_.put("put", new put()); @@ -1541,6 +1648,56 @@ public class Hbase { } + private class getCells implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException + { + getCells_args args = new getCells_args(); + args.read(iprot); + iprot.readMessageEnd(); + getCells_result result = new getCells_result(); + try { + result.success = iface_.getCells(args.tableName, args.row, args.column, args.numVersions); + result.__isset.success = true; + } catch (IOError io) { + result.io = io; + result.__isset.io = true; + } catch (NotFound nf) { + result.nf = nf; + result.__isset.nf = true; + } + oprot.writeMessageBegin(new TMessage("getCells", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + } + + } + + private class getCellsTs implements ProcessFunction { + public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException + { + getCellsTs_args args = new getCellsTs_args(); + args.read(iprot); + iprot.readMessageEnd(); + getCellsTs_result result = new getCellsTs_result(); + try { + result.success = iface_.getCellsTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions); + result.__isset.success = true; + } catch (IOError io) { + result.io = io; + result.__isset.io = true; + } catch (NotFound nf) { + result.nf = nf; + result.__isset.nf = true; + } + oprot.writeMessageBegin(new TMessage("getCellsTs", TMessageType.REPLY, seqid)); + result.write(oprot); + oprot.writeMessageEnd(); + oprot.getTransport().flush(); + } + + } + private class getRow implements ProcessFunction { public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException { @@ -1935,6 +2092,25 @@ public class Hbase { public getTableNames_args() { } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getTableNames_args) + return this.equals((getTableNames_args)that); + return false; + } + + public boolean equals(getTableNames_args that) { + if (that == null) + return false; + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -1971,11 +2147,11 @@ public class Hbase { } public static class getTableNames_result implements TBase, java.io.Serializable { - public ArrayList success; + public List success; public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -1984,7 +2160,7 @@ public class Hbase { } public getTableNames_result( - ArrayList success, + List success, IOError io) { this(); @@ -1994,6 +2170,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getTableNames_result) + return this.equals((getTableNames_result)that); + return false; + } + + public boolean equals(getTableNames_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2080,7 +2293,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -2091,7 +2304,7 @@ public class Hbase { public byte[] tableName; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; } @@ -2106,6 +2319,34 @@ public class Hbase { this.__isset.tableName = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getColumnDescriptors_args) + return this.equals((getColumnDescriptors_args)that); + return false; + } + + public boolean equals(getColumnDescriptors_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2161,11 +2402,11 @@ public class Hbase { } public static class getColumnDescriptors_result implements TBase, java.io.Serializable { - public AbstractMap success; + public Map success; public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -2174,7 +2415,7 @@ public class Hbase { } public getColumnDescriptors_result( - AbstractMap success, + Map success, IOError io) { this(); @@ -2184,6 +2425,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getColumnDescriptors_result) + return this.equals((getColumnDescriptors_result)that); + return false; + } + + public boolean equals(getColumnDescriptors_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2274,7 +2552,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -2285,7 +2563,7 @@ public class Hbase { public byte[] tableName; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; } @@ -2300,6 +2578,34 @@ public class Hbase { this.__isset.tableName = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getTableRegions_args) + return this.equals((getTableRegions_args)that); + return false; + } + + public boolean equals(getTableRegions_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2355,11 +2661,11 @@ public class Hbase { } public static class getTableRegions_result implements TBase, java.io.Serializable { - public ArrayList success; + public List success; public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -2368,7 +2674,7 @@ public class Hbase { } public getTableRegions_result( - ArrayList success, + List success, IOError io) { this(); @@ -2378,6 +2684,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getTableRegions_result) + return this.equals((getTableRegions_result)that); + return false; + } + + public boolean equals(getTableRegions_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2465,7 +2808,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -2474,10 +2817,10 @@ public class Hbase { public static class createTable_args implements TBase, java.io.Serializable { public byte[] tableName; - public ArrayList columnFamilies; + public List columnFamilies; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean columnFamilies = false; } @@ -2487,7 +2830,7 @@ public class Hbase { public createTable_args( byte[] tableName, - ArrayList columnFamilies) + List columnFamilies) { this(); this.tableName = tableName; @@ -2496,6 +2839,43 @@ public class Hbase { this.__isset.columnFamilies = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof createTable_args) + return this.equals((createTable_args)that); + return false; + } + + public boolean equals(createTable_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_columnFamilies = true && (this.columnFamilies != null); + boolean that_present_columnFamilies = true && (that.columnFamilies != null); + if (this_present_columnFamilies || that_present_columnFamilies) { + if (!(this_present_columnFamilies && that_present_columnFamilies)) + return false; + if (!this.columnFamilies.equals(that.columnFamilies)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2591,7 +2971,7 @@ public class Hbase { public AlreadyExists exist; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; public boolean ia = false; public boolean exist = false; @@ -2614,6 +2994,52 @@ public class Hbase { this.__isset.exist = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof createTable_result) + return this.equals((createTable_result)that); + return false; + } + + public boolean equals(createTable_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_ia = true && (this.ia != null); + boolean that_present_ia = true && (that.ia != null); + if (this_present_ia || that_present_ia) { + if (!(this_present_ia && that_present_ia)) + return false; + if (!this.ia.equals(that.ia)) + return false; + } + + boolean this_present_exist = true && (this.exist != null); + boolean that_present_exist = true && (that.exist != null); + if (this_present_exist || that_present_exist) { + if (!(this_present_exist && that_present_exist)) + return false; + if (!this.exist.equals(that.exist)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2701,11 +3127,11 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("createTable_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",ia:"); - sb.append(this.ia.toString()); + sb.append(this.ia); sb.append(",exist:"); - sb.append(this.exist.toString()); + sb.append(this.exist); sb.append(")"); return sb.toString(); } @@ -2716,7 +3142,7 @@ public class Hbase { public byte[] tableName; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; } @@ -2731,6 +3157,34 @@ public class Hbase { this.__isset.tableName = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteTable_args) + return this.equals((deleteTable_args)that); + return false; + } + + public boolean equals(deleteTable_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2790,7 +3244,7 @@ public class Hbase { public NotFound nf; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; public boolean nf = false; } @@ -2809,6 +3263,43 @@ public class Hbase { this.__isset.nf = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteTable_result) + return this.equals((deleteTable_result)that); + return false; + } + + public boolean equals(deleteTable_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_nf = true && (this.nf != null); + boolean that_present_nf = true && (that.nf != null); + if (this_present_nf || that_present_nf) { + if (!(this_present_nf && that_present_nf)) + return false; + if (!this.nf.equals(that.nf)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -2878,9 +3369,9 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("deleteTable_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",nf:"); - sb.append(this.nf.toString()); + sb.append(this.nf); sb.append(")"); return sb.toString(); } @@ -2893,7 +3384,7 @@ public class Hbase { public byte[] column; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean column = false; @@ -2916,6 +3407,52 @@ public class Hbase { this.__isset.column = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_args) + return this.equals((get_args)that); + return false; + } + + public boolean equals(get_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -3012,7 +3549,7 @@ public class Hbase { public NotFound nf; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; public boolean nf = false; @@ -3035,6 +3572,52 @@ public class Hbase { this.__isset.nf = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_result) + return this.equals((get_result)that); + return false; + } + + public boolean equals(get_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!java.util.Arrays.equals(this.success, that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_nf = true && (this.nf != null); + boolean that_present_nf = true && (that.nf != null); + if (this_present_nf || that_present_nf) { + if (!(this_present_nf && that_present_nf)) + return false; + if (!this.nf.equals(that.nf)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -3123,9 +3706,9 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",nf:"); - sb.append(this.nf.toString()); + sb.append(this.nf); sb.append(")"); return sb.toString(); } @@ -3139,7 +3722,7 @@ public class Hbase { public int numVersions; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean column = false; @@ -3166,6 +3749,61 @@ public class Hbase { this.__isset.numVersions = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getVer_args) + return this.equals((getVer_args)that); + return false; + } + + public boolean equals(getVer_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + boolean this_present_numVersions = true; + boolean that_present_numVersions = true; + if (this_present_numVersions || that_present_numVersions) { + if (!(this_present_numVersions && that_present_numVersions)) + return false; + if (this.numVersions != that.numVersions) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -3273,12 +3911,12 @@ public class Hbase { } public static class getVer_result implements TBase, java.io.Serializable { - public ArrayList success; + public List success; public IOError io; public NotFound nf; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; public boolean nf = false; @@ -3288,7 +3926,7 @@ public class Hbase { } public getVer_result( - ArrayList success, + List success, IOError io, NotFound nf) { @@ -3301,6 +3939,52 @@ public class Hbase { this.__isset.nf = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getVer_result) + return this.equals((getVer_result)that); + return false; + } + + public boolean equals(getVer_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_nf = true && (this.nf != null); + boolean that_present_nf = true && (that.nf != null); + if (this_present_nf || that_present_nf) { + if (!(this_present_nf && that_present_nf)) + return false; + if (!this.nf.equals(that.nf)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -3405,9 +4089,9 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",nf:"); - sb.append(this.nf.toString()); + sb.append(this.nf); sb.append(")"); return sb.toString(); } @@ -3422,7 +4106,7 @@ public class Hbase { public int numVersions; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean column = false; @@ -3453,6 +4137,70 @@ public class Hbase { this.__isset.numVersions = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getVerTs_args) + return this.equals((getVerTs_args)that); + return false; + } + + public boolean equals(getVerTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + boolean this_present_numVersions = true; + boolean that_present_numVersions = true; + if (this_present_numVersions || that_present_numVersions) { + if (!(this_present_numVersions && that_present_numVersions)) + return false; + if (this.numVersions != that.numVersions) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -3576,12 +4324,12 @@ public class Hbase { } public static class getVerTs_result implements TBase, java.io.Serializable { - public ArrayList success; + public List success; public IOError io; public NotFound nf; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; public boolean nf = false; @@ -3591,7 +4339,7 @@ public class Hbase { } public getVerTs_result( - ArrayList success, + List success, IOError io, NotFound nf) { @@ -3604,6 +4352,52 @@ public class Hbase { this.__isset.nf = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getVerTs_result) + return this.equals((getVerTs_result)that); + return false; + } + + public boolean equals(getVerTs_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_nf = true && (this.nf != null); + boolean that_present_nf = true && (that.nf != null); + if (this_present_nf || that_present_nf) { + if (!(this_present_nf && that_present_nf)) + return false; + if (!this.nf.equals(that.nf)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -3708,9 +4502,807 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); + sb.append(",nf:"); + sb.append(this.nf); + sb.append(")"); + return sb.toString(); + } + + } + + public static class getCells_args implements TBase, java.io.Serializable { + public byte[] tableName; + public byte[] row; + public byte[] column; + public int numVersions; + + public final Isset __isset = new Isset(); + public static final class Isset implements java.io.Serializable { + public boolean tableName = false; + public boolean row = false; + public boolean column = false; + public boolean numVersions = false; + } + + public getCells_args() { + } + + public getCells_args( + byte[] tableName, + byte[] row, + byte[] column, + int numVersions) + { + this(); + this.tableName = tableName; + this.__isset.tableName = true; + this.row = row; + this.__isset.row = true; + this.column = column; + this.__isset.column = true; + this.numVersions = numVersions; + this.__isset.numVersions = true; + } + + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getCells_args) + return this.equals((getCells_args)that); + return false; + } + + public boolean equals(getCells_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + boolean this_present_numVersions = true; + boolean that_present_numVersions = true; + if (this_present_numVersions || that_present_numVersions) { + if (!(this_present_numVersions && that_present_numVersions)) + return false; + if (this.numVersions != that.numVersions) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField field; + iprot.readStructBegin(); + while (true) + { + field = iprot.readFieldBegin(); + if (field.type == TType.STOP) { + break; + } + switch (field.id) + { + case 1: + if (field.type == TType.STRING) { + this.tableName = iprot.readBinary(); + this.__isset.tableName = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 2: + if (field.type == TType.STRING) { + this.row = iprot.readBinary(); + this.__isset.row = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 3: + if (field.type == TType.STRING) { + this.column = iprot.readBinary(); + this.__isset.column = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 4: + if (field.type == TType.I32) { + this.numVersions = iprot.readI32(); + this.__isset.numVersions = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + default: + TProtocolUtil.skip(iprot, field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + } + + public void write(TProtocol oprot) throws TException { + TStruct struct = new TStruct("getCells_args"); + oprot.writeStructBegin(struct); + TField field = new TField(); + if (this.tableName != null) { + field.name = "tableName"; + field.type = TType.STRING; + field.id = 1; + oprot.writeFieldBegin(field); + oprot.writeBinary(this.tableName); + oprot.writeFieldEnd(); + } + if (this.row != null) { + field.name = "row"; + field.type = TType.STRING; + field.id = 2; + oprot.writeFieldBegin(field); + oprot.writeBinary(this.row); + oprot.writeFieldEnd(); + } + if (this.column != null) { + field.name = "column"; + field.type = TType.STRING; + field.id = 3; + oprot.writeFieldBegin(field); + oprot.writeBinary(this.column); + oprot.writeFieldEnd(); + } + field.name = "numVersions"; + field.type = TType.I32; + field.id = 4; + oprot.writeFieldBegin(field); + oprot.writeI32(this.numVersions); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + public String toString() { + StringBuilder sb = new StringBuilder("getCells_args("); + sb.append("tableName:"); + sb.append(this.tableName); + sb.append(",row:"); + sb.append(this.row); + sb.append(",column:"); + sb.append(this.column); + sb.append(",numVersions:"); + sb.append(this.numVersions); + sb.append(")"); + return sb.toString(); + } + + } + + public static class getCells_result implements TBase, java.io.Serializable { + public List success; + public IOError io; + public NotFound nf; + + public final Isset __isset = new Isset(); + public static final class Isset implements java.io.Serializable { + public boolean success = false; + public boolean io = false; + public boolean nf = false; + } + + public getCells_result() { + } + + public getCells_result( + List success, + IOError io, + NotFound nf) + { + this(); + this.success = success; + this.__isset.success = true; + this.io = io; + this.__isset.io = true; + this.nf = nf; + this.__isset.nf = true; + } + + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getCells_result) + return this.equals((getCells_result)that); + return false; + } + + public boolean equals(getCells_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_nf = true && (this.nf != null); + boolean that_present_nf = true && (that.nf != null); + if (this_present_nf || that_present_nf) { + if (!(this_present_nf && that_present_nf)) + return false; + if (!this.nf.equals(that.nf)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField field; + iprot.readStructBegin(); + while (true) + { + field = iprot.readFieldBegin(); + if (field.type == TType.STOP) { + break; + } + switch (field.id) + { + case 0: + if (field.type == TType.LIST) { + { + TList _list34 = iprot.readListBegin(); + this.success = new ArrayList(_list34.size); + for (int _i35 = 0; _i35 < _list34.size; ++_i35) + { + HCell _elem36 = new HCell(); + _elem36 = new HCell(); + _elem36.read(iprot); + this.success.add(_elem36); + } + iprot.readListEnd(); + } + this.__isset.success = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 1: + if (field.type == TType.STRUCT) { + this.io = new IOError(); + this.io.read(iprot); + this.__isset.io = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 2: + if (field.type == TType.STRUCT) { + this.nf = new NotFound(); + this.nf.read(iprot); + this.__isset.nf = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + default: + TProtocolUtil.skip(iprot, field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + } + + public void write(TProtocol oprot) throws TException { + TStruct struct = new TStruct("getCells_result"); + oprot.writeStructBegin(struct); + TField field = new TField(); + + if (this.__isset.success) { + if (this.success != null) { + field.name = "success"; + field.type = TType.LIST; + field.id = 0; + oprot.writeFieldBegin(field); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + for (HCell _iter37 : this.success) { + _iter37.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } else if (this.__isset.io) { + if (this.io != null) { + field.name = "io"; + field.type = TType.STRUCT; + field.id = 1; + oprot.writeFieldBegin(field); + this.io.write(oprot); + oprot.writeFieldEnd(); + } + } else if (this.__isset.nf) { + if (this.nf != null) { + field.name = "nf"; + field.type = TType.STRUCT; + field.id = 2; + oprot.writeFieldBegin(field); + this.nf.write(oprot); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + public String toString() { + StringBuilder sb = new StringBuilder("getCells_result("); + sb.append("success:"); + sb.append(this.success); + sb.append(",io:"); + sb.append(this.io); + sb.append(",nf:"); + sb.append(this.nf); + sb.append(")"); + return sb.toString(); + } + + } + + public static class getCellsTs_args implements TBase, java.io.Serializable { + public byte[] tableName; + public byte[] row; + public byte[] column; + public long timestamp; + public int numVersions; + + public final Isset __isset = new Isset(); + public static final class Isset implements java.io.Serializable { + public boolean tableName = false; + public boolean row = false; + public boolean column = false; + public boolean timestamp = false; + public boolean numVersions = false; + } + + public getCellsTs_args() { + } + + public getCellsTs_args( + byte[] tableName, + byte[] row, + byte[] column, + long timestamp, + int numVersions) + { + this(); + this.tableName = tableName; + this.__isset.tableName = true; + this.row = row; + this.__isset.row = true; + this.column = column; + this.__isset.column = true; + this.timestamp = timestamp; + this.__isset.timestamp = true; + this.numVersions = numVersions; + this.__isset.numVersions = true; + } + + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getCellsTs_args) + return this.equals((getCellsTs_args)that); + return false; + } + + public boolean equals(getCellsTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + boolean this_present_numVersions = true; + boolean that_present_numVersions = true; + if (this_present_numVersions || that_present_numVersions) { + if (!(this_present_numVersions && that_present_numVersions)) + return false; + if (this.numVersions != that.numVersions) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField field; + iprot.readStructBegin(); + while (true) + { + field = iprot.readFieldBegin(); + if (field.type == TType.STOP) { + break; + } + switch (field.id) + { + case 1: + if (field.type == TType.STRING) { + this.tableName = iprot.readBinary(); + this.__isset.tableName = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 2: + if (field.type == TType.STRING) { + this.row = iprot.readBinary(); + this.__isset.row = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 3: + if (field.type == TType.STRING) { + this.column = iprot.readBinary(); + this.__isset.column = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 4: + if (field.type == TType.I64) { + this.timestamp = iprot.readI64(); + this.__isset.timestamp = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 5: + if (field.type == TType.I32) { + this.numVersions = iprot.readI32(); + this.__isset.numVersions = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + default: + TProtocolUtil.skip(iprot, field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + } + + public void write(TProtocol oprot) throws TException { + TStruct struct = new TStruct("getCellsTs_args"); + oprot.writeStructBegin(struct); + TField field = new TField(); + if (this.tableName != null) { + field.name = "tableName"; + field.type = TType.STRING; + field.id = 1; + oprot.writeFieldBegin(field); + oprot.writeBinary(this.tableName); + oprot.writeFieldEnd(); + } + if (this.row != null) { + field.name = "row"; + field.type = TType.STRING; + field.id = 2; + oprot.writeFieldBegin(field); + oprot.writeBinary(this.row); + oprot.writeFieldEnd(); + } + if (this.column != null) { + field.name = "column"; + field.type = TType.STRING; + field.id = 3; + oprot.writeFieldBegin(field); + oprot.writeBinary(this.column); + oprot.writeFieldEnd(); + } + field.name = "timestamp"; + field.type = TType.I64; + field.id = 4; + oprot.writeFieldBegin(field); + oprot.writeI64(this.timestamp); + oprot.writeFieldEnd(); + field.name = "numVersions"; + field.type = TType.I32; + field.id = 5; + oprot.writeFieldBegin(field); + oprot.writeI32(this.numVersions); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + public String toString() { + StringBuilder sb = new StringBuilder("getCellsTs_args("); + sb.append("tableName:"); + sb.append(this.tableName); + sb.append(",row:"); + sb.append(this.row); + sb.append(",column:"); + sb.append(this.column); + sb.append(",timestamp:"); + sb.append(this.timestamp); + sb.append(",numVersions:"); + sb.append(this.numVersions); + sb.append(")"); + return sb.toString(); + } + + } + + public static class getCellsTs_result implements TBase, java.io.Serializable { + public List success; + public IOError io; + public NotFound nf; + + public final Isset __isset = new Isset(); + public static final class Isset implements java.io.Serializable { + public boolean success = false; + public boolean io = false; + public boolean nf = false; + } + + public getCellsTs_result() { + } + + public getCellsTs_result( + List success, + IOError io, + NotFound nf) + { + this(); + this.success = success; + this.__isset.success = true; + this.io = io; + this.__isset.io = true; + this.nf = nf; + this.__isset.nf = true; + } + + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getCellsTs_result) + return this.equals((getCellsTs_result)that); + return false; + } + + public boolean equals(getCellsTs_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_nf = true && (this.nf != null); + boolean that_present_nf = true && (that.nf != null); + if (this_present_nf || that_present_nf) { + if (!(this_present_nf && that_present_nf)) + return false; + if (!this.nf.equals(that.nf)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + + public void read(TProtocol iprot) throws TException { + TField field; + iprot.readStructBegin(); + while (true) + { + field = iprot.readFieldBegin(); + if (field.type == TType.STOP) { + break; + } + switch (field.id) + { + case 0: + if (field.type == TType.LIST) { + { + TList _list38 = iprot.readListBegin(); + this.success = new ArrayList(_list38.size); + for (int _i39 = 0; _i39 < _list38.size; ++_i39) + { + HCell _elem40 = new HCell(); + _elem40 = new HCell(); + _elem40.read(iprot); + this.success.add(_elem40); + } + iprot.readListEnd(); + } + this.__isset.success = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 1: + if (field.type == TType.STRUCT) { + this.io = new IOError(); + this.io.read(iprot); + this.__isset.io = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + case 2: + if (field.type == TType.STRUCT) { + this.nf = new NotFound(); + this.nf.read(iprot); + this.__isset.nf = true; + } else { + TProtocolUtil.skip(iprot, field.type); + } + break; + default: + TProtocolUtil.skip(iprot, field.type); + break; + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + } + + public void write(TProtocol oprot) throws TException { + TStruct struct = new TStruct("getCellsTs_result"); + oprot.writeStructBegin(struct); + TField field = new TField(); + + if (this.__isset.success) { + if (this.success != null) { + field.name = "success"; + field.type = TType.LIST; + field.id = 0; + oprot.writeFieldBegin(field); + { + oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + for (HCell _iter41 : this.success) { + _iter41.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } else if (this.__isset.io) { + if (this.io != null) { + field.name = "io"; + field.type = TType.STRUCT; + field.id = 1; + oprot.writeFieldBegin(field); + this.io.write(oprot); + oprot.writeFieldEnd(); + } + } else if (this.__isset.nf) { + if (this.nf != null) { + field.name = "nf"; + field.type = TType.STRUCT; + field.id = 2; + oprot.writeFieldBegin(field); + this.nf.write(oprot); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + public String toString() { + StringBuilder sb = new StringBuilder("getCellsTs_result("); + sb.append("success:"); + sb.append(this.success); + sb.append(",io:"); + sb.append(this.io); sb.append(",nf:"); - sb.append(this.nf.toString()); + sb.append(this.nf); sb.append(")"); return sb.toString(); } @@ -3722,7 +5314,7 @@ public class Hbase { public byte[] row; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; } @@ -3741,6 +5333,43 @@ public class Hbase { this.__isset.row = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getRow_args) + return this.equals((getRow_args)that); + return false; + } + + public boolean equals(getRow_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -3814,11 +5443,11 @@ public class Hbase { } public static class getRow_result implements TBase, java.io.Serializable { - public AbstractMap success; + public Map success; public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -3827,7 +5456,7 @@ public class Hbase { } public getRow_result( - AbstractMap success, + Map success, IOError io) { this(); @@ -3837,6 +5466,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getRow_result) + return this.equals((getRow_result)that); + return false; + } + + public boolean equals(getRow_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -3851,15 +5517,15 @@ public class Hbase { case 0: if (field.type == TType.MAP) { { - TMap _map34 = iprot.readMapBegin(); - this.success = new HashMap(2*_map34.size); - for (int _i35 = 0; _i35 < _map34.size; ++_i35) + TMap _map42 = iprot.readMapBegin(); + this.success = new HashMap(2*_map42.size); + for (int _i43 = 0; _i43 < _map42.size; ++_i43) { - byte[] _key36; - byte[] _val37; - _key36 = iprot.readBinary(); - _val37 = iprot.readBinary(); - this.success.put(_key36, _val37); + byte[] _key44; + byte[] _val45; + _key44 = iprot.readBinary(); + _val45 = iprot.readBinary(); + this.success.put(_key44, _val45); } iprot.readMapEnd(); } @@ -3899,9 +5565,9 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size())); - for (byte[] _iter38 : this.success.keySet()) { - oprot.writeBinary(_iter38); - oprot.writeBinary(this.success.get(_iter38)); + for (byte[] _iter46 : this.success.keySet()) { + oprot.writeBinary(_iter46); + oprot.writeBinary(this.success.get(_iter46)); } oprot.writeMapEnd(); } @@ -3926,7 +5592,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -3939,7 +5605,7 @@ public class Hbase { public long timestamp; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean timestamp = false; @@ -3962,6 +5628,52 @@ public class Hbase { this.__isset.timestamp = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getRowTs_args) + return this.equals((getRowTs_args)that); + return false; + } + + public boolean equals(getRowTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4051,11 +5763,11 @@ public class Hbase { } public static class getRowTs_result implements TBase, java.io.Serializable { - public AbstractMap success; + public Map success; public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -4064,7 +5776,7 @@ public class Hbase { } public getRowTs_result( - AbstractMap success, + Map success, IOError io) { this(); @@ -4074,6 +5786,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getRowTs_result) + return this.equals((getRowTs_result)that); + return false; + } + + public boolean equals(getRowTs_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4088,15 +5837,15 @@ public class Hbase { case 0: if (field.type == TType.MAP) { { - TMap _map39 = iprot.readMapBegin(); - this.success = new HashMap(2*_map39.size); - for (int _i40 = 0; _i40 < _map39.size; ++_i40) + TMap _map47 = iprot.readMapBegin(); + this.success = new HashMap(2*_map47.size); + for (int _i48 = 0; _i48 < _map47.size; ++_i48) { - byte[] _key41; - byte[] _val42; - _key41 = iprot.readBinary(); - _val42 = iprot.readBinary(); - this.success.put(_key41, _val42); + byte[] _key49; + byte[] _val50; + _key49 = iprot.readBinary(); + _val50 = iprot.readBinary(); + this.success.put(_key49, _val50); } iprot.readMapEnd(); } @@ -4136,9 +5885,9 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size())); - for (byte[] _iter43 : this.success.keySet()) { - oprot.writeBinary(_iter43); - oprot.writeBinary(this.success.get(_iter43)); + for (byte[] _iter51 : this.success.keySet()) { + oprot.writeBinary(_iter51); + oprot.writeBinary(this.success.get(_iter51)); } oprot.writeMapEnd(); } @@ -4163,7 +5912,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -4177,7 +5926,7 @@ public class Hbase { public byte[] value; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean column = false; @@ -4204,6 +5953,61 @@ public class Hbase { this.__isset.value = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof put_args) + return this.equals((put_args)that); + return false; + } + + public boolean equals(put_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + boolean this_present_value = true && (this.value != null); + boolean that_present_value = true && (that.value != null); + if (this_present_value || that_present_value) { + if (!(this_present_value && that_present_value)) + return false; + if (!java.util.Arrays.equals(this.value, that.value)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4317,7 +6121,7 @@ public class Hbase { public IllegalArgument ia; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; public boolean ia = false; } @@ -4336,6 +6140,43 @@ public class Hbase { this.__isset.ia = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof put_result) + return this.equals((put_result)that); + return false; + } + + public boolean equals(put_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_ia = true && (this.ia != null); + boolean that_present_ia = true && (that.ia != null); + if (this_present_ia || that_present_ia) { + if (!(this_present_ia && that_present_ia)) + return false; + if (!this.ia.equals(that.ia)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4405,9 +6246,9 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("put_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",ia:"); - sb.append(this.ia.toString()); + sb.append(this.ia); sb.append(")"); return sb.toString(); } @@ -4417,10 +6258,10 @@ public class Hbase { public static class mutateRow_args implements TBase, java.io.Serializable { public byte[] tableName; public byte[] row; - public ArrayList mutations; + public List mutations; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean mutations = false; @@ -4432,7 +6273,7 @@ public class Hbase { public mutateRow_args( byte[] tableName, byte[] row, - ArrayList mutations) + List mutations) { this(); this.tableName = tableName; @@ -4443,6 +6284,52 @@ public class Hbase { this.__isset.mutations = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mutateRow_args) + return this.equals((mutateRow_args)that); + return false; + } + + public boolean equals(mutateRow_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_mutations = true && (this.mutations != null); + boolean that_present_mutations = true && (that.mutations != null); + if (this_present_mutations || that_present_mutations) { + if (!(this_present_mutations && that_present_mutations)) + return false; + if (!this.mutations.equals(that.mutations)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4473,14 +6360,14 @@ public class Hbase { case 3: if (field.type == TType.LIST) { { - TList _list44 = iprot.readListBegin(); - this.mutations = new ArrayList(_list44.size); - for (int _i45 = 0; _i45 < _list44.size; ++_i45) + TList _list52 = iprot.readListBegin(); + this.mutations = new ArrayList(_list52.size); + for (int _i53 = 0; _i53 < _list52.size; ++_i53) { - Mutation _elem46 = new Mutation(); - _elem46 = new Mutation(); - _elem46.read(iprot); - this.mutations.add(_elem46); + Mutation _elem54 = new Mutation(); + _elem54 = new Mutation(); + _elem54.read(iprot); + this.mutations.add(_elem54); } iprot.readListEnd(); } @@ -4525,8 +6412,8 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeListBegin(new TList(TType.STRUCT, this.mutations.size())); - for (Mutation _iter47 : this.mutations) { - _iter47.write(oprot); + for (Mutation _iter55 : this.mutations) { + _iter55.write(oprot); } oprot.writeListEnd(); } @@ -4555,7 +6442,7 @@ public class Hbase { public IllegalArgument ia; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; public boolean ia = false; } @@ -4574,6 +6461,43 @@ public class Hbase { this.__isset.ia = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mutateRow_result) + return this.equals((mutateRow_result)that); + return false; + } + + public boolean equals(mutateRow_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_ia = true && (this.ia != null); + boolean that_present_ia = true && (that.ia != null); + if (this_present_ia || that_present_ia) { + if (!(this_present_ia && that_present_ia)) + return false; + if (!this.ia.equals(that.ia)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4643,9 +6567,9 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("mutateRow_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",ia:"); - sb.append(this.ia.toString()); + sb.append(this.ia); sb.append(")"); return sb.toString(); } @@ -4655,11 +6579,11 @@ public class Hbase { public static class mutateRowTs_args implements TBase, java.io.Serializable { public byte[] tableName; public byte[] row; - public ArrayList mutations; + public List mutations; public long timestamp; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean mutations = false; @@ -4672,7 +6596,7 @@ public class Hbase { public mutateRowTs_args( byte[] tableName, byte[] row, - ArrayList mutations, + List mutations, long timestamp) { this(); @@ -4686,6 +6610,61 @@ public class Hbase { this.__isset.timestamp = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mutateRowTs_args) + return this.equals((mutateRowTs_args)that); + return false; + } + + public boolean equals(mutateRowTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_mutations = true && (this.mutations != null); + boolean that_present_mutations = true && (that.mutations != null); + if (this_present_mutations || that_present_mutations) { + if (!(this_present_mutations && that_present_mutations)) + return false; + if (!this.mutations.equals(that.mutations)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4716,14 +6695,14 @@ public class Hbase { case 3: if (field.type == TType.LIST) { { - TList _list48 = iprot.readListBegin(); - this.mutations = new ArrayList(_list48.size); - for (int _i49 = 0; _i49 < _list48.size; ++_i49) + TList _list56 = iprot.readListBegin(); + this.mutations = new ArrayList(_list56.size); + for (int _i57 = 0; _i57 < _list56.size; ++_i57) { - Mutation _elem50 = new Mutation(); - _elem50 = new Mutation(); - _elem50.read(iprot); - this.mutations.add(_elem50); + Mutation _elem58 = new Mutation(); + _elem58 = new Mutation(); + _elem58.read(iprot); + this.mutations.add(_elem58); } iprot.readListEnd(); } @@ -4776,8 +6755,8 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeListBegin(new TList(TType.STRUCT, this.mutations.size())); - for (Mutation _iter51 : this.mutations) { - _iter51.write(oprot); + for (Mutation _iter59 : this.mutations) { + _iter59.write(oprot); } oprot.writeListEnd(); } @@ -4814,7 +6793,7 @@ public class Hbase { public IllegalArgument ia; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; public boolean ia = false; } @@ -4833,6 +6812,43 @@ public class Hbase { this.__isset.ia = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mutateRowTs_result) + return this.equals((mutateRowTs_result)that); + return false; + } + + public boolean equals(mutateRowTs_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_ia = true && (this.ia != null); + boolean that_present_ia = true && (that.ia != null); + if (this_present_ia || that_present_ia) { + if (!(this_present_ia && that_present_ia)) + return false; + if (!this.ia.equals(that.ia)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4902,9 +6918,9 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("mutateRowTs_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",ia:"); - sb.append(this.ia.toString()); + sb.append(this.ia); sb.append(")"); return sb.toString(); } @@ -4913,10 +6929,10 @@ public class Hbase { public static class mutateRows_args implements TBase, java.io.Serializable { public byte[] tableName; - public ArrayList rowBatches; + public List rowBatches; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean rowBatches = false; } @@ -4926,7 +6942,7 @@ public class Hbase { public mutateRows_args( byte[] tableName, - ArrayList rowBatches) + List rowBatches) { this(); this.tableName = tableName; @@ -4935,6 +6951,43 @@ public class Hbase { this.__isset.rowBatches = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mutateRows_args) + return this.equals((mutateRows_args)that); + return false; + } + + public boolean equals(mutateRows_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_rowBatches = true && (this.rowBatches != null); + boolean that_present_rowBatches = true && (that.rowBatches != null); + if (this_present_rowBatches || that_present_rowBatches) { + if (!(this_present_rowBatches && that_present_rowBatches)) + return false; + if (!this.rowBatches.equals(that.rowBatches)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -4957,14 +7010,14 @@ public class Hbase { case 2: if (field.type == TType.LIST) { { - TList _list52 = iprot.readListBegin(); - this.rowBatches = new ArrayList(_list52.size); - for (int _i53 = 0; _i53 < _list52.size; ++_i53) + TList _list60 = iprot.readListBegin(); + this.rowBatches = new ArrayList(_list60.size); + for (int _i61 = 0; _i61 < _list60.size; ++_i61) { - BatchMutation _elem54 = new BatchMutation(); - _elem54 = new BatchMutation(); - _elem54.read(iprot); - this.rowBatches.add(_elem54); + BatchMutation _elem62 = new BatchMutation(); + _elem62 = new BatchMutation(); + _elem62.read(iprot); + this.rowBatches.add(_elem62); } iprot.readListEnd(); } @@ -5001,8 +7054,8 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeListBegin(new TList(TType.STRUCT, this.rowBatches.size())); - for (BatchMutation _iter55 : this.rowBatches) { - _iter55.write(oprot); + for (BatchMutation _iter63 : this.rowBatches) { + _iter63.write(oprot); } oprot.writeListEnd(); } @@ -5029,7 +7082,7 @@ public class Hbase { public IllegalArgument ia; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; public boolean ia = false; } @@ -5048,6 +7101,43 @@ public class Hbase { this.__isset.ia = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mutateRows_result) + return this.equals((mutateRows_result)that); + return false; + } + + public boolean equals(mutateRows_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_ia = true && (this.ia != null); + boolean that_present_ia = true && (that.ia != null); + if (this_present_ia || that_present_ia) { + if (!(this_present_ia && that_present_ia)) + return false; + if (!this.ia.equals(that.ia)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5117,9 +7207,9 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("mutateRows_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",ia:"); - sb.append(this.ia.toString()); + sb.append(this.ia); sb.append(")"); return sb.toString(); } @@ -5128,11 +7218,11 @@ public class Hbase { public static class mutateRowsTs_args implements TBase, java.io.Serializable { public byte[] tableName; - public ArrayList rowBatches; + public List rowBatches; public long timestamp; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean rowBatches = false; public boolean timestamp = false; @@ -5143,7 +7233,7 @@ public class Hbase { public mutateRowsTs_args( byte[] tableName, - ArrayList rowBatches, + List rowBatches, long timestamp) { this(); @@ -5155,6 +7245,52 @@ public class Hbase { this.__isset.timestamp = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mutateRowsTs_args) + return this.equals((mutateRowsTs_args)that); + return false; + } + + public boolean equals(mutateRowsTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_rowBatches = true && (this.rowBatches != null); + boolean that_present_rowBatches = true && (that.rowBatches != null); + if (this_present_rowBatches || that_present_rowBatches) { + if (!(this_present_rowBatches && that_present_rowBatches)) + return false; + if (!this.rowBatches.equals(that.rowBatches)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5177,14 +7313,14 @@ public class Hbase { case 2: if (field.type == TType.LIST) { { - TList _list56 = iprot.readListBegin(); - this.rowBatches = new ArrayList(_list56.size); - for (int _i57 = 0; _i57 < _list56.size; ++_i57) + TList _list64 = iprot.readListBegin(); + this.rowBatches = new ArrayList(_list64.size); + for (int _i65 = 0; _i65 < _list64.size; ++_i65) { - BatchMutation _elem58 = new BatchMutation(); - _elem58 = new BatchMutation(); - _elem58.read(iprot); - this.rowBatches.add(_elem58); + BatchMutation _elem66 = new BatchMutation(); + _elem66 = new BatchMutation(); + _elem66.read(iprot); + this.rowBatches.add(_elem66); } iprot.readListEnd(); } @@ -5229,8 +7365,8 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeListBegin(new TList(TType.STRUCT, this.rowBatches.size())); - for (BatchMutation _iter59 : this.rowBatches) { - _iter59.write(oprot); + for (BatchMutation _iter67 : this.rowBatches) { + _iter67.write(oprot); } oprot.writeListEnd(); } @@ -5265,7 +7401,7 @@ public class Hbase { public IllegalArgument ia; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; public boolean ia = false; } @@ -5284,6 +7420,43 @@ public class Hbase { this.__isset.ia = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mutateRowsTs_result) + return this.equals((mutateRowsTs_result)that); + return false; + } + + public boolean equals(mutateRowsTs_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_ia = true && (this.ia != null); + boolean that_present_ia = true && (that.ia != null); + if (this_present_ia || that_present_ia) { + if (!(this_present_ia && that_present_ia)) + return false; + if (!this.ia.equals(that.ia)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5353,9 +7526,9 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("mutateRowsTs_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",ia:"); - sb.append(this.ia.toString()); + sb.append(this.ia); sb.append(")"); return sb.toString(); } @@ -5368,7 +7541,7 @@ public class Hbase { public byte[] column; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean column = false; @@ -5391,6 +7564,52 @@ public class Hbase { this.__isset.column = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAll_args) + return this.equals((deleteAll_args)that); + return false; + } + + public boolean equals(deleteAll_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5485,7 +7704,7 @@ public class Hbase { public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; } @@ -5500,6 +7719,34 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAll_result) + return this.equals((deleteAll_result)that); + return false; + } + + public boolean equals(deleteAll_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5551,7 +7798,7 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("deleteAll_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -5565,7 +7812,7 @@ public class Hbase { public long timestamp; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean column = false; @@ -5592,6 +7839,61 @@ public class Hbase { this.__isset.timestamp = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAllTs_args) + return this.equals((deleteAllTs_args)that); + return false; + } + + public boolean equals(deleteAllTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5702,7 +8004,7 @@ public class Hbase { public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; } @@ -5717,6 +8019,34 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAllTs_result) + return this.equals((deleteAllTs_result)that); + return false; + } + + public boolean equals(deleteAllTs_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5768,7 +8098,7 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("deleteAllTs_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -5780,7 +8110,7 @@ public class Hbase { public byte[] row; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; } @@ -5799,6 +8129,43 @@ public class Hbase { this.__isset.row = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAllRow_args) + return this.equals((deleteAllRow_args)that); + return false; + } + + public boolean equals(deleteAllRow_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5875,7 +8242,7 @@ public class Hbase { public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; } @@ -5890,6 +8257,34 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAllRow_result) + return this.equals((deleteAllRow_result)that); + return false; + } + + public boolean equals(deleteAllRow_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -5941,7 +8336,7 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("deleteAllRow_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -5954,7 +8349,7 @@ public class Hbase { public long timestamp; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean row = false; public boolean timestamp = false; @@ -5977,6 +8372,52 @@ public class Hbase { this.__isset.timestamp = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAllRowTs_args) + return this.equals((deleteAllRowTs_args)that); + return false; + } + + public boolean equals(deleteAllRowTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6069,7 +8510,7 @@ public class Hbase { public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; } @@ -6084,6 +8525,34 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteAllRowTs_result) + return this.equals((deleteAllRowTs_result)that); + return false; + } + + public boolean equals(deleteAllRowTs_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6135,7 +8604,7 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("deleteAllRowTs_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -6145,10 +8614,10 @@ public class Hbase { public static class scannerOpen_args implements TBase, java.io.Serializable { public byte[] tableName; public byte[] startRow; - public ArrayList columns; + public List columns; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean startRow = false; public boolean columns = false; @@ -6160,7 +8629,7 @@ public class Hbase { public scannerOpen_args( byte[] tableName, byte[] startRow, - ArrayList columns) + List columns) { this(); this.tableName = tableName; @@ -6171,6 +8640,52 @@ public class Hbase { this.__isset.columns = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerOpen_args) + return this.equals((scannerOpen_args)that); + return false; + } + + public boolean equals(scannerOpen_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_startRow = true && (this.startRow != null); + boolean that_present_startRow = true && (that.startRow != null); + if (this_present_startRow || that_present_startRow) { + if (!(this_present_startRow && that_present_startRow)) + return false; + if (!java.util.Arrays.equals(this.startRow, that.startRow)) + return false; + } + + boolean this_present_columns = true && (this.columns != null); + boolean that_present_columns = true && (that.columns != null); + if (this_present_columns || that_present_columns) { + if (!(this_present_columns && that_present_columns)) + return false; + if (!this.columns.equals(that.columns)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6201,13 +8716,13 @@ public class Hbase { case 3: if (field.type == TType.LIST) { { - TList _list60 = iprot.readListBegin(); - this.columns = new ArrayList(_list60.size); - for (int _i61 = 0; _i61 < _list60.size; ++_i61) + TList _list68 = iprot.readListBegin(); + this.columns = new ArrayList(_list68.size); + for (int _i69 = 0; _i69 < _list68.size; ++_i69) { - byte[] _elem62 = null; - _elem62 = iprot.readBinary(); - this.columns.add(_elem62); + byte[] _elem70 = null; + _elem70 = iprot.readBinary(); + this.columns.add(_elem70); } iprot.readListEnd(); } @@ -6252,8 +8767,8 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeListBegin(new TList(TType.STRING, this.columns.size())); - for (byte[] _iter63 : this.columns) { - oprot.writeBinary(_iter63); + for (byte[] _iter71 : this.columns) { + oprot.writeBinary(_iter71); } oprot.writeListEnd(); } @@ -6282,7 +8797,7 @@ public class Hbase { public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -6301,6 +8816,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerOpen_result) + return this.equals((scannerOpen_result)that); + return false; + } + + public boolean equals(scannerOpen_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6369,7 +8921,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -6380,10 +8932,10 @@ public class Hbase { public byte[] tableName; public byte[] startRow; public byte[] stopRow; - public ArrayList columns; + public List columns; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean startRow = false; public boolean stopRow = false; @@ -6397,7 +8949,7 @@ public class Hbase { byte[] tableName, byte[] startRow, byte[] stopRow, - ArrayList columns) + List columns) { this(); this.tableName = tableName; @@ -6410,6 +8962,61 @@ public class Hbase { this.__isset.columns = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerOpenWithStop_args) + return this.equals((scannerOpenWithStop_args)that); + return false; + } + + public boolean equals(scannerOpenWithStop_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_startRow = true && (this.startRow != null); + boolean that_present_startRow = true && (that.startRow != null); + if (this_present_startRow || that_present_startRow) { + if (!(this_present_startRow && that_present_startRow)) + return false; + if (!java.util.Arrays.equals(this.startRow, that.startRow)) + return false; + } + + boolean this_present_stopRow = true && (this.stopRow != null); + boolean that_present_stopRow = true && (that.stopRow != null); + if (this_present_stopRow || that_present_stopRow) { + if (!(this_present_stopRow && that_present_stopRow)) + return false; + if (!java.util.Arrays.equals(this.stopRow, that.stopRow)) + return false; + } + + boolean this_present_columns = true && (this.columns != null); + boolean that_present_columns = true && (that.columns != null); + if (this_present_columns || that_present_columns) { + if (!(this_present_columns && that_present_columns)) + return false; + if (!this.columns.equals(that.columns)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6448,13 +9055,13 @@ public class Hbase { case 4: if (field.type == TType.LIST) { { - TList _list64 = iprot.readListBegin(); - this.columns = new ArrayList(_list64.size); - for (int _i65 = 0; _i65 < _list64.size; ++_i65) + TList _list72 = iprot.readListBegin(); + this.columns = new ArrayList(_list72.size); + for (int _i73 = 0; _i73 < _list72.size; ++_i73) { - byte[] _elem66 = null; - _elem66 = iprot.readBinary(); - this.columns.add(_elem66); + byte[] _elem74 = null; + _elem74 = iprot.readBinary(); + this.columns.add(_elem74); } iprot.readListEnd(); } @@ -6507,8 +9114,8 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeListBegin(new TList(TType.STRING, this.columns.size())); - for (byte[] _iter67 : this.columns) { - oprot.writeBinary(_iter67); + for (byte[] _iter75 : this.columns) { + oprot.writeBinary(_iter75); } oprot.writeListEnd(); } @@ -6539,7 +9146,7 @@ public class Hbase { public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -6558,6 +9165,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerOpenWithStop_result) + return this.equals((scannerOpenWithStop_result)that); + return false; + } + + public boolean equals(scannerOpenWithStop_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6626,7 +9270,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -6636,11 +9280,11 @@ public class Hbase { public static class scannerOpenTs_args implements TBase, java.io.Serializable { public byte[] tableName; public byte[] startRow; - public ArrayList columns; + public List columns; public long timestamp; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean startRow = false; public boolean columns = false; @@ -6653,7 +9297,7 @@ public class Hbase { public scannerOpenTs_args( byte[] tableName, byte[] startRow, - ArrayList columns, + List columns, long timestamp) { this(); @@ -6667,6 +9311,61 @@ public class Hbase { this.__isset.timestamp = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerOpenTs_args) + return this.equals((scannerOpenTs_args)that); + return false; + } + + public boolean equals(scannerOpenTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_startRow = true && (this.startRow != null); + boolean that_present_startRow = true && (that.startRow != null); + if (this_present_startRow || that_present_startRow) { + if (!(this_present_startRow && that_present_startRow)) + return false; + if (!java.util.Arrays.equals(this.startRow, that.startRow)) + return false; + } + + boolean this_present_columns = true && (this.columns != null); + boolean that_present_columns = true && (that.columns != null); + if (this_present_columns || that_present_columns) { + if (!(this_present_columns && that_present_columns)) + return false; + if (!this.columns.equals(that.columns)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6697,13 +9396,13 @@ public class Hbase { case 3: if (field.type == TType.LIST) { { - TList _list68 = iprot.readListBegin(); - this.columns = new ArrayList(_list68.size); - for (int _i69 = 0; _i69 < _list68.size; ++_i69) + TList _list76 = iprot.readListBegin(); + this.columns = new ArrayList(_list76.size); + for (int _i77 = 0; _i77 < _list76.size; ++_i77) { - byte[] _elem70 = null; - _elem70 = iprot.readBinary(); - this.columns.add(_elem70); + byte[] _elem78 = null; + _elem78 = iprot.readBinary(); + this.columns.add(_elem78); } iprot.readListEnd(); } @@ -6756,8 +9455,8 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeListBegin(new TList(TType.STRING, this.columns.size())); - for (byte[] _iter71 : this.columns) { - oprot.writeBinary(_iter71); + for (byte[] _iter79 : this.columns) { + oprot.writeBinary(_iter79); } oprot.writeListEnd(); } @@ -6794,7 +9493,7 @@ public class Hbase { public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -6813,6 +9512,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerOpenTs_result) + return this.equals((scannerOpenTs_result)that); + return false; + } + + public boolean equals(scannerOpenTs_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6881,7 +9617,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -6892,11 +9628,11 @@ public class Hbase { public byte[] tableName; public byte[] startRow; public byte[] stopRow; - public ArrayList columns; + public List columns; public long timestamp; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean tableName = false; public boolean startRow = false; public boolean stopRow = false; @@ -6911,7 +9647,7 @@ public class Hbase { byte[] tableName, byte[] startRow, byte[] stopRow, - ArrayList columns, + List columns, long timestamp) { this(); @@ -6927,6 +9663,70 @@ public class Hbase { this.__isset.timestamp = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerOpenWithStopTs_args) + return this.equals((scannerOpenWithStopTs_args)that); + return false; + } + + public boolean equals(scannerOpenWithStopTs_args that) { + if (that == null) + return false; + + boolean this_present_tableName = true && (this.tableName != null); + boolean that_present_tableName = true && (that.tableName != null); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!java.util.Arrays.equals(this.tableName, that.tableName)) + return false; + } + + boolean this_present_startRow = true && (this.startRow != null); + boolean that_present_startRow = true && (that.startRow != null); + if (this_present_startRow || that_present_startRow) { + if (!(this_present_startRow && that_present_startRow)) + return false; + if (!java.util.Arrays.equals(this.startRow, that.startRow)) + return false; + } + + boolean this_present_stopRow = true && (this.stopRow != null); + boolean that_present_stopRow = true && (that.stopRow != null); + if (this_present_stopRow || that_present_stopRow) { + if (!(this_present_stopRow && that_present_stopRow)) + return false; + if (!java.util.Arrays.equals(this.stopRow, that.stopRow)) + return false; + } + + boolean this_present_columns = true && (this.columns != null); + boolean that_present_columns = true && (that.columns != null); + if (this_present_columns || that_present_columns) { + if (!(this_present_columns && that_present_columns)) + return false; + if (!this.columns.equals(that.columns)) + return false; + } + + boolean this_present_timestamp = true; + boolean that_present_timestamp = true; + if (this_present_timestamp || that_present_timestamp) { + if (!(this_present_timestamp && that_present_timestamp)) + return false; + if (this.timestamp != that.timestamp) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -6965,13 +9765,13 @@ public class Hbase { case 4: if (field.type == TType.LIST) { { - TList _list72 = iprot.readListBegin(); - this.columns = new ArrayList(_list72.size); - for (int _i73 = 0; _i73 < _list72.size; ++_i73) + TList _list80 = iprot.readListBegin(); + this.columns = new ArrayList(_list80.size); + for (int _i81 = 0; _i81 < _list80.size; ++_i81) { - byte[] _elem74 = null; - _elem74 = iprot.readBinary(); - this.columns.add(_elem74); + byte[] _elem82 = null; + _elem82 = iprot.readBinary(); + this.columns.add(_elem82); } iprot.readListEnd(); } @@ -7032,8 +9832,8 @@ public class Hbase { oprot.writeFieldBegin(field); { oprot.writeListBegin(new TList(TType.STRING, this.columns.size())); - for (byte[] _iter75 : this.columns) { - oprot.writeBinary(_iter75); + for (byte[] _iter83 : this.columns) { + oprot.writeBinary(_iter83); } oprot.writeListEnd(); } @@ -7072,7 +9872,7 @@ public class Hbase { public IOError io; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; } @@ -7091,6 +9891,43 @@ public class Hbase { this.__isset.io = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerOpenWithStopTs_result) + return this.equals((scannerOpenWithStopTs_result)that); + return false; + } + + public boolean equals(scannerOpenWithStopTs_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -7159,7 +9996,7 @@ public class Hbase { sb.append("success:"); sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(")"); return sb.toString(); } @@ -7170,7 +10007,7 @@ public class Hbase { public int id; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean id = false; } @@ -7185,6 +10022,34 @@ public class Hbase { this.__isset.id = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerGet_args) + return this.equals((scannerGet_args)that); + return false; + } + + public boolean equals(scannerGet_args that) { + if (that == null) + return false; + + boolean this_present_id = true; + boolean that_present_id = true; + if (this_present_id || that_present_id) { + if (!(this_present_id && that_present_id)) + return false; + if (this.id != that.id) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -7244,7 +10109,7 @@ public class Hbase { public NotFound nf; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean success = false; public boolean io = false; public boolean ia = false; @@ -7271,6 +10136,61 @@ public class Hbase { this.__isset.nf = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerGet_result) + return this.equals((scannerGet_result)that); + return false; + } + + public boolean equals(scannerGet_result that) { + if (that == null) + return false; + + boolean this_present_success = true && (this.success != null); + boolean that_present_success = true && (that.success != null); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_ia = true && (this.ia != null); + boolean that_present_ia = true && (that.ia != null); + if (this_present_ia || that_present_ia) { + if (!(this_present_ia && that_present_ia)) + return false; + if (!this.ia.equals(that.ia)) + return false; + } + + boolean this_present_nf = true && (this.nf != null); + boolean that_present_nf = true && (that.nf != null); + if (this_present_nf || that_present_nf) { + if (!(this_present_nf && that_present_nf)) + return false; + if (!this.nf.equals(that.nf)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -7376,13 +10296,13 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("scannerGet_result("); sb.append("success:"); - sb.append(this.success.toString()); + sb.append(this.success); sb.append(",io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",ia:"); - sb.append(this.ia.toString()); + sb.append(this.ia); sb.append(",nf:"); - sb.append(this.nf.toString()); + sb.append(this.nf); sb.append(")"); return sb.toString(); } @@ -7393,7 +10313,7 @@ public class Hbase { public int id; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean id = false; } @@ -7408,6 +10328,34 @@ public class Hbase { this.__isset.id = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerClose_args) + return this.equals((scannerClose_args)that); + return false; + } + + public boolean equals(scannerClose_args that) { + if (that == null) + return false; + + boolean this_present_id = true; + boolean that_present_id = true; + if (this_present_id || that_present_id) { + if (!(this_present_id && that_present_id)) + return false; + if (this.id != that.id) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -7465,7 +10413,7 @@ public class Hbase { public IllegalArgument ia; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean io = false; public boolean ia = false; } @@ -7484,6 +10432,43 @@ public class Hbase { this.__isset.ia = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof scannerClose_result) + return this.equals((scannerClose_result)that); + return false; + } + + public boolean equals(scannerClose_result that) { + if (that == null) + return false; + + boolean this_present_io = true && (this.io != null); + boolean that_present_io = true && (that.io != null); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + boolean this_present_ia = true && (this.ia != null); + boolean that_present_ia = true && (that.ia != null); + if (this_present_ia || that_present_ia) { + if (!(this_present_ia && that_present_ia)) + return false; + if (!this.ia.equals(that.ia)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -7553,9 +10538,9 @@ public class Hbase { public String toString() { StringBuilder sb = new StringBuilder("scannerClose_result("); sb.append("io:"); - sb.append(this.io.toString()); + sb.append(this.io); sb.append(",ia:"); - sb.append(this.ia.toString()); + sb.append(this.ia); sb.append(")"); return sb.toString(); } diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/IOError.java b/src/java/org/apache/hadoop/hbase/thrift/generated/IOError.java index d1c97b5..6c7fee8 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/IOError.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/IOError.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -41,7 +25,7 @@ public class IOError extends Exception implements TBase, java.io.Serializable { public String message; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean message = false; } @@ -56,6 +40,34 @@ public class IOError extends Exception implements TBase, java.io.Serializable { this.__isset.message = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof IOError) + return this.equals((IOError)that); + return false; + } + + public boolean equals(IOError that) { + if (that == null) + return false; + + boolean this_present_message = true && (this.message != null); + boolean that_present_message = true && (that.message != null); + if (this_present_message || that_present_message) { + if (!(this_present_message && that_present_message)) + return false; + if (!this.message.equals(that.message)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java b/src/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java index d3e23c8..faf54a3 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -40,7 +24,7 @@ public class IllegalArgument extends Exception implements TBase, java.io.Seriali public String message; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean message = false; } @@ -55,6 +39,34 @@ public class IllegalArgument extends Exception implements TBase, java.io.Seriali this.__isset.message = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof IllegalArgument) + return this.equals((IllegalArgument)that); + return false; + } + + public boolean equals(IllegalArgument that) { + if (that == null) + return false; + + boolean this_present_message = true && (this.message != null); + boolean that_present_message = true && (that.message != null); + if (this_present_message || that_present_message) { + if (!(this_present_message && that_present_message)) + return false; + if (!this.message.equals(that.message)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java b/src/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java index 2ac03b3..8049b62 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -41,7 +25,7 @@ public class Mutation implements TBase, java.io.Serializable { public byte[] value; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean isDelete = false; public boolean column = false; public boolean value = false; @@ -66,6 +50,52 @@ public class Mutation implements TBase, java.io.Serializable { this.__isset.value = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof Mutation) + return this.equals((Mutation)that); + return false; + } + + public boolean equals(Mutation that) { + if (that == null) + return false; + + boolean this_present_isDelete = true; + boolean that_present_isDelete = true; + if (this_present_isDelete || that_present_isDelete) { + if (!(this_present_isDelete && that_present_isDelete)) + return false; + if (this.isDelete != that.isDelete) + return false; + } + + boolean this_present_column = true && (this.column != null); + boolean that_present_column = true && (that.column != null); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) + return false; + if (!java.util.Arrays.equals(this.column, that.column)) + return false; + } + + boolean this_present_value = true && (this.value != null); + boolean that_present_value = true && (that.value != null); + if (this_present_value || that_present_value) { + if (!(this_present_value && that_present_value)) + return false; + if (!java.util.Arrays.equals(this.value, that.value)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/NotFound.java b/src/java/org/apache/hadoop/hbase/thrift/generated/NotFound.java index cc03bb5..5f56c6f 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/NotFound.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/NotFound.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -40,7 +24,7 @@ public class NotFound extends Exception implements TBase, java.io.Serializable { public String message; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean message = false; } @@ -55,6 +39,34 @@ public class NotFound extends Exception implements TBase, java.io.Serializable { this.__isset.message = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof NotFound) + return this.equals((NotFound)that); + return false; + } + + public boolean equals(NotFound that) { + if (that == null) + return false; + + boolean this_present_message = true && (this.message != null); + boolean that_present_message = true && (that.message != null); + if (this_present_message || that_present_message) { + if (!(this_present_message && that_present_message)) + return false; + if (!this.message.equals(that.message)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/RegionDescriptor.java b/src/java/org/apache/hadoop/hbase/thrift/generated/RegionDescriptor.java index 1e5831d..8b16f9e 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/RegionDescriptor.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/RegionDescriptor.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -40,7 +24,7 @@ public class RegionDescriptor implements TBase, java.io.Serializable { public byte[] startKey; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean startKey = false; } @@ -55,6 +39,34 @@ public class RegionDescriptor implements TBase, java.io.Serializable { this.__isset.startKey = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof RegionDescriptor) + return this.equals((RegionDescriptor)that); + return false; + } + + public boolean equals(RegionDescriptor that) { + if (that == null) + return false; + + boolean this_present_startKey = true && (this.startKey != null); + boolean that_present_startKey = true && (that.startKey != null); + if (this_present_startKey || that_present_startKey) { + if (!(this_present_startKey && that_present_startKey)) + return false; + if (!java.util.Arrays.equals(this.startKey, that.startKey)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/ScanEntry.java b/src/java/org/apache/hadoop/hbase/thrift/generated/ScanEntry.java index 78ed0a3..52baa85 100644 --- a/src/java/org/apache/hadoop/hbase/thrift/generated/ScanEntry.java +++ b/src/java/org/apache/hadoop/hbase/thrift/generated/ScanEntry.java @@ -1,31 +1,15 @@ /** - * 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. - */ - -/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.hbase.thrift.generated; +import java.util.List; import java.util.ArrayList; -import java.util.AbstractMap; +import java.util.Map; import java.util.HashMap; +import java.util.Set; import java.util.HashSet; import com.facebook.thrift.*; @@ -38,10 +22,10 @@ import com.facebook.thrift.transport.*; */ public class ScanEntry implements TBase, java.io.Serializable { public byte[] row; - public AbstractMap columns; + public Map columns; public final Isset __isset = new Isset(); - public static final class Isset { + public static final class Isset implements java.io.Serializable { public boolean row = false; public boolean columns = false; } @@ -51,7 +35,7 @@ public class ScanEntry implements TBase, java.io.Serializable { public ScanEntry( byte[] row, - AbstractMap columns) + Map columns) { this(); this.row = row; @@ -60,6 +44,43 @@ public class ScanEntry implements TBase, java.io.Serializable { this.__isset.columns = true; } + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof ScanEntry) + return this.equals((ScanEntry)that); + return false; + } + + public boolean equals(ScanEntry that) { + if (that == null) + return false; + + boolean this_present_row = true && (this.row != null); + boolean that_present_row = true && (that.row != null); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!java.util.Arrays.equals(this.row, that.row)) + return false; + } + + boolean this_present_columns = true && (this.columns != null); + boolean that_present_columns = true && (that.columns != null); + if (this_present_columns || that_present_columns) { + if (!(this_present_columns && that_present_columns)) + return false; + if (!this.columns.equals(that.columns)) + return false; + } + + return true; + } + + public int hashCode() { + return 0; + } + public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); @@ -82,15 +103,15 @@ public class ScanEntry implements TBase, java.io.Serializable { case 2: if (field.type == TType.MAP) { { - TMap _map0 = iprot.readMapBegin(); - this.columns = new HashMap(2*_map0.size); - for (int _i1 = 0; _i1 < _map0.size; ++_i1) + TMap _map4 = iprot.readMapBegin(); + this.columns = new HashMap(2*_map4.size); + for (int _i5 = 0; _i5 < _map4.size; ++_i5) { - byte[] _key2; - byte[] _val3; - _key2 = iprot.readBinary(); - _val3 = iprot.readBinary(); - this.columns.put(_key2, _val3); + byte[] _key6; + byte[] _val7; + _key6 = iprot.readBinary(); + _val7 = iprot.readBinary(); + this.columns.put(_key6, _val7); } iprot.readMapEnd(); } @@ -127,9 +148,9 @@ public class ScanEntry implements TBase, java.io.Serializable { oprot.writeFieldBegin(field); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.columns.size())); - for (byte[] _iter4 : this.columns.keySet()) { - oprot.writeBinary(_iter4); - oprot.writeBinary(this.columns.get(_iter4)); + for (byte[] _iter8 : this.columns.keySet()) { + oprot.writeBinary(_iter8); + oprot.writeBinary(this.columns.get(_iter8)); } oprot.writeMapEnd(); }