From 85bd6e3b2aab17781410560ad36d896983875b15 Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Wed, 11 Nov 2015 23:26:53 -0500 Subject: [PATCH] Implement checkAndMutate over thrift2 --- .../hbase/thrift/generated/AlreadyExists.java | 24 +- .../hbase/thrift/generated/BatchMutation.java | 62 +- .../hbase/thrift/generated/ColumnDescriptor.java | 96 +- .../hadoop/hbase/thrift/generated/Hbase.java | 7275 ++++++--- .../hadoop/hbase/thrift/generated/IOError.java | 24 +- .../hbase/thrift/generated/IllegalArgument.java | 24 +- .../hadoop/hbase/thrift/generated/Mutation.java | 64 +- .../hadoop/hbase/thrift/generated/TAppend.java | 100 +- .../hadoop/hbase/thrift/generated/TCell.java | 40 +- .../hadoop/hbase/thrift/generated/TColumn.java | 40 +- .../hadoop/hbase/thrift/generated/TIncrement.java | 72 +- .../hadoop/hbase/thrift/generated/TRegionInfo.java | 104 +- .../hadoop/hbase/thrift/generated/TRowResult.java | 102 +- .../hadoop/hbase/thrift/generated/TScan.java | 126 +- .../hbase/thrift2/ThriftHBaseServiceHandler.java | 17 + .../hadoop/hbase/thrift2/ThriftUtilities.java | 15 + .../hadoop/hbase/thrift2/generated/TAppend.java | 132 +- .../hbase/thrift2/generated/TAuthorization.java | 47 +- .../hbase/thrift2/generated/TCellVisibility.java | 26 +- .../hadoop/hbase/thrift2/generated/TColumn.java | 58 +- .../hbase/thrift2/generated/TColumnIncrement.java | 60 +- .../hbase/thrift2/generated/TColumnValue.java | 92 +- .../hbase/thrift2/generated/TCompareFilter.java | 64 + .../hadoop/hbase/thrift2/generated/TCompareOp.java | 64 + .../hadoop/hbase/thrift2/generated/TDelete.java | 144 +- .../hbase/thrift2/generated/TDeleteType.java | 2 +- .../hbase/thrift2/generated/TDurability.java | 2 +- .../hadoop/hbase/thrift2/generated/TGet.java | 159 +- .../hbase/thrift2/generated/THBaseService.java | 14918 +++++++++++-------- .../hbase/thrift2/generated/THRegionInfo.java | 97 +- .../hbase/thrift2/generated/THRegionLocation.java | 32 +- .../hadoop/hbase/thrift2/generated/TIOError.java | 26 +- .../hbase/thrift2/generated/TIllegalArgument.java | 26 +- .../hadoop/hbase/thrift2/generated/TIncrement.java | 132 +- .../hadoop/hbase/thrift2/generated/TMutation.java | 20 +- .../hadoop/hbase/thrift2/generated/TPut.java | 140 +- .../hadoop/hbase/thrift2/generated/TResult.java | 63 +- .../hbase/thrift2/generated/TRowMutations.java | 63 +- .../hadoop/hbase/thrift2/generated/TScan.java | 188 +- .../hbase/thrift2/generated/TServerName.java | 42 +- .../hadoop/hbase/thrift2/generated/TTimeRange.java | 32 +- .../org/apache/hadoop/hbase/thrift2/hbase.thrift | 44 + .../thrift2/TestThriftHBaseServiceHandler.java | 63 +- 43 files changed, 15328 insertions(+), 9593 deletions(-) create mode 100644 hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareFilter.java create mode 100644 hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java index 091a42b..2c25467 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,14 +29,17 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * An AlreadyExists exceptions signals that a table with the specified * name already exists */ -public class AlreadyExists extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class AlreadyExists extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AlreadyExists"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -230,30 +234,30 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(AlreadyExists other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - AlreadyExists typedOther = (AlreadyExists)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java index fd038b3..40e5eca 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * A BatchMutation object is used to apply a number of Mutations to a single row. */ -public class BatchMutation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class BatchMutation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BatchMutation"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -131,7 +135,7 @@ public class BatchMutation implements org.apache.thrift.TBase mutations) { this(); - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.mutations = mutations; } @@ -143,7 +147,7 @@ public class BatchMutation implements org.apache.thrift.TBase __this__mutations = new ArrayList(); + List __this__mutations = new ArrayList(other.mutations.size()); for (Mutation other_element : other.mutations) { __this__mutations.add(new Mutation(other_element)); } @@ -167,16 +171,16 @@ public class BatchMutation implements org.apache.thrift.TBase list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_mutations = true && (isSetMutations()); - builder.append(present_mutations); + list.add(present_mutations); if (present_mutations) - builder.append(mutations); + list.add(mutations); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(BatchMutation other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - BatchMutation typedOther = (BatchMutation)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations()); + lastComparison = Boolean.valueOf(isSetMutations()).compareTo(other.isSetMutations()); if (lastComparison != 0) { return lastComparison; } if (isSetMutations()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, other.mutations); if (lastComparison != 0) { return lastComparison; } @@ -452,12 +456,12 @@ public class BatchMutation implements org.apache.thrift.TBase(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) + Mutation _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) { - Mutation _elem2; // required - _elem2 = new Mutation(); - _elem2.read(iprot); - struct.mutations.add(_elem2); + _elem1 = new Mutation(); + _elem1.read(iprot); + struct.mutations.add(_elem1); } iprot.readListEnd(); } @@ -549,12 +553,12 @@ public class BatchMutation implements org.apache.thrift.TBase(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) + Mutation _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) { - Mutation _elem7; // required - _elem7 = new Mutation(); - _elem7.read(iprot); - struct.mutations.add(_elem7); + _elem6 = new Mutation(); + _elem6.read(iprot); + struct.mutations.add(_elem6); } } struct.setMutationsIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java index fe018be..061a3f2 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,15 +29,18 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * An HColumnDescriptor contains information about a column family * such as the number of versions, compression settings, etc. It is * used as input when creating a table or adding a column. */ -public class ColumnDescriptor implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class ColumnDescriptor implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnDescriptor"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -211,7 +215,7 @@ public class ColumnDescriptor implements org.apache.thrift.TBase list = new ArrayList(); boolean present_name = true && (isSetName()); - builder.append(present_name); + list.add(present_name); if (present_name) - builder.append(name); + list.add(name); boolean present_maxVersions = true; - builder.append(present_maxVersions); + list.add(present_maxVersions); if (present_maxVersions) - builder.append(maxVersions); + list.add(maxVersions); boolean present_compression = true && (isSetCompression()); - builder.append(present_compression); + list.add(present_compression); if (present_compression) - builder.append(compression); + list.add(compression); boolean present_inMemory = true; - builder.append(present_inMemory); + list.add(present_inMemory); if (present_inMemory) - builder.append(inMemory); + list.add(inMemory); boolean present_bloomFilterType = true && (isSetBloomFilterType()); - builder.append(present_bloomFilterType); + list.add(present_bloomFilterType); if (present_bloomFilterType) - builder.append(bloomFilterType); + list.add(bloomFilterType); boolean present_bloomFilterVectorSize = true; - builder.append(present_bloomFilterVectorSize); + list.add(present_bloomFilterVectorSize); if (present_bloomFilterVectorSize) - builder.append(bloomFilterVectorSize); + list.add(bloomFilterVectorSize); boolean present_bloomFilterNbHashes = true; - builder.append(present_bloomFilterNbHashes); + list.add(present_bloomFilterNbHashes); if (present_bloomFilterNbHashes) - builder.append(bloomFilterNbHashes); + list.add(bloomFilterNbHashes); boolean present_blockCacheEnabled = true; - builder.append(present_blockCacheEnabled); + list.add(present_blockCacheEnabled); if (present_blockCacheEnabled) - builder.append(blockCacheEnabled); + list.add(blockCacheEnabled); boolean present_timeToLive = true; - builder.append(present_timeToLive); + list.add(present_timeToLive); if (present_timeToLive) - builder.append(timeToLive); + list.add(timeToLive); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(ColumnDescriptor other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - ColumnDescriptor typedOther = (ColumnDescriptor)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(typedOther.isSetMaxVersions()); + lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxVersions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxVersions, typedOther.maxVersions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxVersions, other.maxVersions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompression()).compareTo(typedOther.isSetCompression()); + lastComparison = Boolean.valueOf(isSetCompression()).compareTo(other.isSetCompression()); if (lastComparison != 0) { return lastComparison; } if (isSetCompression()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, typedOther.compression); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, other.compression); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInMemory()).compareTo(typedOther.isSetInMemory()); + lastComparison = Boolean.valueOf(isSetInMemory()).compareTo(other.isSetInMemory()); if (lastComparison != 0) { return lastComparison; } if (isSetInMemory()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inMemory, typedOther.inMemory); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inMemory, other.inMemory); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBloomFilterType()).compareTo(typedOther.isSetBloomFilterType()); + lastComparison = Boolean.valueOf(isSetBloomFilterType()).compareTo(other.isSetBloomFilterType()); if (lastComparison != 0) { return lastComparison; } if (isSetBloomFilterType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloomFilterType, typedOther.bloomFilterType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloomFilterType, other.bloomFilterType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBloomFilterVectorSize()).compareTo(typedOther.isSetBloomFilterVectorSize()); + lastComparison = Boolean.valueOf(isSetBloomFilterVectorSize()).compareTo(other.isSetBloomFilterVectorSize()); if (lastComparison != 0) { return lastComparison; } if (isSetBloomFilterVectorSize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloomFilterVectorSize, typedOther.bloomFilterVectorSize); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloomFilterVectorSize, other.bloomFilterVectorSize); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBloomFilterNbHashes()).compareTo(typedOther.isSetBloomFilterNbHashes()); + lastComparison = Boolean.valueOf(isSetBloomFilterNbHashes()).compareTo(other.isSetBloomFilterNbHashes()); if (lastComparison != 0) { return lastComparison; } if (isSetBloomFilterNbHashes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloomFilterNbHashes, typedOther.bloomFilterNbHashes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloomFilterNbHashes, other.bloomFilterNbHashes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBlockCacheEnabled()).compareTo(typedOther.isSetBlockCacheEnabled()); + lastComparison = Boolean.valueOf(isSetBlockCacheEnabled()).compareTo(other.isSetBlockCacheEnabled()); if (lastComparison != 0) { return lastComparison; } if (isSetBlockCacheEnabled()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockCacheEnabled, typedOther.blockCacheEnabled); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockCacheEnabled, other.blockCacheEnabled); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimeToLive()).compareTo(typedOther.isSetTimeToLive()); + lastComparison = Boolean.valueOf(isSetTimeToLive()).compareTo(other.isSetTimeToLive()); if (lastComparison != 0) { return lastComparison; } if (isSetTimeToLive()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeToLive, typedOther.timeToLive); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeToLive, other.timeToLive); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java index 857f5f7..cd11441 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,9 +29,12 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") public class Hbase { public interface Iface { @@ -642,93 +646,93 @@ public class Hbase { public interface AsyncIface { - public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getTableNames(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTableNames(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void createTable(ByteBuffer tableName, List columnFamilies, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createTable(ByteBuffer tableName, List columnFamilies, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRows(ByteBuffer tableName, List rows, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRows(ByteBuffer tableName, List rows, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRowsWithColumns(ByteBuffer tableName, List rows, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRowsWithColumns(ByteBuffer tableName, List rows, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRowsTs(ByteBuffer tableName, List rows, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRowsTs(ByteBuffer tableName, List rows, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRowsWithColumnsTs(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRowsWithColumnsTs(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void mutateRow(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void mutateRow(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void mutateRows(ByteBuffer tableName, List rowBatches, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void mutateRows(ByteBuffer tableName, List rowBatches, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void mutateRowsTs(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void mutateRowsTs(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void incrementRows(List increments, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void incrementRows(List increments, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append(TAppend append, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append(TAppend append, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -1986,7 +1990,7 @@ public class Hbase { super(protocolFactory, clientManager, transport); } - public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); enableTable_call method_call = new enableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1995,7 +1999,7 @@ public class Hbase { public static class enableTable_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableName; - public enableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public enableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; } @@ -2018,7 +2022,7 @@ public class Hbase { } } - public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); disableTable_call method_call = new disableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2027,7 +2031,7 @@ public class Hbase { public static class disableTable_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableName; - public disableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public disableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; } @@ -2050,7 +2054,7 @@ public class Hbase { } } - public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isTableEnabled_call method_call = new isTableEnabled_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2059,7 +2063,7 @@ public class Hbase { public static class isTableEnabled_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableName; - public isTableEnabled_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public isTableEnabled_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; } @@ -2082,7 +2086,7 @@ public class Hbase { } } - public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); compact_call method_call = new compact_call(tableNameOrRegionName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2091,7 +2095,7 @@ public class Hbase { public static class compact_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableNameOrRegionName; - public compact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public compact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableNameOrRegionName = tableNameOrRegionName; } @@ -2114,7 +2118,7 @@ public class Hbase { } } - public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); majorCompact_call method_call = new majorCompact_call(tableNameOrRegionName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2123,7 +2127,7 @@ public class Hbase { public static class majorCompact_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableNameOrRegionName; - public majorCompact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public majorCompact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableNameOrRegionName = tableNameOrRegionName; } @@ -2146,7 +2150,7 @@ public class Hbase { } } - public void getTableNames(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableNames(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getTableNames_call method_call = new getTableNames_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2154,7 +2158,7 @@ public class Hbase { } public static class getTableNames_call extends org.apache.thrift.async.TAsyncMethodCall { - public getTableNames_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getTableNames_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2175,7 +2179,7 @@ public class Hbase { } } - public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getColumnDescriptors_call method_call = new getColumnDescriptors_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2184,7 +2188,7 @@ public class Hbase { public static class getColumnDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableName; - public getColumnDescriptors_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getColumnDescriptors_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; } @@ -2207,7 +2211,7 @@ public class Hbase { } } - public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getTableRegions_call method_call = new getTableRegions_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2216,7 +2220,7 @@ public class Hbase { public static class getTableRegions_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableName; - public getTableRegions_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getTableRegions_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; } @@ -2239,7 +2243,7 @@ public class Hbase { } } - public void createTable(ByteBuffer tableName, List columnFamilies, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void createTable(ByteBuffer tableName, List columnFamilies, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createTable_call method_call = new createTable_call(tableName, columnFamilies, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2249,7 +2253,7 @@ public class Hbase { public static class createTable_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableName; private List columnFamilies; - public createTable_call(ByteBuffer tableName, List columnFamilies, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public createTable_call(ByteBuffer tableName, List columnFamilies, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.columnFamilies = columnFamilies; @@ -2274,7 +2278,7 @@ public class Hbase { } } - public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteTable_call method_call = new deleteTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2283,7 +2287,7 @@ public class Hbase { public static class deleteTable_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer tableName; - public deleteTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; } @@ -2306,7 +2310,7 @@ public class Hbase { } } - public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_call method_call = new get_call(tableName, row, column, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2318,7 +2322,7 @@ public class Hbase { private ByteBuffer row; private ByteBuffer column; private Map attributes; - public get_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2347,7 +2351,7 @@ public class Hbase { } } - public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getVer_call method_call = new getVer_call(tableName, row, column, numVersions, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2360,7 +2364,7 @@ public class Hbase { private ByteBuffer column; private int numVersions; private Map attributes; - public getVer_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getVer_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2391,7 +2395,7 @@ public class Hbase { } } - public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getVerTs_call method_call = new getVerTs_call(tableName, row, column, timestamp, numVersions, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2405,7 +2409,7 @@ public class Hbase { private long timestamp; private int numVersions; private Map attributes; - public getVerTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getVerTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2438,7 +2442,7 @@ public class Hbase { } } - public void getRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRow_call method_call = new getRow_call(tableName, row, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2449,7 +2453,7 @@ public class Hbase { private ByteBuffer tableName; private ByteBuffer row; private Map attributes; - public getRow_call(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRow_call(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2476,7 +2480,7 @@ public class Hbase { } } - public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRowWithColumns_call method_call = new getRowWithColumns_call(tableName, row, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2488,7 +2492,7 @@ public class Hbase { private ByteBuffer row; private List columns; private Map attributes; - public getRowWithColumns_call(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRowWithColumns_call(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2517,7 +2521,7 @@ public class Hbase { } } - public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRowTs_call method_call = new getRowTs_call(tableName, row, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2529,7 +2533,7 @@ public class Hbase { private ByteBuffer row; private long timestamp; private Map attributes; - public getRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2558,7 +2562,7 @@ public class Hbase { } } - public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRowWithColumnsTs_call method_call = new getRowWithColumnsTs_call(tableName, row, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2571,7 +2575,7 @@ public class Hbase { private List columns; private long timestamp; private Map attributes; - public getRowWithColumnsTs_call(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRowWithColumnsTs_call(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2602,7 +2606,7 @@ public class Hbase { } } - public void getRows(ByteBuffer tableName, List rows, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRows(ByteBuffer tableName, List rows, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRows_call method_call = new getRows_call(tableName, rows, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2613,7 +2617,7 @@ public class Hbase { private ByteBuffer tableName; private List rows; private Map attributes; - public getRows_call(ByteBuffer tableName, List rows, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRows_call(ByteBuffer tableName, List rows, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.rows = rows; @@ -2640,7 +2644,7 @@ public class Hbase { } } - public void getRowsWithColumns(ByteBuffer tableName, List rows, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRowsWithColumns(ByteBuffer tableName, List rows, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRowsWithColumns_call method_call = new getRowsWithColumns_call(tableName, rows, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2652,7 +2656,7 @@ public class Hbase { private List rows; private List columns; private Map attributes; - public getRowsWithColumns_call(ByteBuffer tableName, List rows, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRowsWithColumns_call(ByteBuffer tableName, List rows, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.rows = rows; @@ -2681,7 +2685,7 @@ public class Hbase { } } - public void getRowsTs(ByteBuffer tableName, List rows, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRowsTs(ByteBuffer tableName, List rows, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRowsTs_call method_call = new getRowsTs_call(tableName, rows, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2693,7 +2697,7 @@ public class Hbase { private List rows; private long timestamp; private Map attributes; - public getRowsTs_call(ByteBuffer tableName, List rows, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRowsTs_call(ByteBuffer tableName, List rows, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.rows = rows; @@ -2722,7 +2726,7 @@ public class Hbase { } } - public void getRowsWithColumnsTs(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRowsWithColumnsTs(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRowsWithColumnsTs_call method_call = new getRowsWithColumnsTs_call(tableName, rows, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2735,7 +2739,7 @@ public class Hbase { private List columns; private long timestamp; private Map attributes; - public getRowsWithColumnsTs_call(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRowsWithColumnsTs_call(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.rows = rows; @@ -2766,7 +2770,7 @@ public class Hbase { } } - public void mutateRow(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void mutateRow(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); mutateRow_call method_call = new mutateRow_call(tableName, row, mutations, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2778,7 +2782,7 @@ public class Hbase { private ByteBuffer row; private List mutations; private Map attributes; - public mutateRow_call(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public mutateRow_call(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2807,7 +2811,7 @@ public class Hbase { } } - public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); mutateRowTs_call method_call = new mutateRowTs_call(tableName, row, mutations, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2820,7 +2824,7 @@ public class Hbase { private List mutations; private long timestamp; private Map attributes; - public mutateRowTs_call(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public mutateRowTs_call(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2851,7 +2855,7 @@ public class Hbase { } } - public void mutateRows(ByteBuffer tableName, List rowBatches, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void mutateRows(ByteBuffer tableName, List rowBatches, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); mutateRows_call method_call = new mutateRows_call(tableName, rowBatches, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2862,7 +2866,7 @@ public class Hbase { private ByteBuffer tableName; private List rowBatches; private Map attributes; - public mutateRows_call(ByteBuffer tableName, List rowBatches, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public mutateRows_call(ByteBuffer tableName, List rowBatches, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.rowBatches = rowBatches; @@ -2889,7 +2893,7 @@ public class Hbase { } } - public void mutateRowsTs(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void mutateRowsTs(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); mutateRowsTs_call method_call = new mutateRowsTs_call(tableName, rowBatches, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2901,7 +2905,7 @@ public class Hbase { private List rowBatches; private long timestamp; private Map attributes; - public mutateRowsTs_call(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public mutateRowsTs_call(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.rowBatches = rowBatches; @@ -2930,7 +2934,7 @@ public class Hbase { } } - public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); atomicIncrement_call method_call = new atomicIncrement_call(tableName, row, column, value, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2942,7 +2946,7 @@ public class Hbase { private ByteBuffer row; private ByteBuffer column; private long value; - public atomicIncrement_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public atomicIncrement_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -2971,7 +2975,7 @@ public class Hbase { } } - public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteAll_call method_call = new deleteAll_call(tableName, row, column, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2983,7 +2987,7 @@ public class Hbase { private ByteBuffer row; private ByteBuffer column; private Map attributes; - public deleteAll_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteAll_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -3012,7 +3016,7 @@ public class Hbase { } } - public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteAllTs_call method_call = new deleteAllTs_call(tableName, row, column, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3025,7 +3029,7 @@ public class Hbase { private ByteBuffer column; private long timestamp; private Map attributes; - public deleteAllTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteAllTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -3056,7 +3060,7 @@ public class Hbase { } } - public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteAllRow_call method_call = new deleteAllRow_call(tableName, row, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3067,7 +3071,7 @@ public class Hbase { private ByteBuffer tableName; private ByteBuffer row; private Map attributes; - public deleteAllRow_call(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteAllRow_call(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -3094,7 +3098,7 @@ public class Hbase { } } - public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); increment_call method_call = new increment_call(increment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3103,7 +3107,7 @@ public class Hbase { public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall { private TIncrement increment; - public increment_call(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public increment_call(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.increment = increment; } @@ -3126,7 +3130,7 @@ public class Hbase { } } - public void incrementRows(List increments, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void incrementRows(List increments, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); incrementRows_call method_call = new incrementRows_call(increments, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3135,7 +3139,7 @@ public class Hbase { public static class incrementRows_call extends org.apache.thrift.async.TAsyncMethodCall { private List increments; - public incrementRows_call(List increments, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public incrementRows_call(List increments, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.increments = increments; } @@ -3158,7 +3162,7 @@ public class Hbase { } } - public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteAllRowTs_call method_call = new deleteAllRowTs_call(tableName, row, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3170,7 +3174,7 @@ public class Hbase { private ByteBuffer row; private long timestamp; private Map attributes; - public deleteAllRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteAllRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -3199,7 +3203,7 @@ public class Hbase { } } - public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerOpenWithScan_call method_call = new scannerOpenWithScan_call(tableName, scan, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3210,7 +3214,7 @@ public class Hbase { private ByteBuffer tableName; private TScan scan; private Map attributes; - public scannerOpenWithScan_call(ByteBuffer tableName, TScan scan, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerOpenWithScan_call(ByteBuffer tableName, TScan scan, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.scan = scan; @@ -3237,7 +3241,7 @@ public class Hbase { } } - public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerOpen_call method_call = new scannerOpen_call(tableName, startRow, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3249,7 +3253,7 @@ public class Hbase { private ByteBuffer startRow; private List columns; private Map attributes; - public scannerOpen_call(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerOpen_call(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.startRow = startRow; @@ -3278,7 +3282,7 @@ public class Hbase { } } - public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerOpenWithStop_call method_call = new scannerOpenWithStop_call(tableName, startRow, stopRow, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3291,7 +3295,7 @@ public class Hbase { private ByteBuffer stopRow; private List columns; private Map attributes; - public scannerOpenWithStop_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerOpenWithStop_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.startRow = startRow; @@ -3322,7 +3326,7 @@ public class Hbase { } } - public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerOpenWithPrefix_call method_call = new scannerOpenWithPrefix_call(tableName, startAndPrefix, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3334,7 +3338,7 @@ public class Hbase { private ByteBuffer startAndPrefix; private List columns; private Map attributes; - public scannerOpenWithPrefix_call(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerOpenWithPrefix_call(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.startAndPrefix = startAndPrefix; @@ -3363,7 +3367,7 @@ public class Hbase { } } - public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerOpenTs_call method_call = new scannerOpenTs_call(tableName, startRow, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3376,7 +3380,7 @@ public class Hbase { private List columns; private long timestamp; private Map attributes; - public scannerOpenTs_call(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerOpenTs_call(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.startRow = startRow; @@ -3407,7 +3411,7 @@ public class Hbase { } } - public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerOpenWithStopTs_call method_call = new scannerOpenWithStopTs_call(tableName, startRow, stopRow, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3421,7 +3425,7 @@ public class Hbase { private List columns; private long timestamp; private Map attributes; - public scannerOpenWithStopTs_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerOpenWithStopTs_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.startRow = startRow; @@ -3454,7 +3458,7 @@ public class Hbase { } } - public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerGet_call method_call = new scannerGet_call(id, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3463,7 +3467,7 @@ public class Hbase { public static class scannerGet_call extends org.apache.thrift.async.TAsyncMethodCall { private int id; - public scannerGet_call(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerGet_call(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; } @@ -3486,7 +3490,7 @@ public class Hbase { } } - public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerGetList_call method_call = new scannerGetList_call(id, nbRows, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3496,7 +3500,7 @@ public class Hbase { public static class scannerGetList_call extends org.apache.thrift.async.TAsyncMethodCall { private int id; private int nbRows; - public scannerGetList_call(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerGetList_call(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; this.nbRows = nbRows; @@ -3521,7 +3525,7 @@ public class Hbase { } } - public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); scannerClose_call method_call = new scannerClose_call(id, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3530,7 +3534,7 @@ public class Hbase { public static class scannerClose_call extends org.apache.thrift.async.TAsyncMethodCall { private int id; - public scannerClose_call(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public scannerClose_call(int id, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; } @@ -3553,7 +3557,7 @@ public class Hbase { } } - public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRegionInfo_call method_call = new getRegionInfo_call(row, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3562,7 +3566,7 @@ public class Hbase { public static class getRegionInfo_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer row; - public getRegionInfo_call(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRegionInfo_call(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.row = row; } @@ -3585,7 +3589,7 @@ public class Hbase { } } - public void append(TAppend append, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append(TAppend append, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_call method_call = new append_call(append, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3594,7 +3598,7 @@ public class Hbase { public static class append_call extends org.apache.thrift.async.TAsyncMethodCall { private TAppend append; - public append_call(TAppend append, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public append_call(TAppend append, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.append = append; } @@ -3617,7 +3621,7 @@ public class Hbase { } } - public void checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); checkAndPut_call method_call = new checkAndPut_call(tableName, row, column, value, mput, attributes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3631,7 +3635,7 @@ public class Hbase { private ByteBuffer value; private Mutation mput; private Map attributes; - public checkAndPut_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public checkAndPut_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tableName = tableName; this.row = row; @@ -4813,7 +4817,2622 @@ public class Hbase { } - public static class enableTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { + private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + public AsyncProcessor(I iface) { + super(iface, getProcessMap(new HashMap>())); + } + + protected AsyncProcessor(I iface, Map> processMap) { + super(iface, getProcessMap(processMap)); + } + + private static Map> getProcessMap(Map> processMap) { + processMap.put("enableTable", new enableTable()); + processMap.put("disableTable", new disableTable()); + processMap.put("isTableEnabled", new isTableEnabled()); + processMap.put("compact", new compact()); + processMap.put("majorCompact", new majorCompact()); + processMap.put("getTableNames", new getTableNames()); + processMap.put("getColumnDescriptors", new getColumnDescriptors()); + processMap.put("getTableRegions", new getTableRegions()); + processMap.put("createTable", new createTable()); + processMap.put("deleteTable", new deleteTable()); + processMap.put("get", new get()); + processMap.put("getVer", new getVer()); + processMap.put("getVerTs", new getVerTs()); + processMap.put("getRow", new getRow()); + processMap.put("getRowWithColumns", new getRowWithColumns()); + processMap.put("getRowTs", new getRowTs()); + processMap.put("getRowWithColumnsTs", new getRowWithColumnsTs()); + processMap.put("getRows", new getRows()); + processMap.put("getRowsWithColumns", new getRowsWithColumns()); + processMap.put("getRowsTs", new getRowsTs()); + processMap.put("getRowsWithColumnsTs", new getRowsWithColumnsTs()); + processMap.put("mutateRow", new mutateRow()); + processMap.put("mutateRowTs", new mutateRowTs()); + processMap.put("mutateRows", new mutateRows()); + processMap.put("mutateRowsTs", new mutateRowsTs()); + processMap.put("atomicIncrement", new atomicIncrement()); + processMap.put("deleteAll", new deleteAll()); + processMap.put("deleteAllTs", new deleteAllTs()); + processMap.put("deleteAllRow", new deleteAllRow()); + processMap.put("increment", new increment()); + processMap.put("incrementRows", new incrementRows()); + processMap.put("deleteAllRowTs", new deleteAllRowTs()); + processMap.put("scannerOpenWithScan", new scannerOpenWithScan()); + processMap.put("scannerOpen", new scannerOpen()); + processMap.put("scannerOpenWithStop", new scannerOpenWithStop()); + processMap.put("scannerOpenWithPrefix", new scannerOpenWithPrefix()); + processMap.put("scannerOpenTs", new scannerOpenTs()); + processMap.put("scannerOpenWithStopTs", new scannerOpenWithStopTs()); + processMap.put("scannerGet", new scannerGet()); + processMap.put("scannerGetList", new scannerGetList()); + processMap.put("scannerClose", new scannerClose()); + processMap.put("getRegionInfo", new getRegionInfo()); + processMap.put("append", new append()); + processMap.put("checkAndPut", new checkAndPut()); + return processMap; + } + + public static class enableTable extends org.apache.thrift.AsyncProcessFunction { + public enableTable() { + super("enableTable"); + } + + public enableTable_args getEmptyArgsInstance() { + return new enableTable_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + enableTable_result result = new enableTable_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + enableTable_result result = new enableTable_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, enableTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.enableTable(args.tableName,resultHandler); + } + } + + public static class disableTable extends org.apache.thrift.AsyncProcessFunction { + public disableTable() { + super("disableTable"); + } + + public disableTable_args getEmptyArgsInstance() { + return new disableTable_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + disableTable_result result = new disableTable_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + disableTable_result result = new disableTable_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, disableTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.disableTable(args.tableName,resultHandler); + } + } + + public static class isTableEnabled extends org.apache.thrift.AsyncProcessFunction { + public isTableEnabled() { + super("isTableEnabled"); + } + + public isTableEnabled_args getEmptyArgsInstance() { + return new isTableEnabled_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + isTableEnabled_result result = new isTableEnabled_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + isTableEnabled_result result = new isTableEnabled_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, isTableEnabled_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.isTableEnabled(args.tableName,resultHandler); + } + } + + public static class compact extends org.apache.thrift.AsyncProcessFunction { + public compact() { + super("compact"); + } + + public compact_args getEmptyArgsInstance() { + return new compact_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + compact_result result = new compact_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + compact_result result = new compact_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, compact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.compact(args.tableNameOrRegionName,resultHandler); + } + } + + public static class majorCompact extends org.apache.thrift.AsyncProcessFunction { + public majorCompact() { + super("majorCompact"); + } + + public majorCompact_args getEmptyArgsInstance() { + return new majorCompact_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + majorCompact_result result = new majorCompact_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + majorCompact_result result = new majorCompact_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, majorCompact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.majorCompact(args.tableNameOrRegionName,resultHandler); + } + } + + public static class getTableNames extends org.apache.thrift.AsyncProcessFunction> { + public getTableNames() { + super("getTableNames"); + } + + public getTableNames_args getEmptyArgsInstance() { + return new getTableNames_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getTableNames_result result = new getTableNames_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getTableNames_result result = new getTableNames_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getTableNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getTableNames(resultHandler); + } + } + + public static class getColumnDescriptors extends org.apache.thrift.AsyncProcessFunction> { + public getColumnDescriptors() { + super("getColumnDescriptors"); + } + + public getColumnDescriptors_args getEmptyArgsInstance() { + return new getColumnDescriptors_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getColumnDescriptors_result result = new getColumnDescriptors_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getColumnDescriptors_result result = new getColumnDescriptors_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getColumnDescriptors_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getColumnDescriptors(args.tableName,resultHandler); + } + } + + public static class getTableRegions extends org.apache.thrift.AsyncProcessFunction> { + public getTableRegions() { + super("getTableRegions"); + } + + public getTableRegions_args getEmptyArgsInstance() { + return new getTableRegions_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getTableRegions_result result = new getTableRegions_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getTableRegions_result result = new getTableRegions_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getTableRegions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getTableRegions(args.tableName,resultHandler); + } + } + + public static class createTable extends org.apache.thrift.AsyncProcessFunction { + public createTable() { + super("createTable"); + } + + public createTable_args getEmptyArgsInstance() { + return new createTable_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + createTable_result result = new createTable_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + createTable_result result = new createTable_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else if (e instanceof AlreadyExists) { + result.exist = (AlreadyExists) e; + result.setExistIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, createTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.createTable(args.tableName, args.columnFamilies,resultHandler); + } + } + + public static class deleteTable extends org.apache.thrift.AsyncProcessFunction { + public deleteTable() { + super("deleteTable"); + } + + public deleteTable_args getEmptyArgsInstance() { + return new deleteTable_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteTable_result result = new deleteTable_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteTable_result result = new deleteTable_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteTable(args.tableName,resultHandler); + } + } + + public static class get extends org.apache.thrift.AsyncProcessFunction> { + public get() { + super("get"); + } + + public get_args getEmptyArgsInstance() { + return new get_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_result result = new get_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_result result = new get_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get(args.tableName, args.row, args.column, args.attributes,resultHandler); + } + } + + public static class getVer extends org.apache.thrift.AsyncProcessFunction> { + public getVer() { + super("getVer"); + } + + public getVer_args getEmptyArgsInstance() { + return new getVer_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getVer_result result = new getVer_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getVer_result result = new getVer_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getVer_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes,resultHandler); + } + } + + public static class getVerTs extends org.apache.thrift.AsyncProcessFunction> { + public getVerTs() { + super("getVerTs"); + } + + public getVerTs_args getEmptyArgsInstance() { + return new getVerTs_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getVerTs_result result = new getVerTs_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getVerTs_result result = new getVerTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getVerTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes,resultHandler); + } + } + + public static class getRow extends org.apache.thrift.AsyncProcessFunction> { + public getRow() { + super("getRow"); + } + + public getRow_args getEmptyArgsInstance() { + return new getRow_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getRow_result result = new getRow_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRow_result result = new getRow_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRow_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getRow(args.tableName, args.row, args.attributes,resultHandler); + } + } + + public static class getRowWithColumns extends org.apache.thrift.AsyncProcessFunction> { + public getRowWithColumns() { + super("getRowWithColumns"); + } + + public getRowWithColumns_args getEmptyArgsInstance() { + return new getRowWithColumns_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getRowWithColumns_result result = new getRowWithColumns_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRowWithColumns_result result = new getRowWithColumns_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRowWithColumns_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes,resultHandler); + } + } + + public static class getRowTs extends org.apache.thrift.AsyncProcessFunction> { + public getRowTs() { + super("getRowTs"); + } + + public getRowTs_args getEmptyArgsInstance() { + return new getRowTs_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getRowTs_result result = new getRowTs_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRowTs_result result = new getRowTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRowTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getRowTs(args.tableName, args.row, args.timestamp, args.attributes,resultHandler); + } + } + + public static class getRowWithColumnsTs extends org.apache.thrift.AsyncProcessFunction> { + public getRowWithColumnsTs() { + super("getRowWithColumnsTs"); + } + + public getRowWithColumnsTs_args getEmptyArgsInstance() { + return new getRowWithColumnsTs_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getRowWithColumnsTs_result result = new getRowWithColumnsTs_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRowWithColumnsTs_result result = new getRowWithColumnsTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRowWithColumnsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes,resultHandler); + } + } + + public static class getRows extends org.apache.thrift.AsyncProcessFunction> { + public getRows() { + super("getRows"); + } + + public getRows_args getEmptyArgsInstance() { + return new getRows_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getRows_result result = new getRows_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRows_result result = new getRows_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getRows(args.tableName, args.rows, args.attributes,resultHandler); + } + } + + public static class getRowsWithColumns extends org.apache.thrift.AsyncProcessFunction> { + public getRowsWithColumns() { + super("getRowsWithColumns"); + } + + public getRowsWithColumns_args getEmptyArgsInstance() { + return new getRowsWithColumns_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getRowsWithColumns_result result = new getRowsWithColumns_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRowsWithColumns_result result = new getRowsWithColumns_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRowsWithColumns_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes,resultHandler); + } + } + + public static class getRowsTs extends org.apache.thrift.AsyncProcessFunction> { + public getRowsTs() { + super("getRowsTs"); + } + + public getRowsTs_args getEmptyArgsInstance() { + return new getRowsTs_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getRowsTs_result result = new getRowsTs_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRowsTs_result result = new getRowsTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRowsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes,resultHandler); + } + } + + public static class getRowsWithColumnsTs extends org.apache.thrift.AsyncProcessFunction> { + public getRowsWithColumnsTs() { + super("getRowsWithColumnsTs"); + } + + public getRowsWithColumnsTs_args getEmptyArgsInstance() { + return new getRowsWithColumnsTs_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRowsWithColumnsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes,resultHandler); + } + } + + public static class mutateRow extends org.apache.thrift.AsyncProcessFunction { + public mutateRow() { + super("mutateRow"); + } + + public mutateRow_args getEmptyArgsInstance() { + return new mutateRow_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + mutateRow_result result = new mutateRow_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + mutateRow_result result = new mutateRow_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, mutateRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.mutateRow(args.tableName, args.row, args.mutations, args.attributes,resultHandler); + } + } + + public static class mutateRowTs extends org.apache.thrift.AsyncProcessFunction { + public mutateRowTs() { + super("mutateRowTs"); + } + + public mutateRowTs_args getEmptyArgsInstance() { + return new mutateRowTs_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + mutateRowTs_result result = new mutateRowTs_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + mutateRowTs_result result = new mutateRowTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, mutateRowTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes,resultHandler); + } + } + + public static class mutateRows extends org.apache.thrift.AsyncProcessFunction { + public mutateRows() { + super("mutateRows"); + } + + public mutateRows_args getEmptyArgsInstance() { + return new mutateRows_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + mutateRows_result result = new mutateRows_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + mutateRows_result result = new mutateRows_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, mutateRows_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.mutateRows(args.tableName, args.rowBatches, args.attributes,resultHandler); + } + } + + public static class mutateRowsTs extends org.apache.thrift.AsyncProcessFunction { + public mutateRowsTs() { + super("mutateRowsTs"); + } + + public mutateRowsTs_args getEmptyArgsInstance() { + return new mutateRowsTs_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + mutateRowsTs_result result = new mutateRowsTs_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + mutateRowsTs_result result = new mutateRowsTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, mutateRowsTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes,resultHandler); + } + } + + public static class atomicIncrement extends org.apache.thrift.AsyncProcessFunction { + public atomicIncrement() { + super("atomicIncrement"); + } + + public atomicIncrement_args getEmptyArgsInstance() { + return new atomicIncrement_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Long o) { + atomicIncrement_result result = new atomicIncrement_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + atomicIncrement_result result = new atomicIncrement_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, atomicIncrement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.atomicIncrement(args.tableName, args.row, args.column, args.value,resultHandler); + } + } + + public static class deleteAll extends org.apache.thrift.AsyncProcessFunction { + public deleteAll() { + super("deleteAll"); + } + + public deleteAll_args getEmptyArgsInstance() { + return new deleteAll_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteAll_result result = new deleteAll_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteAll_result result = new deleteAll_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteAll_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteAll(args.tableName, args.row, args.column, args.attributes,resultHandler); + } + } + + public static class deleteAllTs extends org.apache.thrift.AsyncProcessFunction { + public deleteAllTs() { + super("deleteAllTs"); + } + + public deleteAllTs_args getEmptyArgsInstance() { + return new deleteAllTs_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteAllTs_result result = new deleteAllTs_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteAllTs_result result = new deleteAllTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteAllTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes,resultHandler); + } + } + + public static class deleteAllRow extends org.apache.thrift.AsyncProcessFunction { + public deleteAllRow() { + super("deleteAllRow"); + } + + public deleteAllRow_args getEmptyArgsInstance() { + return new deleteAllRow_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteAllRow_result result = new deleteAllRow_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteAllRow_result result = new deleteAllRow_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteAllRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteAllRow(args.tableName, args.row, args.attributes,resultHandler); + } + } + + public static class increment extends org.apache.thrift.AsyncProcessFunction { + public increment() { + super("increment"); + } + + public increment_args getEmptyArgsInstance() { + return new increment_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + increment_result result = new increment_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + increment_result result = new increment_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, increment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.increment(args.increment,resultHandler); + } + } + + public static class incrementRows extends org.apache.thrift.AsyncProcessFunction { + public incrementRows() { + super("incrementRows"); + } + + public incrementRows_args getEmptyArgsInstance() { + return new incrementRows_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + incrementRows_result result = new incrementRows_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + incrementRows_result result = new incrementRows_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, incrementRows_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.incrementRows(args.increments,resultHandler); + } + } + + public static class deleteAllRowTs extends org.apache.thrift.AsyncProcessFunction { + public deleteAllRowTs() { + super("deleteAllRowTs"); + } + + public deleteAllRowTs_args getEmptyArgsInstance() { + return new deleteAllRowTs_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteAllRowTs_result result = new deleteAllRowTs_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteAllRowTs_result result = new deleteAllRowTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteAllRowTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes,resultHandler); + } + } + + public static class scannerOpenWithScan extends org.apache.thrift.AsyncProcessFunction { + public scannerOpenWithScan() { + super("scannerOpenWithScan"); + } + + public scannerOpenWithScan_args getEmptyArgsInstance() { + return new scannerOpenWithScan_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + scannerOpenWithScan_result result = new scannerOpenWithScan_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerOpenWithScan_result result = new scannerOpenWithScan_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerOpenWithScan_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.scannerOpenWithScan(args.tableName, args.scan, args.attributes,resultHandler); + } + } + + public static class scannerOpen extends org.apache.thrift.AsyncProcessFunction { + public scannerOpen() { + super("scannerOpen"); + } + + public scannerOpen_args getEmptyArgsInstance() { + return new scannerOpen_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + scannerOpen_result result = new scannerOpen_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerOpen_result result = new scannerOpen_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerOpen_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes,resultHandler); + } + } + + public static class scannerOpenWithStop extends org.apache.thrift.AsyncProcessFunction { + public scannerOpenWithStop() { + super("scannerOpenWithStop"); + } + + public scannerOpenWithStop_args getEmptyArgsInstance() { + return new scannerOpenWithStop_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + scannerOpenWithStop_result result = new scannerOpenWithStop_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerOpenWithStop_result result = new scannerOpenWithStop_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerOpenWithStop_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes,resultHandler); + } + } + + public static class scannerOpenWithPrefix extends org.apache.thrift.AsyncProcessFunction { + public scannerOpenWithPrefix() { + super("scannerOpenWithPrefix"); + } + + public scannerOpenWithPrefix_args getEmptyArgsInstance() { + return new scannerOpenWithPrefix_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerOpenWithPrefix_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes,resultHandler); + } + } + + public static class scannerOpenTs extends org.apache.thrift.AsyncProcessFunction { + public scannerOpenTs() { + super("scannerOpenTs"); + } + + public scannerOpenTs_args getEmptyArgsInstance() { + return new scannerOpenTs_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + scannerOpenTs_result result = new scannerOpenTs_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerOpenTs_result result = new scannerOpenTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerOpenTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes,resultHandler); + } + } + + public static class scannerOpenWithStopTs extends org.apache.thrift.AsyncProcessFunction { + public scannerOpenWithStopTs() { + super("scannerOpenWithStopTs"); + } + + public scannerOpenWithStopTs_args getEmptyArgsInstance() { + return new scannerOpenWithStopTs_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerOpenWithStopTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes,resultHandler); + } + } + + public static class scannerGet extends org.apache.thrift.AsyncProcessFunction> { + public scannerGet() { + super("scannerGet"); + } + + public scannerGet_args getEmptyArgsInstance() { + return new scannerGet_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + scannerGet_result result = new scannerGet_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerGet_result result = new scannerGet_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerGet_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.scannerGet(args.id,resultHandler); + } + } + + public static class scannerGetList extends org.apache.thrift.AsyncProcessFunction> { + public scannerGetList() { + super("scannerGetList"); + } + + public scannerGetList_args getEmptyArgsInstance() { + return new scannerGetList_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + scannerGetList_result result = new scannerGetList_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerGetList_result result = new scannerGetList_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerGetList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.scannerGetList(args.id, args.nbRows,resultHandler); + } + } + + public static class scannerClose extends org.apache.thrift.AsyncProcessFunction { + public scannerClose() { + super("scannerClose"); + } + + public scannerClose_args getEmptyArgsInstance() { + return new scannerClose_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + scannerClose_result result = new scannerClose_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + scannerClose_result result = new scannerClose_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, scannerClose_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.scannerClose(args.id,resultHandler); + } + } + + public static class getRegionInfo extends org.apache.thrift.AsyncProcessFunction { + public getRegionInfo() { + super("getRegionInfo"); + } + + public getRegionInfo_args getEmptyArgsInstance() { + return new getRegionInfo_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(TRegionInfo o) { + getRegionInfo_result result = new getRegionInfo_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRegionInfo_result result = new getRegionInfo_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRegionInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getRegionInfo(args.row,resultHandler); + } + } + + public static class append extends org.apache.thrift.AsyncProcessFunction> { + public append() { + super("append"); + } + + public append_args getEmptyArgsInstance() { + return new append_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + append_result result = new append_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + append_result result = new append_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, append_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.append(args.append,resultHandler); + } + } + + public static class checkAndPut extends org.apache.thrift.AsyncProcessFunction { + public checkAndPut() { + super("checkAndPut"); + } + + public checkAndPut_args getEmptyArgsInstance() { + return new checkAndPut_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + checkAndPut_result result = new checkAndPut_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + checkAndPut_result result = new checkAndPut_result(); + if (e instanceof IOError) { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof IllegalArgument) { + result.ia = (IllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, checkAndPut_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.checkAndPut(args.tableName, args.row, args.column, args.value, args.mput, args.attributes,resultHandler); + } + } + + } + + public static class enableTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -4907,7 +7526,7 @@ public class Hbase { ByteBuffer tableName) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** @@ -4937,19 +7556,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of the table */ public enableTable_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public enableTable_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -5030,30 +7649,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(enableTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - enableTable_args typedOther = (enableTable_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } @@ -5196,7 +7815,7 @@ public class Hbase { } - public static class enableTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class enableTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -5391,30 +8010,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(enableTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - enableTable_result typedOther = (enableTable_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -5559,7 +8178,7 @@ public class Hbase { } - public static class disableTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class disableTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -5653,7 +8272,7 @@ public class Hbase { ByteBuffer tableName) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** @@ -5683,19 +8302,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of the table */ public disableTable_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public disableTable_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -5776,30 +8395,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(disableTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - disableTable_args typedOther = (disableTable_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } @@ -5942,7 +8561,7 @@ public class Hbase { } - public static class disableTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class disableTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -6137,30 +8756,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(disableTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - disableTable_result typedOther = (disableTable_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -6305,7 +8924,7 @@ public class Hbase { } - public static class isTableEnabled_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class isTableEnabled_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -6399,7 +9018,7 @@ public class Hbase { ByteBuffer tableName) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** @@ -6429,19 +9048,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of the table to check */ public isTableEnabled_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public isTableEnabled_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -6522,30 +9141,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(isTableEnabled_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - isTableEnabled_args typedOther = (isTableEnabled_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } @@ -6688,7 +9307,7 @@ public class Hbase { } - public static class isTableEnabled_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class isTableEnabled_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); @@ -6944,45 +9563,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(isTableEnabled_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - isTableEnabled_result typedOther = (isTableEnabled_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -7156,7 +9775,7 @@ public class Hbase { } - public static class compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_OR_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNameOrRegionName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -7244,7 +9863,7 @@ public class Hbase { ByteBuffer tableNameOrRegionName) { this(); - this.tableNameOrRegionName = tableNameOrRegionName; + this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); } /** @@ -7271,16 +9890,16 @@ public class Hbase { } public ByteBuffer bufferForTableNameOrRegionName() { - return tableNameOrRegionName; + return org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); } public compact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) { - setTableNameOrRegionName(tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableNameOrRegionName)); + this.tableNameOrRegionName = tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableNameOrRegionName, tableNameOrRegionName.length)); return this; } public compact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) { - this.tableNameOrRegionName = tableNameOrRegionName; + this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); return this; } @@ -7361,30 +9980,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName()); - builder.append(present_tableNameOrRegionName); + list.add(present_tableNameOrRegionName); if (present_tableNameOrRegionName) - builder.append(tableNameOrRegionName); + list.add(tableNameOrRegionName); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(compact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - compact_args typedOther = (compact_args)other; - lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(typedOther.isSetTableNameOrRegionName()); + lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(other.isSetTableNameOrRegionName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableNameOrRegionName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, typedOther.tableNameOrRegionName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, other.tableNameOrRegionName); if (lastComparison != 0) { return lastComparison; } @@ -7527,7 +10146,7 @@ public class Hbase { } - public static class compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -7722,30 +10341,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(compact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - compact_result typedOther = (compact_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -7890,7 +10509,7 @@ public class Hbase { } - public static class majorCompact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class majorCompact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("majorCompact_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_OR_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNameOrRegionName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -7978,7 +10597,7 @@ public class Hbase { ByteBuffer tableNameOrRegionName) { this(); - this.tableNameOrRegionName = tableNameOrRegionName; + this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); } /** @@ -8005,16 +10624,16 @@ public class Hbase { } public ByteBuffer bufferForTableNameOrRegionName() { - return tableNameOrRegionName; + return org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); } public majorCompact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) { - setTableNameOrRegionName(tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableNameOrRegionName)); + this.tableNameOrRegionName = tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableNameOrRegionName, tableNameOrRegionName.length)); return this; } public majorCompact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) { - this.tableNameOrRegionName = tableNameOrRegionName; + this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); return this; } @@ -8095,30 +10714,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName()); - builder.append(present_tableNameOrRegionName); + list.add(present_tableNameOrRegionName); if (present_tableNameOrRegionName) - builder.append(tableNameOrRegionName); + list.add(tableNameOrRegionName); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(majorCompact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - majorCompact_args typedOther = (majorCompact_args)other; - lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(typedOther.isSetTableNameOrRegionName()); + lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(other.isSetTableNameOrRegionName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableNameOrRegionName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, typedOther.tableNameOrRegionName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, other.tableNameOrRegionName); if (lastComparison != 0) { return lastComparison; } @@ -8261,7 +10880,7 @@ public class Hbase { } - public static class majorCompact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class majorCompact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("majorCompact_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -8456,30 +11075,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(majorCompact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - majorCompact_result typedOther = (majorCompact_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -8624,7 +11243,7 @@ public class Hbase { } - public static class getTableNames_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getTableNames_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableNames_args"); @@ -8754,18 +11373,18 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getTableNames_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getTableNames_args typedOther = (getTableNames_args)other; return 0; } @@ -8872,7 +11491,7 @@ public class Hbase { } - public static class getTableNames_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getTableNames_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableNames_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -8978,7 +11597,7 @@ public class Hbase { */ public getTableNames_result(getTableNames_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (ByteBuffer other_element : other.success) { __this__success.add(other_element); } @@ -9146,45 +11765,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getTableNames_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getTableNames_result typedOther = (getTableNames_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -9272,11 +11891,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list50 = iprot.readListBegin(); struct.success = new ArrayList(_list50.size); - for (int _i51 = 0; _i51 < _list50.size; ++_i51) + ByteBuffer _elem51; + for (int _i52 = 0; _i52 < _list50.size; ++_i52) { - ByteBuffer _elem52; // required - _elem52 = iprot.readBinary(); - struct.success.add(_elem52); + _elem51 = iprot.readBinary(); + struct.success.add(_elem51); } iprot.readListEnd(); } @@ -9373,11 +11992,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list55 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list55.size); - for (int _i56 = 0; _i56 < _list55.size; ++_i56) + ByteBuffer _elem56; + for (int _i57 = 0; _i57 < _list55.size; ++_i57) { - ByteBuffer _elem57; // required - _elem57 = iprot.readBinary(); - struct.success.add(_elem57); + _elem56 = iprot.readBinary(); + struct.success.add(_elem56); } } struct.setSuccessIsSet(true); @@ -9392,7 +12011,7 @@ public class Hbase { } - public static class getColumnDescriptors_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getColumnDescriptors_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getColumnDescriptors_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -9486,7 +12105,7 @@ public class Hbase { ByteBuffer tableName) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** @@ -9516,19 +12135,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * table name */ public getColumnDescriptors_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getColumnDescriptors_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -9609,30 +12228,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getColumnDescriptors_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getColumnDescriptors_args typedOther = (getColumnDescriptors_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } @@ -9775,7 +12394,7 @@ public class Hbase { } - public static class getColumnDescriptors_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getColumnDescriptors_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getColumnDescriptors_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); @@ -9882,7 +12501,7 @@ public class Hbase { */ public getColumnDescriptors_result(getColumnDescriptors_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(); + Map __this__success = new HashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -10054,45 +12673,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getColumnDescriptors_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getColumnDescriptors_result typedOther = (getColumnDescriptors_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -10180,14 +12799,14 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin(); struct.success = new HashMap(2*_map58.size); - for (int _i59 = 0; _i59 < _map58.size; ++_i59) + ByteBuffer _key59; + ColumnDescriptor _val60; + for (int _i61 = 0; _i61 < _map58.size; ++_i61) { - ByteBuffer _key60; // required - ColumnDescriptor _val61; // required - _key60 = iprot.readBinary(); - _val61 = new ColumnDescriptor(); - _val61.read(iprot); - struct.success.put(_key60, _val61); + _key59 = iprot.readBinary(); + _val60 = new ColumnDescriptor(); + _val60.read(iprot); + struct.success.put(_key59, _val60); } iprot.readMapEnd(); } @@ -10286,14 +12905,14 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map64 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new HashMap(2*_map64.size); - for (int _i65 = 0; _i65 < _map64.size; ++_i65) + ByteBuffer _key65; + ColumnDescriptor _val66; + for (int _i67 = 0; _i67 < _map64.size; ++_i67) { - ByteBuffer _key66; // required - ColumnDescriptor _val67; // required - _key66 = iprot.readBinary(); - _val67 = new ColumnDescriptor(); - _val67.read(iprot); - struct.success.put(_key66, _val67); + _key65 = iprot.readBinary(); + _val66 = new ColumnDescriptor(); + _val66.read(iprot); + struct.success.put(_key65, _val66); } } struct.setSuccessIsSet(true); @@ -10308,7 +12927,7 @@ public class Hbase { } - public static class getTableRegions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getTableRegions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableRegions_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -10402,7 +13021,7 @@ public class Hbase { ByteBuffer tableName) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** @@ -10432,19 +13051,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * table name */ public getTableRegions_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getTableRegions_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -10525,30 +13144,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getTableRegions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getTableRegions_args typedOther = (getTableRegions_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } @@ -10691,7 +13310,7 @@ public class Hbase { } - public static class getTableRegions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getTableRegions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableRegions_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -10797,7 +13416,7 @@ public class Hbase { */ public getTableRegions_result(getTableRegions_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRegionInfo other_element : other.success) { __this__success.add(new TRegionInfo(other_element)); } @@ -10965,45 +13584,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getTableRegions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getTableRegions_result typedOther = (getTableRegions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -11091,12 +13710,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list68 = iprot.readListBegin(); struct.success = new ArrayList(_list68.size); - for (int _i69 = 0; _i69 < _list68.size; ++_i69) + TRegionInfo _elem69; + for (int _i70 = 0; _i70 < _list68.size; ++_i70) { - TRegionInfo _elem70; // required - _elem70 = new TRegionInfo(); - _elem70.read(iprot); - struct.success.add(_elem70); + _elem69 = new TRegionInfo(); + _elem69.read(iprot); + struct.success.add(_elem69); } iprot.readListEnd(); } @@ -11193,12 +13812,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list73 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list73.size); - for (int _i74 = 0; _i74 < _list73.size; ++_i74) + TRegionInfo _elem74; + for (int _i75 = 0; _i75 < _list73.size; ++_i75) { - TRegionInfo _elem75; // required - _elem75 = new TRegionInfo(); - _elem75.read(iprot); - struct.success.add(_elem75); + _elem74 = new TRegionInfo(); + _elem74.read(iprot); + struct.success.add(_elem74); } } struct.setSuccessIsSet(true); @@ -11213,7 +13832,7 @@ public class Hbase { } - public static class createTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class createTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -11322,7 +13941,7 @@ public class Hbase { List columnFamilies) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); this.columnFamilies = columnFamilies; } @@ -11334,7 +13953,7 @@ public class Hbase { this.tableName = other.tableName; } if (other.isSetColumnFamilies()) { - List __this__columnFamilies = new ArrayList(); + List __this__columnFamilies = new ArrayList(other.columnFamilies.size()); for (ColumnDescriptor other_element : other.columnFamilies) { __this__columnFamilies.add(new ColumnDescriptor(other_element)); } @@ -11361,19 +13980,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table to create */ public createTable_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public createTable_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -11521,45 +14140,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_columnFamilies = true && (isSetColumnFamilies()); - builder.append(present_columnFamilies); + list.add(present_columnFamilies); if (present_columnFamilies) - builder.append(columnFamilies); + list.add(columnFamilies); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(createTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - createTable_args typedOther = (createTable_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnFamilies()).compareTo(typedOther.isSetColumnFamilies()); + lastComparison = Boolean.valueOf(isSetColumnFamilies()).compareTo(other.isSetColumnFamilies()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnFamilies()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnFamilies, typedOther.columnFamilies); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnFamilies, other.columnFamilies); if (lastComparison != 0) { return lastComparison; } @@ -11655,12 +14274,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list76 = iprot.readListBegin(); struct.columnFamilies = new ArrayList(_list76.size); - for (int _i77 = 0; _i77 < _list76.size; ++_i77) + ColumnDescriptor _elem77; + for (int _i78 = 0; _i78 < _list76.size; ++_i78) { - ColumnDescriptor _elem78; // required - _elem78 = new ColumnDescriptor(); - _elem78.read(iprot); - struct.columnFamilies.add(_elem78); + _elem77 = new ColumnDescriptor(); + _elem77.read(iprot); + struct.columnFamilies.add(_elem77); } iprot.readListEnd(); } @@ -11752,12 +14371,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list81 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columnFamilies = new ArrayList(_list81.size); - for (int _i82 = 0; _i82 < _list81.size; ++_i82) + ColumnDescriptor _elem82; + for (int _i83 = 0; _i83 < _list81.size; ++_i83) { - ColumnDescriptor _elem83; // required - _elem83 = new ColumnDescriptor(); - _elem83.read(iprot); - struct.columnFamilies.add(_elem83); + _elem82 = new ColumnDescriptor(); + _elem82.read(iprot); + struct.columnFamilies.add(_elem82); } } struct.setColumnFamiliesIsSet(true); @@ -11767,7 +14386,7 @@ public class Hbase { } - public static class createTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class createTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -12080,60 +14699,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); boolean present_exist = true && (isSetExist()); - builder.append(present_exist); + list.add(present_exist); if (present_exist) - builder.append(exist); + list.add(exist); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(createTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - createTable_result typedOther = (createTable_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExist()).compareTo(typedOther.isSetExist()); + lastComparison = Boolean.valueOf(isSetExist()).compareTo(other.isSetExist()); if (lastComparison != 0) { return lastComparison; } if (isSetExist()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exist, typedOther.exist); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exist, other.exist); if (lastComparison != 0) { return lastComparison; } @@ -12344,7 +14963,7 @@ public class Hbase { } - public static class deleteTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -12438,7 +15057,7 @@ public class Hbase { ByteBuffer tableName) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** @@ -12468,19 +15087,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table to delete */ public deleteTable_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public deleteTable_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -12561,30 +15180,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteTable_args typedOther = (deleteTable_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } @@ -12727,7 +15346,7 @@ public class Hbase { } - public static class deleteTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -12922,30 +15541,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteTable_result typedOther = (deleteTable_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -13090,7 +15709,7 @@ public class Hbase { } - public static class get_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -13228,9 +15847,9 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; - this.column = column; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); this.attributes = attributes; } @@ -13248,7 +15867,7 @@ public class Hbase { this.column = other.column; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -13285,19 +15904,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public get_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public get_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -13325,19 +15944,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public get_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public get_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -13365,19 +15984,19 @@ public class Hbase { } public ByteBuffer bufferForColumn() { - return column; + return org.apache.thrift.TBaseHelper.copyBinary(column); } /** * column name */ public get_args setColumn(byte[] column) { - setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); + this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); return this; } public get_args setColumn(ByteBuffer column) { - this.column = column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -13565,75 +16184,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(get_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_args typedOther = (get_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -13761,13 +16380,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map84.size); - for (int _i85 = 0; _i85 < _map84.size; ++_i85) + ByteBuffer _key85; + ByteBuffer _val86; + for (int _i87 = 0; _i87 < _map84.size; ++_i87) { - ByteBuffer _key86; // required - ByteBuffer _val87; // required - _key86 = iprot.readBinary(); - _val87 = iprot.readBinary(); - struct.attributes.put(_key86, _val87); + _key85 = iprot.readBinary(); + _val86 = iprot.readBinary(); + struct.attributes.put(_key85, _val86); } iprot.readMapEnd(); } @@ -13891,13 +16510,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map90 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map90.size); - for (int _i91 = 0; _i91 < _map90.size; ++_i91) + ByteBuffer _key91; + ByteBuffer _val92; + for (int _i93 = 0; _i93 < _map90.size; ++_i93) { - ByteBuffer _key92; // required - ByteBuffer _val93; // required - _key92 = iprot.readBinary(); - _val93 = iprot.readBinary(); - struct.attributes.put(_key92, _val93); + _key91 = iprot.readBinary(); + _val92 = iprot.readBinary(); + struct.attributes.put(_key91, _val92); } } struct.setAttributesIsSet(true); @@ -13907,7 +16526,7 @@ public class Hbase { } - public static class get_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -14013,7 +16632,7 @@ public class Hbase { */ public get_result(get_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -14181,45 +16800,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(get_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_result typedOther = (get_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -14307,12 +16926,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list94 = iprot.readListBegin(); struct.success = new ArrayList(_list94.size); - for (int _i95 = 0; _i95 < _list94.size; ++_i95) + TCell _elem95; + for (int _i96 = 0; _i96 < _list94.size; ++_i96) { - TCell _elem96; // required - _elem96 = new TCell(); - _elem96.read(iprot); - struct.success.add(_elem96); + _elem95 = new TCell(); + _elem95.read(iprot); + struct.success.add(_elem95); } iprot.readListEnd(); } @@ -14409,12 +17028,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list99 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list99.size); - for (int _i100 = 0; _i100 < _list99.size; ++_i100) + TCell _elem100; + for (int _i101 = 0; _i101 < _list99.size; ++_i101) { - TCell _elem101; // required - _elem101 = new TCell(); - _elem101.read(iprot); - struct.success.add(_elem101); + _elem100 = new TCell(); + _elem100.read(iprot); + struct.success.add(_elem100); } } struct.setSuccessIsSet(true); @@ -14429,7 +17048,7 @@ public class Hbase { } - public static class getVer_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getVer_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVer_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -14583,9 +17202,9 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; - this.column = column; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); this.numVersions = numVersions; setNumVersionsIsSet(true); this.attributes = attributes; @@ -14607,7 +17226,7 @@ public class Hbase { } this.numVersions = other.numVersions; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -14646,19 +17265,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public getVer_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getVer_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -14686,19 +17305,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public getVer_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public getVer_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -14726,19 +17345,19 @@ public class Hbase { } public ByteBuffer bufferForColumn() { - return column; + return org.apache.thrift.TBaseHelper.copyBinary(column); } /** * column name */ public getVer_args setColumn(byte[] column) { - setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); + this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); return this; } public getVer_args setColumn(ByteBuffer column) { - this.column = column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -14977,90 +17596,90 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_numVersions = true; - builder.append(present_numVersions); + list.add(present_numVersions); if (present_numVersions) - builder.append(numVersions); + list.add(numVersions); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getVer_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getVer_args typedOther = (getVer_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(typedOther.isSetNumVersions()); + lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(other.isSetNumVersions()); if (lastComparison != 0) { return lastComparison; } if (isSetNumVersions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, typedOther.numVersions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, other.numVersions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -15202,13 +17821,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map102 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map102.size); - for (int _i103 = 0; _i103 < _map102.size; ++_i103) + ByteBuffer _key103; + ByteBuffer _val104; + for (int _i105 = 0; _i105 < _map102.size; ++_i105) { - ByteBuffer _key104; // required - ByteBuffer _val105; // required - _key104 = iprot.readBinary(); - _val105 = iprot.readBinary(); - struct.attributes.put(_key104, _val105); + _key103 = iprot.readBinary(); + _val104 = iprot.readBinary(); + struct.attributes.put(_key103, _val104); } iprot.readMapEnd(); } @@ -15345,13 +17964,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map108 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map108.size); - for (int _i109 = 0; _i109 < _map108.size; ++_i109) + ByteBuffer _key109; + ByteBuffer _val110; + for (int _i111 = 0; _i111 < _map108.size; ++_i111) { - ByteBuffer _key110; // required - ByteBuffer _val111; // required - _key110 = iprot.readBinary(); - _val111 = iprot.readBinary(); - struct.attributes.put(_key110, _val111); + _key109 = iprot.readBinary(); + _val110 = iprot.readBinary(); + struct.attributes.put(_key109, _val110); } } struct.setAttributesIsSet(true); @@ -15361,7 +17980,7 @@ public class Hbase { } - public static class getVer_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getVer_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVer_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -15467,7 +18086,7 @@ public class Hbase { */ public getVer_result(getVer_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -15635,45 +18254,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getVer_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getVer_result typedOther = (getVer_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -15761,12 +18380,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(); struct.success = new ArrayList(_list112.size); - for (int _i113 = 0; _i113 < _list112.size; ++_i113) + TCell _elem113; + for (int _i114 = 0; _i114 < _list112.size; ++_i114) { - TCell _elem114; // required - _elem114 = new TCell(); - _elem114.read(iprot); - struct.success.add(_elem114); + _elem113 = new TCell(); + _elem113.read(iprot); + struct.success.add(_elem113); } iprot.readListEnd(); } @@ -15863,12 +18482,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list117.size); - for (int _i118 = 0; _i118 < _list117.size; ++_i118) + TCell _elem118; + for (int _i119 = 0; _i119 < _list117.size; ++_i119) { - TCell _elem119; // required - _elem119 = new TCell(); - _elem119.read(iprot); - struct.success.add(_elem119); + _elem118 = new TCell(); + _elem118.read(iprot); + struct.success.add(_elem118); } } struct.setSuccessIsSet(true); @@ -15883,7 +18502,7 @@ public class Hbase { } - public static class getVerTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getVerTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -16052,9 +18671,9 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; - this.column = column; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); this.timestamp = timestamp; setTimestampIsSet(true); this.numVersions = numVersions; @@ -16079,7 +18698,7 @@ public class Hbase { this.timestamp = other.timestamp; this.numVersions = other.numVersions; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -16120,19 +18739,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public getVerTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getVerTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -16160,19 +18779,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public getVerTs_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public getVerTs_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -16200,19 +18819,19 @@ public class Hbase { } public ByteBuffer bufferForColumn() { - return column; + return org.apache.thrift.TBaseHelper.copyBinary(column); } /** * column name */ public getVerTs_args setColumn(byte[] column) { - setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); + this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); return this; } public getVerTs_args setColumn(ByteBuffer column) { - this.column = column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -16502,105 +19121,105 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_numVersions = true; - builder.append(present_numVersions); + list.add(present_numVersions); if (present_numVersions) - builder.append(numVersions); + list.add(numVersions); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getVerTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getVerTs_args typedOther = (getVerTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(typedOther.isSetNumVersions()); + lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(other.isSetNumVersions()); if (lastComparison != 0) { return lastComparison; } if (isSetNumVersions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, typedOther.numVersions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, other.numVersions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -16754,13 +19373,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map120 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map120.size); - for (int _i121 = 0; _i121 < _map120.size; ++_i121) + ByteBuffer _key121; + ByteBuffer _val122; + for (int _i123 = 0; _i123 < _map120.size; ++_i123) { - ByteBuffer _key122; // required - ByteBuffer _val123; // required - _key122 = iprot.readBinary(); - _val123 = iprot.readBinary(); - struct.attributes.put(_key122, _val123); + _key121 = iprot.readBinary(); + _val122 = iprot.readBinary(); + struct.attributes.put(_key121, _val122); } iprot.readMapEnd(); } @@ -16910,13 +19529,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map126 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map126.size); - for (int _i127 = 0; _i127 < _map126.size; ++_i127) + ByteBuffer _key127; + ByteBuffer _val128; + for (int _i129 = 0; _i129 < _map126.size; ++_i129) { - ByteBuffer _key128; // required - ByteBuffer _val129; // required - _key128 = iprot.readBinary(); - _val129 = iprot.readBinary(); - struct.attributes.put(_key128, _val129); + _key127 = iprot.readBinary(); + _val128 = iprot.readBinary(); + struct.attributes.put(_key127, _val128); } } struct.setAttributesIsSet(true); @@ -16926,7 +19545,7 @@ public class Hbase { } - public static class getVerTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getVerTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerTs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -17032,7 +19651,7 @@ public class Hbase { */ public getVerTs_result(getVerTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -17200,45 +19819,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getVerTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getVerTs_result typedOther = (getVerTs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -17326,12 +19945,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); struct.success = new ArrayList(_list130.size); - for (int _i131 = 0; _i131 < _list130.size; ++_i131) + TCell _elem131; + for (int _i132 = 0; _i132 < _list130.size; ++_i132) { - TCell _elem132; // required - _elem132 = new TCell(); - _elem132.read(iprot); - struct.success.add(_elem132); + _elem131 = new TCell(); + _elem131.read(iprot); + struct.success.add(_elem131); } iprot.readListEnd(); } @@ -17428,12 +20047,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list135.size); - for (int _i136 = 0; _i136 < _list135.size; ++_i136) + TCell _elem136; + for (int _i137 = 0; _i137 < _list135.size; ++_i137) { - TCell _elem137; // required - _elem137 = new TCell(); - _elem137.read(iprot); - struct.success.add(_elem137); + _elem136 = new TCell(); + _elem136.read(iprot); + struct.success.add(_elem136); } } struct.setSuccessIsSet(true); @@ -17448,7 +20067,7 @@ public class Hbase { } - public static class getRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRow_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -17572,8 +20191,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.attributes = attributes; } @@ -17588,7 +20207,7 @@ public class Hbase { this.row = other.row; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -17624,19 +20243,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public getRow_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getRow_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -17664,19 +20283,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public getRow_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public getRow_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -17842,60 +20461,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRow_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRow_args typedOther = (getRow_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -18007,13 +20626,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map138.size); - for (int _i139 = 0; _i139 < _map138.size; ++_i139) + ByteBuffer _key139; + ByteBuffer _val140; + for (int _i141 = 0; _i141 < _map138.size; ++_i141) { - ByteBuffer _key140; // required - ByteBuffer _val141; // required - _key140 = iprot.readBinary(); - _val141 = iprot.readBinary(); - struct.attributes.put(_key140, _val141); + _key139 = iprot.readBinary(); + _val140 = iprot.readBinary(); + struct.attributes.put(_key139, _val140); } iprot.readMapEnd(); } @@ -18122,13 +20741,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map144 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map144.size); - for (int _i145 = 0; _i145 < _map144.size; ++_i145) + ByteBuffer _key145; + ByteBuffer _val146; + for (int _i147 = 0; _i147 < _map144.size; ++_i147) { - ByteBuffer _key146; // required - ByteBuffer _val147; // required - _key146 = iprot.readBinary(); - _val147 = iprot.readBinary(); - struct.attributes.put(_key146, _val147); + _key145 = iprot.readBinary(); + _val146 = iprot.readBinary(); + struct.attributes.put(_key145, _val146); } } struct.setAttributesIsSet(true); @@ -18138,7 +20757,7 @@ public class Hbase { } - public static class getRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRow_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -18244,7 +20863,7 @@ public class Hbase { */ public getRow_result(getRow_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -18412,45 +21031,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRow_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRow_result typedOther = (getRow_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -18538,12 +21157,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); struct.success = new ArrayList(_list148.size); - for (int _i149 = 0; _i149 < _list148.size; ++_i149) + TRowResult _elem149; + for (int _i150 = 0; _i150 < _list148.size; ++_i150) { - TRowResult _elem150; // required - _elem150 = new TRowResult(); - _elem150.read(iprot); - struct.success.add(_elem150); + _elem149 = new TRowResult(); + _elem149.read(iprot); + struct.success.add(_elem149); } iprot.readListEnd(); } @@ -18640,12 +21259,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list153.size); - for (int _i154 = 0; _i154 < _list153.size; ++_i154) + TRowResult _elem154; + for (int _i155 = 0; _i155 < _list153.size; ++_i155) { - TRowResult _elem155; // required - _elem155 = new TRowResult(); - _elem155.read(iprot); - struct.success.add(_elem155); + _elem154 = new TRowResult(); + _elem154.read(iprot); + struct.success.add(_elem154); } } struct.setSuccessIsSet(true); @@ -18660,7 +21279,7 @@ public class Hbase { } - public static class getRowWithColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowWithColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumns_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -18799,8 +21418,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.columns = columns; this.attributes = attributes; } @@ -18816,14 +21435,14 @@ public class Hbase { this.row = other.row; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -18860,19 +21479,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public getRowWithColumns_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getRowWithColumns_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -18900,19 +21519,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public getRowWithColumns_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public getRowWithColumns_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -19145,75 +21764,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowWithColumns_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowWithColumns_args typedOther = (getRowWithColumns_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -19333,11 +21952,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); struct.columns = new ArrayList(_list156.size); - for (int _i157 = 0; _i157 < _list156.size; ++_i157) + ByteBuffer _elem157; + for (int _i158 = 0; _i158 < _list156.size; ++_i158) { - ByteBuffer _elem158; // required - _elem158 = iprot.readBinary(); - struct.columns.add(_elem158); + _elem157 = iprot.readBinary(); + struct.columns.add(_elem157); } iprot.readListEnd(); } @@ -19351,13 +21970,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map159 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map159.size); - for (int _i160 = 0; _i160 < _map159.size; ++_i160) + ByteBuffer _key160; + ByteBuffer _val161; + for (int _i162 = 0; _i162 < _map159.size; ++_i162) { - ByteBuffer _key161; // required - ByteBuffer _val162; // required - _key161 = iprot.readBinary(); - _val162 = iprot.readBinary(); - struct.attributes.put(_key161, _val162); + _key160 = iprot.readBinary(); + _val161 = iprot.readBinary(); + struct.attributes.put(_key160, _val161); } iprot.readMapEnd(); } @@ -19490,11 +22109,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list167.size); - for (int _i168 = 0; _i168 < _list167.size; ++_i168) + ByteBuffer _elem168; + for (int _i169 = 0; _i169 < _list167.size; ++_i169) { - ByteBuffer _elem169; // required - _elem169 = iprot.readBinary(); - struct.columns.add(_elem169); + _elem168 = iprot.readBinary(); + struct.columns.add(_elem168); } } struct.setColumnsIsSet(true); @@ -19503,13 +22122,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map170 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map170.size); - for (int _i171 = 0; _i171 < _map170.size; ++_i171) + ByteBuffer _key171; + ByteBuffer _val172; + for (int _i173 = 0; _i173 < _map170.size; ++_i173) { - ByteBuffer _key172; // required - ByteBuffer _val173; // required - _key172 = iprot.readBinary(); - _val173 = iprot.readBinary(); - struct.attributes.put(_key172, _val173); + _key171 = iprot.readBinary(); + _val172 = iprot.readBinary(); + struct.attributes.put(_key171, _val172); } } struct.setAttributesIsSet(true); @@ -19519,7 +22138,7 @@ public class Hbase { } - public static class getRowWithColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowWithColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumns_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -19625,7 +22244,7 @@ public class Hbase { */ public getRowWithColumns_result(getRowWithColumns_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -19793,45 +22412,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowWithColumns_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowWithColumns_result typedOther = (getRowWithColumns_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -19919,12 +22538,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list174 = iprot.readListBegin(); struct.success = new ArrayList(_list174.size); - for (int _i175 = 0; _i175 < _list174.size; ++_i175) + TRowResult _elem175; + for (int _i176 = 0; _i176 < _list174.size; ++_i176) { - TRowResult _elem176; // required - _elem176 = new TRowResult(); - _elem176.read(iprot); - struct.success.add(_elem176); + _elem175 = new TRowResult(); + _elem175.read(iprot); + struct.success.add(_elem175); } iprot.readListEnd(); } @@ -20021,12 +22640,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list179.size); - for (int _i180 = 0; _i180 < _list179.size; ++_i180) + TRowResult _elem180; + for (int _i181 = 0; _i181 < _list179.size; ++_i181) { - TRowResult _elem181; // required - _elem181 = new TRowResult(); - _elem181.read(iprot); - struct.success.add(_elem181); + _elem180 = new TRowResult(); + _elem180.read(iprot); + struct.success.add(_elem180); } } struct.setSuccessIsSet(true); @@ -20041,7 +22660,7 @@ public class Hbase { } - public static class getRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -20181,8 +22800,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.timestamp = timestamp; setTimestampIsSet(true); this.attributes = attributes; @@ -20201,7 +22820,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -20239,19 +22858,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of the table */ public getRowTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getRowTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -20279,19 +22898,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public getRowTs_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public getRowTs_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -20508,75 +23127,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowTs_args typedOther = (getRowTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -20702,13 +23321,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map182 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map182.size); - for (int _i183 = 0; _i183 < _map182.size; ++_i183) + ByteBuffer _key183; + ByteBuffer _val184; + for (int _i185 = 0; _i185 < _map182.size; ++_i185) { - ByteBuffer _key184; // required - ByteBuffer _val185; // required - _key184 = iprot.readBinary(); - _val185 = iprot.readBinary(); - struct.attributes.put(_key184, _val185); + _key183 = iprot.readBinary(); + _val184 = iprot.readBinary(); + struct.attributes.put(_key183, _val184); } iprot.readMapEnd(); } @@ -20830,13 +23449,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map188 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map188.size); - for (int _i189 = 0; _i189 < _map188.size; ++_i189) + ByteBuffer _key189; + ByteBuffer _val190; + for (int _i191 = 0; _i191 < _map188.size; ++_i191) { - ByteBuffer _key190; // required - ByteBuffer _val191; // required - _key190 = iprot.readBinary(); - _val191 = iprot.readBinary(); - struct.attributes.put(_key190, _val191); + _key189 = iprot.readBinary(); + _val190 = iprot.readBinary(); + struct.attributes.put(_key189, _val190); } } struct.setAttributesIsSet(true); @@ -20846,7 +23465,7 @@ public class Hbase { } - public static class getRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowTs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -20952,7 +23571,7 @@ public class Hbase { */ public getRowTs_result(getRowTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -21120,45 +23739,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowTs_result typedOther = (getRowTs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -21246,12 +23865,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(); struct.success = new ArrayList(_list192.size); - for (int _i193 = 0; _i193 < _list192.size; ++_i193) + TRowResult _elem193; + for (int _i194 = 0; _i194 < _list192.size; ++_i194) { - TRowResult _elem194; // required - _elem194 = new TRowResult(); - _elem194.read(iprot); - struct.success.add(_elem194); + _elem193 = new TRowResult(); + _elem193.read(iprot); + struct.success.add(_elem193); } iprot.readListEnd(); } @@ -21348,12 +23967,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list197.size); - for (int _i198 = 0; _i198 < _list197.size; ++_i198) + TRowResult _elem198; + for (int _i199 = 0; _i199 < _list197.size; ++_i199) { - TRowResult _elem199; // required - _elem199 = new TRowResult(); - _elem199.read(iprot); - struct.success.add(_elem199); + _elem198 = new TRowResult(); + _elem198.read(iprot); + struct.success.add(_elem198); } } struct.setSuccessIsSet(true); @@ -21368,7 +23987,7 @@ public class Hbase { } - public static class getRowWithColumnsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowWithColumnsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumnsTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -21517,8 +24136,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.columns = columns; this.timestamp = timestamp; setTimestampIsSet(true); @@ -21537,7 +24156,7 @@ public class Hbase { this.row = other.row; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } @@ -21545,7 +24164,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -21584,19 +24203,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public getRowWithColumnsTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getRowWithColumnsTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -21624,19 +24243,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public getRowWithColumnsTs_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public getRowWithColumnsTs_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -21914,90 +24533,90 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowWithColumnsTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowWithColumnsTs_args typedOther = (getRowWithColumnsTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -22123,11 +24742,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list200 = iprot.readListBegin(); struct.columns = new ArrayList(_list200.size); - for (int _i201 = 0; _i201 < _list200.size; ++_i201) + ByteBuffer _elem201; + for (int _i202 = 0; _i202 < _list200.size; ++_i202) { - ByteBuffer _elem202; // required - _elem202 = iprot.readBinary(); - struct.columns.add(_elem202); + _elem201 = iprot.readBinary(); + struct.columns.add(_elem201); } iprot.readListEnd(); } @@ -22149,13 +24768,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map203 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map203.size); - for (int _i204 = 0; _i204 < _map203.size; ++_i204) + ByteBuffer _key204; + ByteBuffer _val205; + for (int _i206 = 0; _i206 < _map203.size; ++_i206) { - ByteBuffer _key205; // required - ByteBuffer _val206; // required - _key205 = iprot.readBinary(); - _val206 = iprot.readBinary(); - struct.attributes.put(_key205, _val206); + _key204 = iprot.readBinary(); + _val205 = iprot.readBinary(); + struct.attributes.put(_key204, _val205); } iprot.readMapEnd(); } @@ -22297,11 +24916,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list211.size); - for (int _i212 = 0; _i212 < _list211.size; ++_i212) + ByteBuffer _elem212; + for (int _i213 = 0; _i213 < _list211.size; ++_i213) { - ByteBuffer _elem213; // required - _elem213 = iprot.readBinary(); - struct.columns.add(_elem213); + _elem212 = iprot.readBinary(); + struct.columns.add(_elem212); } } struct.setColumnsIsSet(true); @@ -22314,13 +24933,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map214.size); - for (int _i215 = 0; _i215 < _map214.size; ++_i215) + ByteBuffer _key215; + ByteBuffer _val216; + for (int _i217 = 0; _i217 < _map214.size; ++_i217) { - ByteBuffer _key216; // required - ByteBuffer _val217; // required - _key216 = iprot.readBinary(); - _val217 = iprot.readBinary(); - struct.attributes.put(_key216, _val217); + _key215 = iprot.readBinary(); + _val216 = iprot.readBinary(); + struct.attributes.put(_key215, _val216); } } struct.setAttributesIsSet(true); @@ -22330,7 +24949,7 @@ public class Hbase { } - public static class getRowWithColumnsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowWithColumnsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumnsTs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -22436,7 +25055,7 @@ public class Hbase { */ public getRowWithColumnsTs_result(getRowWithColumnsTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -22604,45 +25223,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowWithColumnsTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowWithColumnsTs_result typedOther = (getRowWithColumnsTs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -22730,12 +25349,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list218 = iprot.readListBegin(); struct.success = new ArrayList(_list218.size); - for (int _i219 = 0; _i219 < _list218.size; ++_i219) + TRowResult _elem219; + for (int _i220 = 0; _i220 < _list218.size; ++_i220) { - TRowResult _elem220; // required - _elem220 = new TRowResult(); - _elem220.read(iprot); - struct.success.add(_elem220); + _elem219 = new TRowResult(); + _elem219.read(iprot); + struct.success.add(_elem219); } iprot.readListEnd(); } @@ -22832,12 +25451,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list223.size); - for (int _i224 = 0; _i224 < _list223.size; ++_i224) + TRowResult _elem224; + for (int _i225 = 0; _i225 < _list223.size; ++_i225) { - TRowResult _elem225; // required - _elem225 = new TRowResult(); - _elem225.read(iprot); - struct.success.add(_elem225); + _elem224 = new TRowResult(); + _elem224.read(iprot); + struct.success.add(_elem224); } } struct.setSuccessIsSet(true); @@ -22852,7 +25471,7 @@ public class Hbase { } - public static class getRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRows_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -22977,7 +25596,7 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); this.rows = rows; this.attributes = attributes; } @@ -22990,14 +25609,14 @@ public class Hbase { this.tableName = other.tableName; } if (other.isSetRows()) { - List __this__rows = new ArrayList(); + List __this__rows = new ArrayList(other.rows.size()); for (ByteBuffer other_element : other.rows) { __this__rows.add(other_element); } this.rows = __this__rows; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -23033,19 +25652,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public getRows_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getRows_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -23256,60 +25875,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_rows = true && (isSetRows()); - builder.append(present_rows); + list.add(present_rows); if (present_rows) - builder.append(rows); + list.add(rows); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRows_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRows_args typedOther = (getRows_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); + lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); if (lastComparison != 0) { return lastComparison; } if (isSetRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -23413,11 +26032,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); struct.rows = new ArrayList(_list226.size); - for (int _i227 = 0; _i227 < _list226.size; ++_i227) + ByteBuffer _elem227; + for (int _i228 = 0; _i228 < _list226.size; ++_i228) { - ByteBuffer _elem228; // required - _elem228 = iprot.readBinary(); - struct.rows.add(_elem228); + _elem227 = iprot.readBinary(); + struct.rows.add(_elem227); } iprot.readListEnd(); } @@ -23431,13 +26050,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map229 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map229.size); - for (int _i230 = 0; _i230 < _map229.size; ++_i230) + ByteBuffer _key230; + ByteBuffer _val231; + for (int _i232 = 0; _i232 < _map229.size; ++_i232) { - ByteBuffer _key231; // required - ByteBuffer _val232; // required - _key231 = iprot.readBinary(); - _val232 = iprot.readBinary(); - struct.attributes.put(_key231, _val232); + _key230 = iprot.readBinary(); + _val231 = iprot.readBinary(); + struct.attributes.put(_key230, _val231); } iprot.readMapEnd(); } @@ -23555,11 +26174,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.rows = new ArrayList(_list237.size); - for (int _i238 = 0; _i238 < _list237.size; ++_i238) + ByteBuffer _elem238; + for (int _i239 = 0; _i239 < _list237.size; ++_i239) { - ByteBuffer _elem239; // required - _elem239 = iprot.readBinary(); - struct.rows.add(_elem239); + _elem238 = iprot.readBinary(); + struct.rows.add(_elem238); } } struct.setRowsIsSet(true); @@ -23568,13 +26187,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map240 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map240.size); - for (int _i241 = 0; _i241 < _map240.size; ++_i241) + ByteBuffer _key241; + ByteBuffer _val242; + for (int _i243 = 0; _i243 < _map240.size; ++_i243) { - ByteBuffer _key242; // required - ByteBuffer _val243; // required - _key242 = iprot.readBinary(); - _val243 = iprot.readBinary(); - struct.attributes.put(_key242, _val243); + _key241 = iprot.readBinary(); + _val242 = iprot.readBinary(); + struct.attributes.put(_key241, _val242); } } struct.setAttributesIsSet(true); @@ -23584,7 +26203,7 @@ public class Hbase { } - public static class getRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRows_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -23690,7 +26309,7 @@ public class Hbase { */ public getRows_result(getRows_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -23858,45 +26477,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRows_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRows_result typedOther = (getRows_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -23984,12 +26603,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); struct.success = new ArrayList(_list244.size); - for (int _i245 = 0; _i245 < _list244.size; ++_i245) + TRowResult _elem245; + for (int _i246 = 0; _i246 < _list244.size; ++_i246) { - TRowResult _elem246; // required - _elem246 = new TRowResult(); - _elem246.read(iprot); - struct.success.add(_elem246); + _elem245 = new TRowResult(); + _elem245.read(iprot); + struct.success.add(_elem245); } iprot.readListEnd(); } @@ -24086,12 +26705,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list249.size); - for (int _i250 = 0; _i250 < _list249.size; ++_i250) + TRowResult _elem250; + for (int _i251 = 0; _i251 < _list249.size; ++_i251) { - TRowResult _elem251; // required - _elem251 = new TRowResult(); - _elem251.read(iprot); - struct.success.add(_elem251); + _elem250 = new TRowResult(); + _elem250.read(iprot); + struct.success.add(_elem250); } } struct.setSuccessIsSet(true); @@ -24106,7 +26725,7 @@ public class Hbase { } - public static class getRowsWithColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowsWithColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumns_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -24246,7 +26865,7 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); this.rows = rows; this.columns = columns; this.attributes = attributes; @@ -24260,21 +26879,21 @@ public class Hbase { this.tableName = other.tableName; } if (other.isSetRows()) { - List __this__rows = new ArrayList(); + List __this__rows = new ArrayList(other.rows.size()); for (ByteBuffer other_element : other.rows) { __this__rows.add(other_element); } this.rows = __this__rows; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -24311,19 +26930,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public getRowsWithColumns_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getRowsWithColumns_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -24601,75 +27220,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_rows = true && (isSetRows()); - builder.append(present_rows); + list.add(present_rows); if (present_rows) - builder.append(rows); + list.add(rows); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowsWithColumns_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowsWithColumns_args typedOther = (getRowsWithColumns_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); + lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); if (lastComparison != 0) { return lastComparison; } if (isSetRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -24781,11 +27400,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list252 = iprot.readListBegin(); struct.rows = new ArrayList(_list252.size); - for (int _i253 = 0; _i253 < _list252.size; ++_i253) + ByteBuffer _elem253; + for (int _i254 = 0; _i254 < _list252.size; ++_i254) { - ByteBuffer _elem254; // required - _elem254 = iprot.readBinary(); - struct.rows.add(_elem254); + _elem253 = iprot.readBinary(); + struct.rows.add(_elem253); } iprot.readListEnd(); } @@ -24799,11 +27418,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list255 = iprot.readListBegin(); struct.columns = new ArrayList(_list255.size); - for (int _i256 = 0; _i256 < _list255.size; ++_i256) + ByteBuffer _elem256; + for (int _i257 = 0; _i257 < _list255.size; ++_i257) { - ByteBuffer _elem257; // required - _elem257 = iprot.readBinary(); - struct.columns.add(_elem257); + _elem256 = iprot.readBinary(); + struct.columns.add(_elem256); } iprot.readListEnd(); } @@ -24817,13 +27436,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map258.size); - for (int _i259 = 0; _i259 < _map258.size; ++_i259) + ByteBuffer _key259; + ByteBuffer _val260; + for (int _i261 = 0; _i261 < _map258.size; ++_i261) { - ByteBuffer _key260; // required - ByteBuffer _val261; // required - _key260 = iprot.readBinary(); - _val261 = iprot.readBinary(); - struct.attributes.put(_key260, _val261); + _key259 = iprot.readBinary(); + _val260 = iprot.readBinary(); + struct.attributes.put(_key259, _val260); } iprot.readMapEnd(); } @@ -24965,11 +27584,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list268 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.rows = new ArrayList(_list268.size); - for (int _i269 = 0; _i269 < _list268.size; ++_i269) + ByteBuffer _elem269; + for (int _i270 = 0; _i270 < _list268.size; ++_i270) { - ByteBuffer _elem270; // required - _elem270 = iprot.readBinary(); - struct.rows.add(_elem270); + _elem269 = iprot.readBinary(); + struct.rows.add(_elem269); } } struct.setRowsIsSet(true); @@ -24978,11 +27597,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list271.size); - for (int _i272 = 0; _i272 < _list271.size; ++_i272) + ByteBuffer _elem272; + for (int _i273 = 0; _i273 < _list271.size; ++_i273) { - ByteBuffer _elem273; // required - _elem273 = iprot.readBinary(); - struct.columns.add(_elem273); + _elem272 = iprot.readBinary(); + struct.columns.add(_elem272); } } struct.setColumnsIsSet(true); @@ -24991,13 +27610,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map274 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map274.size); - for (int _i275 = 0; _i275 < _map274.size; ++_i275) + ByteBuffer _key275; + ByteBuffer _val276; + for (int _i277 = 0; _i277 < _map274.size; ++_i277) { - ByteBuffer _key276; // required - ByteBuffer _val277; // required - _key276 = iprot.readBinary(); - _val277 = iprot.readBinary(); - struct.attributes.put(_key276, _val277); + _key275 = iprot.readBinary(); + _val276 = iprot.readBinary(); + struct.attributes.put(_key275, _val276); } } struct.setAttributesIsSet(true); @@ -25007,7 +27626,7 @@ public class Hbase { } - public static class getRowsWithColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowsWithColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumns_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -25113,7 +27732,7 @@ public class Hbase { */ public getRowsWithColumns_result(getRowsWithColumns_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -25281,45 +27900,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowsWithColumns_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowsWithColumns_result typedOther = (getRowsWithColumns_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -25407,12 +28026,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(); struct.success = new ArrayList(_list278.size); - for (int _i279 = 0; _i279 < _list278.size; ++_i279) + TRowResult _elem279; + for (int _i280 = 0; _i280 < _list278.size; ++_i280) { - TRowResult _elem280; // required - _elem280 = new TRowResult(); - _elem280.read(iprot); - struct.success.add(_elem280); + _elem279 = new TRowResult(); + _elem279.read(iprot); + struct.success.add(_elem279); } iprot.readListEnd(); } @@ -25509,12 +28128,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list283.size); - for (int _i284 = 0; _i284 < _list283.size; ++_i284) + TRowResult _elem284; + for (int _i285 = 0; _i285 < _list283.size; ++_i285) { - TRowResult _elem285; // required - _elem285 = new TRowResult(); - _elem285.read(iprot); - struct.success.add(_elem285); + _elem284 = new TRowResult(); + _elem284.read(iprot); + struct.success.add(_elem284); } } struct.setSuccessIsSet(true); @@ -25529,7 +28148,7 @@ public class Hbase { } - public static class getRowsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -25670,7 +28289,7 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); this.rows = rows; this.timestamp = timestamp; setTimestampIsSet(true); @@ -25686,7 +28305,7 @@ public class Hbase { this.tableName = other.tableName; } if (other.isSetRows()) { - List __this__rows = new ArrayList(); + List __this__rows = new ArrayList(other.rows.size()); for (ByteBuffer other_element : other.rows) { __this__rows.add(other_element); } @@ -25694,7 +28313,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -25732,19 +28351,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of the table */ public getRowsTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getRowsTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -26006,75 +28625,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_rows = true && (isSetRows()); - builder.append(present_rows); + list.add(present_rows); if (present_rows) - builder.append(rows); + list.add(rows); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowsTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowsTs_args typedOther = (getRowsTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); + lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); if (lastComparison != 0) { return lastComparison; } if (isSetRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -26184,11 +28803,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list286 = iprot.readListBegin(); struct.rows = new ArrayList(_list286.size); - for (int _i287 = 0; _i287 < _list286.size; ++_i287) + ByteBuffer _elem287; + for (int _i288 = 0; _i288 < _list286.size; ++_i288) { - ByteBuffer _elem288; // required - _elem288 = iprot.readBinary(); - struct.rows.add(_elem288); + _elem287 = iprot.readBinary(); + struct.rows.add(_elem287); } iprot.readListEnd(); } @@ -26210,13 +28829,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map289 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map289.size); - for (int _i290 = 0; _i290 < _map289.size; ++_i290) + ByteBuffer _key290; + ByteBuffer _val291; + for (int _i292 = 0; _i292 < _map289.size; ++_i292) { - ByteBuffer _key291; // required - ByteBuffer _val292; // required - _key291 = iprot.readBinary(); - _val292 = iprot.readBinary(); - struct.attributes.put(_key291, _val292); + _key290 = iprot.readBinary(); + _val291 = iprot.readBinary(); + struct.attributes.put(_key290, _val291); } iprot.readMapEnd(); } @@ -26343,11 +28962,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list297 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.rows = new ArrayList(_list297.size); - for (int _i298 = 0; _i298 < _list297.size; ++_i298) + ByteBuffer _elem298; + for (int _i299 = 0; _i299 < _list297.size; ++_i299) { - ByteBuffer _elem299; // required - _elem299 = iprot.readBinary(); - struct.rows.add(_elem299); + _elem298 = iprot.readBinary(); + struct.rows.add(_elem298); } } struct.setRowsIsSet(true); @@ -26360,13 +28979,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map300 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map300.size); - for (int _i301 = 0; _i301 < _map300.size; ++_i301) + ByteBuffer _key301; + ByteBuffer _val302; + for (int _i303 = 0; _i303 < _map300.size; ++_i303) { - ByteBuffer _key302; // required - ByteBuffer _val303; // required - _key302 = iprot.readBinary(); - _val303 = iprot.readBinary(); - struct.attributes.put(_key302, _val303); + _key301 = iprot.readBinary(); + _val302 = iprot.readBinary(); + struct.attributes.put(_key301, _val302); } } struct.setAttributesIsSet(true); @@ -26376,7 +28995,7 @@ public class Hbase { } - public static class getRowsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsTs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -26482,7 +29101,7 @@ public class Hbase { */ public getRowsTs_result(getRowsTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -26650,45 +29269,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowsTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowsTs_result typedOther = (getRowsTs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -26776,12 +29395,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list304 = iprot.readListBegin(); struct.success = new ArrayList(_list304.size); - for (int _i305 = 0; _i305 < _list304.size; ++_i305) + TRowResult _elem305; + for (int _i306 = 0; _i306 < _list304.size; ++_i306) { - TRowResult _elem306; // required - _elem306 = new TRowResult(); - _elem306.read(iprot); - struct.success.add(_elem306); + _elem305 = new TRowResult(); + _elem305.read(iprot); + struct.success.add(_elem305); } iprot.readListEnd(); } @@ -26878,12 +29497,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list309.size); - for (int _i310 = 0; _i310 < _list309.size; ++_i310) + TRowResult _elem310; + for (int _i311 = 0; _i311 < _list309.size; ++_i311) { - TRowResult _elem311; // required - _elem311 = new TRowResult(); - _elem311.read(iprot); - struct.success.add(_elem311); + _elem310 = new TRowResult(); + _elem310.read(iprot); + struct.success.add(_elem310); } } struct.setSuccessIsSet(true); @@ -26898,7 +29517,7 @@ public class Hbase { } - public static class getRowsWithColumnsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowsWithColumnsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumnsTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -27048,7 +29667,7 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); this.rows = rows; this.columns = columns; this.timestamp = timestamp; @@ -27065,14 +29684,14 @@ public class Hbase { this.tableName = other.tableName; } if (other.isSetRows()) { - List __this__rows = new ArrayList(); + List __this__rows = new ArrayList(other.rows.size()); for (ByteBuffer other_element : other.rows) { __this__rows.add(other_element); } this.rows = __this__rows; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } @@ -27080,7 +29699,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -27119,19 +29738,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public getRowsWithColumnsTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public getRowsWithColumnsTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -27454,90 +30073,90 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_rows = true && (isSetRows()); - builder.append(present_rows); + list.add(present_rows); if (present_rows) - builder.append(rows); + list.add(rows); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowsWithColumnsTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowsWithColumnsTs_args typedOther = (getRowsWithColumnsTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); + lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); if (lastComparison != 0) { return lastComparison; } if (isSetRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -27655,11 +30274,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list312 = iprot.readListBegin(); struct.rows = new ArrayList(_list312.size); - for (int _i313 = 0; _i313 < _list312.size; ++_i313) + ByteBuffer _elem313; + for (int _i314 = 0; _i314 < _list312.size; ++_i314) { - ByteBuffer _elem314; // required - _elem314 = iprot.readBinary(); - struct.rows.add(_elem314); + _elem313 = iprot.readBinary(); + struct.rows.add(_elem313); } iprot.readListEnd(); } @@ -27673,11 +30292,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list315 = iprot.readListBegin(); struct.columns = new ArrayList(_list315.size); - for (int _i316 = 0; _i316 < _list315.size; ++_i316) + ByteBuffer _elem316; + for (int _i317 = 0; _i317 < _list315.size; ++_i317) { - ByteBuffer _elem317; // required - _elem317 = iprot.readBinary(); - struct.columns.add(_elem317); + _elem316 = iprot.readBinary(); + struct.columns.add(_elem316); } iprot.readListEnd(); } @@ -27699,13 +30318,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map318 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map318.size); - for (int _i319 = 0; _i319 < _map318.size; ++_i319) + ByteBuffer _key319; + ByteBuffer _val320; + for (int _i321 = 0; _i321 < _map318.size; ++_i321) { - ByteBuffer _key320; // required - ByteBuffer _val321; // required - _key320 = iprot.readBinary(); - _val321 = iprot.readBinary(); - struct.attributes.put(_key320, _val321); + _key319 = iprot.readBinary(); + _val320 = iprot.readBinary(); + struct.attributes.put(_key319, _val320); } iprot.readMapEnd(); } @@ -27856,11 +30475,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list328 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.rows = new ArrayList(_list328.size); - for (int _i329 = 0; _i329 < _list328.size; ++_i329) + ByteBuffer _elem329; + for (int _i330 = 0; _i330 < _list328.size; ++_i330) { - ByteBuffer _elem330; // required - _elem330 = iprot.readBinary(); - struct.rows.add(_elem330); + _elem329 = iprot.readBinary(); + struct.rows.add(_elem329); } } struct.setRowsIsSet(true); @@ -27869,11 +30488,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list331.size); - for (int _i332 = 0; _i332 < _list331.size; ++_i332) + ByteBuffer _elem332; + for (int _i333 = 0; _i333 < _list331.size; ++_i333) { - ByteBuffer _elem333; // required - _elem333 = iprot.readBinary(); - struct.columns.add(_elem333); + _elem332 = iprot.readBinary(); + struct.columns.add(_elem332); } } struct.setColumnsIsSet(true); @@ -27886,13 +30505,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map334 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map334.size); - for (int _i335 = 0; _i335 < _map334.size; ++_i335) + ByteBuffer _key335; + ByteBuffer _val336; + for (int _i337 = 0; _i337 < _map334.size; ++_i337) { - ByteBuffer _key336; // required - ByteBuffer _val337; // required - _key336 = iprot.readBinary(); - _val337 = iprot.readBinary(); - struct.attributes.put(_key336, _val337); + _key335 = iprot.readBinary(); + _val336 = iprot.readBinary(); + struct.attributes.put(_key335, _val336); } } struct.setAttributesIsSet(true); @@ -27902,7 +30521,7 @@ public class Hbase { } - public static class getRowsWithColumnsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRowsWithColumnsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumnsTs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -28008,7 +30627,7 @@ public class Hbase { */ public getRowsWithColumnsTs_result(getRowsWithColumnsTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -28176,45 +30795,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRowsWithColumnsTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRowsWithColumnsTs_result typedOther = (getRowsWithColumnsTs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -28302,12 +30921,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); struct.success = new ArrayList(_list338.size); - for (int _i339 = 0; _i339 < _list338.size; ++_i339) + TRowResult _elem339; + for (int _i340 = 0; _i340 < _list338.size; ++_i340) { - TRowResult _elem340; // required - _elem340 = new TRowResult(); - _elem340.read(iprot); - struct.success.add(_elem340); + _elem339 = new TRowResult(); + _elem339.read(iprot); + struct.success.add(_elem339); } iprot.readListEnd(); } @@ -28404,12 +31023,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list343.size); - for (int _i344 = 0; _i344 < _list343.size; ++_i344) + TRowResult _elem344; + for (int _i345 = 0; _i345 < _list343.size; ++_i345) { - TRowResult _elem345; // required - _elem345 = new TRowResult(); - _elem345.read(iprot); - struct.success.add(_elem345); + _elem344 = new TRowResult(); + _elem344.read(iprot); + struct.success.add(_elem344); } } struct.setSuccessIsSet(true); @@ -28424,7 +31043,7 @@ public class Hbase { } - public static class mutateRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class mutateRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -28563,8 +31182,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.mutations = mutations; this.attributes = attributes; } @@ -28580,14 +31199,14 @@ public class Hbase { this.row = other.row; } if (other.isSetMutations()) { - List __this__mutations = new ArrayList(); + List __this__mutations = new ArrayList(other.mutations.size()); for (Mutation other_element : other.mutations) { __this__mutations.add(new Mutation(other_element)); } this.mutations = __this__mutations; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -28624,19 +31243,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public mutateRow_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public mutateRow_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -28664,19 +31283,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public mutateRow_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public mutateRow_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -28909,75 +31528,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_mutations = true && (isSetMutations()); - builder.append(present_mutations); + list.add(present_mutations); if (present_mutations) - builder.append(mutations); + list.add(mutations); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(mutateRow_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRow_args typedOther = (mutateRow_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations()); + lastComparison = Boolean.valueOf(isSetMutations()).compareTo(other.isSetMutations()); if (lastComparison != 0) { return lastComparison; } if (isSetMutations()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, other.mutations); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -29097,12 +31716,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); struct.mutations = new ArrayList(_list346.size); - for (int _i347 = 0; _i347 < _list346.size; ++_i347) + Mutation _elem347; + for (int _i348 = 0; _i348 < _list346.size; ++_i348) { - Mutation _elem348; // required - _elem348 = new Mutation(); - _elem348.read(iprot); - struct.mutations.add(_elem348); + _elem347 = new Mutation(); + _elem347.read(iprot); + struct.mutations.add(_elem347); } iprot.readListEnd(); } @@ -29116,13 +31735,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map349 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map349.size); - for (int _i350 = 0; _i350 < _map349.size; ++_i350) + ByteBuffer _key350; + ByteBuffer _val351; + for (int _i352 = 0; _i352 < _map349.size; ++_i352) { - ByteBuffer _key351; // required - ByteBuffer _val352; // required - _key351 = iprot.readBinary(); - _val352 = iprot.readBinary(); - struct.attributes.put(_key351, _val352); + _key350 = iprot.readBinary(); + _val351 = iprot.readBinary(); + struct.attributes.put(_key350, _val351); } iprot.readMapEnd(); } @@ -29255,12 +31874,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.mutations = new ArrayList(_list357.size); - for (int _i358 = 0; _i358 < _list357.size; ++_i358) + Mutation _elem358; + for (int _i359 = 0; _i359 < _list357.size; ++_i359) { - Mutation _elem359; // required - _elem359 = new Mutation(); - _elem359.read(iprot); - struct.mutations.add(_elem359); + _elem358 = new Mutation(); + _elem358.read(iprot); + struct.mutations.add(_elem358); } } struct.setMutationsIsSet(true); @@ -29269,13 +31888,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map360 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map360.size); - for (int _i361 = 0; _i361 < _map360.size; ++_i361) + ByteBuffer _key361; + ByteBuffer _val362; + for (int _i363 = 0; _i363 < _map360.size; ++_i363) { - ByteBuffer _key362; // required - ByteBuffer _val363; // required - _key362 = iprot.readBinary(); - _val363 = iprot.readBinary(); - struct.attributes.put(_key362, _val363); + _key361 = iprot.readBinary(); + _val362 = iprot.readBinary(); + struct.attributes.put(_key361, _val362); } } struct.setAttributesIsSet(true); @@ -29285,7 +31904,7 @@ public class Hbase { } - public static class mutateRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class mutateRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -29539,45 +32158,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(mutateRow_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRow_result typedOther = (mutateRow_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -29755,7 +32374,7 @@ public class Hbase { } - public static class mutateRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class mutateRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -29910,8 +32529,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.mutations = mutations; this.timestamp = timestamp; setTimestampIsSet(true); @@ -29930,7 +32549,7 @@ public class Hbase { this.row = other.row; } if (other.isSetMutations()) { - List __this__mutations = new ArrayList(); + List __this__mutations = new ArrayList(other.mutations.size()); for (Mutation other_element : other.mutations) { __this__mutations.add(new Mutation(other_element)); } @@ -29938,7 +32557,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -29977,19 +32596,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public mutateRowTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public mutateRowTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -30017,19 +32636,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public mutateRowTs_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public mutateRowTs_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -30313,90 +32932,90 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_mutations = true && (isSetMutations()); - builder.append(present_mutations); + list.add(present_mutations); if (present_mutations) - builder.append(mutations); + list.add(mutations); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(mutateRowTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRowTs_args typedOther = (mutateRowTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations()); + lastComparison = Boolean.valueOf(isSetMutations()).compareTo(other.isSetMutations()); if (lastComparison != 0) { return lastComparison; } if (isSetMutations()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, other.mutations); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -30522,12 +33141,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list364 = iprot.readListBegin(); struct.mutations = new ArrayList(_list364.size); - for (int _i365 = 0; _i365 < _list364.size; ++_i365) + Mutation _elem365; + for (int _i366 = 0; _i366 < _list364.size; ++_i366) { - Mutation _elem366; // required - _elem366 = new Mutation(); - _elem366.read(iprot); - struct.mutations.add(_elem366); + _elem365 = new Mutation(); + _elem365.read(iprot); + struct.mutations.add(_elem365); } iprot.readListEnd(); } @@ -30549,13 +33168,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map367 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map367.size); - for (int _i368 = 0; _i368 < _map367.size; ++_i368) + ByteBuffer _key368; + ByteBuffer _val369; + for (int _i370 = 0; _i370 < _map367.size; ++_i370) { - ByteBuffer _key369; // required - ByteBuffer _val370; // required - _key369 = iprot.readBinary(); - _val370 = iprot.readBinary(); - struct.attributes.put(_key369, _val370); + _key368 = iprot.readBinary(); + _val369 = iprot.readBinary(); + struct.attributes.put(_key368, _val369); } iprot.readMapEnd(); } @@ -30697,12 +33316,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.mutations = new ArrayList(_list375.size); - for (int _i376 = 0; _i376 < _list375.size; ++_i376) + Mutation _elem376; + for (int _i377 = 0; _i377 < _list375.size; ++_i377) { - Mutation _elem377; // required - _elem377 = new Mutation(); - _elem377.read(iprot); - struct.mutations.add(_elem377); + _elem376 = new Mutation(); + _elem376.read(iprot); + struct.mutations.add(_elem376); } } struct.setMutationsIsSet(true); @@ -30715,13 +33334,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map378 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map378.size); - for (int _i379 = 0; _i379 < _map378.size; ++_i379) + ByteBuffer _key379; + ByteBuffer _val380; + for (int _i381 = 0; _i381 < _map378.size; ++_i381) { - ByteBuffer _key380; // required - ByteBuffer _val381; // required - _key380 = iprot.readBinary(); - _val381 = iprot.readBinary(); - struct.attributes.put(_key380, _val381); + _key379 = iprot.readBinary(); + _val380 = iprot.readBinary(); + struct.attributes.put(_key379, _val380); } } struct.setAttributesIsSet(true); @@ -30731,7 +33350,7 @@ public class Hbase { } - public static class mutateRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class mutateRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowTs_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -30985,45 +33604,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(mutateRowTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRowTs_result typedOther = (mutateRowTs_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -31201,7 +33820,7 @@ public class Hbase { } - public static class mutateRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class mutateRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRows_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -31326,7 +33945,7 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); this.rowBatches = rowBatches; this.attributes = attributes; } @@ -31339,14 +33958,14 @@ public class Hbase { this.tableName = other.tableName; } if (other.isSetRowBatches()) { - List __this__rowBatches = new ArrayList(); + List __this__rowBatches = new ArrayList(other.rowBatches.size()); for (BatchMutation other_element : other.rowBatches) { __this__rowBatches.add(new BatchMutation(other_element)); } this.rowBatches = __this__rowBatches; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -31382,19 +34001,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public mutateRows_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public mutateRows_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -31605,60 +34224,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_rowBatches = true && (isSetRowBatches()); - builder.append(present_rowBatches); + list.add(present_rowBatches); if (present_rowBatches) - builder.append(rowBatches); + list.add(rowBatches); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(mutateRows_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRows_args typedOther = (mutateRows_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(typedOther.isSetRowBatches()); + lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(other.isSetRowBatches()); if (lastComparison != 0) { return lastComparison; } if (isSetRowBatches()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, typedOther.rowBatches); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, other.rowBatches); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -31762,12 +34381,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list382 = iprot.readListBegin(); struct.rowBatches = new ArrayList(_list382.size); - for (int _i383 = 0; _i383 < _list382.size; ++_i383) + BatchMutation _elem383; + for (int _i384 = 0; _i384 < _list382.size; ++_i384) { - BatchMutation _elem384; // required - _elem384 = new BatchMutation(); - _elem384.read(iprot); - struct.rowBatches.add(_elem384); + _elem383 = new BatchMutation(); + _elem383.read(iprot); + struct.rowBatches.add(_elem383); } iprot.readListEnd(); } @@ -31781,13 +34400,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map385 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map385.size); - for (int _i386 = 0; _i386 < _map385.size; ++_i386) + ByteBuffer _key386; + ByteBuffer _val387; + for (int _i388 = 0; _i388 < _map385.size; ++_i388) { - ByteBuffer _key387; // required - ByteBuffer _val388; // required - _key387 = iprot.readBinary(); - _val388 = iprot.readBinary(); - struct.attributes.put(_key387, _val388); + _key386 = iprot.readBinary(); + _val387 = iprot.readBinary(); + struct.attributes.put(_key386, _val387); } iprot.readMapEnd(); } @@ -31905,12 +34524,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.rowBatches = new ArrayList(_list393.size); - for (int _i394 = 0; _i394 < _list393.size; ++_i394) + BatchMutation _elem394; + for (int _i395 = 0; _i395 < _list393.size; ++_i395) { - BatchMutation _elem395; // required - _elem395 = new BatchMutation(); - _elem395.read(iprot); - struct.rowBatches.add(_elem395); + _elem394 = new BatchMutation(); + _elem394.read(iprot); + struct.rowBatches.add(_elem394); } } struct.setRowBatchesIsSet(true); @@ -31919,13 +34538,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map396 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map396.size); - for (int _i397 = 0; _i397 < _map396.size; ++_i397) + ByteBuffer _key397; + ByteBuffer _val398; + for (int _i399 = 0; _i399 < _map396.size; ++_i399) { - ByteBuffer _key398; // required - ByteBuffer _val399; // required - _key398 = iprot.readBinary(); - _val399 = iprot.readBinary(); - struct.attributes.put(_key398, _val399); + _key397 = iprot.readBinary(); + _val398 = iprot.readBinary(); + struct.attributes.put(_key397, _val398); } } struct.setAttributesIsSet(true); @@ -31935,7 +34554,7 @@ public class Hbase { } - public static class mutateRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class mutateRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRows_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -32189,45 +34808,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(mutateRows_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRows_result typedOther = (mutateRows_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -32405,7 +35024,7 @@ public class Hbase { } - public static class mutateRowsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class mutateRowsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowsTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -32546,7 +35165,7 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); this.rowBatches = rowBatches; this.timestamp = timestamp; setTimestampIsSet(true); @@ -32562,7 +35181,7 @@ public class Hbase { this.tableName = other.tableName; } if (other.isSetRowBatches()) { - List __this__rowBatches = new ArrayList(); + List __this__rowBatches = new ArrayList(other.rowBatches.size()); for (BatchMutation other_element : other.rowBatches) { __this__rowBatches.add(new BatchMutation(other_element)); } @@ -32570,7 +35189,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -32608,19 +35227,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public mutateRowsTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public mutateRowsTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -32882,75 +35501,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_rowBatches = true && (isSetRowBatches()); - builder.append(present_rowBatches); + list.add(present_rowBatches); if (present_rowBatches) - builder.append(rowBatches); + list.add(rowBatches); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(mutateRowsTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRowsTs_args typedOther = (mutateRowsTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(typedOther.isSetRowBatches()); + lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(other.isSetRowBatches()); if (lastComparison != 0) { return lastComparison; } if (isSetRowBatches()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, typedOther.rowBatches); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, other.rowBatches); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -33060,12 +35679,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list400 = iprot.readListBegin(); struct.rowBatches = new ArrayList(_list400.size); - for (int _i401 = 0; _i401 < _list400.size; ++_i401) + BatchMutation _elem401; + for (int _i402 = 0; _i402 < _list400.size; ++_i402) { - BatchMutation _elem402; // required - _elem402 = new BatchMutation(); - _elem402.read(iprot); - struct.rowBatches.add(_elem402); + _elem401 = new BatchMutation(); + _elem401.read(iprot); + struct.rowBatches.add(_elem401); } iprot.readListEnd(); } @@ -33087,13 +35706,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map403 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map403.size); - for (int _i404 = 0; _i404 < _map403.size; ++_i404) + ByteBuffer _key404; + ByteBuffer _val405; + for (int _i406 = 0; _i406 < _map403.size; ++_i406) { - ByteBuffer _key405; // required - ByteBuffer _val406; // required - _key405 = iprot.readBinary(); - _val406 = iprot.readBinary(); - struct.attributes.put(_key405, _val406); + _key404 = iprot.readBinary(); + _val405 = iprot.readBinary(); + struct.attributes.put(_key404, _val405); } iprot.readMapEnd(); } @@ -33220,12 +35839,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.rowBatches = new ArrayList(_list411.size); - for (int _i412 = 0; _i412 < _list411.size; ++_i412) + BatchMutation _elem412; + for (int _i413 = 0; _i413 < _list411.size; ++_i413) { - BatchMutation _elem413; // required - _elem413 = new BatchMutation(); - _elem413.read(iprot); - struct.rowBatches.add(_elem413); + _elem412 = new BatchMutation(); + _elem412.read(iprot); + struct.rowBatches.add(_elem412); } } struct.setRowBatchesIsSet(true); @@ -33238,13 +35857,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map414 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map414.size); - for (int _i415 = 0; _i415 < _map414.size; ++_i415) + ByteBuffer _key415; + ByteBuffer _val416; + for (int _i417 = 0; _i417 < _map414.size; ++_i417) { - ByteBuffer _key416; // required - ByteBuffer _val417; // required - _key416 = iprot.readBinary(); - _val417 = iprot.readBinary(); - struct.attributes.put(_key416, _val417); + _key415 = iprot.readBinary(); + _val416 = iprot.readBinary(); + struct.attributes.put(_key415, _val416); } } struct.setAttributesIsSet(true); @@ -33254,7 +35873,7 @@ public class Hbase { } - public static class mutateRowsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class mutateRowsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowsTs_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -33508,45 +36127,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(mutateRowsTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRowsTs_result typedOther = (mutateRowsTs_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -33724,7 +36343,7 @@ public class Hbase { } - public static class atomicIncrement_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class atomicIncrement_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("atomicIncrement_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -33862,9 +36481,9 @@ public class Hbase { long value) { this(); - this.tableName = tableName; - this.row = row; - this.column = column; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); this.value = value; setValueIsSet(true); } @@ -33908,19 +36527,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public atomicIncrement_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public atomicIncrement_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -33948,19 +36567,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row to increment */ public atomicIncrement_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public atomicIncrement_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -33988,19 +36607,19 @@ public class Hbase { } public ByteBuffer bufferForColumn() { - return column; + return org.apache.thrift.TBaseHelper.copyBinary(column); } /** * name of column */ public atomicIncrement_args setColumn(byte[] column) { - setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); + this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); return this; } public atomicIncrement_args setColumn(ByteBuffer column) { - this.column = column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -34176,75 +36795,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_value = true; - builder.append(present_value); + list.add(present_value); if (present_value) - builder.append(value); + list.add(value); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(atomicIncrement_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - atomicIncrement_args typedOther = (atomicIncrement_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } @@ -34476,7 +37095,7 @@ public class Hbase { } - public static class atomicIncrement_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class atomicIncrement_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("atomicIncrement_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); @@ -34791,60 +37410,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(atomicIncrement_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - atomicIncrement_result typedOther = (atomicIncrement_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -35051,7 +37670,7 @@ public class Hbase { } - public static class deleteAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAll_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -35189,9 +37808,9 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; - this.column = column; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); this.attributes = attributes; } @@ -35209,7 +37828,7 @@ public class Hbase { this.column = other.column; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -35246,19 +37865,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public deleteAll_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public deleteAll_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -35286,19 +37905,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * Row to update */ public deleteAll_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public deleteAll_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -35326,19 +37945,19 @@ public class Hbase { } public ByteBuffer bufferForColumn() { - return column; + return org.apache.thrift.TBaseHelper.copyBinary(column); } /** * name of column whose value is to be deleted */ public deleteAll_args setColumn(byte[] column) { - setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); + this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); return this; } public deleteAll_args setColumn(ByteBuffer column) { - this.column = column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -35526,75 +38145,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteAll_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteAll_args typedOther = (deleteAll_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -35722,13 +38341,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map418 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map418.size); - for (int _i419 = 0; _i419 < _map418.size; ++_i419) + ByteBuffer _key419; + ByteBuffer _val420; + for (int _i421 = 0; _i421 < _map418.size; ++_i421) { - ByteBuffer _key420; // required - ByteBuffer _val421; // required - _key420 = iprot.readBinary(); - _val421 = iprot.readBinary(); - struct.attributes.put(_key420, _val421); + _key419 = iprot.readBinary(); + _val420 = iprot.readBinary(); + struct.attributes.put(_key419, _val420); } iprot.readMapEnd(); } @@ -35852,13 +38471,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map424 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map424.size); - for (int _i425 = 0; _i425 < _map424.size; ++_i425) + ByteBuffer _key425; + ByteBuffer _val426; + for (int _i427 = 0; _i427 < _map424.size; ++_i427) { - ByteBuffer _key426; // required - ByteBuffer _val427; // required - _key426 = iprot.readBinary(); - _val427 = iprot.readBinary(); - struct.attributes.put(_key426, _val427); + _key425 = iprot.readBinary(); + _val426 = iprot.readBinary(); + struct.attributes.put(_key425, _val426); } } struct.setAttributesIsSet(true); @@ -35868,7 +38487,7 @@ public class Hbase { } - public static class deleteAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAll_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -36063,30 +38682,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteAll_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteAll_result typedOther = (deleteAll_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -36231,7 +38850,7 @@ public class Hbase { } - public static class deleteAllTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteAllTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -36385,9 +39004,9 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; - this.column = column; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); this.timestamp = timestamp; setTimestampIsSet(true); this.attributes = attributes; @@ -36409,7 +39028,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -36448,19 +39067,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public deleteAllTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public deleteAllTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -36488,19 +39107,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * Row to update */ public deleteAllTs_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public deleteAllTs_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -36528,19 +39147,19 @@ public class Hbase { } public ByteBuffer bufferForColumn() { - return column; + return org.apache.thrift.TBaseHelper.copyBinary(column); } /** * name of column whose value is to be deleted */ public deleteAllTs_args setColumn(byte[] column) { - setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); + this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); return this; } public deleteAllTs_args setColumn(ByteBuffer column) { - this.column = column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -36779,90 +39398,90 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteAllTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteAllTs_args typedOther = (deleteAllTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -37004,13 +39623,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map428 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map428.size); - for (int _i429 = 0; _i429 < _map428.size; ++_i429) + ByteBuffer _key429; + ByteBuffer _val430; + for (int _i431 = 0; _i431 < _map428.size; ++_i431) { - ByteBuffer _key430; // required - ByteBuffer _val431; // required - _key430 = iprot.readBinary(); - _val431 = iprot.readBinary(); - struct.attributes.put(_key430, _val431); + _key429 = iprot.readBinary(); + _val430 = iprot.readBinary(); + struct.attributes.put(_key429, _val430); } iprot.readMapEnd(); } @@ -37147,13 +39766,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map434 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map434.size); - for (int _i435 = 0; _i435 < _map434.size; ++_i435) + ByteBuffer _key435; + ByteBuffer _val436; + for (int _i437 = 0; _i437 < _map434.size; ++_i437) { - ByteBuffer _key436; // required - ByteBuffer _val437; // required - _key436 = iprot.readBinary(); - _val437 = iprot.readBinary(); - struct.attributes.put(_key436, _val437); + _key435 = iprot.readBinary(); + _val436 = iprot.readBinary(); + struct.attributes.put(_key435, _val436); } } struct.setAttributesIsSet(true); @@ -37163,7 +39782,7 @@ public class Hbase { } - public static class deleteAllTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteAllTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllTs_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -37358,30 +39977,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteAllTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteAllTs_result typedOther = (deleteAllTs_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -37526,7 +40145,7 @@ public class Hbase { } - public static class deleteAllRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteAllRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRow_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -37650,8 +40269,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.attributes = attributes; } @@ -37666,7 +40285,7 @@ public class Hbase { this.row = other.row; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -37702,19 +40321,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public deleteAllRow_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public deleteAllRow_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -37742,19 +40361,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * key of the row to be completely deleted. */ public deleteAllRow_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public deleteAllRow_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -37920,60 +40539,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteAllRow_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteAllRow_args typedOther = (deleteAllRow_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -38085,13 +40704,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map438 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map438.size); - for (int _i439 = 0; _i439 < _map438.size; ++_i439) + ByteBuffer _key439; + ByteBuffer _val440; + for (int _i441 = 0; _i441 < _map438.size; ++_i441) { - ByteBuffer _key440; // required - ByteBuffer _val441; // required - _key440 = iprot.readBinary(); - _val441 = iprot.readBinary(); - struct.attributes.put(_key440, _val441); + _key439 = iprot.readBinary(); + _val440 = iprot.readBinary(); + struct.attributes.put(_key439, _val440); } iprot.readMapEnd(); } @@ -38200,13 +40819,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map444 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map444.size); - for (int _i445 = 0; _i445 < _map444.size; ++_i445) + ByteBuffer _key445; + ByteBuffer _val446; + for (int _i447 = 0; _i447 < _map444.size; ++_i447) { - ByteBuffer _key446; // required - ByteBuffer _val447; // required - _key446 = iprot.readBinary(); - _val447 = iprot.readBinary(); - struct.attributes.put(_key446, _val447); + _key445 = iprot.readBinary(); + _val446 = iprot.readBinary(); + struct.attributes.put(_key445, _val446); } } struct.setAttributesIsSet(true); @@ -38216,7 +40835,7 @@ public class Hbase { } - public static class deleteAllRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteAllRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRow_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -38411,30 +41030,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteAllRow_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteAllRow_result typedOther = (deleteAllRow_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -38579,7 +41198,7 @@ public class Hbase { } - public static class increment_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class increment_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_args"); private static final org.apache.thrift.protocol.TField INCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("increment", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -38786,30 +41405,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_increment = true && (isSetIncrement()); - builder.append(present_increment); + list.add(present_increment); if (present_increment) - builder.append(increment); + list.add(increment); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(increment_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - increment_args typedOther = (increment_args)other; - lastComparison = Boolean.valueOf(isSetIncrement()).compareTo(typedOther.isSetIncrement()); + lastComparison = Boolean.valueOf(isSetIncrement()).compareTo(other.isSetIncrement()); if (lastComparison != 0) { return lastComparison; } if (isSetIncrement()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increment, typedOther.increment); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increment, other.increment); if (lastComparison != 0) { return lastComparison; } @@ -38957,7 +41576,7 @@ public class Hbase { } - public static class increment_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class increment_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -39152,30 +41771,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(increment_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - increment_result typedOther = (increment_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -39320,7 +41939,7 @@ public class Hbase { } - public static class incrementRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class incrementRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("incrementRows_args"); private static final org.apache.thrift.protocol.TField INCREMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("increments", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -39423,7 +42042,7 @@ public class Hbase { */ public incrementRows_args(incrementRows_args other) { if (other.isSetIncrements()) { - List __this__increments = new ArrayList(); + List __this__increments = new ArrayList(other.increments.size()); for (TIncrement other_element : other.increments) { __this__increments.add(new TIncrement(other_element)); } @@ -39547,30 +42166,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_increments = true && (isSetIncrements()); - builder.append(present_increments); + list.add(present_increments); if (present_increments) - builder.append(increments); + list.add(increments); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(incrementRows_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - incrementRows_args typedOther = (incrementRows_args)other; - lastComparison = Boolean.valueOf(isSetIncrements()).compareTo(typedOther.isSetIncrements()); + lastComparison = Boolean.valueOf(isSetIncrements()).compareTo(other.isSetIncrements()); if (lastComparison != 0) { return lastComparison; } if (isSetIncrements()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increments, typedOther.increments); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increments, other.increments); if (lastComparison != 0) { return lastComparison; } @@ -39650,12 +42269,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list448 = iprot.readListBegin(); struct.increments = new ArrayList(_list448.size); - for (int _i449 = 0; _i449 < _list448.size; ++_i449) + TIncrement _elem449; + for (int _i450 = 0; _i450 < _list448.size; ++_i450) { - TIncrement _elem450; // required - _elem450 = new TIncrement(); - _elem450.read(iprot); - struct.increments.add(_elem450); + _elem449 = new TIncrement(); + _elem449.read(iprot); + struct.increments.add(_elem449); } iprot.readListEnd(); } @@ -39732,12 +42351,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list453 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.increments = new ArrayList(_list453.size); - for (int _i454 = 0; _i454 < _list453.size; ++_i454) + TIncrement _elem454; + for (int _i455 = 0; _i455 < _list453.size; ++_i455) { - TIncrement _elem455; // required - _elem455 = new TIncrement(); - _elem455.read(iprot); - struct.increments.add(_elem455); + _elem454 = new TIncrement(); + _elem454.read(iprot); + struct.increments.add(_elem454); } } struct.setIncrementsIsSet(true); @@ -39747,7 +42366,7 @@ public class Hbase { } - public static class incrementRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class incrementRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("incrementRows_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -39942,30 +42561,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(incrementRows_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - incrementRows_result typedOther = (incrementRows_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -40110,7 +42729,7 @@ public class Hbase { } - public static class deleteAllRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteAllRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRowTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -40250,8 +42869,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.timestamp = timestamp; setTimestampIsSet(true); this.attributes = attributes; @@ -40270,7 +42889,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -40308,19 +42927,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public deleteAllRowTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public deleteAllRowTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -40348,19 +42967,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * key of the row to be completely deleted. */ public deleteAllRowTs_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public deleteAllRowTs_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -40577,75 +43196,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteAllRowTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteAllRowTs_args typedOther = (deleteAllRowTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -40771,13 +43390,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map456 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map456.size); - for (int _i457 = 0; _i457 < _map456.size; ++_i457) + ByteBuffer _key457; + ByteBuffer _val458; + for (int _i459 = 0; _i459 < _map456.size; ++_i459) { - ByteBuffer _key458; // required - ByteBuffer _val459; // required - _key458 = iprot.readBinary(); - _val459 = iprot.readBinary(); - struct.attributes.put(_key458, _val459); + _key457 = iprot.readBinary(); + _val458 = iprot.readBinary(); + struct.attributes.put(_key457, _val458); } iprot.readMapEnd(); } @@ -40899,13 +43518,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map462 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map462.size); - for (int _i463 = 0; _i463 < _map462.size; ++_i463) + ByteBuffer _key463; + ByteBuffer _val464; + for (int _i465 = 0; _i465 < _map462.size; ++_i465) { - ByteBuffer _key464; // required - ByteBuffer _val465; // required - _key464 = iprot.readBinary(); - _val465 = iprot.readBinary(); - struct.attributes.put(_key464, _val465); + _key463 = iprot.readBinary(); + _val464 = iprot.readBinary(); + struct.attributes.put(_key463, _val464); } } struct.setAttributesIsSet(true); @@ -40915,7 +43534,7 @@ public class Hbase { } - public static class deleteAllRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class deleteAllRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRowTs_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -41110,30 +43729,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(deleteAllRowTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteAllRowTs_result typedOther = (deleteAllRowTs_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -41278,7 +43897,7 @@ public class Hbase { } - public static class scannerOpenWithScan_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenWithScan_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithScan_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -41402,7 +44021,7 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); this.scan = scan; this.attributes = attributes; } @@ -41418,7 +44037,7 @@ public class Hbase { this.scan = new TScan(other.scan); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -41454,19 +44073,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public scannerOpenWithScan_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public scannerOpenWithScan_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -41662,60 +44281,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_scan = true && (isSetScan()); - builder.append(present_scan); + list.add(present_scan); if (present_scan) - builder.append(scan); + list.add(scan); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenWithScan_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenWithScan_args typedOther = (scannerOpenWithScan_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetScan()).compareTo(typedOther.isSetScan()); + lastComparison = Boolean.valueOf(isSetScan()).compareTo(other.isSetScan()); if (lastComparison != 0) { return lastComparison; } if (isSetScan()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scan, typedOther.scan); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scan, other.scan); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -41831,13 +44450,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map466 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map466.size); - for (int _i467 = 0; _i467 < _map466.size; ++_i467) + ByteBuffer _key467; + ByteBuffer _val468; + for (int _i469 = 0; _i469 < _map466.size; ++_i469) { - ByteBuffer _key468; // required - ByteBuffer _val469; // required - _key468 = iprot.readBinary(); - _val469 = iprot.readBinary(); - struct.attributes.put(_key468, _val469); + _key467 = iprot.readBinary(); + _val468 = iprot.readBinary(); + struct.attributes.put(_key467, _val468); } iprot.readMapEnd(); } @@ -41947,13 +44566,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map472 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map472.size); - for (int _i473 = 0; _i473 < _map472.size; ++_i473) + ByteBuffer _key473; + ByteBuffer _val474; + for (int _i475 = 0; _i475 < _map472.size; ++_i475) { - ByteBuffer _key474; // required - ByteBuffer _val475; // required - _key474 = iprot.readBinary(); - _val475 = iprot.readBinary(); - struct.attributes.put(_key474, _val475); + _key473 = iprot.readBinary(); + _val474 = iprot.readBinary(); + struct.attributes.put(_key473, _val474); } } struct.setAttributesIsSet(true); @@ -41963,7 +44582,7 @@ public class Hbase { } - public static class scannerOpenWithScan_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenWithScan_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithScan_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -42219,45 +44838,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenWithScan_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenWithScan_result typedOther = (scannerOpenWithScan_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -42431,7 +45050,7 @@ public class Hbase { } - public static class scannerOpen_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpen_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpen_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -42576,8 +45195,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.startRow = startRow; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); this.columns = columns; this.attributes = attributes; } @@ -42593,14 +45212,14 @@ public class Hbase { this.startRow = other.startRow; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -42637,19 +45256,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public scannerOpen_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public scannerOpen_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -42678,7 +45297,7 @@ public class Hbase { } public ByteBuffer bufferForStartRow() { - return startRow; + return org.apache.thrift.TBaseHelper.copyBinary(startRow); } /** @@ -42686,12 +45305,12 @@ public class Hbase { * Send "" (empty string) to start at the first row. */ public scannerOpen_args setStartRow(byte[] startRow) { - setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); + this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); return this; } public scannerOpen_args setStartRow(ByteBuffer startRow) { - this.startRow = startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -42928,75 +45547,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_startRow = true && (isSetStartRow()); - builder.append(present_startRow); + list.add(present_startRow); if (present_startRow) - builder.append(startRow); + list.add(startRow); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpen_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpen_args typedOther = (scannerOpen_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); + lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStartRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, other.startRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -43116,11 +45735,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); struct.columns = new ArrayList(_list476.size); - for (int _i477 = 0; _i477 < _list476.size; ++_i477) + ByteBuffer _elem477; + for (int _i478 = 0; _i478 < _list476.size; ++_i478) { - ByteBuffer _elem478; // required - _elem478 = iprot.readBinary(); - struct.columns.add(_elem478); + _elem477 = iprot.readBinary(); + struct.columns.add(_elem477); } iprot.readListEnd(); } @@ -43134,13 +45753,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map479 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map479.size); - for (int _i480 = 0; _i480 < _map479.size; ++_i480) + ByteBuffer _key480; + ByteBuffer _val481; + for (int _i482 = 0; _i482 < _map479.size; ++_i482) { - ByteBuffer _key481; // required - ByteBuffer _val482; // required - _key481 = iprot.readBinary(); - _val482 = iprot.readBinary(); - struct.attributes.put(_key481, _val482); + _key480 = iprot.readBinary(); + _val481 = iprot.readBinary(); + struct.attributes.put(_key480, _val481); } iprot.readMapEnd(); } @@ -43273,11 +45892,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list487 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list487.size); - for (int _i488 = 0; _i488 < _list487.size; ++_i488) + ByteBuffer _elem488; + for (int _i489 = 0; _i489 < _list487.size; ++_i489) { - ByteBuffer _elem489; // required - _elem489 = iprot.readBinary(); - struct.columns.add(_elem489); + _elem488 = iprot.readBinary(); + struct.columns.add(_elem488); } } struct.setColumnsIsSet(true); @@ -43286,13 +45905,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map490 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map490.size); - for (int _i491 = 0; _i491 < _map490.size; ++_i491) + ByteBuffer _key491; + ByteBuffer _val492; + for (int _i493 = 0; _i493 < _map490.size; ++_i493) { - ByteBuffer _key492; // required - ByteBuffer _val493; // required - _key492 = iprot.readBinary(); - _val493 = iprot.readBinary(); - struct.attributes.put(_key492, _val493); + _key491 = iprot.readBinary(); + _val492 = iprot.readBinary(); + struct.attributes.put(_key491, _val492); } } struct.setAttributesIsSet(true); @@ -43302,7 +45921,7 @@ public class Hbase { } - public static class scannerOpen_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpen_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpen_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -43558,45 +46177,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpen_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpen_result typedOther = (scannerOpen_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -43770,7 +46389,7 @@ public class Hbase { } - public static class scannerOpenWithStop_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenWithStop_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStop_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -43931,9 +46550,9 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.startRow = startRow; - this.stopRow = stopRow; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); this.columns = columns; this.attributes = attributes; } @@ -43952,14 +46571,14 @@ public class Hbase { this.stopRow = other.stopRow; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -43997,19 +46616,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public scannerOpenWithStop_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public scannerOpenWithStop_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -44038,7 +46657,7 @@ public class Hbase { } public ByteBuffer bufferForStartRow() { - return startRow; + return org.apache.thrift.TBaseHelper.copyBinary(startRow); } /** @@ -44046,12 +46665,12 @@ public class Hbase { * Send "" (empty string) to start at the first row. */ public scannerOpenWithStop_args setStartRow(byte[] startRow) { - setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); + this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); return this; } public scannerOpenWithStop_args setStartRow(ByteBuffer startRow) { - this.startRow = startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -44080,7 +46699,7 @@ public class Hbase { } public ByteBuffer bufferForStopRow() { - return stopRow; + return org.apache.thrift.TBaseHelper.copyBinary(stopRow); } /** @@ -44088,12 +46707,12 @@ public class Hbase { * scanner's results */ public scannerOpenWithStop_args setStopRow(byte[] stopRow) { - setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow)); + this.stopRow = stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(stopRow, stopRow.length)); return this; } public scannerOpenWithStop_args setStopRow(ByteBuffer stopRow) { - this.stopRow = stopRow; + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); return this; } @@ -44352,90 +46971,90 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_startRow = true && (isSetStartRow()); - builder.append(present_startRow); + list.add(present_startRow); if (present_startRow) - builder.append(startRow); + list.add(startRow); boolean present_stopRow = true && (isSetStopRow()); - builder.append(present_stopRow); + list.add(present_stopRow); if (present_stopRow) - builder.append(stopRow); + list.add(stopRow); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenWithStop_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenWithStop_args typedOther = (scannerOpenWithStop_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); + lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStartRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, other.startRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow()); + lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStopRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, other.stopRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -44571,11 +47190,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list494 = iprot.readListBegin(); struct.columns = new ArrayList(_list494.size); - for (int _i495 = 0; _i495 < _list494.size; ++_i495) + ByteBuffer _elem495; + for (int _i496 = 0; _i496 < _list494.size; ++_i496) { - ByteBuffer _elem496; // required - _elem496 = iprot.readBinary(); - struct.columns.add(_elem496); + _elem495 = iprot.readBinary(); + struct.columns.add(_elem495); } iprot.readListEnd(); } @@ -44589,13 +47208,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map497 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map497.size); - for (int _i498 = 0; _i498 < _map497.size; ++_i498) + ByteBuffer _key498; + ByteBuffer _val499; + for (int _i500 = 0; _i500 < _map497.size; ++_i500) { - ByteBuffer _key499; // required - ByteBuffer _val500; // required - _key499 = iprot.readBinary(); - _val500 = iprot.readBinary(); - struct.attributes.put(_key499, _val500); + _key498 = iprot.readBinary(); + _val499 = iprot.readBinary(); + struct.attributes.put(_key498, _val499); } iprot.readMapEnd(); } @@ -44743,11 +47362,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list505.size); - for (int _i506 = 0; _i506 < _list505.size; ++_i506) + ByteBuffer _elem506; + for (int _i507 = 0; _i507 < _list505.size; ++_i507) { - ByteBuffer _elem507; // required - _elem507 = iprot.readBinary(); - struct.columns.add(_elem507); + _elem506 = iprot.readBinary(); + struct.columns.add(_elem506); } } struct.setColumnsIsSet(true); @@ -44756,13 +47375,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map508 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map508.size); - for (int _i509 = 0; _i509 < _map508.size; ++_i509) + ByteBuffer _key509; + ByteBuffer _val510; + for (int _i511 = 0; _i511 < _map508.size; ++_i511) { - ByteBuffer _key510; // required - ByteBuffer _val511; // required - _key510 = iprot.readBinary(); - _val511 = iprot.readBinary(); - struct.attributes.put(_key510, _val511); + _key509 = iprot.readBinary(); + _val510 = iprot.readBinary(); + struct.attributes.put(_key509, _val510); } } struct.setAttributesIsSet(true); @@ -44772,7 +47391,7 @@ public class Hbase { } - public static class scannerOpenWithStop_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenWithStop_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStop_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -45028,45 +47647,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenWithStop_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenWithStop_result typedOther = (scannerOpenWithStop_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -45240,7 +47859,7 @@ public class Hbase { } - public static class scannerOpenWithPrefix_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenWithPrefix_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithPrefix_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -45379,8 +47998,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.startAndPrefix = startAndPrefix; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.startAndPrefix = org.apache.thrift.TBaseHelper.copyBinary(startAndPrefix); this.columns = columns; this.attributes = attributes; } @@ -45396,14 +48015,14 @@ public class Hbase { this.startAndPrefix = other.startAndPrefix; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -45440,19 +48059,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public scannerOpenWithPrefix_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public scannerOpenWithPrefix_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -45480,19 +48099,19 @@ public class Hbase { } public ByteBuffer bufferForStartAndPrefix() { - return startAndPrefix; + return org.apache.thrift.TBaseHelper.copyBinary(startAndPrefix); } /** * the prefix (and thus start row) of the keys you want */ public scannerOpenWithPrefix_args setStartAndPrefix(byte[] startAndPrefix) { - setStartAndPrefix(startAndPrefix == null ? (ByteBuffer)null : ByteBuffer.wrap(startAndPrefix)); + this.startAndPrefix = startAndPrefix == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startAndPrefix, startAndPrefix.length)); return this; } public scannerOpenWithPrefix_args setStartAndPrefix(ByteBuffer startAndPrefix) { - this.startAndPrefix = startAndPrefix; + this.startAndPrefix = org.apache.thrift.TBaseHelper.copyBinary(startAndPrefix); return this; } @@ -45725,75 +48344,75 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_startAndPrefix = true && (isSetStartAndPrefix()); - builder.append(present_startAndPrefix); + list.add(present_startAndPrefix); if (present_startAndPrefix) - builder.append(startAndPrefix); + list.add(startAndPrefix); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenWithPrefix_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenWithPrefix_args typedOther = (scannerOpenWithPrefix_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartAndPrefix()).compareTo(typedOther.isSetStartAndPrefix()); + lastComparison = Boolean.valueOf(isSetStartAndPrefix()).compareTo(other.isSetStartAndPrefix()); if (lastComparison != 0) { return lastComparison; } if (isSetStartAndPrefix()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startAndPrefix, typedOther.startAndPrefix); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startAndPrefix, other.startAndPrefix); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -45913,11 +48532,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list512 = iprot.readListBegin(); struct.columns = new ArrayList(_list512.size); - for (int _i513 = 0; _i513 < _list512.size; ++_i513) + ByteBuffer _elem513; + for (int _i514 = 0; _i514 < _list512.size; ++_i514) { - ByteBuffer _elem514; // required - _elem514 = iprot.readBinary(); - struct.columns.add(_elem514); + _elem513 = iprot.readBinary(); + struct.columns.add(_elem513); } iprot.readListEnd(); } @@ -45931,13 +48550,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map515 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map515.size); - for (int _i516 = 0; _i516 < _map515.size; ++_i516) + ByteBuffer _key516; + ByteBuffer _val517; + for (int _i518 = 0; _i518 < _map515.size; ++_i518) { - ByteBuffer _key517; // required - ByteBuffer _val518; // required - _key517 = iprot.readBinary(); - _val518 = iprot.readBinary(); - struct.attributes.put(_key517, _val518); + _key516 = iprot.readBinary(); + _val517 = iprot.readBinary(); + struct.attributes.put(_key516, _val517); } iprot.readMapEnd(); } @@ -46070,11 +48689,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list523.size); - for (int _i524 = 0; _i524 < _list523.size; ++_i524) + ByteBuffer _elem524; + for (int _i525 = 0; _i525 < _list523.size; ++_i525) { - ByteBuffer _elem525; // required - _elem525 = iprot.readBinary(); - struct.columns.add(_elem525); + _elem524 = iprot.readBinary(); + struct.columns.add(_elem524); } } struct.setColumnsIsSet(true); @@ -46083,13 +48702,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map526 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map526.size); - for (int _i527 = 0; _i527 < _map526.size; ++_i527) + ByteBuffer _key527; + ByteBuffer _val528; + for (int _i529 = 0; _i529 < _map526.size; ++_i529) { - ByteBuffer _key528; // required - ByteBuffer _val529; // required - _key528 = iprot.readBinary(); - _val529 = iprot.readBinary(); - struct.attributes.put(_key528, _val529); + _key527 = iprot.readBinary(); + _val528 = iprot.readBinary(); + struct.attributes.put(_key527, _val528); } } struct.setAttributesIsSet(true); @@ -46099,7 +48718,7 @@ public class Hbase { } - public static class scannerOpenWithPrefix_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenWithPrefix_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithPrefix_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -46355,45 +48974,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenWithPrefix_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenWithPrefix_result typedOther = (scannerOpenWithPrefix_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -46567,7 +49186,7 @@ public class Hbase { } - public static class scannerOpenTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -46728,8 +49347,8 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.startRow = startRow; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); this.columns = columns; this.timestamp = timestamp; setTimestampIsSet(true); @@ -46748,7 +49367,7 @@ public class Hbase { this.startRow = other.startRow; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } @@ -46756,7 +49375,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -46795,19 +49414,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public scannerOpenTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public scannerOpenTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -46836,7 +49455,7 @@ public class Hbase { } public ByteBuffer bufferForStartRow() { - return startRow; + return org.apache.thrift.TBaseHelper.copyBinary(startRow); } /** @@ -46844,12 +49463,12 @@ public class Hbase { * Send "" (empty string) to start at the first row. */ public scannerOpenTs_args setStartRow(byte[] startRow) { - setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); + this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); return this; } public scannerOpenTs_args setStartRow(ByteBuffer startRow) { - this.startRow = startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -47137,90 +49756,90 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_startRow = true && (isSetStartRow()); - builder.append(present_startRow); + list.add(present_startRow); if (present_startRow) - builder.append(startRow); + list.add(startRow); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenTs_args typedOther = (scannerOpenTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); + lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStartRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, other.startRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -47346,11 +49965,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list530 = iprot.readListBegin(); struct.columns = new ArrayList(_list530.size); - for (int _i531 = 0; _i531 < _list530.size; ++_i531) + ByteBuffer _elem531; + for (int _i532 = 0; _i532 < _list530.size; ++_i532) { - ByteBuffer _elem532; // required - _elem532 = iprot.readBinary(); - struct.columns.add(_elem532); + _elem531 = iprot.readBinary(); + struct.columns.add(_elem531); } iprot.readListEnd(); } @@ -47372,13 +49991,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map533 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map533.size); - for (int _i534 = 0; _i534 < _map533.size; ++_i534) + ByteBuffer _key534; + ByteBuffer _val535; + for (int _i536 = 0; _i536 < _map533.size; ++_i536) { - ByteBuffer _key535; // required - ByteBuffer _val536; // required - _key535 = iprot.readBinary(); - _val536 = iprot.readBinary(); - struct.attributes.put(_key535, _val536); + _key534 = iprot.readBinary(); + _val535 = iprot.readBinary(); + struct.attributes.put(_key534, _val535); } iprot.readMapEnd(); } @@ -47520,11 +50139,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list541 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list541.size); - for (int _i542 = 0; _i542 < _list541.size; ++_i542) + ByteBuffer _elem542; + for (int _i543 = 0; _i543 < _list541.size; ++_i543) { - ByteBuffer _elem543; // required - _elem543 = iprot.readBinary(); - struct.columns.add(_elem543); + _elem542 = iprot.readBinary(); + struct.columns.add(_elem542); } } struct.setColumnsIsSet(true); @@ -47537,13 +50156,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map544 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map544.size); - for (int _i545 = 0; _i545 < _map544.size; ++_i545) + ByteBuffer _key545; + ByteBuffer _val546; + for (int _i547 = 0; _i547 < _map544.size; ++_i547) { - ByteBuffer _key546; // required - ByteBuffer _val547; // required - _key546 = iprot.readBinary(); - _val547 = iprot.readBinary(); - struct.attributes.put(_key546, _val547); + _key545 = iprot.readBinary(); + _val546 = iprot.readBinary(); + struct.attributes.put(_key545, _val546); } } struct.setAttributesIsSet(true); @@ -47553,7 +50172,7 @@ public class Hbase { } - public static class scannerOpenTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenTs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -47809,45 +50428,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenTs_result typedOther = (scannerOpenTs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -48021,7 +50640,7 @@ public class Hbase { } - public static class scannerOpenWithStopTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenWithStopTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStopTs_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -48198,9 +50817,9 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.startRow = startRow; - this.stopRow = stopRow; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); this.columns = columns; this.timestamp = timestamp; setTimestampIsSet(true); @@ -48222,7 +50841,7 @@ public class Hbase { this.stopRow = other.stopRow; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } @@ -48230,7 +50849,7 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -48270,19 +50889,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public scannerOpenWithStopTs_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public scannerOpenWithStopTs_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -48311,7 +50930,7 @@ public class Hbase { } public ByteBuffer bufferForStartRow() { - return startRow; + return org.apache.thrift.TBaseHelper.copyBinary(startRow); } /** @@ -48319,12 +50938,12 @@ public class Hbase { * Send "" (empty string) to start at the first row. */ public scannerOpenWithStopTs_args setStartRow(byte[] startRow) { - setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); + this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); return this; } public scannerOpenWithStopTs_args setStartRow(ByteBuffer startRow) { - this.startRow = startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -48353,7 +50972,7 @@ public class Hbase { } public ByteBuffer bufferForStopRow() { - return stopRow; + return org.apache.thrift.TBaseHelper.copyBinary(stopRow); } /** @@ -48361,12 +50980,12 @@ public class Hbase { * scanner's results */ public scannerOpenWithStopTs_args setStopRow(byte[] stopRow) { - setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow)); + this.stopRow = stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(stopRow, stopRow.length)); return this; } public scannerOpenWithStopTs_args setStopRow(ByteBuffer stopRow) { - this.stopRow = stopRow; + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); return this; } @@ -48676,105 +51295,105 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_startRow = true && (isSetStartRow()); - builder.append(present_startRow); + list.add(present_startRow); if (present_startRow) - builder.append(startRow); + list.add(startRow); boolean present_stopRow = true && (isSetStopRow()); - builder.append(present_stopRow); + list.add(present_stopRow); if (present_stopRow) - builder.append(stopRow); + list.add(stopRow); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenWithStopTs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenWithStopTs_args typedOther = (scannerOpenWithStopTs_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); + lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStartRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, other.startRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow()); + lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStopRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, other.stopRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -48916,11 +51535,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list548 = iprot.readListBegin(); struct.columns = new ArrayList(_list548.size); - for (int _i549 = 0; _i549 < _list548.size; ++_i549) + ByteBuffer _elem549; + for (int _i550 = 0; _i550 < _list548.size; ++_i550) { - ByteBuffer _elem550; // required - _elem550 = iprot.readBinary(); - struct.columns.add(_elem550); + _elem549 = iprot.readBinary(); + struct.columns.add(_elem549); } iprot.readListEnd(); } @@ -48942,13 +51561,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map551 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map551.size); - for (int _i552 = 0; _i552 < _map551.size; ++_i552) + ByteBuffer _key552; + ByteBuffer _val553; + for (int _i554 = 0; _i554 < _map551.size; ++_i554) { - ByteBuffer _key553; // required - ByteBuffer _val554; // required - _key553 = iprot.readBinary(); - _val554 = iprot.readBinary(); - struct.attributes.put(_key553, _val554); + _key552 = iprot.readBinary(); + _val553 = iprot.readBinary(); + struct.attributes.put(_key552, _val553); } iprot.readMapEnd(); } @@ -49105,11 +51724,11 @@ public class Hbase { { org.apache.thrift.protocol.TList _list559 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list559.size); - for (int _i560 = 0; _i560 < _list559.size; ++_i560) + ByteBuffer _elem560; + for (int _i561 = 0; _i561 < _list559.size; ++_i561) { - ByteBuffer _elem561; // required - _elem561 = iprot.readBinary(); - struct.columns.add(_elem561); + _elem560 = iprot.readBinary(); + struct.columns.add(_elem560); } } struct.setColumnsIsSet(true); @@ -49122,13 +51741,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map562 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map562.size); - for (int _i563 = 0; _i563 < _map562.size; ++_i563) + ByteBuffer _key563; + ByteBuffer _val564; + for (int _i565 = 0; _i565 < _map562.size; ++_i565) { - ByteBuffer _key564; // required - ByteBuffer _val565; // required - _key564 = iprot.readBinary(); - _val565 = iprot.readBinary(); - struct.attributes.put(_key564, _val565); + _key563 = iprot.readBinary(); + _val564 = iprot.readBinary(); + struct.attributes.put(_key563, _val564); } } struct.setAttributesIsSet(true); @@ -49138,7 +51757,7 @@ public class Hbase { } - public static class scannerOpenWithStopTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerOpenWithStopTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStopTs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -49394,45 +52013,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerOpenWithStopTs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerOpenWithStopTs_result typedOther = (scannerOpenWithStopTs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -49606,7 +52225,7 @@ public class Hbase { } - public static class scannerGet_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerGet_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGet_args"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1); @@ -49815,30 +52434,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_id = true; - builder.append(present_id); + list.add(present_id); if (present_id) - builder.append(id); + list.add(id); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerGet_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerGet_args typedOther = (scannerGet_args)other; - lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } @@ -49977,7 +52596,7 @@ public class Hbase { } - public static class scannerGet_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerGet_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGet_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -50092,7 +52711,7 @@ public class Hbase { */ public scannerGet_result(scannerGet_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -50310,60 +52929,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerGet_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerGet_result typedOther = (scannerGet_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -50459,12 +53078,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); struct.success = new ArrayList(_list566.size); - for (int _i567 = 0; _i567 < _list566.size; ++_i567) + TRowResult _elem567; + for (int _i568 = 0; _i568 < _list566.size; ++_i568) { - TRowResult _elem568; // required - _elem568 = new TRowResult(); - _elem568.read(iprot); - struct.success.add(_elem568); + _elem567 = new TRowResult(); + _elem567.read(iprot); + struct.success.add(_elem567); } iprot.readListEnd(); } @@ -50581,12 +53200,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list571.size); - for (int _i572 = 0; _i572 < _list571.size; ++_i572) + TRowResult _elem572; + for (int _i573 = 0; _i573 < _list571.size; ++_i573) { - TRowResult _elem573; // required - _elem573 = new TRowResult(); - _elem573.read(iprot); - struct.success.add(_elem573); + _elem572 = new TRowResult(); + _elem572.read(iprot); + struct.success.add(_elem572); } } struct.setSuccessIsSet(true); @@ -50606,7 +53225,7 @@ public class Hbase { } - public static class scannerGetList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerGetList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGetList_args"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1); @@ -50886,45 +53505,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_id = true; - builder.append(present_id); + list.add(present_id); if (present_id) - builder.append(id); + list.add(id); boolean present_nbRows = true; - builder.append(present_nbRows); + list.add(present_nbRows); if (present_nbRows) - builder.append(nbRows); + list.add(nbRows); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerGetList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerGetList_args typedOther = (scannerGetList_args)other; - lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNbRows()).compareTo(typedOther.isSetNbRows()); + lastComparison = Boolean.valueOf(isSetNbRows()).compareTo(other.isSetNbRows()); if (lastComparison != 0) { return lastComparison; } if (isSetNbRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nbRows, typedOther.nbRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nbRows, other.nbRows); if (lastComparison != 0) { return lastComparison; } @@ -51088,7 +53707,7 @@ public class Hbase { } - public static class scannerGetList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerGetList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGetList_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -51203,7 +53822,7 @@ public class Hbase { */ public scannerGetList_result(scannerGetList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -51421,60 +54040,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerGetList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerGetList_result typedOther = (scannerGetList_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -51570,12 +54189,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); struct.success = new ArrayList(_list574.size); - for (int _i575 = 0; _i575 < _list574.size; ++_i575) + TRowResult _elem575; + for (int _i576 = 0; _i576 < _list574.size; ++_i576) { - TRowResult _elem576; // required - _elem576 = new TRowResult(); - _elem576.read(iprot); - struct.success.add(_elem576); + _elem575 = new TRowResult(); + _elem575.read(iprot); + struct.success.add(_elem575); } iprot.readListEnd(); } @@ -51692,12 +54311,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list579.size); - for (int _i580 = 0; _i580 < _list579.size; ++_i580) + TRowResult _elem580; + for (int _i581 = 0; _i581 < _list579.size; ++_i581) { - TRowResult _elem581; // required - _elem581 = new TRowResult(); - _elem581.read(iprot); - struct.success.add(_elem581); + _elem580 = new TRowResult(); + _elem580.read(iprot); + struct.success.add(_elem580); } } struct.setSuccessIsSet(true); @@ -51717,7 +54336,7 @@ public class Hbase { } - public static class scannerClose_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerClose_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerClose_args"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1); @@ -51926,30 +54545,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_id = true; - builder.append(present_id); + list.add(present_id); if (present_id) - builder.append(id); + list.add(id); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerClose_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerClose_args typedOther = (scannerClose_args)other; - lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } @@ -52088,7 +54707,7 @@ public class Hbase { } - public static class scannerClose_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class scannerClose_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerClose_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -52342,45 +54961,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(scannerClose_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - scannerClose_result typedOther = (scannerClose_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -52558,7 +55177,7 @@ public class Hbase { } - public static class getRegionInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRegionInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionInfo_args"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -52652,7 +55271,7 @@ public class Hbase { ByteBuffer row) { this(); - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); } /** @@ -52682,19 +55301,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public getRegionInfo_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public getRegionInfo_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -52775,30 +55394,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRegionInfo_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRegionInfo_args typedOther = (getRegionInfo_args)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } @@ -52941,7 +55560,7 @@ public class Hbase { } - public static class getRegionInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class getRegionInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionInfo_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -53195,45 +55814,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(getRegionInfo_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRegionInfo_result typedOther = (getRegionInfo_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -53414,7 +56033,7 @@ public class Hbase { } - public static class append_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class append_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_args"); private static final org.apache.thrift.protocol.TField APPEND_FIELD_DESC = new org.apache.thrift.protocol.TField("append", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -53621,30 +56240,30 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_append = true && (isSetAppend()); - builder.append(present_append); + list.add(present_append); if (present_append) - builder.append(append); + list.add(append); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(append_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - append_args typedOther = (append_args)other; - lastComparison = Boolean.valueOf(isSetAppend()).compareTo(typedOther.isSetAppend()); + lastComparison = Boolean.valueOf(isSetAppend()).compareTo(other.isSetAppend()); if (lastComparison != 0) { return lastComparison; } if (isSetAppend()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.append, typedOther.append); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.append, other.append); if (lastComparison != 0) { return lastComparison; } @@ -53792,7 +56411,7 @@ public class Hbase { } - public static class append_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class append_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -53898,7 +56517,7 @@ public class Hbase { */ public append_result(append_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -54066,45 +56685,45 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(append_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - append_result typedOther = (append_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -54192,12 +56811,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); struct.success = new ArrayList(_list582.size); - for (int _i583 = 0; _i583 < _list582.size; ++_i583) + TCell _elem583; + for (int _i584 = 0; _i584 < _list582.size; ++_i584) { - TCell _elem584; // required - _elem584 = new TCell(); - _elem584.read(iprot); - struct.success.add(_elem584); + _elem583 = new TCell(); + _elem583.read(iprot); + struct.success.add(_elem583); } iprot.readListEnd(); } @@ -54294,12 +56913,12 @@ public class Hbase { { org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list587.size); - for (int _i588 = 0; _i588 < _list587.size; ++_i588) + TCell _elem588; + for (int _i589 = 0; _i589 < _list587.size; ++_i589) { - TCell _elem589; // required - _elem589 = new TCell(); - _elem589.read(iprot); - struct.success.add(_elem589); + _elem588 = new TCell(); + _elem588.read(iprot); + struct.success.add(_elem588); } } struct.setSuccessIsSet(true); @@ -54314,7 +56933,7 @@ public class Hbase { } - public static class checkAndPut_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class checkAndPut_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -54484,10 +57103,10 @@ public class Hbase { Map attributes) { this(); - this.tableName = tableName; - this.row = row; - this.column = column; - this.value = value; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); this.mput = mput; this.attributes = attributes; } @@ -54512,7 +57131,7 @@ public class Hbase { this.mput = new Mutation(other.mput); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); + Map __this__attributes = new HashMap(other.attributes.size()); for (Map.Entry other_element : other.attributes.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -54551,19 +57170,19 @@ public class Hbase { } public ByteBuffer bufferForTableName() { - return tableName; + return org.apache.thrift.TBaseHelper.copyBinary(tableName); } /** * name of table */ public checkAndPut_args setTableName(byte[] tableName) { - setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); + this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); return this; } public checkAndPut_args setTableName(ByteBuffer tableName) { - this.tableName = tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -54591,19 +57210,19 @@ public class Hbase { } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } /** * row key */ public checkAndPut_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public checkAndPut_args setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -54631,19 +57250,19 @@ public class Hbase { } public ByteBuffer bufferForColumn() { - return column; + return org.apache.thrift.TBaseHelper.copyBinary(column); } /** * column name */ public checkAndPut_args setColumn(byte[] column) { - setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); + this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); return this; } public checkAndPut_args setColumn(ByteBuffer column) { - this.column = column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -54673,7 +57292,7 @@ public class Hbase { } public ByteBuffer bufferForValue() { - return value; + return org.apache.thrift.TBaseHelper.copyBinary(value); } /** @@ -54682,12 +57301,12 @@ public class Hbase { * column in question */ public checkAndPut_args setValue(byte[] value) { - setValue(value == null ? (ByteBuffer)null : ByteBuffer.wrap(value)); + this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); return this; } public checkAndPut_args setValue(ByteBuffer value) { - this.value = value; + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -54949,105 +57568,105 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_value = true && (isSetValue()); - builder.append(present_value); + list.add(present_value); if (present_value) - builder.append(value); + list.add(value); boolean present_mput = true && (isSetMput()); - builder.append(present_mput); + list.add(present_mput); if (present_mput) - builder.append(mput); + list.add(mput); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(checkAndPut_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - checkAndPut_args typedOther = (checkAndPut_args)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMput()).compareTo(typedOther.isSetMput()); + lastComparison = Boolean.valueOf(isSetMput()).compareTo(other.isSetMput()); if (lastComparison != 0) { return lastComparison; } if (isSetMput()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mput, typedOther.mput); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mput, other.mput); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } @@ -55211,13 +57830,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map590 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map590.size); - for (int _i591 = 0; _i591 < _map590.size; ++_i591) + ByteBuffer _key591; + ByteBuffer _val592; + for (int _i593 = 0; _i593 < _map590.size; ++_i593) { - ByteBuffer _key592; // required - ByteBuffer _val593; // required - _key592 = iprot.readBinary(); - _val593 = iprot.readBinary(); - struct.attributes.put(_key592, _val593); + _key591 = iprot.readBinary(); + _val592 = iprot.readBinary(); + struct.attributes.put(_key591, _val592); } iprot.readMapEnd(); } @@ -55372,13 +57991,13 @@ public class Hbase { { org.apache.thrift.protocol.TMap _map596 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map596.size); - for (int _i597 = 0; _i597 < _map596.size; ++_i597) + ByteBuffer _key597; + ByteBuffer _val598; + for (int _i599 = 0; _i599 < _map596.size; ++_i599) { - ByteBuffer _key598; // required - ByteBuffer _val599; // required - _key598 = iprot.readBinary(); - _val599 = iprot.readBinary(); - struct.attributes.put(_key598, _val599); + _key597 = iprot.readBinary(); + _val598 = iprot.readBinary(); + struct.attributes.put(_key597, _val598); } } struct.setAttributesIsSet(true); @@ -55388,7 +58007,7 @@ public class Hbase { } - public static class checkAndPut_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class checkAndPut_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); @@ -55703,60 +58322,60 @@ public class Hbase { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true; - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(checkAndPut_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - checkAndPut_result typedOther = (checkAndPut_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java index 4cd5eb9..892e232 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,15 +29,18 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * An IOError exception signals that an error occurred communicating * to the Hbase master or an Hbase region server. Also used to return * more general Hbase error conditions. */ -public class IOError extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class IOError extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IOError"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -231,30 +235,30 @@ public class IOError extends TException implements org.apache.thrift.TBase list = new ArrayList(); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(IOError other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - IOError typedOther = (IOError)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java index c1b0b7e..d44808b 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,14 +29,17 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * An IllegalArgument exception indicates an illegal or invalid * argument was passed into a procedure. */ -public class IllegalArgument extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class IllegalArgument extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IllegalArgument"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -230,30 +234,30 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(IllegalArgument other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - IllegalArgument typedOther = (IllegalArgument)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java index 98ad68f..c51687f 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * A Mutation object is used to either update or delete a column-value. */ -public class Mutation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class Mutation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Mutation"); private static final org.apache.thrift.protocol.TField IS_DELETE_FIELD_DESC = new org.apache.thrift.protocol.TField("isDelete", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -155,8 +159,8 @@ public class Mutation implements org.apache.thrift.TBase list = new ArrayList(); boolean present_isDelete = true; - builder.append(present_isDelete); + list.add(present_isDelete); if (present_isDelete) - builder.append(isDelete); + list.add(isDelete); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_value = true && (isSetValue()); - builder.append(present_value); + list.add(present_value); if (present_value) - builder.append(value); + list.add(value); boolean present_writeToWAL = true; - builder.append(present_writeToWAL); + list.add(present_writeToWAL); if (present_writeToWAL) - builder.append(writeToWAL); + list.add(writeToWAL); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(Mutation other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - Mutation typedOther = (Mutation)other; - lastComparison = Boolean.valueOf(isSetIsDelete()).compareTo(typedOther.isSetIsDelete()); + lastComparison = Boolean.valueOf(isSetIsDelete()).compareTo(other.isSetIsDelete()); if (lastComparison != 0) { return lastComparison; } if (isSetIsDelete()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDelete, typedOther.isDelete); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDelete, other.isDelete); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetWriteToWAL()).compareTo(typedOther.isSetWriteToWAL()); + lastComparison = Boolean.valueOf(isSetWriteToWAL()).compareTo(other.isSetWriteToWAL()); if (lastComparison != 0) { return lastComparison; } if (isSetWriteToWAL()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeToWAL, typedOther.writeToWAL); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeToWAL, other.writeToWAL); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java index 85e0cf4..7f2bbc2 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * An Append object is used to specify the parameters for performing the append operation. */ -public class TAppend implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TAppend implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAppend"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -148,8 +152,8 @@ public class TAppend implements org.apache.thrift.TBase values) { this(); - this.table = table; - this.row = row; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.columns = columns; this.values = values; } @@ -165,14 +169,14 @@ public class TAppend implements org.apache.thrift.TBase __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } this.columns = __this__columns; } if (other.isSetValues()) { - List __this__values = new ArrayList(); + List __this__values = new ArrayList(other.values.size()); for (ByteBuffer other_element : other.values) { __this__values.add(other_element); } @@ -198,16 +202,16 @@ public class TAppend implements org.apache.thrift.TBase list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_values = true && (isSetValues()); - builder.append(present_values); + list.add(present_values); if (present_values) - builder.append(values); + list.add(values); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TAppend other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TAppend typedOther = (TAppend)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } @@ -654,11 +658,11 @@ public class TAppend implements org.apache.thrift.TBase(_list34.size); - for (int _i35 = 0; _i35 < _list34.size; ++_i35) + ByteBuffer _elem35; + for (int _i36 = 0; _i36 < _list34.size; ++_i36) { - ByteBuffer _elem36; // required - _elem36 = iprot.readBinary(); - struct.columns.add(_elem36); + _elem35 = iprot.readBinary(); + struct.columns.add(_elem35); } iprot.readListEnd(); } @@ -672,11 +676,11 @@ public class TAppend implements org.apache.thrift.TBase(_list37.size); - for (int _i38 = 0; _i38 < _list37.size; ++_i38) + ByteBuffer _elem38; + for (int _i39 = 0; _i39 < _list37.size; ++_i39) { - ByteBuffer _elem39; // required - _elem39 = iprot.readBinary(); - struct.values.add(_elem39); + _elem38 = iprot.readBinary(); + struct.values.add(_elem38); } iprot.readListEnd(); } @@ -807,11 +811,11 @@ public class TAppend implements org.apache.thrift.TBase(_list44.size); - for (int _i45 = 0; _i45 < _list44.size; ++_i45) + ByteBuffer _elem45; + for (int _i46 = 0; _i46 < _list44.size; ++_i46) { - ByteBuffer _elem46; // required - _elem46 = iprot.readBinary(); - struct.columns.add(_elem46); + _elem45 = iprot.readBinary(); + struct.columns.add(_elem45); } } struct.setColumnsIsSet(true); @@ -820,11 +824,11 @@ public class TAppend implements org.apache.thrift.TBase(_list47.size); - for (int _i48 = 0; _i48 < _list47.size; ++_i48) + ByteBuffer _elem48; + for (int _i49 = 0; _i49 < _list47.size; ++_i49) { - ByteBuffer _elem49; // required - _elem49 = iprot.readBinary(); - struct.values.add(_elem49); + _elem48 = iprot.readBinary(); + struct.values.add(_elem48); } } struct.setValuesIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java index ea29935..0f1304b 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,16 +29,19 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * TCell - Used to transport a cell value (byte[]) and the timestamp it was * stored with together as a result for get and getRow methods. This promotes * the timestamp of a cell to a first-class value, making it easy to take * note of temporal data. Cell is used all the way from HStore up to HTable. */ -public class TCell implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TCell implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCell"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -135,7 +139,7 @@ public class TCell implements org.apache.thrift.TBase, jav long timestamp) { this(); - this.value = value; + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); this.timestamp = timestamp; setTimestampIsSet(true); } @@ -168,16 +172,16 @@ public class TCell implements org.apache.thrift.TBase, jav } public ByteBuffer bufferForValue() { - return value; + return org.apache.thrift.TBaseHelper.copyBinary(value); } public TCell setValue(byte[] value) { - setValue(value == null ? (ByteBuffer)null : ByteBuffer.wrap(value)); + this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); return this; } public TCell setValue(ByteBuffer value) { - this.value = value; + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -303,45 +307,45 @@ public class TCell implements org.apache.thrift.TBase, jav @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_value = true && (isSetValue()); - builder.append(present_value); + list.add(present_value); if (present_value) - builder.append(value); + list.add(value); boolean present_timestamp = true; - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TCell other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TCell typedOther = (TCell)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java index 22a137e..ccbd72c 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Holds column name and the cell. */ -public class TColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn"); private static final org.apache.thrift.protocol.TField COLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("columnName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -130,7 +134,7 @@ public class TColumn implements org.apache.thrift.TBase list = new ArrayList(); boolean present_columnName = true && (isSetColumnName()); - builder.append(present_columnName); + list.add(present_columnName); if (present_columnName) - builder.append(columnName); + list.add(columnName); boolean present_cell = true && (isSetCell()); - builder.append(present_cell); + list.add(present_cell); if (present_cell) - builder.append(cell); + list.add(cell); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TColumn typedOther = (TColumn)other; - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName()); + lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCell()).compareTo(typedOther.isSetCell()); + lastComparison = Boolean.valueOf(isSetCell()).compareTo(other.isSetCell()); if (lastComparison != 0) { return lastComparison; } if (isSetCell()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cell, typedOther.cell); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cell, other.cell); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java index 6200279..866b3a5 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,14 +29,17 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * For increments that are not incrementColumnValue * equivalents. */ -public class TIncrement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TIncrement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIncrement"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -149,9 +153,9 @@ public class TIncrement implements org.apache.thrift.TBase list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_column = true && (isSetColumn()); - builder.append(present_column); + list.add(present_column); if (present_column) - builder.append(column); + list.add(column); boolean present_ammount = true; - builder.append(present_ammount); + list.add(present_ammount); if (present_ammount) - builder.append(ammount); + list.add(ammount); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TIncrement other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TIncrement typedOther = (TIncrement)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAmmount()).compareTo(typedOther.isSetAmmount()); + lastComparison = Boolean.valueOf(isSetAmmount()).compareTo(other.isSetAmmount()); if (lastComparison != 0) { return lastComparison; } if (isSetAmmount()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ammount, typedOther.ammount); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ammount, other.ammount); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java index 278ef3a..1d7bb47 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * A TRegionInfo contains information about an HTable region. */ -public class TRegionInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TRegionInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRegionInfo"); private static final org.apache.thrift.protocol.TField START_KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("startKey", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -174,14 +178,14 @@ public class TRegionInfo implements org.apache.thrift.TBase list = new ArrayList(); boolean present_startKey = true && (isSetStartKey()); - builder.append(present_startKey); + list.add(present_startKey); if (present_startKey) - builder.append(startKey); + list.add(startKey); boolean present_endKey = true && (isSetEndKey()); - builder.append(present_endKey); + list.add(present_endKey); if (present_endKey) - builder.append(endKey); + list.add(endKey); boolean present_id = true; - builder.append(present_id); + list.add(present_id); if (present_id) - builder.append(id); + list.add(id); boolean present_name = true && (isSetName()); - builder.append(present_name); + list.add(present_name); if (present_name) - builder.append(name); + list.add(name); boolean present_version = true; - builder.append(present_version); + list.add(present_version); if (present_version) - builder.append(version); + list.add(version); boolean present_serverName = true && (isSetServerName()); - builder.append(present_serverName); + list.add(present_serverName); if (present_serverName) - builder.append(serverName); + list.add(serverName); boolean present_port = true; - builder.append(present_port); + list.add(present_port); if (present_port) - builder.append(port); + list.add(port); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TRegionInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TRegionInfo typedOther = (TRegionInfo)other; - lastComparison = Boolean.valueOf(isSetStartKey()).compareTo(typedOther.isSetStartKey()); + lastComparison = Boolean.valueOf(isSetStartKey()).compareTo(other.isSetStartKey()); if (lastComparison != 0) { return lastComparison; } if (isSetStartKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startKey, typedOther.startKey); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startKey, other.startKey); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEndKey()).compareTo(typedOther.isSetEndKey()); + lastComparison = Boolean.valueOf(isSetEndKey()).compareTo(other.isSetEndKey()); if (lastComparison != 0) { return lastComparison; } if (isSetEndKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endKey, typedOther.endKey); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endKey, other.endKey); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(typedOther.isSetVersion()); + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); if (lastComparison != 0) { return lastComparison; } if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, typedOther.version); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerName()).compareTo(typedOther.isSetServerName()); + lastComparison = Boolean.valueOf(isSetServerName()).compareTo(other.isSetServerName()); if (lastComparison != 0) { return lastComparison; } if (isSetServerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, typedOther.serverName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, other.serverName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPort()).compareTo(typedOther.isSetPort()); + lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort()); if (lastComparison != 0) { return lastComparison; } if (isSetPort()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, typedOther.port); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java index 3bb244d..9d9f187 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Holds row name and then a map of columns to cells. */ -public class TRowResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TRowResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRowResult"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -116,7 +120,7 @@ public class TRowResult implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -140,7 +144,7 @@ public class TRowResult implements org.apache.thrift.TBase __this__columns = new HashMap(); + Map __this__columns = new HashMap(other.columns.size()); for (Map.Entry other_element : other.columns.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -166,7 +170,7 @@ public class TRowResult implements org.apache.thrift.TBase __this__sortedColumns = new ArrayList(); + List __this__sortedColumns = new ArrayList(other.sortedColumns.size()); for (TColumn other_element : other.sortedColumns) { __this__sortedColumns.add(new TColumn(other_element)); } @@ -191,16 +195,16 @@ public class TRowResult implements org.apache.thrift.TBase list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_sortedColumns = true && (isSetSortedColumns()); - builder.append(present_sortedColumns); + list.add(present_sortedColumns); if (present_sortedColumns) - builder.append(sortedColumns); + list.add(sortedColumns); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TRowResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TRowResult typedOther = (TRowResult)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSortedColumns()).compareTo(typedOther.isSetSortedColumns()); + lastComparison = Boolean.valueOf(isSetSortedColumns()).compareTo(other.isSetSortedColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetSortedColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortedColumns, typedOther.sortedColumns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortedColumns, other.sortedColumns); if (lastComparison != 0) { return lastComparison; } @@ -560,14 +564,14 @@ public class TRowResult implements org.apache.thrift.TBase(2*_map8.size); - for (int _i9 = 0; _i9 < _map8.size; ++_i9) + ByteBuffer _key9; + TCell _val10; + for (int _i11 = 0; _i11 < _map8.size; ++_i11) { - ByteBuffer _key10; // required - TCell _val11; // required - _key10 = iprot.readBinary(); - _val11 = new TCell(); - _val11.read(iprot); - struct.columns.put(_key10, _val11); + _key9 = iprot.readBinary(); + _val10 = new TCell(); + _val10.read(iprot); + struct.columns.put(_key9, _val10); } iprot.readMapEnd(); } @@ -581,12 +585,12 @@ public class TRowResult implements org.apache.thrift.TBase(_list12.size); - for (int _i13 = 0; _i13 < _list12.size; ++_i13) + TColumn _elem13; + for (int _i14 = 0; _i14 < _list12.size; ++_i14) { - TColumn _elem14; // required - _elem14 = new TColumn(); - _elem14.read(iprot); - struct.sortedColumns.add(_elem14); + _elem13 = new TColumn(); + _elem13.read(iprot); + struct.sortedColumns.add(_elem13); } iprot.readListEnd(); } @@ -708,14 +712,14 @@ public class TRowResult implements org.apache.thrift.TBase(2*_map19.size); - for (int _i20 = 0; _i20 < _map19.size; ++_i20) + ByteBuffer _key20; + TCell _val21; + for (int _i22 = 0; _i22 < _map19.size; ++_i22) { - ByteBuffer _key21; // required - TCell _val22; // required - _key21 = iprot.readBinary(); - _val22 = new TCell(); - _val22.read(iprot); - struct.columns.put(_key21, _val22); + _key20 = iprot.readBinary(); + _val21 = new TCell(); + _val21.read(iprot); + struct.columns.put(_key20, _val21); } } struct.setColumnsIsSet(true); @@ -724,12 +728,12 @@ public class TRowResult implements org.apache.thrift.TBase(_list23.size); - for (int _i24 = 0; _i24 < _list23.size; ++_i24) + TColumn _elem24; + for (int _i25 = 0; _i25 < _list23.size; ++_i25) { - TColumn _elem25; // required - _elem25 = new TColumn(); - _elem25.read(iprot); - struct.sortedColumns.add(_elem25); + _elem24 = new TColumn(); + _elem24.read(iprot); + struct.sortedColumns.add(_elem24); } } struct.setSortedColumnsIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java index 5f5cdc7..d4fdf19 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * A Scan object is used to specify scanner parameters when opening a scanner. */ -public class TScan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TScan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TScan"); private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -152,7 +156,7 @@ public class TScan implements org.apache.thrift.TBase, jav private static final int __SORTCOLUMNS_ISSET_ID = 3; private static final int __REVERSED_ISSET_ID = 4; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.START_ROW,_Fields.STOP_ROW,_Fields.TIMESTAMP,_Fields.COLUMNS,_Fields.CACHING,_Fields.FILTER_STRING,_Fields.BATCH_SIZE,_Fields.SORT_COLUMNS,_Fields.REVERSED}; + private static final _Fields optionals[] = {_Fields.START_ROW,_Fields.STOP_ROW,_Fields.TIMESTAMP,_Fields.COLUMNS,_Fields.CACHING,_Fields.FILTER_STRING,_Fields.BATCH_SIZE,_Fields.SORT_COLUMNS,_Fields.REVERSED}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -195,7 +199,7 @@ public class TScan implements org.apache.thrift.TBase, jav } this.timestamp = other.timestamp; if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } @@ -238,16 +242,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public ByteBuffer bufferForStartRow() { - return startRow; + return org.apache.thrift.TBaseHelper.copyBinary(startRow); } public TScan setStartRow(byte[] startRow) { - setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); + this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); return this; } public TScan setStartRow(ByteBuffer startRow) { - this.startRow = startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -272,16 +276,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public ByteBuffer bufferForStopRow() { - return stopRow; + return org.apache.thrift.TBaseHelper.copyBinary(stopRow); } public TScan setStopRow(byte[] stopRow) { - setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow)); + this.stopRow = stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(stopRow, stopRow.length)); return this; } public TScan setStopRow(ByteBuffer stopRow) { - this.stopRow = stopRow; + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); return this; } @@ -391,16 +395,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public ByteBuffer bufferForFilterString() { - return filterString; + return org.apache.thrift.TBaseHelper.copyBinary(filterString); } public TScan setFilterString(byte[] filterString) { - setFilterString(filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(filterString)); + this.filterString = filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterString, filterString.length)); return this; } public TScan setFilterString(ByteBuffer filterString) { - this.filterString = filterString; + this.filterString = org.apache.thrift.TBaseHelper.copyBinary(filterString); return this; } @@ -726,150 +730,150 @@ public class TScan implements org.apache.thrift.TBase, jav @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_startRow = true && (isSetStartRow()); - builder.append(present_startRow); + list.add(present_startRow); if (present_startRow) - builder.append(startRow); + list.add(startRow); boolean present_stopRow = true && (isSetStopRow()); - builder.append(present_stopRow); + list.add(present_stopRow); if (present_stopRow) - builder.append(stopRow); + list.add(stopRow); boolean present_timestamp = true && (isSetTimestamp()); - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_caching = true && (isSetCaching()); - builder.append(present_caching); + list.add(present_caching); if (present_caching) - builder.append(caching); + list.add(caching); boolean present_filterString = true && (isSetFilterString()); - builder.append(present_filterString); + list.add(present_filterString); if (present_filterString) - builder.append(filterString); + list.add(filterString); boolean present_batchSize = true && (isSetBatchSize()); - builder.append(present_batchSize); + list.add(present_batchSize); if (present_batchSize) - builder.append(batchSize); + list.add(batchSize); boolean present_sortColumns = true && (isSetSortColumns()); - builder.append(present_sortColumns); + list.add(present_sortColumns); if (present_sortColumns) - builder.append(sortColumns); + list.add(sortColumns); boolean present_reversed = true && (isSetReversed()); - builder.append(present_reversed); + list.add(present_reversed); if (present_reversed) - builder.append(reversed); + list.add(reversed); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TScan other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TScan typedOther = (TScan)other; - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); + lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStartRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, other.startRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow()); + lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStopRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, other.stopRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCaching()).compareTo(typedOther.isSetCaching()); + lastComparison = Boolean.valueOf(isSetCaching()).compareTo(other.isSetCaching()); if (lastComparison != 0) { return lastComparison; } if (isSetCaching()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.caching, typedOther.caching); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.caching, other.caching); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(typedOther.isSetFilterString()); + lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); if (lastComparison != 0) { return lastComparison; } if (isSetFilterString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filterString, typedOther.filterString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filterString, other.filterString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBatchSize()).compareTo(typedOther.isSetBatchSize()); + lastComparison = Boolean.valueOf(isSetBatchSize()).compareTo(other.isSetBatchSize()); if (lastComparison != 0) { return lastComparison; } if (isSetBatchSize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batchSize, typedOther.batchSize); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batchSize, other.batchSize); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSortColumns()).compareTo(typedOther.isSetSortColumns()); + lastComparison = Boolean.valueOf(isSetSortColumns()).compareTo(other.isSetSortColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetSortColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortColumns, typedOther.sortColumns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortColumns, other.sortColumns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReversed()).compareTo(typedOther.isSetReversed()); + lastComparison = Boolean.valueOf(isSetReversed()).compareTo(other.isSetReversed()); if (lastComparison != 0) { return lastComparison; } if (isSetReversed()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reversed, typedOther.reversed); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reversed, other.reversed); if (lastComparison != 0) { return lastComparison; } @@ -1037,11 +1041,11 @@ public class TScan implements org.apache.thrift.TBase, jav { org.apache.thrift.protocol.TList _list26 = iprot.readListBegin(); struct.columns = new ArrayList(_list26.size); - for (int _i27 = 0; _i27 < _list26.size; ++_i27) + ByteBuffer _elem27; + for (int _i28 = 0; _i28 < _list26.size; ++_i28) { - ByteBuffer _elem28; // required - _elem28 = iprot.readBinary(); - struct.columns.add(_elem28); + _elem27 = iprot.readBinary(); + struct.columns.add(_elem27); } iprot.readListEnd(); } @@ -1266,11 +1270,11 @@ public class TScan implements org.apache.thrift.TBase, jav { org.apache.thrift.protocol.TList _list31 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.columns = new ArrayList(_list31.size); - for (int _i32 = 0; _i32 < _list31.size; ++_i32) + ByteBuffer _elem32; + for (int _i33 = 0; _i33 < _list31.size; ++_i33) { - ByteBuffer _elem33; // required - _elem33 = iprot.readBinary(); - struct.columns.add(_elem33); + _elem32 = iprot.readBinary(); + struct.columns.add(_elem32); } } struct.setColumnsIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftHBaseServiceHandler.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftHBaseServiceHandler.java index 1343149..ca19614 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftHBaseServiceHandler.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftHBaseServiceHandler.java @@ -19,6 +19,7 @@ package org.apache.hadoop.hbase.thrift2; import static org.apache.hadoop.hbase.thrift2.ThriftUtilities.appendFromThrift; +import static org.apache.hadoop.hbase.thrift2.ThriftUtilities.compareOpFromThrift; import static org.apache.hadoop.hbase.thrift2.ThriftUtilities.deleteFromThrift; import static org.apache.hadoop.hbase.thrift2.ThriftUtilities.deletesFromThrift; import static org.apache.hadoop.hbase.thrift2.ThriftUtilities.getFromThrift; @@ -51,10 +52,13 @@ import org.apache.hadoop.hbase.HRegionLocation; import org.apache.hadoop.hbase.classification.InterfaceAudience; import org.apache.hadoop.hbase.client.RegionLocator; import org.apache.hadoop.hbase.client.ResultScanner; +import org.apache.hadoop.hbase.client.RowMutations; import org.apache.hadoop.hbase.client.Table; +import org.apache.hadoop.hbase.filter.CompareFilter.CompareOp; import org.apache.hadoop.hbase.security.UserProvider; import org.apache.hadoop.hbase.thrift.ThriftMetrics; import org.apache.hadoop.hbase.thrift2.generated.TAppend; +import org.apache.hadoop.hbase.thrift2.generated.TCompareOp; import org.apache.hadoop.hbase.thrift2.generated.TDelete; import org.apache.hadoop.hbase.thrift2.generated.TGet; import org.apache.hadoop.hbase.thrift2.generated.THBaseService; @@ -301,6 +305,19 @@ public class ThriftHBaseServiceHandler implements THBaseService.Iface { } @Override + public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, + ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations) + throws TIOError, TException { + try (final Table htable = getTable(table)) { + return htable.checkAndMutate(byteBufferToByteArray(row), byteBufferToByteArray(family), + byteBufferToByteArray(qualifier), compareOpFromThrift(compareOp), + byteBufferToByteArray(value), rowMutationsFromThrift(rowMutations)); + } catch (IOException e) { + throw getTIOError(e); + } + } + + @Override public boolean checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete deleteSingle) throws TIOError, TException { Table htable = getTable(table); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java index 8811e6d..d5cf287 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java @@ -43,6 +43,7 @@ import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.client.RowMutations; import org.apache.hadoop.hbase.client.Scan; +import org.apache.hadoop.hbase.filter.CompareFilter.CompareOp; import org.apache.hadoop.hbase.filter.ParseFilter; import org.apache.hadoop.hbase.security.visibility.Authorizations; import org.apache.hadoop.hbase.security.visibility.CellVisibility; @@ -50,6 +51,7 @@ import org.apache.hadoop.hbase.thrift2.generated.TAppend; import org.apache.hadoop.hbase.thrift2.generated.TColumn; import org.apache.hadoop.hbase.thrift2.generated.TColumnIncrement; import org.apache.hadoop.hbase.thrift2.generated.TColumnValue; +import org.apache.hadoop.hbase.thrift2.generated.TCompareOp; import org.apache.hadoop.hbase.thrift2.generated.TDelete; import org.apache.hadoop.hbase.thrift2.generated.TDeleteType; import org.apache.hadoop.hbase.thrift2.generated.TDurability; @@ -530,4 +532,17 @@ public class ThriftUtilities { default: return null; } } + + public static CompareOp compareOpFromThrift(TCompareOp tCompareOp) { + switch (tCompareOp.getValue()) { + case 0: return CompareOp.LESS; + case 1: return CompareOp.LESS_OR_EQUAL; + case 2: return CompareOp.EQUAL; + case 3: return CompareOp.NOT_EQUAL; + case 4: return CompareOp.GREATER_OR_EQUAL; + case 5: return CompareOp.GREATER; + case 6: return CompareOp.NO_OP; + default: return null; + } + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java index 49d0e75..5a3b9f2 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class TAppend implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TAppend implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAppend"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -131,7 +135,7 @@ public class TAppend implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -160,7 +164,7 @@ public class TAppend implements org.apache.thrift.TBase columns) { this(); - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.columns = columns; } @@ -170,30 +174,16 @@ public class TAppend implements org.apache.thrift.TBase __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (TColumnValue other_element : other.columns) { __this__columns.add(new TColumnValue(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); - for (Map.Entry other_element : other.attributes.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); - - ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); -; - - __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); - } + Map __this__attributes = new HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -223,16 +213,16 @@ public class TAppend implements org.apache.thrift.TBase list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); boolean present_durability = true && (isSetDurability()); - builder.append(present_durability); + list.add(present_durability); if (present_durability) - builder.append(durability.getValue()); + list.add(durability.getValue()); boolean present_cellVisibility = true && (isSetCellVisibility()); - builder.append(present_cellVisibility); + list.add(present_cellVisibility); if (present_cellVisibility) - builder.append(cellVisibility); + list.add(cellVisibility); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TAppend other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TAppend typedOther = (TAppend)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDurability()).compareTo(typedOther.isSetDurability()); + lastComparison = Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); if (lastComparison != 0) { return lastComparison; } if (isSetDurability()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, typedOther.durability); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, other.durability); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCellVisibility()).compareTo(typedOther.isSetCellVisibility()); + lastComparison = Boolean.valueOf(isSetCellVisibility()).compareTo(other.isSetCellVisibility()); if (lastComparison != 0) { return lastComparison; } if (isSetCellVisibility()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cellVisibility, typedOther.cellVisibility); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cellVisibility, other.cellVisibility); if (lastComparison != 0) { return lastComparison; } @@ -749,12 +739,12 @@ public class TAppend implements org.apache.thrift.TBase(_list88.size); - for (int _i89 = 0; _i89 < _list88.size; ++_i89) + TColumnValue _elem89; + for (int _i90 = 0; _i90 < _list88.size; ++_i90) { - TColumnValue _elem90; // required - _elem90 = new TColumnValue(); - _elem90.read(iprot); - struct.columns.add(_elem90); + _elem89 = new TColumnValue(); + _elem89.read(iprot); + struct.columns.add(_elem89); } iprot.readListEnd(); } @@ -768,13 +758,13 @@ public class TAppend implements org.apache.thrift.TBase(2*_map91.size); - for (int _i92 = 0; _i92 < _map91.size; ++_i92) + ByteBuffer _key92; + ByteBuffer _val93; + for (int _i94 = 0; _i94 < _map91.size; ++_i94) { - ByteBuffer _key93; // required - ByteBuffer _val94; // required - _key93 = iprot.readBinary(); - _val94 = iprot.readBinary(); - struct.attributes.put(_key93, _val94); + _key92 = iprot.readBinary(); + _val93 = iprot.readBinary(); + struct.attributes.put(_key92, _val93); } iprot.readMapEnd(); } @@ -785,7 +775,7 @@ public class TAppend implements org.apache.thrift.TBase(_list99.size); - for (int _i100 = 0; _i100 < _list99.size; ++_i100) + TColumnValue _elem100; + for (int _i101 = 0; _i101 < _list99.size; ++_i101) { - TColumnValue _elem101; // required - _elem101 = new TColumnValue(); - _elem101.read(iprot); - struct.columns.add(_elem101); + _elem100 = new TColumnValue(); + _elem100.read(iprot); + struct.columns.add(_elem100); } } struct.setColumnsIsSet(true); @@ -937,19 +927,19 @@ public class TAppend implements org.apache.thrift.TBase(2*_map102.size); - for (int _i103 = 0; _i103 < _map102.size; ++_i103) + ByteBuffer _key103; + ByteBuffer _val104; + for (int _i105 = 0; _i105 < _map102.size; ++_i105) { - ByteBuffer _key104; // required - ByteBuffer _val105; // required - _key104 = iprot.readBinary(); - _val105 = iprot.readBinary(); - struct.attributes.put(_key104, _val105); + _key103 = iprot.readBinary(); + _val104 = iprot.readBinary(); + struct.attributes.put(_key103, _val104); } } struct.setAttributesIsSet(true); } if (incoming.get(1)) { - struct.durability = TDurability.findByValue(iprot.readI32()); + struct.durability = org.apache.hadoop.hbase.thrift2.generated.TDurability.findByValue(iprot.readI32()); struct.setDurabilityIsSet(true); } if (incoming.get(2)) { diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java index f217f87..97987da 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class TAuthorization implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TAuthorization implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAuthorization"); private static final org.apache.thrift.protocol.TField LABELS_FIELD_DESC = new org.apache.thrift.protocol.TField("labels", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -103,7 +107,7 @@ public class TAuthorization implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -122,10 +126,7 @@ public class TAuthorization implements org.apache.thrift.TBase __this__labels = new ArrayList(); - for (String other_element : other.labels) { - __this__labels.add(other_element); - } + List __this__labels = new ArrayList(other.labels); this.labels = __this__labels; } } @@ -240,30 +241,30 @@ public class TAuthorization implements org.apache.thrift.TBase list = new ArrayList(); boolean present_labels = true && (isSetLabels()); - builder.append(present_labels); + list.add(present_labels); if (present_labels) - builder.append(labels); + list.add(labels); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TAuthorization other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TAuthorization typedOther = (TAuthorization)other; - lastComparison = Boolean.valueOf(isSetLabels()).compareTo(typedOther.isSetLabels()); + lastComparison = Boolean.valueOf(isSetLabels()).compareTo(other.isSetLabels()); if (lastComparison != 0) { return lastComparison; } if (isSetLabels()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.labels, typedOther.labels); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.labels, other.labels); if (lastComparison != 0) { return lastComparison; } @@ -345,11 +346,11 @@ public class TAuthorization implements org.apache.thrift.TBase(_list8.size); - for (int _i9 = 0; _i9 < _list8.size; ++_i9) + String _elem9; + for (int _i10 = 0; _i10 < _list8.size; ++_i10) { - String _elem10; // required - _elem10 = iprot.readString(); - struct.labels.add(_elem10); + _elem9 = iprot.readString(); + struct.labels.add(_elem9); } iprot.readListEnd(); } @@ -428,11 +429,11 @@ public class TAuthorization implements org.apache.thrift.TBase(_list13.size); - for (int _i14 = 0; _i14 < _list13.size; ++_i14) + String _elem14; + for (int _i15 = 0; _i15 < _list13.size; ++_i15) { - String _elem15; // required - _elem15 = iprot.readString(); - struct.labels.add(_elem15); + _elem14 = iprot.readString(); + struct.labels.add(_elem14); } } struct.setLabelsIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java index 59c7ef7..0af3f50 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class TCellVisibility implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TCellVisibility implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCellVisibility"); private static final org.apache.thrift.protocol.TField EXPRESSION_FIELD_DESC = new org.apache.thrift.protocol.TField("expression", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -103,7 +107,7 @@ public class TCellVisibility implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -220,30 +224,30 @@ public class TCellVisibility implements org.apache.thrift.TBase list = new ArrayList(); boolean present_expression = true && (isSetExpression()); - builder.append(present_expression); + list.add(present_expression); if (present_expression) - builder.append(expression); + list.add(expression); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TCellVisibility other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TCellVisibility typedOther = (TCellVisibility)other; - lastComparison = Boolean.valueOf(isSetExpression()).compareTo(typedOther.isSetExpression()); + lastComparison = Boolean.valueOf(isSetExpression()).compareTo(other.isSetExpression()); if (lastComparison != 0) { return lastComparison; } if (isSetExpression()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expression, typedOther.expression); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expression, other.expression); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java index fbf08e3..ffb4ecb 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,15 +29,18 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Addresses a single cell or multiple cells * in a HBase table by column family and optionally * a column qualifier and timestamp */ -public class TColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn"); private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -120,7 +124,7 @@ public class TColumn implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -141,7 +145,7 @@ public class TColumn implements org.apache.thrift.TBase list = new ArrayList(); boolean present_family = true && (isSetFamily()); - builder.append(present_family); + list.add(present_family); if (present_family) - builder.append(family); + list.add(family); boolean present_qualifier = true && (isSetQualifier()); - builder.append(present_qualifier); + list.add(present_qualifier); if (present_qualifier) - builder.append(qualifier); + list.add(qualifier); boolean present_timestamp = true && (isSetTimestamp()); - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TColumn typedOther = (TColumn)other; - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(typedOther.isSetFamily()); + lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } if (isSetFamily()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, typedOther.family); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, other.family); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(typedOther.isSetQualifier()); + lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } if (isSetQualifier()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, typedOther.qualifier); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java index 0a2833b..de269a2 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Represents a single cell and the amount to increment it by */ -public class TColumnIncrement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TColumnIncrement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnIncrement"); private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -118,7 +122,7 @@ public class TColumnIncrement implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -142,8 +146,8 @@ public class TColumnIncrement implements org.apache.thrift.TBase list = new ArrayList(); boolean present_family = true && (isSetFamily()); - builder.append(present_family); + list.add(present_family); if (present_family) - builder.append(family); + list.add(family); boolean present_qualifier = true && (isSetQualifier()); - builder.append(present_qualifier); + list.add(present_qualifier); if (present_qualifier) - builder.append(qualifier); + list.add(qualifier); boolean present_amount = true && (isSetAmount()); - builder.append(present_amount); + list.add(present_amount); if (present_amount) - builder.append(amount); + list.add(amount); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TColumnIncrement other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TColumnIncrement typedOther = (TColumnIncrement)other; - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(typedOther.isSetFamily()); + lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } if (isSetFamily()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, typedOther.family); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, other.family); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(typedOther.isSetQualifier()); + lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } if (isSetQualifier()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, typedOther.qualifier); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount()); + lastComparison = Boolean.valueOf(isSetAmount()).compareTo(other.isSetAmount()); if (lastComparison != 0) { return lastComparison; } if (isSetAmount()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, other.amount); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java index d1cca13..6ecf41a 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Represents a single cell and its value. */ -public class TColumnValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TColumnValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnValue"); private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -128,7 +132,7 @@ public class TColumnValue implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -155,9 +159,9 @@ public class TColumnValue implements org.apache.thrift.TBase list = new ArrayList(); boolean present_family = true && (isSetFamily()); - builder.append(present_family); + list.add(present_family); if (present_family) - builder.append(family); + list.add(family); boolean present_qualifier = true && (isSetQualifier()); - builder.append(present_qualifier); + list.add(present_qualifier); if (present_qualifier) - builder.append(qualifier); + list.add(qualifier); boolean present_value = true && (isSetValue()); - builder.append(present_value); + list.add(present_value); if (present_value) - builder.append(value); + list.add(value); boolean present_timestamp = true && (isSetTimestamp()); - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_tags = true && (isSetTags()); - builder.append(present_tags); + list.add(present_tags); if (present_tags) - builder.append(tags); + list.add(tags); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TColumnValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TColumnValue typedOther = (TColumnValue)other; - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(typedOther.isSetFamily()); + lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } if (isSetFamily()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, typedOther.family); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, other.family); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(typedOther.isSetQualifier()); + lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } if (isSetQualifier()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, typedOther.qualifier); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTags()).compareTo(typedOther.isSetTags()); + lastComparison = Boolean.valueOf(isSetTags()).compareTo(other.isSetTags()); if (lastComparison != 0) { return lastComparison; } if (isSetTags()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tags, typedOther.tags); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tags, other.tags); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareFilter.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareFilter.java new file mode 100644 index 0000000..afa90d5 --- /dev/null +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareFilter.java @@ -0,0 +1,64 @@ +/** + * Autogenerated by Thrift Compiler (0.9.2) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hbase.thrift2.generated; + + +import java.util.Map; +import java.util.HashMap; +import org.apache.thrift.TEnum; + +/** + * Thrift wrapper around + * org.apache.hadoop.hbase.filter.CompareFilter$CompareOp. + */ +public enum TCompareFilter implements org.apache.thrift.TEnum { + LESS(0), + LESS_OR_EQUAL(1), + EQUAL(2), + NOT_EQUAL(3), + GREATER_OR_EQUAL(4), + GREATER(5), + NO_OP(6); + + private final int value; + + private TCompareFilter(int value) { + this.value = value; + } + + /** + * Get the integer value of this enum value, as defined in the Thrift IDL. + */ + public int getValue() { + return value; + } + + /** + * Find a the enum type by its integer value, as defined in the Thrift IDL. + * @return null if the value is not found. + */ + public static TCompareFilter findByValue(int value) { + switch (value) { + case 0: + return LESS; + case 1: + return LESS_OR_EQUAL; + case 2: + return EQUAL; + case 3: + return NOT_EQUAL; + case 4: + return GREATER_OR_EQUAL; + case 5: + return GREATER; + case 6: + return NO_OP; + default: + return null; + } + } +} diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java new file mode 100644 index 0000000..7178311 --- /dev/null +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java @@ -0,0 +1,64 @@ +/** + * Autogenerated by Thrift Compiler (0.9.2) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hbase.thrift2.generated; + + +import java.util.Map; +import java.util.HashMap; +import org.apache.thrift.TEnum; + +/** + * Thrift wrapper around + * org.apache.hadoop.hbase.filter.CompareFilter$CompareOp. + */ +public enum TCompareOp implements org.apache.thrift.TEnum { + LESS(0), + LESS_OR_EQUAL(1), + EQUAL(2), + NOT_EQUAL(3), + GREATER_OR_EQUAL(4), + GREATER(5), + NO_OP(6); + + private final int value; + + private TCompareOp(int value) { + this.value = value; + } + + /** + * Get the integer value of this enum value, as defined in the Thrift IDL. + */ + public int getValue() { + return value; + } + + /** + * Find a the enum type by its integer value, as defined in the Thrift IDL. + * @return null if the value is not found. + */ + public static TCompareOp findByValue(int value) { + switch (value) { + case 0: + return LESS; + case 1: + return LESS_OR_EQUAL; + case 2: + return EQUAL; + case 3: + return NOT_EQUAL; + case 4: + return GREATER_OR_EQUAL; + case 5: + return GREATER; + case 6: + return NO_OP; + default: + return null; + } + } +} diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java index a4d7777..dddcf7d 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,9 +29,11 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Used to perform Delete operations on a single row. * @@ -57,7 +60,8 @@ import org.slf4j.LoggerFactory; * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -public class TDelete implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TDelete implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDelete"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -172,7 +176,7 @@ public class TDelete implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -204,7 +208,7 @@ public class TDelete implements org.apache.thrift.TBase __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -228,20 +231,7 @@ public class TDelete implements org.apache.thrift.TBase __this__attributes = new HashMap(); - for (Map.Entry other_element : other.attributes.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); - - ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); -; - - __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); - } + Map __this__attributes = new HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -271,16 +261,16 @@ public class TDelete implements org.apache.thrift.TBase list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_timestamp = true && (isSetTimestamp()); - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_deleteType = true && (isSetDeleteType()); - builder.append(present_deleteType); + list.add(present_deleteType); if (present_deleteType) - builder.append(deleteType.getValue()); + list.add(deleteType.getValue()); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); boolean present_durability = true && (isSetDurability()); - builder.append(present_durability); + list.add(present_durability); if (present_durability) - builder.append(durability.getValue()); + list.add(durability.getValue()); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TDelete other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TDelete typedOther = (TDelete)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteType()).compareTo(typedOther.isSetDeleteType()); + lastComparison = Boolean.valueOf(isSetDeleteType()).compareTo(other.isSetDeleteType()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteType, typedOther.deleteType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteType, other.deleteType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDurability()).compareTo(typedOther.isSetDurability()); + lastComparison = Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); if (lastComparison != 0) { return lastComparison; } if (isSetDurability()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, typedOther.durability); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, other.durability); if (lastComparison != 0) { return lastComparison; } @@ -869,12 +859,12 @@ public class TDelete implements org.apache.thrift.TBase(_list52.size); - for (int _i53 = 0; _i53 < _list52.size; ++_i53) + TColumn _elem53; + for (int _i54 = 0; _i54 < _list52.size; ++_i54) { - TColumn _elem54; // required - _elem54 = new TColumn(); - _elem54.read(iprot); - struct.columns.add(_elem54); + _elem53 = new TColumn(); + _elem53.read(iprot); + struct.columns.add(_elem53); } iprot.readListEnd(); } @@ -893,7 +883,7 @@ public class TDelete implements org.apache.thrift.TBase(2*_map55.size); - for (int _i56 = 0; _i56 < _map55.size; ++_i56) + ByteBuffer _key56; + ByteBuffer _val57; + for (int _i58 = 0; _i58 < _map55.size; ++_i58) { - ByteBuffer _key57; // required - ByteBuffer _val58; // required - _key57 = iprot.readBinary(); - _val58 = iprot.readBinary(); - struct.attributes.put(_key57, _val58); + _key56 = iprot.readBinary(); + _val57 = iprot.readBinary(); + struct.attributes.put(_key56, _val57); } iprot.readMapEnd(); } @@ -921,7 +911,7 @@ public class TDelete implements org.apache.thrift.TBase(_list63.size); - for (int _i64 = 0; _i64 < _list63.size; ++_i64) + TColumn _elem64; + for (int _i65 = 0; _i65 < _list63.size; ++_i65) { - TColumn _elem65; // required - _elem65 = new TColumn(); - _elem65.read(iprot); - struct.columns.add(_elem65); + _elem64 = new TColumn(); + _elem64.read(iprot); + struct.columns.add(_elem64); } } struct.setColumnsIsSet(true); @@ -1085,26 +1075,26 @@ public class TDelete implements org.apache.thrift.TBase(2*_map66.size); - for (int _i67 = 0; _i67 < _map66.size; ++_i67) + ByteBuffer _key67; + ByteBuffer _val68; + for (int _i69 = 0; _i69 < _map66.size; ++_i69) { - ByteBuffer _key68; // required - ByteBuffer _val69; // required - _key68 = iprot.readBinary(); - _val69 = iprot.readBinary(); - struct.attributes.put(_key68, _val69); + _key67 = iprot.readBinary(); + _val68 = iprot.readBinary(); + struct.attributes.put(_key67, _val68); } } struct.setAttributesIsSet(true); } if (incoming.get(4)) { - struct.durability = TDurability.findByValue(iprot.readI32()); + struct.durability = org.apache.hadoop.hbase.thrift2.generated.TDurability.findByValue(iprot.readI32()); struct.setDurabilityIsSet(true); } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDeleteType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDeleteType.java index 39a5015..3f57b3b 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDeleteType.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDeleteType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDurability.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDurability.java index 042b70b..7b50281 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDurability.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDurability.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java index 7e93341..b102b66 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,9 +29,11 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Used to perform Get operations on a single row. * @@ -44,7 +47,8 @@ import org.slf4j.LoggerFactory; * If you specify a time range and a timestamp the range is ignored. * Timestamps on TColumns are ignored. */ -public class TGet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TGet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGet"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -154,7 +158,7 @@ public class TGet implements org.apache.thrift.TBase, java.i private static final int __TIMESTAMP_ISSET_ID = 0; private static final int __MAXVERSIONS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.COLUMNS,_Fields.TIMESTAMP,_Fields.TIME_RANGE,_Fields.MAX_VERSIONS,_Fields.FILTER_STRING,_Fields.ATTRIBUTES,_Fields.AUTHORIZATIONS}; + private static final _Fields optionals[] = {_Fields.COLUMNS,_Fields.TIMESTAMP,_Fields.TIME_RANGE,_Fields.MAX_VERSIONS,_Fields.FILTER_STRING,_Fields.ATTRIBUTES,_Fields.AUTHORIZATIONS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -188,7 +192,7 @@ public class TGet implements org.apache.thrift.TBase, java.i ByteBuffer row) { this(); - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); } /** @@ -198,10 +202,9 @@ public class TGet implements org.apache.thrift.TBase, java.i __isset_bitfield = other.__isset_bitfield; if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); -; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -214,23 +217,9 @@ public class TGet implements org.apache.thrift.TBase, java.i this.maxVersions = other.maxVersions; if (other.isSetFilterString()) { this.filterString = org.apache.thrift.TBaseHelper.copyBinary(other.filterString); -; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); - for (Map.Entry other_element : other.attributes.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); - - ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); -; - - __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); - } + Map __this__attributes = new HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetAuthorizations()) { @@ -262,16 +251,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } public TGet setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public TGet setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -405,16 +394,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } public ByteBuffer bufferForFilterString() { - return filterString; + return org.apache.thrift.TBaseHelper.copyBinary(filterString); } public TGet setFilterString(byte[] filterString) { - setFilterString(filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(filterString)); + this.filterString = filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterString, filterString.length)); return this; } public TGet setFilterString(ByteBuffer filterString) { - this.filterString = filterString; + this.filterString = org.apache.thrift.TBaseHelper.copyBinary(filterString); return this; } @@ -708,135 +697,135 @@ public class TGet implements org.apache.thrift.TBase, java.i @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_timestamp = true && (isSetTimestamp()); - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_timeRange = true && (isSetTimeRange()); - builder.append(present_timeRange); + list.add(present_timeRange); if (present_timeRange) - builder.append(timeRange); + list.add(timeRange); boolean present_maxVersions = true && (isSetMaxVersions()); - builder.append(present_maxVersions); + list.add(present_maxVersions); if (present_maxVersions) - builder.append(maxVersions); + list.add(maxVersions); boolean present_filterString = true && (isSetFilterString()); - builder.append(present_filterString); + list.add(present_filterString); if (present_filterString) - builder.append(filterString); + list.add(filterString); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); boolean present_authorizations = true && (isSetAuthorizations()); - builder.append(present_authorizations); + list.add(present_authorizations); if (present_authorizations) - builder.append(authorizations); + list.add(authorizations); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TGet other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TGet typedOther = (TGet)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimeRange()).compareTo(typedOther.isSetTimeRange()); + lastComparison = Boolean.valueOf(isSetTimeRange()).compareTo(other.isSetTimeRange()); if (lastComparison != 0) { return lastComparison; } if (isSetTimeRange()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeRange, typedOther.timeRange); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeRange, other.timeRange); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(typedOther.isSetMaxVersions()); + lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxVersions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxVersions, typedOther.maxVersions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxVersions, other.maxVersions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(typedOther.isSetFilterString()); + lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); if (lastComparison != 0) { return lastComparison; } if (isSetFilterString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filterString, typedOther.filterString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filterString, other.filterString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthorizations()).compareTo(typedOther.isSetAuthorizations()); + lastComparison = Boolean.valueOf(isSetAuthorizations()).compareTo(other.isSetAuthorizations()); if (lastComparison != 0) { return lastComparison; } if (isSetAuthorizations()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizations, typedOther.authorizations); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizations, other.authorizations); if (lastComparison != 0) { return lastComparison; } @@ -997,12 +986,12 @@ public class TGet implements org.apache.thrift.TBase, java.i { org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); struct.columns = new ArrayList(_list16.size); - for (int _i17 = 0; _i17 < _list16.size; ++_i17) + TColumn _elem17; + for (int _i18 = 0; _i18 < _list16.size; ++_i18) { - TColumn _elem18; // required - _elem18 = new TColumn(); - _elem18.read(iprot); - struct.columns.add(_elem18); + _elem17 = new TColumn(); + _elem17.read(iprot); + struct.columns.add(_elem17); } iprot.readListEnd(); } @@ -1049,13 +1038,13 @@ public class TGet implements org.apache.thrift.TBase, java.i { org.apache.thrift.protocol.TMap _map19 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map19.size); - for (int _i20 = 0; _i20 < _map19.size; ++_i20) + ByteBuffer _key20; + ByteBuffer _val21; + for (int _i22 = 0; _i22 < _map19.size; ++_i22) { - ByteBuffer _key21; // required - ByteBuffer _val22; // required - _key21 = iprot.readBinary(); - _val22 = iprot.readBinary(); - struct.attributes.put(_key21, _val22); + _key20 = iprot.readBinary(); + _val21 = iprot.readBinary(); + struct.attributes.put(_key20, _val21); } iprot.readMapEnd(); } @@ -1240,12 +1229,12 @@ public class TGet implements org.apache.thrift.TBase, java.i { org.apache.thrift.protocol.TList _list27 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new ArrayList(_list27.size); - for (int _i28 = 0; _i28 < _list27.size; ++_i28) + TColumn _elem28; + for (int _i29 = 0; _i29 < _list27.size; ++_i29) { - TColumn _elem29; // required - _elem29 = new TColumn(); - _elem29.read(iprot); - struct.columns.add(_elem29); + _elem28 = new TColumn(); + _elem28.read(iprot); + struct.columns.add(_elem28); } } struct.setColumnsIsSet(true); @@ -1271,13 +1260,13 @@ public class TGet implements org.apache.thrift.TBase, java.i { org.apache.thrift.protocol.TMap _map30 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map30.size); - for (int _i31 = 0; _i31 < _map30.size; ++_i31) + ByteBuffer _key31; + ByteBuffer _val32; + for (int _i33 = 0; _i33 < _map30.size; ++_i33) { - ByteBuffer _key32; // required - ByteBuffer _val33; // required - _key32 = iprot.readBinary(); - _val33 = iprot.readBinary(); - struct.attributes.put(_key32, _val33); + _key31 = iprot.readBinary(); + _val32 = iprot.readBinary(); + struct.attributes.put(_key31, _val32); } } struct.setAttributesIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java index e37471a..f8c6c44 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,9 +29,12 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") public class THBaseService { public interface Iface { @@ -243,45 +247,70 @@ public class THBaseService { */ public List getAllRegionLocations(ByteBuffer table) throws TIOError, org.apache.thrift.TException; + /** + * Atomically checks if a row/family/qualifier value matches the expected + * value. If it does, it mutates the row. + * + * @return true if the row was mutated, false otherwise + * + * @param table to check in and delete from + * + * @param row row to check + * + * @param family column family to check + * + * @param qualifier column qualifier to check + * + * @param compareOp comparison to make on the value + * + * @param value the expected value to be compared against, if not provided the + * check is for the non-existence of the column in question + * + * @param rowMutations row mutations to execute if the value matches + */ + public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations) throws TIOError, org.apache.thrift.TException; + } public interface AsyncIface { - public void exists(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void exists(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getMultiple(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getMultiple(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void put(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void put(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void putMultiple(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void putMultiple(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteSingle(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteSingle(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteMultiple(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteMultiple(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void increment(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void increment(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void openScanner(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void openScanner(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getScannerRows(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getScannerRows(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void closeScanner(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void closeScanner(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void mutateRow(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void mutateRow(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getScannerResults(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getScannerResults(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllRegionLocations(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllRegionLocations(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -790,6 +819,38 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllRegionLocations failed: unknown result"); } + public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations) throws TIOError, org.apache.thrift.TException + { + send_checkAndMutate(table, row, family, qualifier, compareOp, value, rowMutations); + return recv_checkAndMutate(); + } + + public void send_checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations) throws org.apache.thrift.TException + { + checkAndMutate_args args = new checkAndMutate_args(); + args.setTable(table); + args.setRow(row); + args.setFamily(family); + args.setQualifier(qualifier); + args.setCompareOp(compareOp); + args.setValue(value); + args.setRowMutations(rowMutations); + sendBase("checkAndMutate", args); + } + + public boolean recv_checkAndMutate() throws TIOError, org.apache.thrift.TException + { + checkAndMutate_result result = new checkAndMutate_result(); + receiveBase(result, "checkAndMutate"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.io != null) { + throw result.io; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkAndMutate failed: unknown result"); + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -808,7 +869,7 @@ public class THBaseService { super(protocolFactory, clientManager, transport); } - public void exists(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void exists(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); exists_call method_call = new exists_call(table, tget, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -818,7 +879,7 @@ public class THBaseService { public static class exists_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private TGet tget; - public exists_call(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public exists_call(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tget = tget; @@ -843,7 +904,7 @@ public class THBaseService { } } - public void get(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_call method_call = new get_call(table, tget, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -853,7 +914,7 @@ public class THBaseService { public static class get_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private TGet tget; - public get_call(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_call(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tget = tget; @@ -878,7 +939,7 @@ public class THBaseService { } } - public void getMultiple(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getMultiple(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getMultiple_call method_call = new getMultiple_call(table, tgets, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -888,7 +949,7 @@ public class THBaseService { public static class getMultiple_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private List tgets; - public getMultiple_call(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getMultiple_call(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tgets = tgets; @@ -913,7 +974,7 @@ public class THBaseService { } } - public void put(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void put(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); put_call method_call = new put_call(table, tput, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -923,7 +984,7 @@ public class THBaseService { public static class put_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private TPut tput; - public put_call(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public put_call(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tput = tput; @@ -948,7 +1009,7 @@ public class THBaseService { } } - public void checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); checkAndPut_call method_call = new checkAndPut_call(table, row, family, qualifier, value, tput, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -962,7 +1023,7 @@ public class THBaseService { private ByteBuffer qualifier; private ByteBuffer value; private TPut tput; - public checkAndPut_call(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public checkAndPut_call(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.row = row; @@ -995,7 +1056,7 @@ public class THBaseService { } } - public void putMultiple(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void putMultiple(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); putMultiple_call method_call = new putMultiple_call(table, tputs, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1005,7 +1066,7 @@ public class THBaseService { public static class putMultiple_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private List tputs; - public putMultiple_call(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public putMultiple_call(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tputs = tputs; @@ -1030,7 +1091,7 @@ public class THBaseService { } } - public void deleteSingle(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteSingle(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteSingle_call method_call = new deleteSingle_call(table, tdelete, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1040,7 +1101,7 @@ public class THBaseService { public static class deleteSingle_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private TDelete tdelete; - public deleteSingle_call(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteSingle_call(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tdelete = tdelete; @@ -1065,7 +1126,7 @@ public class THBaseService { } } - public void deleteMultiple(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteMultiple(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteMultiple_call method_call = new deleteMultiple_call(table, tdeletes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1075,7 +1136,7 @@ public class THBaseService { public static class deleteMultiple_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private List tdeletes; - public deleteMultiple_call(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteMultiple_call(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tdeletes = tdeletes; @@ -1100,7 +1161,7 @@ public class THBaseService { } } - public void checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); checkAndDelete_call method_call = new checkAndDelete_call(table, row, family, qualifier, value, tdelete, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1114,7 +1175,7 @@ public class THBaseService { private ByteBuffer qualifier; private ByteBuffer value; private TDelete tdelete; - public checkAndDelete_call(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public checkAndDelete_call(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.row = row; @@ -1147,7 +1208,7 @@ public class THBaseService { } } - public void increment(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void increment(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); increment_call method_call = new increment_call(table, tincrement, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1157,7 +1218,7 @@ public class THBaseService { public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private TIncrement tincrement; - public increment_call(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public increment_call(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tincrement = tincrement; @@ -1182,7 +1243,7 @@ public class THBaseService { } } - public void append(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_call method_call = new append_call(table, tappend, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1192,7 +1253,7 @@ public class THBaseService { public static class append_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private TAppend tappend; - public append_call(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public append_call(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tappend = tappend; @@ -1217,7 +1278,7 @@ public class THBaseService { } } - public void openScanner(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void openScanner(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); openScanner_call method_call = new openScanner_call(table, tscan, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1227,7 +1288,7 @@ public class THBaseService { public static class openScanner_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private TScan tscan; - public openScanner_call(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public openScanner_call(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tscan = tscan; @@ -1252,7 +1313,7 @@ public class THBaseService { } } - public void getScannerRows(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getScannerRows(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getScannerRows_call method_call = new getScannerRows_call(scannerId, numRows, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1262,7 +1323,7 @@ public class THBaseService { public static class getScannerRows_call extends org.apache.thrift.async.TAsyncMethodCall { private int scannerId; private int numRows; - public getScannerRows_call(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getScannerRows_call(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.scannerId = scannerId; this.numRows = numRows; @@ -1287,7 +1348,7 @@ public class THBaseService { } } - public void closeScanner(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void closeScanner(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); closeScanner_call method_call = new closeScanner_call(scannerId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1296,7 +1357,7 @@ public class THBaseService { public static class closeScanner_call extends org.apache.thrift.async.TAsyncMethodCall { private int scannerId; - public closeScanner_call(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public closeScanner_call(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.scannerId = scannerId; } @@ -1319,7 +1380,7 @@ public class THBaseService { } } - public void mutateRow(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void mutateRow(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); mutateRow_call method_call = new mutateRow_call(table, trowMutations, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1329,7 +1390,7 @@ public class THBaseService { public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; private TRowMutations trowMutations; - public mutateRow_call(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public mutateRow_call(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.trowMutations = trowMutations; @@ -1354,7 +1415,7 @@ public class THBaseService { } } - public void getScannerResults(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getScannerResults(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getScannerResults_call method_call = new getScannerResults_call(table, tscan, numRows, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1365,7 +1426,7 @@ public class THBaseService { private ByteBuffer table; private TScan tscan; private int numRows; - public getScannerResults_call(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getScannerResults_call(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tscan = tscan; @@ -1392,7 +1453,7 @@ public class THBaseService { } } - public void getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRegionLocation_call method_call = new getRegionLocation_call(table, row, reload, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1403,7 +1464,7 @@ public class THBaseService { private ByteBuffer table; private ByteBuffer row; private boolean reload; - public getRegionLocation_call(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRegionLocation_call(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.row = row; @@ -1430,7 +1491,7 @@ public class THBaseService { } } - public void getAllRegionLocations(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllRegionLocations(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getAllRegionLocations_call method_call = new getAllRegionLocations_call(table, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1439,7 +1500,7 @@ public class THBaseService { public static class getAllRegionLocations_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer table; - public getAllRegionLocations_call(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getAllRegionLocations_call(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; } @@ -1462,6 +1523,56 @@ public class THBaseService { } } + public void checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + checkAndMutate_call method_call = new checkAndMutate_call(table, row, family, qualifier, compareOp, value, rowMutations, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class checkAndMutate_call extends org.apache.thrift.async.TAsyncMethodCall { + private ByteBuffer table; + private ByteBuffer row; + private ByteBuffer family; + private ByteBuffer qualifier; + private TCompareOp compareOp; + private ByteBuffer value; + private TRowMutations rowMutations; + public checkAndMutate_call(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.table = table; + this.row = row; + this.family = family; + this.qualifier = qualifier; + this.compareOp = compareOp; + this.value = value; + this.rowMutations = rowMutations; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkAndMutate", org.apache.thrift.protocol.TMessageType.CALL, 0)); + checkAndMutate_args args = new checkAndMutate_args(); + args.setTable(table); + args.setRow(row); + args.setFamily(family); + args.setQualifier(qualifier); + args.setCompareOp(compareOp); + args.setValue(value); + args.setRowMutations(rowMutations); + args.write(prot); + prot.writeMessageEnd(); + } + + public boolean getResult() throws TIOError, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_checkAndMutate(); + } + } + } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { @@ -1493,6 +1604,7 @@ public class THBaseService { processMap.put("getScannerResults", new getScannerResults()); processMap.put("getRegionLocation", new getRegionLocation()); processMap.put("getAllRegionLocations", new getAllRegionLocations()); + processMap.put("checkAndMutate", new checkAndMutate()); return processMap; } @@ -1936,563 +2048,1233 @@ public class THBaseService { } } - } + public static class checkAndMutate extends org.apache.thrift.ProcessFunction { + public checkAndMutate() { + super("checkAndMutate"); + } - public static class exists_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exists_args"); + public checkAndMutate_args getEmptyArgsInstance() { + return new checkAndMutate_args(); + } - private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TGET_FIELD_DESC = new org.apache.thrift.protocol.TField("tget", org.apache.thrift.protocol.TType.STRUCT, (short)2); + protected boolean isOneway() { + return false; + } - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new exists_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exists_argsTupleSchemeFactory()); + public checkAndMutate_result getResult(I iface, checkAndMutate_args args) throws org.apache.thrift.TException { + checkAndMutate_result result = new checkAndMutate_result(); + try { + result.success = iface.checkAndMutate(args.table, args.row, args.family, args.qualifier, args.compareOp, args.value, args.rowMutations); + result.setSuccessIsSet(true); + } catch (TIOError io) { + result.io = io; + } + return result; + } } - /** - * the table to check on - */ - public ByteBuffer table; // required - /** - * the TGet to check for - */ - public TGet tget; // required + } - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - /** - * the table to check on - */ - TABLE((short)1, "table"), - /** - * the TGet to check for - */ - TGET((short)2, "tget"); + public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { + private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + public AsyncProcessor(I iface) { + super(iface, getProcessMap(new HashMap>())); + } - private static final Map byName = new HashMap(); + protected AsyncProcessor(I iface, Map> processMap) { + super(iface, getProcessMap(processMap)); + } - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } + private static Map> getProcessMap(Map> processMap) { + processMap.put("exists", new exists()); + processMap.put("get", new get()); + processMap.put("getMultiple", new getMultiple()); + processMap.put("put", new put()); + processMap.put("checkAndPut", new checkAndPut()); + processMap.put("putMultiple", new putMultiple()); + processMap.put("deleteSingle", new deleteSingle()); + processMap.put("deleteMultiple", new deleteMultiple()); + processMap.put("checkAndDelete", new checkAndDelete()); + processMap.put("increment", new increment()); + processMap.put("append", new append()); + processMap.put("openScanner", new openScanner()); + processMap.put("getScannerRows", new getScannerRows()); + processMap.put("closeScanner", new closeScanner()); + processMap.put("mutateRow", new mutateRow()); + processMap.put("getScannerResults", new getScannerResults()); + processMap.put("getRegionLocation", new getRegionLocation()); + processMap.put("getAllRegionLocations", new getAllRegionLocations()); + processMap.put("checkAndMutate", new checkAndMutate()); + return processMap; + } + + public static class exists extends org.apache.thrift.AsyncProcessFunction { + public exists() { + super("exists"); } - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // TABLE - return TABLE; - case 2: // TGET - return TGET; - default: - return null; - } + public exists_args getEmptyArgsInstance() { + return new exists_args(); } - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + exists_result result = new exists_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + exists_result result = new exists_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); + protected boolean isOneway() { + return false; } - private final short _thriftId; - private final String _fieldName; + public void start(I iface, exists_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.exists(args.table, args.tget,resultHandler); + } + } - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; + public static class get extends org.apache.thrift.AsyncProcessFunction { + public get() { + super("get"); } - public short getThriftFieldId() { - return _thriftId; + public get_args getEmptyArgsInstance() { + return new get_args(); } - public String getFieldName() { - return _fieldName; + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(TResult o) { + get_result result = new get_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_result result = new get_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; } - } - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TGET, new org.apache.thrift.meta_data.FieldMetaData("tget", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_args.class, metaDataMap); - } + protected boolean isOneway() { + return false; + } - public exists_args() { + public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get(args.table, args.tget,resultHandler); + } } - public exists_args( - ByteBuffer table, - TGet tget) - { - this(); - this.table = table; - this.tget = tget; - } + public static class getMultiple extends org.apache.thrift.AsyncProcessFunction> { + public getMultiple() { + super("getMultiple"); + } - /** - * Performs a deep copy on other. - */ - public exists_args(exists_args other) { - if (other.isSetTable()) { - this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; + public getMultiple_args getEmptyArgsInstance() { + return new getMultiple_args(); } - if (other.isSetTget()) { - this.tget = new TGet(other.tget); + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getMultiple_result result = new getMultiple_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getMultiple_result result = new getMultiple_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; } - } - public exists_args deepCopy() { - return new exists_args(this); + protected boolean isOneway() { + return false; + } + + public void start(I iface, getMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getMultiple(args.table, args.tgets,resultHandler); + } } - @Override - public void clear() { - this.table = null; - this.tget = null; - } - - /** - * the table to check on - */ - public byte[] getTable() { - setTable(org.apache.thrift.TBaseHelper.rightSize(table)); - return table == null ? null : table.array(); - } + public static class put extends org.apache.thrift.AsyncProcessFunction { + public put() { + super("put"); + } - public ByteBuffer bufferForTable() { - return table; - } + public put_args getEmptyArgsInstance() { + return new put_args(); + } - /** - * the table to check on - */ - public exists_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); - return this; - } + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + put_result result = new put_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + put_result result = new put_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } - public exists_args setTable(ByteBuffer table) { - this.table = table; - return this; - } + protected boolean isOneway() { + return false; + } - public void unsetTable() { - this.table = null; + public void start(I iface, put_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.put(args.table, args.tput,resultHandler); + } } - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; - } + public static class checkAndPut extends org.apache.thrift.AsyncProcessFunction { + public checkAndPut() { + super("checkAndPut"); + } - public void setTableIsSet(boolean value) { - if (!value) { - this.table = null; + public checkAndPut_args getEmptyArgsInstance() { + return new checkAndPut_args(); } - } - /** - * the TGet to check for - */ - public TGet getTget() { - return this.tget; - } + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + checkAndPut_result result = new checkAndPut_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + checkAndPut_result result = new checkAndPut_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } - /** - * the TGet to check for - */ - public exists_args setTget(TGet tget) { - this.tget = tget; - return this; - } + protected boolean isOneway() { + return false; + } - public void unsetTget() { - this.tget = null; + public void start(I iface, checkAndPut_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.checkAndPut(args.table, args.row, args.family, args.qualifier, args.value, args.tput,resultHandler); + } } - /** Returns true if field tget is set (has been assigned a value) and false otherwise */ - public boolean isSetTget() { - return this.tget != null; - } + public static class putMultiple extends org.apache.thrift.AsyncProcessFunction { + public putMultiple() { + super("putMultiple"); + } - public void setTgetIsSet(boolean value) { - if (!value) { - this.tget = null; + public putMultiple_args getEmptyArgsInstance() { + return new putMultiple_args(); } - } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case TABLE: - if (value == null) { - unsetTable(); - } else { - setTable((ByteBuffer)value); - } - break; + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + putMultiple_result result = new putMultiple_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + putMultiple_result result = new putMultiple_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } - case TGET: - if (value == null) { - unsetTget(); - } else { - setTget((TGet)value); - } - break; + protected boolean isOneway() { + return false; + } + public void start(I iface, putMultiple_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.putMultiple(args.table, args.tputs,resultHandler); } } - public Object getFieldValue(_Fields field) { - switch (field) { - case TABLE: - return getTable(); + public static class deleteSingle extends org.apache.thrift.AsyncProcessFunction { + public deleteSingle() { + super("deleteSingle"); + } - case TGET: - return getTget(); + public deleteSingle_args getEmptyArgsInstance() { + return new deleteSingle_args(); + } + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteSingle_result result = new deleteSingle_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteSingle_result result = new deleteSingle_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; } - throw new IllegalStateException(); - } - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); + protected boolean isOneway() { + return false; } - switch (field) { - case TABLE: - return isSetTable(); - case TGET: - return isSetTget(); + public void start(I iface, deleteSingle_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteSingle(args.table, args.tdelete,resultHandler); } - throw new IllegalStateException(); } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof exists_args) - return this.equals((exists_args)that); - return false; - } + public static class deleteMultiple extends org.apache.thrift.AsyncProcessFunction> { + public deleteMultiple() { + super("deleteMultiple"); + } - public boolean equals(exists_args that) { - if (that == null) - return false; + public deleteMultiple_args getEmptyArgsInstance() { + return new deleteMultiple_args(); + } - boolean this_present_table = true && this.isSetTable(); - boolean that_present_table = true && that.isSetTable(); - if (this_present_table || that_present_table) { - if (!(this_present_table && that_present_table)) - return false; - if (!this.table.equals(that.table)) - return false; + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + deleteMultiple_result result = new deleteMultiple_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteMultiple_result result = new deleteMultiple_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; } - boolean this_present_tget = true && this.isSetTget(); - boolean that_present_tget = true && that.isSetTget(); - if (this_present_tget || that_present_tget) { - if (!(this_present_tget && that_present_tget)) - return false; - if (!this.tget.equals(that.tget)) - return false; + protected boolean isOneway() { + return false; } - return true; + public void start(I iface, deleteMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.deleteMultiple(args.table, args.tdeletes,resultHandler); + } } - @Override - public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + public static class checkAndDelete extends org.apache.thrift.AsyncProcessFunction { + public checkAndDelete() { + super("checkAndDelete"); + } - boolean present_table = true && (isSetTable()); - builder.append(present_table); - if (present_table) - builder.append(table); + public checkAndDelete_args getEmptyArgsInstance() { + return new checkAndDelete_args(); + } - boolean present_tget = true && (isSetTget()); - builder.append(present_tget); - if (present_tget) - builder.append(tget); + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + checkAndDelete_result result = new checkAndDelete_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + checkAndDelete_result result = new checkAndDelete_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } - return builder.toHashCode(); - } + protected boolean isOneway() { + return false; + } - public int compareTo(exists_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); + public void start(I iface, checkAndDelete_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.checkAndDelete(args.table, args.row, args.family, args.qualifier, args.value, args.tdelete,resultHandler); } + } - int lastComparison = 0; - exists_args typedOther = (exists_args)other; + public static class increment extends org.apache.thrift.AsyncProcessFunction { + public increment() { + super("increment"); + } - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); - if (lastComparison != 0) { - return lastComparison; + public increment_args getEmptyArgsInstance() { + return new increment_args(); } - if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); - if (lastComparison != 0) { - return lastComparison; - } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(TResult o) { + increment_result result = new increment_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + increment_result result = new increment_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; } - lastComparison = Boolean.valueOf(isSetTget()).compareTo(typedOther.isSetTget()); - if (lastComparison != 0) { - return lastComparison; + + protected boolean isOneway() { + return false; } - if (isSetTget()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tget, typedOther.tget); - if (lastComparison != 0) { - return lastComparison; - } + + public void start(I iface, increment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.increment(args.table, args.tincrement,resultHandler); } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } + public static class append extends org.apache.thrift.AsyncProcessFunction { + public append() { + super("append"); + } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + public append_args getEmptyArgsInstance() { + return new append_args(); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder("exists_args("); - boolean first = true; + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(TResult o) { + append_result result = new append_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + append_result result = new append_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } - sb.append("table:"); - if (this.table == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.table, sb); + protected boolean isOneway() { + return false; } - first = false; - if (!first) sb.append(", "); - sb.append("tget:"); - if (this.tget == null) { - sb.append("null"); - } else { - sb.append(this.tget); + + public void start(I iface, append_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.append(args.table, args.tappend,resultHandler); } - first = false; - sb.append(")"); - return sb.toString(); } - public void validate() throws org.apache.thrift.TException { - // check for required fields - if (table == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); + public static class openScanner extends org.apache.thrift.AsyncProcessFunction { + public openScanner() { + super("openScanner"); } - if (tget == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tget' was not present! Struct: " + toString()); + + public openScanner_args getEmptyArgsInstance() { + return new openScanner_args(); } - // check for sub-struct validity - if (tget != null) { - tget.validate(); + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + openScanner_result result = new openScanner_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + openScanner_result result = new openScanner_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; } - } - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); + protected boolean isOneway() { + return false; } - } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); + public void start(I iface, openScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.openScanner(args.table, args.tscan,resultHandler); } } - private static class exists_argsStandardSchemeFactory implements SchemeFactory { - public exists_argsStandardScheme getScheme() { - return new exists_argsStandardScheme(); + public static class getScannerRows extends org.apache.thrift.AsyncProcessFunction> { + public getScannerRows() { + super("getScannerRows"); } - } - private static class exists_argsStandardScheme extends StandardScheme { + public getScannerRows_args getEmptyArgsInstance() { + return new getScannerRows_args(); + } - public void read(org.apache.thrift.protocol.TProtocol iprot, exists_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getScannerRows_result result = new getScannerRows_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); } - switch (schemeField.id) { - case 1: // TABLE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TGET - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tget = new TGet(); - struct.tget.read(iprot); - struct.setTgetIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getScannerRows_result result = new getScannerRows_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof TIllegalArgument) { + result.ia = (TIllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + }; } - public void write(org.apache.thrift.protocol.TProtocol oprot, exists_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.table != null) { - oprot.writeFieldBegin(TABLE_FIELD_DESC); - oprot.writeBinary(struct.table); - oprot.writeFieldEnd(); - } - if (struct.tget != null) { - oprot.writeFieldBegin(TGET_FIELD_DESC); - struct.tget.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); + protected boolean isOneway() { + return false; } - } - - private static class exists_argsTupleSchemeFactory implements SchemeFactory { - public exists_argsTupleScheme getScheme() { - return new exists_argsTupleScheme(); + public void start(I iface, getScannerRows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getScannerRows(args.scannerId, args.numRows,resultHandler); } } - private static class exists_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeBinary(struct.table); - struct.tget.write(oprot); + public static class closeScanner extends org.apache.thrift.AsyncProcessFunction { + public closeScanner() { + super("closeScanner"); } - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); - struct.tget = new TGet(); - struct.tget.read(iprot); - struct.setTgetIsSet(true); + public closeScanner_args getEmptyArgsInstance() { + return new closeScanner_args(); } - } - } - - public static class exists_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exists_result"); + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + closeScanner_result result = new closeScanner_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + closeScanner_result result = new closeScanner_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else if (e instanceof TIllegalArgument) { + result.ia = (TIllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); - private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); + protected boolean isOneway() { + return false; + } - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new exists_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exists_resultTupleSchemeFactory()); + public void start(I iface, closeScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.closeScanner(args.scannerId,resultHandler); + } } - public boolean success; // required - public TIOError io; // required + public static class mutateRow extends org.apache.thrift.AsyncProcessFunction { + public mutateRow() { + super("mutateRow"); + } - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - IO((short)1, "io"); + public mutateRow_args getEmptyArgsInstance() { + return new mutateRow_args(); + } - private static final Map byName = new HashMap(); + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + mutateRow_result result = new mutateRow_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + mutateRow_result result = new mutateRow_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } + protected boolean isOneway() { + return false; } - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // IO - return IO; - default: - return null; - } + public void start(I iface, mutateRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.mutateRow(args.table, args.trowMutations,resultHandler); } + } - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; + public static class getScannerResults extends org.apache.thrift.AsyncProcessFunction> { + public getScannerResults() { + super("getScannerResults"); } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); + public getScannerResults_args getEmptyArgsInstance() { + return new getScannerResults_args(); } - private final short _thriftId; + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getScannerResults_result result = new getScannerResults_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getScannerResults_result result = new getScannerResults_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getScannerResults_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getScannerResults(args.table, args.tscan, args.numRows,resultHandler); + } + } + + public static class getRegionLocation extends org.apache.thrift.AsyncProcessFunction { + public getRegionLocation() { + super("getRegionLocation"); + } + + public getRegionLocation_args getEmptyArgsInstance() { + return new getRegionLocation_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(THRegionLocation o) { + getRegionLocation_result result = new getRegionLocation_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRegionLocation_result result = new getRegionLocation_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRegionLocation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getRegionLocation(args.table, args.row, args.reload,resultHandler); + } + } + + public static class getAllRegionLocations extends org.apache.thrift.AsyncProcessFunction> { + public getAllRegionLocations() { + super("getAllRegionLocations"); + } + + public getAllRegionLocations_args getEmptyArgsInstance() { + return new getAllRegionLocations_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllRegionLocations_result result = new getAllRegionLocations_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getAllRegionLocations_result result = new getAllRegionLocations_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getAllRegionLocations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllRegionLocations(args.table,resultHandler); + } + } + + public static class checkAndMutate extends org.apache.thrift.AsyncProcessFunction { + public checkAndMutate() { + super("checkAndMutate"); + } + + public checkAndMutate_args getEmptyArgsInstance() { + return new checkAndMutate_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + checkAndMutate_result result = new checkAndMutate_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + checkAndMutate_result result = new checkAndMutate_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, checkAndMutate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.checkAndMutate(args.table, args.row, args.family, args.qualifier, args.compareOp, args.value, args.rowMutations,resultHandler); + } + } + + } + + public static class exists_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exists_args"); + + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TGET_FIELD_DESC = new org.apache.thrift.protocol.TField("tget", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new exists_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exists_argsTupleSchemeFactory()); + } + + /** + * the table to check on + */ + public ByteBuffer table; // required + /** + * the TGet to check for + */ + public TGet tget; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + /** + * the table to check on + */ + TABLE((short)1, "table"), + /** + * the TGet to check for + */ + TGET((short)2, "tget"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // TABLE + return TABLE; + case 2: // TGET + return TGET; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { @@ -2510,116 +3292,136 @@ public class THBaseService { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TGET, new org.apache.thrift.meta_data.FieldMetaData("tget", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_args.class, metaDataMap); } - public exists_result() { + public exists_args() { } - public exists_result( - boolean success, - TIOError io) + public exists_args( + ByteBuffer table, + TGet tget) { this(); - this.success = success; - setSuccessIsSet(true); - this.io = io; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tget = tget; } /** * Performs a deep copy on other. */ - public exists_result(exists_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; - if (other.isSetIo()) { - this.io = new TIOError(other.io); + public exists_args(exists_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); + } + if (other.isSetTget()) { + this.tget = new TGet(other.tget); } } - public exists_result deepCopy() { - return new exists_result(this); + public exists_args deepCopy() { + return new exists_args(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; - this.io = null; - } - - public boolean isSuccess() { - return this.success; - } - - public exists_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); - return this; - } - - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.table = null; + this.tget = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + /** + * the table to check on + */ + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); } - public TIOError getIo() { - return this.io; + /** + * the table to check on + */ + public exists_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + return this; } - public exists_result setIo(TIOError io) { - this.io = io; + public exists_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } - public void unsetIo() { - this.io = null; + public void unsetTable() { + this.table = null; } - /** Returns true if field io is set (has been assigned a value) and false otherwise */ - public boolean isSetIo() { - return this.io != null; + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; } - public void setIoIsSet(boolean value) { + public void setTableIsSet(boolean value) { if (!value) { - this.io = null; + this.table = null; } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); + /** + * the TGet to check for + */ + public TGet getTget() { + return this.tget; + } + + /** + * the TGet to check for + */ + public exists_args setTget(TGet tget) { + this.tget = tget; + return this; + } + + public void unsetTget() { + this.tget = null; + } + + /** Returns true if field tget is set (has been assigned a value) and false otherwise */ + public boolean isSetTget() { + return this.tget != null; + } + + public void setTgetIsSet(boolean value) { + if (!value) { + this.tget = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TABLE: + if (value == null) { + unsetTable(); } else { - setSuccess((Boolean)value); + setTable((ByteBuffer)value); } break; - case IO: + case TGET: if (value == null) { - unsetIo(); + unsetTget(); } else { - setIo((TIOError)value); + setTget((TGet)value); } break; @@ -2628,11 +3430,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); + case TABLE: + return getTable(); - case IO: - return getIo(); + case TGET: + return getTget(); } throw new IllegalStateException(); @@ -2645,10 +3447,10 @@ public class THBaseService { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case IO: - return isSetIo(); + case TABLE: + return isSetTable(); + case TGET: + return isSetTget(); } throw new IllegalStateException(); } @@ -2657,30 +3459,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exists_result) - return this.equals((exists_result)that); + if (that instanceof exists_args) + return this.equals((exists_args)that); return false; } - public boolean equals(exists_result that) { + public boolean equals(exists_args 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)) + boolean this_present_table = true && this.isSetTable(); + boolean that_present_table = true && that.isSetTable(); + if (this_present_table || that_present_table) { + if (!(this_present_table && that_present_table)) return false; - if (this.success != that.success) + if (!this.table.equals(that.table)) return false; } - boolean this_present_io = true && this.isSetIo(); - boolean that_present_io = true && that.isSetIo(); - if (this_present_io || that_present_io) { - if (!(this_present_io && that_present_io)) + boolean this_present_tget = true && this.isSetTget(); + boolean that_present_tget = true && that.isSetTget(); + if (this_present_tget || that_present_tget) { + if (!(this_present_tget && that_present_tget)) return false; - if (!this.io.equals(that.io)) + if (!this.tget.equals(that.tget)) return false; } @@ -2689,45 +3491,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_success = true; - builder.append(present_success); - if (present_success) - builder.append(success); + boolean present_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); - boolean present_io = true && (isSetIo()); - builder.append(present_io); - if (present_io) - builder.append(io); + boolean present_tget = true && (isSetTget()); + list.add(present_tget); + if (present_tget) + list.add(tget); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(exists_result other) { + @Override + public int compareTo(exists_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - exists_result typedOther = (exists_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (isSetTable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); if (lastComparison != 0) { return lastComparison; } - if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + if (isSetTget()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tget, other.tget); if (lastComparison != 0) { return lastComparison; } @@ -2745,22 +3547,26 @@ public class THBaseService { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("exists_result("); + StringBuilder sb = new StringBuilder("exists_args("); boolean first = true; - sb.append("success:"); - sb.append(this.success); + sb.append("table:"); + if (this.table == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.table, sb); + } first = false; if (!first) sb.append(", "); - sb.append("io:"); - if (this.io == null) { + sb.append("tget:"); + if (this.tget == null) { sb.append("null"); } else { - sb.append(this.io); + sb.append(this.tget); } first = false; sb.append(")"); @@ -2769,7 +3575,16 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields + if (table == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); + } + if (tget == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tget' was not present! Struct: " + toString()); + } // check for sub-struct validity + if (tget != null) { + tget.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -2782,23 +3597,21 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class exists_resultStandardSchemeFactory implements SchemeFactory { - public exists_resultStandardScheme getScheme() { - return new exists_resultStandardScheme(); + private static class exists_argsStandardSchemeFactory implements SchemeFactory { + public exists_argsStandardScheme getScheme() { + return new exists_argsStandardScheme(); } } - private static class exists_resultStandardScheme extends StandardScheme { + private static class exists_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exists_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exists_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -2808,19 +3621,19 @@ public class THBaseService { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + case 1: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // IO + case 2: // TGET if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); + struct.tget = new TGet(); + struct.tget.read(iprot); + struct.setTgetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2836,18 +3649,18 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exists_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exists_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.io != null) { - oprot.writeFieldBegin(IO_FIELD_DESC); - struct.io.write(oprot); + if (struct.tget != null) { + oprot.writeFieldBegin(TGET_FIELD_DESC); + struct.tget.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -2856,82 +3669,53 @@ public class THBaseService { } - private static class exists_resultTupleSchemeFactory implements SchemeFactory { - public exists_resultTupleScheme getScheme() { - return new exists_resultTupleScheme(); + private static class exists_argsTupleSchemeFactory implements SchemeFactory { + public exists_argsTupleScheme getScheme() { + return new exists_argsTupleScheme(); } } - private static class exists_resultTupleScheme extends TupleScheme { + private static class exists_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - if (struct.isSetIo()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); - } - if (struct.isSetIo()) { - struct.io.write(oprot); - } + oprot.writeBinary(struct.table); + struct.tget.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); - } + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + struct.tget = new TGet(); + struct.tget.read(iprot); + struct.setTgetIsSet(true); } } } - public static class get_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_args"); + public static class exists_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exists_result"); - private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TGET_FIELD_DESC = new org.apache.thrift.protocol.TField("tget", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exists_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exists_resultTupleSchemeFactory()); } - /** - * the table to get from - */ - public ByteBuffer table; // required - /** - * the TGet to fetch - */ - public TGet tget; // required + public boolean success; // required + public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - /** - * the table to get from - */ - TABLE((short)1, "table"), - /** - * the TGet to fetch - */ - TGET((short)2, "tget"); + SUCCESS((short)0, "success"), + IO((short)1, "io"); private static final Map byName = new HashMap(); @@ -2946,10 +3730,10 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TABLE - return TABLE; - case 2: // TGET - return TGET; + case 0: // SUCCESS + return SUCCESS; + case 1: // IO + return IO; default: return null; } @@ -2990,137 +3774,116 @@ public class THBaseService { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TGET, new org.apache.thrift.meta_data.FieldMetaData("tget", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class))); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_result.class, metaDataMap); } - public get_args() { + public exists_result() { } - public get_args( - ByteBuffer table, - TGet tget) + public exists_result( + boolean success, + TIOError io) { this(); - this.table = table; - this.tget = tget; + this.success = success; + setSuccessIsSet(true); + this.io = io; } /** * Performs a deep copy on other. */ - public get_args(get_args other) { - if (other.isSetTable()) { - this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; - } - if (other.isSetTget()) { - this.tget = new TGet(other.tget); + public exists_result(exists_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + if (other.isSetIo()) { + this.io = new TIOError(other.io); } } - public get_args deepCopy() { - return new get_args(this); + public exists_result deepCopy() { + return new exists_result(this); } @Override public void clear() { - this.table = null; - this.tget = null; - } - - /** - * the table to get from - */ - public byte[] getTable() { - setTable(org.apache.thrift.TBaseHelper.rightSize(table)); - return table == null ? null : table.array(); - } - - public ByteBuffer bufferForTable() { - return table; + setSuccessIsSet(false); + this.success = false; + this.io = null; } - /** - * the table to get from - */ - public get_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); - return this; + public boolean isSuccess() { + return this.success; } - public get_args setTable(ByteBuffer table) { - this.table = table; + public exists_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); return this; } - public void unsetTable() { - this.table = null; + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } - public void setTableIsSet(boolean value) { - if (!value) { - this.table = null; - } + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - /** - * the TGet to fetch - */ - public TGet getTget() { - return this.tget; + public TIOError getIo() { + return this.io; } - /** - * the TGet to fetch - */ - public get_args setTget(TGet tget) { - this.tget = tget; + public exists_result setIo(TIOError io) { + this.io = io; return this; } - public void unsetTget() { - this.tget = null; + public void unsetIo() { + this.io = null; } - /** Returns true if field tget is set (has been assigned a value) and false otherwise */ - public boolean isSetTget() { - return this.tget != null; + /** Returns true if field io is set (has been assigned a value) and false otherwise */ + public boolean isSetIo() { + return this.io != null; } - public void setTgetIsSet(boolean value) { + public void setIoIsSet(boolean value) { if (!value) { - this.tget = null; + this.io = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TABLE: + case SUCCESS: if (value == null) { - unsetTable(); + unsetSuccess(); } else { - setTable((ByteBuffer)value); + setSuccess((Boolean)value); } break; - case TGET: + case IO: if (value == null) { - unsetTget(); + unsetIo(); } else { - setTget((TGet)value); + setIo((TIOError)value); } break; @@ -3129,11 +3892,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case TABLE: - return getTable(); + case SUCCESS: + return Boolean.valueOf(isSuccess()); - case TGET: - return getTget(); + case IO: + return getIo(); } throw new IllegalStateException(); @@ -3146,10 +3909,10 @@ public class THBaseService { } switch (field) { - case TABLE: - return isSetTable(); - case TGET: - return isSetTget(); + case SUCCESS: + return isSetSuccess(); + case IO: + return isSetIo(); } throw new IllegalStateException(); } @@ -3158,30 +3921,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_args) - return this.equals((get_args)that); + if (that instanceof exists_result) + return this.equals((exists_result)that); return false; } - public boolean equals(get_args that) { + public boolean equals(exists_result that) { if (that == null) return false; - boolean this_present_table = true && this.isSetTable(); - boolean that_present_table = true && that.isSetTable(); - if (this_present_table || that_present_table) { - if (!(this_present_table && that_present_table)) + 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.table.equals(that.table)) + if (this.success != that.success) return false; } - boolean this_present_tget = true && this.isSetTget(); - boolean that_present_tget = true && that.isSetTget(); - if (this_present_tget || that_present_tget) { - if (!(this_present_tget && that_present_tget)) + boolean this_present_io = true && this.isSetIo(); + boolean that_present_io = true && that.isSetIo(); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) return false; - if (!this.tget.equals(that.tget)) + if (!this.io.equals(that.io)) return false; } @@ -3190,45 +3953,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_table = true && (isSetTable()); - builder.append(present_table); - if (present_table) - builder.append(table); + boolean present_success = true; + list.add(present_success); + if (present_success) + list.add(success); - boolean present_tget = true && (isSetTget()); - builder.append(present_tget); - if (present_tget) - builder.append(tget); + boolean present_io = true && (isSetIo()); + list.add(present_io); + if (present_io) + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(get_args other) { + @Override + public int compareTo(exists_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_args typedOther = (get_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTget()).compareTo(typedOther.isSetTget()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } - if (isSetTget()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tget, typedOther.tget); + if (isSetIo()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -3246,26 +4009,22 @@ public class THBaseService { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("get_args("); + StringBuilder sb = new StringBuilder("exists_result("); boolean first = true; - sb.append("table:"); - if (this.table == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.table, sb); - } + sb.append("success:"); + sb.append(this.success); first = false; if (!first) sb.append(", "); - sb.append("tget:"); - if (this.tget == null) { + sb.append("io:"); + if (this.io == null) { sb.append("null"); } else { - sb.append(this.tget); + sb.append(this.io); } first = false; sb.append(")"); @@ -3274,16 +4033,7 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields - if (table == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); - } - if (tget == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tget' was not present! Struct: " + toString()); - } // check for sub-struct validity - if (tget != null) { - tget.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -3296,21 +4046,23 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_argsStandardSchemeFactory implements SchemeFactory { - public get_argsStandardScheme getScheme() { - return new get_argsStandardScheme(); + private static class exists_resultStandardSchemeFactory implements SchemeFactory { + public exists_resultStandardScheme getScheme() { + return new exists_resultStandardScheme(); } } - private static class get_argsStandardScheme extends StandardScheme { + private static class exists_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exists_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -3320,19 +4072,19 @@ public class THBaseService { break; } switch (schemeField.id) { - case 1: // TABLE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TGET + case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tget = new TGet(); - struct.tget.read(iprot); - struct.setTgetIsSet(true); + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -3348,18 +4100,18 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exists_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.table != null) { - oprot.writeFieldBegin(TABLE_FIELD_DESC); - oprot.writeBinary(struct.table); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } - if (struct.tget != null) { - oprot.writeFieldBegin(TGET_FIELD_DESC); - struct.tget.write(oprot); + if (struct.io != null) { + oprot.writeFieldBegin(IO_FIELD_DESC); + struct.io.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -3368,53 +4120,82 @@ public class THBaseService { } - private static class get_argsTupleSchemeFactory implements SchemeFactory { - public get_argsTupleScheme getScheme() { - return new get_argsTupleScheme(); + private static class exists_resultTupleSchemeFactory implements SchemeFactory { + public exists_resultTupleScheme getScheme() { + return new exists_resultTupleScheme(); } } - private static class get_argsTupleScheme extends TupleScheme { + private static class exists_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeBinary(struct.table); - struct.tget.write(oprot); - } - + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIo()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + if (struct.isSetIo()) { + struct.io.write(oprot); + } + } + @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); - struct.tget = new TGet(); - struct.tget.read(iprot); - struct.setTgetIsSet(true); + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); + } } } } - public static class get_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_result"); + public static class get_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_args"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TGET_FIELD_DESC = new org.apache.thrift.protocol.TField("tget", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_argsTupleSchemeFactory()); } - public TResult success; // required - public TIOError io; // required + /** + * the table to get from + */ + public ByteBuffer table; // required + /** + * the TGet to fetch + */ + public TGet tget; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - IO((short)1, "io"); + /** + * the table to get from + */ + TABLE((short)1, "table"), + /** + * the TGet to fetch + */ + TGET((short)2, "tget"); private static final Map byName = new HashMap(); @@ -3429,10 +4210,10 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // IO - return IO; + case 1: // TABLE + return TABLE; + case 2: // TGET + return TGET; default: return null; } @@ -3476,111 +4257,133 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class))); - tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TGET, new org.apache.thrift.meta_data.FieldMetaData("tget", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); } - public get_result() { + public get_args() { } - public get_result( - TResult success, - TIOError io) + public get_args( + ByteBuffer table, + TGet tget) { this(); - this.success = success; - this.io = io; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tget = tget; } /** * Performs a deep copy on other. */ - public get_result(get_result other) { - if (other.isSetSuccess()) { - this.success = new TResult(other.success); + public get_args(get_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } - if (other.isSetIo()) { - this.io = new TIOError(other.io); + if (other.isSetTget()) { + this.tget = new TGet(other.tget); } } - public get_result deepCopy() { - return new get_result(this); + public get_args deepCopy() { + return new get_args(this); } @Override public void clear() { - this.success = null; - this.io = null; + this.table = null; + this.tget = null; } - public TResult getSuccess() { - return this.success; + /** + * the table to get from + */ + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); } - public get_result setSuccess(TResult success) { - this.success = success; + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); + } + + /** + * the table to get from + */ + public get_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public void unsetSuccess() { - this.success = null; + public get_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + return this; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + public void unsetTable() { + this.table = null; } - public void setSuccessIsSet(boolean value) { + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; + } + + public void setTableIsSet(boolean value) { if (!value) { - this.success = null; + this.table = null; } } - public TIOError getIo() { - return this.io; + /** + * the TGet to fetch + */ + public TGet getTget() { + return this.tget; } - public get_result setIo(TIOError io) { - this.io = io; + /** + * the TGet to fetch + */ + public get_args setTget(TGet tget) { + this.tget = tget; return this; } - public void unsetIo() { - this.io = null; + public void unsetTget() { + this.tget = null; } - /** Returns true if field io is set (has been assigned a value) and false otherwise */ - public boolean isSetIo() { - return this.io != null; + /** Returns true if field tget is set (has been assigned a value) and false otherwise */ + public boolean isSetTget() { + return this.tget != null; } - public void setIoIsSet(boolean value) { + public void setTgetIsSet(boolean value) { if (!value) { - this.io = null; + this.tget = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case TABLE: if (value == null) { - unsetSuccess(); + unsetTable(); } else { - setSuccess((TResult)value); + setTable((ByteBuffer)value); } break; - case IO: + case TGET: if (value == null) { - unsetIo(); + unsetTget(); } else { - setIo((TIOError)value); + setTget((TGet)value); } break; @@ -3589,11 +4392,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case TABLE: + return getTable(); - case IO: - return getIo(); + case TGET: + return getTget(); } throw new IllegalStateException(); @@ -3606,10 +4409,10 @@ public class THBaseService { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case IO: - return isSetIo(); + case TABLE: + return isSetTable(); + case TGET: + return isSetTget(); } throw new IllegalStateException(); } @@ -3618,30 +4421,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_result) - return this.equals((get_result)that); + if (that instanceof get_args) + return this.equals((get_args)that); return false; } - public boolean equals(get_result that) { + public boolean equals(get_args that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) + boolean this_present_table = true && this.isSetTable(); + boolean that_present_table = true && that.isSetTable(); + if (this_present_table || that_present_table) { + if (!(this_present_table && that_present_table)) return false; - if (!this.success.equals(that.success)) + if (!this.table.equals(that.table)) return false; } - boolean this_present_io = true && this.isSetIo(); - boolean that_present_io = true && that.isSetIo(); - if (this_present_io || that_present_io) { - if (!(this_present_io && that_present_io)) + boolean this_present_tget = true && this.isSetTget(); + boolean that_present_tget = true && that.isSetTget(); + if (this_present_tget || that_present_tget) { + if (!(this_present_tget && that_present_tget)) return false; - if (!this.io.equals(that.io)) + if (!this.tget.equals(that.tget)) return false; } @@ -3650,45 +4453,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - builder.append(present_success); - if (present_success) - builder.append(success); + boolean present_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); - boolean present_io = true && (isSetIo()); - builder.append(present_io); - if (present_io) - builder.append(io); + boolean present_tget = true && (isSetTget()); + list.add(present_tget); + if (present_tget) + list.add(tget); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(get_result other) { + @Override + public int compareTo(get_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_result typedOther = (get_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (isSetTable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); if (lastComparison != 0) { return lastComparison; } - if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + if (isSetTget()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tget, other.tget); if (lastComparison != 0) { return lastComparison; } @@ -3706,26 +4509,26 @@ public class THBaseService { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("get_result("); + StringBuilder sb = new StringBuilder("get_args("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("table:"); + if (this.table == null) { sb.append("null"); } else { - sb.append(this.success); + org.apache.thrift.TBaseHelper.toString(this.table, sb); } first = false; if (!first) sb.append(", "); - sb.append("io:"); - if (this.io == null) { + sb.append("tget:"); + if (this.tget == null) { sb.append("null"); } else { - sb.append(this.io); + sb.append(this.tget); } first = false; sb.append(")"); @@ -3734,9 +4537,15 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields + if (table == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); + } + if (tget == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tget' was not present! Struct: " + toString()); + } // check for sub-struct validity - if (success != null) { - success.validate(); + if (tget != null) { + tget.validate(); } } @@ -3756,15 +4565,15 @@ public class THBaseService { } } - private static class get_resultStandardSchemeFactory implements SchemeFactory { - public get_resultStandardScheme getScheme() { - return new get_resultStandardScheme(); + private static class get_argsStandardSchemeFactory implements SchemeFactory { + public get_argsStandardScheme getScheme() { + return new get_argsStandardScheme(); } } - private static class get_resultStandardScheme extends StandardScheme { + private static class get_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -3774,20 +4583,19 @@ public class THBaseService { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); + case 1: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // IO + case 2: // TGET if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); + struct.tget = new TGet(); + struct.tget.read(iprot); + struct.setTgetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -3803,18 +4611,18 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.io != null) { - oprot.writeFieldBegin(IO_FIELD_DESC); - struct.io.write(oprot); + if (struct.tget != null) { + oprot.writeFieldBegin(TGET_FIELD_DESC); + struct.tget.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -3823,87 +4631,53 @@ public class THBaseService { } - private static class get_resultTupleSchemeFactory implements SchemeFactory { - public get_resultTupleScheme getScheme() { - return new get_resultTupleScheme(); + private static class get_argsTupleSchemeFactory implements SchemeFactory { + public get_argsTupleScheme getScheme() { + return new get_argsTupleScheme(); } } - private static class get_resultTupleScheme extends TupleScheme { + private static class get_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - if (struct.isSetIo()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetIo()) { - struct.io.write(oprot); - } + oprot.writeBinary(struct.table); + struct.tget.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new TResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); - } + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + struct.tget = new TGet(); + struct.tget.read(iprot); + struct.setTgetIsSet(true); } } } - public static class getMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMultiple_args"); + public static class get_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_result"); - private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TGETS_FIELD_DESC = new org.apache.thrift.protocol.TField("tgets", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getMultiple_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMultiple_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_resultTupleSchemeFactory()); } - /** - * the table to get from - */ - public ByteBuffer table; // required - /** - * a list of TGets to fetch, the Result list - * will have the Results at corresponding positions - * or null if there was an error - */ - public List tgets; // required + public TResult success; // required + public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - /** - * the table to get from - */ - TABLE((short)1, "table"), - /** - * a list of TGets to fetch, the Result list - * will have the Results at corresponding positions - * or null if there was an error - */ - TGETS((short)2, "tgets"); + SUCCESS((short)0, "success"), + IO((short)1, "io"); private static final Map byName = new HashMap(); @@ -3918,10 +4692,10 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TABLE - return TABLE; - case 2: // TGETS - return TGETS; + case 0: // SUCCESS + return SUCCESS; + case 1: // IO + return IO; default: return null; } @@ -3965,158 +4739,111 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TGETS, new org.apache.thrift.meta_data.FieldMetaData("tgets", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class)))); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class))); + tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMultiple_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); } - public getMultiple_args() { + public get_result() { } - public getMultiple_args( - ByteBuffer table, - List tgets) + public get_result( + TResult success, + TIOError io) { this(); - this.table = table; - this.tgets = tgets; + this.success = success; + this.io = io; } /** * Performs a deep copy on other. */ - public getMultiple_args(getMultiple_args other) { - if (other.isSetTable()) { - this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; + public get_result(get_result other) { + if (other.isSetSuccess()) { + this.success = new TResult(other.success); } - if (other.isSetTgets()) { - List __this__tgets = new ArrayList(); - for (TGet other_element : other.tgets) { - __this__tgets.add(new TGet(other_element)); - } - this.tgets = __this__tgets; + if (other.isSetIo()) { + this.io = new TIOError(other.io); } } - public getMultiple_args deepCopy() { - return new getMultiple_args(this); + public get_result deepCopy() { + return new get_result(this); } @Override public void clear() { - this.table = null; - this.tgets = null; - } - - /** - * the table to get from - */ - public byte[] getTable() { - setTable(org.apache.thrift.TBaseHelper.rightSize(table)); - return table == null ? null : table.array(); - } - - public ByteBuffer bufferForTable() { - return table; + this.success = null; + this.io = null; } - /** - * the table to get from - */ - public getMultiple_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); - return this; + public TResult getSuccess() { + return this.success; } - public getMultiple_args setTable(ByteBuffer table) { - this.table = table; + public get_result setSuccess(TResult success) { + this.success = success; return this; } - public void unsetTable() { - this.table = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setTableIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.table = null; + this.success = null; } } - public int getTgetsSize() { - return (this.tgets == null) ? 0 : this.tgets.size(); + public TIOError getIo() { + return this.io; } - public java.util.Iterator getTgetsIterator() { - return (this.tgets == null) ? null : this.tgets.iterator(); + public get_result setIo(TIOError io) { + this.io = io; + return this; } - public void addToTgets(TGet elem) { - if (this.tgets == null) { - this.tgets = new ArrayList(); - } - this.tgets.add(elem); + public void unsetIo() { + this.io = null; } - /** - * a list of TGets to fetch, the Result list - * will have the Results at corresponding positions - * or null if there was an error - */ - public List getTgets() { - return this.tgets; + /** Returns true if field io is set (has been assigned a value) and false otherwise */ + public boolean isSetIo() { + return this.io != null; } - /** - * a list of TGets to fetch, the Result list - * will have the Results at corresponding positions - * or null if there was an error - */ - public getMultiple_args setTgets(List tgets) { - this.tgets = tgets; - return this; - } - - public void unsetTgets() { - this.tgets = null; - } - - /** Returns true if field tgets is set (has been assigned a value) and false otherwise */ - public boolean isSetTgets() { - return this.tgets != null; - } - - public void setTgetsIsSet(boolean value) { - if (!value) { - this.tgets = null; - } + public void setIoIsSet(boolean value) { + if (!value) { + this.io = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TABLE: + case SUCCESS: if (value == null) { - unsetTable(); + unsetSuccess(); } else { - setTable((ByteBuffer)value); + setSuccess((TResult)value); } break; - case TGETS: + case IO: if (value == null) { - unsetTgets(); + unsetIo(); } else { - setTgets((List)value); + setIo((TIOError)value); } break; @@ -4125,11 +4852,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case TABLE: - return getTable(); + case SUCCESS: + return getSuccess(); - case TGETS: - return getTgets(); + case IO: + return getIo(); } throw new IllegalStateException(); @@ -4142,10 +4869,10 @@ public class THBaseService { } switch (field) { - case TABLE: - return isSetTable(); - case TGETS: - return isSetTgets(); + case SUCCESS: + return isSetSuccess(); + case IO: + return isSetIo(); } throw new IllegalStateException(); } @@ -4154,30 +4881,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getMultiple_args) - return this.equals((getMultiple_args)that); + if (that instanceof get_result) + return this.equals((get_result)that); return false; } - public boolean equals(getMultiple_args that) { + public boolean equals(get_result that) { if (that == null) return false; - boolean this_present_table = true && this.isSetTable(); - boolean that_present_table = true && that.isSetTable(); - if (this_present_table || that_present_table) { - if (!(this_present_table && that_present_table)) + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) return false; - if (!this.table.equals(that.table)) + if (!this.success.equals(that.success)) return false; } - boolean this_present_tgets = true && this.isSetTgets(); - boolean that_present_tgets = true && that.isSetTgets(); - if (this_present_tgets || that_present_tgets) { - if (!(this_present_tgets && that_present_tgets)) + boolean this_present_io = true && this.isSetIo(); + boolean that_present_io = true && that.isSetIo(); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) return false; - if (!this.tgets.equals(that.tgets)) + if (!this.io.equals(that.io)) return false; } @@ -4186,45 +4913,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_table = true && (isSetTable()); - builder.append(present_table); - if (present_table) - builder.append(table); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); - boolean present_tgets = true && (isSetTgets()); - builder.append(present_tgets); - if (present_tgets) - builder.append(tgets); + boolean present_io = true && (isSetIo()); + list.add(present_io); + if (present_io) + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getMultiple_args other) { + @Override + public int compareTo(get_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getMultiple_args typedOther = (getMultiple_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTgets()).compareTo(typedOther.isSetTgets()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } - if (isSetTgets()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tgets, typedOther.tgets); + if (isSetIo()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -4242,26 +4969,26 @@ public class THBaseService { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("getMultiple_args("); + StringBuilder sb = new StringBuilder("get_result("); boolean first = true; - sb.append("table:"); - if (this.table == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.table, sb); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("tgets:"); - if (this.tgets == null) { + sb.append("io:"); + if (this.io == null) { sb.append("null"); } else { - sb.append(this.tgets); + sb.append(this.io); } first = false; sb.append(")"); @@ -4270,13 +4997,10 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields - if (table == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); - } - if (tgets == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tgets' was not present! Struct: " + toString()); - } // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -4295,15 +5019,15 @@ public class THBaseService { } } - private static class getMultiple_argsStandardSchemeFactory implements SchemeFactory { - public getMultiple_argsStandardScheme getScheme() { - return new getMultiple_argsStandardScheme(); + private static class get_resultStandardSchemeFactory implements SchemeFactory { + public get_resultStandardScheme getScheme() { + return new get_resultStandardScheme(); } } - private static class getMultiple_argsStandardScheme extends StandardScheme { + private static class get_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getMultiple_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -4313,29 +5037,20 @@ public class THBaseService { break; } switch (schemeField.id) { - case 1: // TABLE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TGETS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list132 = iprot.readListBegin(); - struct.tgets = new ArrayList(_list132.size); - for (int _i133 = 0; _i133 < _list132.size; ++_i133) - { - TGet _elem134; // required - _elem134 = new TGet(); - _elem134.read(iprot); - struct.tgets.add(_elem134); - } - iprot.readListEnd(); - } - struct.setTgetsIsSet(true); + case 1: // IO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -4351,25 +5066,18 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getMultiple_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.table != null) { - oprot.writeFieldBegin(TABLE_FIELD_DESC); - oprot.writeBinary(struct.table); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); oprot.writeFieldEnd(); } - if (struct.tgets != null) { - oprot.writeFieldBegin(TGETS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tgets.size())); - for (TGet _iter135 : struct.tgets) - { - _iter135.write(oprot); - } - oprot.writeListEnd(); - } + if (struct.io != null) { + oprot.writeFieldBegin(IO_FIELD_DESC); + struct.io.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -4378,68 +5086,87 @@ public class THBaseService { } - private static class getMultiple_argsTupleSchemeFactory implements SchemeFactory { - public getMultiple_argsTupleScheme getScheme() { - return new getMultiple_argsTupleScheme(); + private static class get_resultTupleSchemeFactory implements SchemeFactory { + public get_resultTupleScheme getScheme() { + return new get_resultTupleScheme(); } } - private static class getMultiple_argsTupleScheme extends TupleScheme { + private static class get_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getMultiple_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeBinary(struct.table); - { - oprot.writeI32(struct.tgets.size()); - for (TGet _iter136 : struct.tgets) - { - _iter136.write(oprot); - } + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIo()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetIo()) { + struct.io.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getMultiple_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); - { - org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tgets = new ArrayList(_list137.size); - for (int _i138 = 0; _i138 < _list137.size; ++_i138) - { - TGet _elem139; // required - _elem139 = new TGet(); - _elem139.read(iprot); - struct.tgets.add(_elem139); - } + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new TResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); } - struct.setTgetsIsSet(true); } } } - public static class getMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMultiple_result"); + public static class getMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMultiple_args"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); - private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TGETS_FIELD_DESC = new org.apache.thrift.protocol.TField("tgets", org.apache.thrift.protocol.TType.LIST, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getMultiple_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMultiple_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getMultiple_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getMultiple_argsTupleSchemeFactory()); } - public List success; // required - public TIOError io; // required + /** + * the table to get from + */ + public ByteBuffer table; // required + /** + * a list of TGets to fetch, the Result list + * will have the Results at corresponding positions + * or null if there was an error + */ + public List tgets; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - IO((short)1, "io"); + /** + * the table to get from + */ + TABLE((short)1, "table"), + /** + * a list of TGets to fetch, the Result list + * will have the Results at corresponding positions + * or null if there was an error + */ + TGETS((short)2, "tgets"); private static final Map byName = new HashMap(); @@ -4454,10 +5181,10 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // IO - return IO; + case 1: // TABLE + return TABLE; + case 2: // TGETS + return TGETS; default: return null; } @@ -4501,131 +5228,157 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TGETS, new org.apache.thrift.meta_data.FieldMetaData("tgets", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); - tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMultiple_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMultiple_args.class, metaDataMap); } - public getMultiple_result() { + public getMultiple_args() { } - public getMultiple_result( - List success, - TIOError io) + public getMultiple_args( + ByteBuffer table, + List tgets) { this(); - this.success = success; - this.io = io; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tgets = tgets; } /** * Performs a deep copy on other. */ - public getMultiple_result(getMultiple_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (TResult other_element : other.success) { - __this__success.add(new TResult(other_element)); - } - this.success = __this__success; + public getMultiple_args(getMultiple_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } - if (other.isSetIo()) { - this.io = new TIOError(other.io); + if (other.isSetTgets()) { + List __this__tgets = new ArrayList(other.tgets.size()); + for (TGet other_element : other.tgets) { + __this__tgets.add(new TGet(other_element)); + } + this.tgets = __this__tgets; } } - public getMultiple_result deepCopy() { - return new getMultiple_result(this); + public getMultiple_args deepCopy() { + return new getMultiple_args(this); } @Override public void clear() { - this.success = null; - this.io = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); + this.table = null; + this.tgets = null; } - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); + /** + * the table to get from + */ + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); } - public void addToSuccess(TResult elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); } - public List getSuccess() { - return this.success; + /** + * the table to get from + */ + public getMultiple_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + return this; } - public getMultiple_result setSuccess(List success) { - this.success = success; + public getMultiple_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } - public void unsetSuccess() { - this.success = null; + public void unsetTable() { + this.table = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; } - public void setSuccessIsSet(boolean value) { + public void setTableIsSet(boolean value) { if (!value) { - this.success = null; + this.table = null; } } - public TIOError getIo() { - return this.io; + public int getTgetsSize() { + return (this.tgets == null) ? 0 : this.tgets.size(); } - public getMultiple_result setIo(TIOError io) { - this.io = io; + public java.util.Iterator getTgetsIterator() { + return (this.tgets == null) ? null : this.tgets.iterator(); + } + + public void addToTgets(TGet elem) { + if (this.tgets == null) { + this.tgets = new ArrayList(); + } + this.tgets.add(elem); + } + + /** + * a list of TGets to fetch, the Result list + * will have the Results at corresponding positions + * or null if there was an error + */ + public List getTgets() { + return this.tgets; + } + + /** + * a list of TGets to fetch, the Result list + * will have the Results at corresponding positions + * or null if there was an error + */ + public getMultiple_args setTgets(List tgets) { + this.tgets = tgets; return this; } - public void unsetIo() { - this.io = null; + public void unsetTgets() { + this.tgets = null; } - /** Returns true if field io is set (has been assigned a value) and false otherwise */ - public boolean isSetIo() { - return this.io != null; + /** Returns true if field tgets is set (has been assigned a value) and false otherwise */ + public boolean isSetTgets() { + return this.tgets != null; } - public void setIoIsSet(boolean value) { + public void setTgetsIsSet(boolean value) { if (!value) { - this.io = null; + this.tgets = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case TABLE: if (value == null) { - unsetSuccess(); + unsetTable(); } else { - setSuccess((List)value); + setTable((ByteBuffer)value); } break; - case IO: + case TGETS: if (value == null) { - unsetIo(); + unsetTgets(); } else { - setIo((TIOError)value); + setTgets((List)value); } break; @@ -4634,11 +5387,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case TABLE: + return getTable(); - case IO: - return getIo(); + case TGETS: + return getTgets(); } throw new IllegalStateException(); @@ -4651,10 +5404,10 @@ public class THBaseService { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case IO: - return isSetIo(); + case TABLE: + return isSetTable(); + case TGETS: + return isSetTgets(); } throw new IllegalStateException(); } @@ -4663,30 +5416,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getMultiple_result) - return this.equals((getMultiple_result)that); + if (that instanceof getMultiple_args) + return this.equals((getMultiple_args)that); return false; } - public boolean equals(getMultiple_result that) { + public boolean equals(getMultiple_args that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) + boolean this_present_table = true && this.isSetTable(); + boolean that_present_table = true && that.isSetTable(); + if (this_present_table || that_present_table) { + if (!(this_present_table && that_present_table)) return false; - if (!this.success.equals(that.success)) + if (!this.table.equals(that.table)) return false; } - boolean this_present_io = true && this.isSetIo(); - boolean that_present_io = true && that.isSetIo(); - if (this_present_io || that_present_io) { - if (!(this_present_io && that_present_io)) + boolean this_present_tgets = true && this.isSetTgets(); + boolean that_present_tgets = true && that.isSetTgets(); + if (this_present_tgets || that_present_tgets) { + if (!(this_present_tgets && that_present_tgets)) return false; - if (!this.io.equals(that.io)) + if (!this.tgets.equals(that.tgets)) return false; } @@ -4695,45 +5448,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - builder.append(present_success); - if (present_success) - builder.append(success); + boolean present_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); - boolean present_io = true && (isSetIo()); - builder.append(present_io); - if (present_io) - builder.append(io); + boolean present_tgets = true && (isSetTgets()); + list.add(present_tgets); + if (present_tgets) + list.add(tgets); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getMultiple_result other) { + @Override + public int compareTo(getMultiple_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getMultiple_result typedOther = (getMultiple_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (isSetTable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetTgets()).compareTo(other.isSetTgets()); if (lastComparison != 0) { return lastComparison; } - if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + if (isSetTgets()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tgets, other.tgets); if (lastComparison != 0) { return lastComparison; } @@ -4751,26 +5504,26 @@ public class THBaseService { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("getMultiple_result("); + StringBuilder sb = new StringBuilder("getMultiple_args("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("table:"); + if (this.table == null) { sb.append("null"); } else { - sb.append(this.success); + org.apache.thrift.TBaseHelper.toString(this.table, sb); } first = false; if (!first) sb.append(", "); - sb.append("io:"); - if (this.io == null) { + sb.append("tgets:"); + if (this.tgets == null) { sb.append("null"); } else { - sb.append(this.io); + sb.append(this.tgets); } first = false; sb.append(")"); @@ -4779,6 +5532,12 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields + if (table == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); + } + if (tgets == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tgets' was not present! Struct: " + toString()); + } // check for sub-struct validity } @@ -4798,15 +5557,15 @@ public class THBaseService { } } - private static class getMultiple_resultStandardSchemeFactory implements SchemeFactory { - public getMultiple_resultStandardScheme getScheme() { - return new getMultiple_resultStandardScheme(); + private static class getMultiple_argsStandardSchemeFactory implements SchemeFactory { + public getMultiple_argsStandardScheme getScheme() { + return new getMultiple_argsStandardScheme(); } } - private static class getMultiple_resultStandardScheme extends StandardScheme { + private static class getMultiple_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getMultiple_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -4816,30 +5575,29 @@ public class THBaseService { break; } switch (schemeField.id) { - case 0: // SUCCESS + case 1: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TGETS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list140 = iprot.readListBegin(); - struct.success = new ArrayList(_list140.size); - for (int _i141 = 0; _i141 < _list140.size; ++_i141) + org.apache.thrift.protocol.TList _list132 = iprot.readListBegin(); + struct.tgets = new ArrayList(_list132.size); + TGet _elem133; + for (int _i134 = 0; _i134 < _list132.size; ++_i134) { - TResult _elem142; // required - _elem142 = new TResult(); - _elem142.read(iprot); - struct.success.add(_elem142); + _elem133 = new TGet(); + _elem133.read(iprot); + struct.tgets.add(_elem133); } iprot.readListEnd(); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // IO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); + struct.setTgetsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -4855,125 +5613,95 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getMultiple_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getMultiple_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeBinary(struct.table); + oprot.writeFieldEnd(); + } + if (struct.tgets != null) { + oprot.writeFieldBegin(TGETS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TResult _iter143 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tgets.size())); + for (TGet _iter135 : struct.tgets) { - _iter143.write(oprot); + _iter135.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - if (struct.io != null) { - oprot.writeFieldBegin(IO_FIELD_DESC); - struct.io.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getMultiple_resultTupleSchemeFactory implements SchemeFactory { - public getMultiple_resultTupleScheme getScheme() { - return new getMultiple_resultTupleScheme(); + private static class getMultiple_argsTupleSchemeFactory implements SchemeFactory { + public getMultiple_argsTupleScheme getScheme() { + return new getMultiple_argsTupleScheme(); } } - private static class getMultiple_resultTupleScheme extends TupleScheme { + private static class getMultiple_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getMultiple_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getMultiple_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - if (struct.isSetIo()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { + oprot.writeBinary(struct.table); + { + oprot.writeI32(struct.tgets.size()); + for (TGet _iter136 : struct.tgets) { - oprot.writeI32(struct.success.size()); - for (TResult _iter144 : struct.success) - { - _iter144.write(oprot); - } + _iter136.write(oprot); } } - if (struct.isSetIo()) { - struct.io.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getMultiple_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getMultiple_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + { + org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tgets = new ArrayList(_list137.size); + TGet _elem138; + for (int _i139 = 0; _i139 < _list137.size; ++_i139) { - org.apache.thrift.protocol.TList _list145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list145.size); - for (int _i146 = 0; _i146 < _list145.size; ++_i146) - { - TResult _elem147; // required - _elem147 = new TResult(); - _elem147.read(iprot); - struct.success.add(_elem147); - } + _elem138 = new TGet(); + _elem138.read(iprot); + struct.tgets.add(_elem138); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); } + struct.setTgetsIsSet(true); } } } - public static class put_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("put_args"); + public static class getMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMultiple_result"); - private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("tput", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new put_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new put_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getMultiple_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getMultiple_resultTupleSchemeFactory()); } - /** - * the table to put data in - */ - public ByteBuffer table; // required - /** - * the TPut to put - */ - public TPut tput; // required + public List success; // required + public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - /** - * the table to put data in - */ - TABLE((short)1, "table"), - /** - * the TPut to put - */ - TPUT((short)2, "tput"); + SUCCESS((short)0, "success"), + IO((short)1, "io"); private static final Map byName = new HashMap(); @@ -4988,10 +5716,10 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TABLE - return TABLE; - case 2: // TPUT - return TPUT; + case 0: // SUCCESS + return SUCCESS; + case 1: // IO + return IO; default: return null; } @@ -5035,134 +5763,131 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TPUT, new org.apache.thrift.meta_data.FieldMetaData("tput", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class))); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); + tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMultiple_result.class, metaDataMap); } - public put_args() { + public getMultiple_result() { } - public put_args( - ByteBuffer table, - TPut tput) + public getMultiple_result( + List success, + TIOError io) { this(); - this.table = table; - this.tput = tput; + this.success = success; + this.io = io; } /** * Performs a deep copy on other. */ - public put_args(put_args other) { - if (other.isSetTable()) { - this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; + public getMultiple_result(getMultiple_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (TResult other_element : other.success) { + __this__success.add(new TResult(other_element)); + } + this.success = __this__success; } - if (other.isSetTput()) { - this.tput = new TPut(other.tput); + if (other.isSetIo()) { + this.io = new TIOError(other.io); } } - public put_args deepCopy() { - return new put_args(this); + public getMultiple_result deepCopy() { + return new getMultiple_result(this); } @Override public void clear() { - this.table = null; - this.tput = null; + this.success = null; + this.io = null; } - /** - * the table to put data in - */ - public byte[] getTable() { - setTable(org.apache.thrift.TBaseHelper.rightSize(table)); - return table == null ? null : table.array(); + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public ByteBuffer bufferForTable() { - return table; + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); } - /** - * the table to put data in - */ - public put_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); - return this; + public void addToSuccess(TResult elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); } - public put_args setTable(ByteBuffer table) { - this.table = table; + public List getSuccess() { + return this.success; + } + + public getMultiple_result setSuccess(List success) { + this.success = success; return this; } - public void unsetTable() { - this.table = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setTableIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.table = null; + this.success = null; } } - /** - * the TPut to put - */ - public TPut getTput() { - return this.tput; + public TIOError getIo() { + return this.io; } - /** - * the TPut to put - */ - public put_args setTput(TPut tput) { - this.tput = tput; + public getMultiple_result setIo(TIOError io) { + this.io = io; return this; } - public void unsetTput() { - this.tput = null; + public void unsetIo() { + this.io = null; } - /** Returns true if field tput is set (has been assigned a value) and false otherwise */ - public boolean isSetTput() { - return this.tput != null; + /** Returns true if field io is set (has been assigned a value) and false otherwise */ + public boolean isSetIo() { + return this.io != null; } - public void setTputIsSet(boolean value) { + public void setIoIsSet(boolean value) { if (!value) { - this.tput = null; + this.io = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TABLE: + case SUCCESS: if (value == null) { - unsetTable(); + unsetSuccess(); } else { - setTable((ByteBuffer)value); + setSuccess((List)value); } break; - case TPUT: + case IO: if (value == null) { - unsetTput(); + unsetIo(); } else { - setTput((TPut)value); + setIo((TIOError)value); } break; @@ -5171,11 +5896,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case TABLE: - return getTable(); + case SUCCESS: + return getSuccess(); - case TPUT: - return getTput(); + case IO: + return getIo(); } throw new IllegalStateException(); @@ -5188,10 +5913,10 @@ public class THBaseService { } switch (field) { - case TABLE: - return isSetTable(); - case TPUT: - return isSetTput(); + case SUCCESS: + return isSetSuccess(); + case IO: + return isSetIo(); } throw new IllegalStateException(); } @@ -5200,30 +5925,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof put_args) - return this.equals((put_args)that); + if (that instanceof getMultiple_result) + return this.equals((getMultiple_result)that); return false; } - public boolean equals(put_args that) { + public boolean equals(getMultiple_result that) { if (that == null) return false; - boolean this_present_table = true && this.isSetTable(); - boolean that_present_table = true && that.isSetTable(); - if (this_present_table || that_present_table) { - if (!(this_present_table && that_present_table)) + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) return false; - if (!this.table.equals(that.table)) + if (!this.success.equals(that.success)) return false; } - boolean this_present_tput = true && this.isSetTput(); - boolean that_present_tput = true && that.isSetTput(); - if (this_present_tput || that_present_tput) { - if (!(this_present_tput && that_present_tput)) + boolean this_present_io = true && this.isSetIo(); + boolean that_present_io = true && that.isSetIo(); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) return false; - if (!this.tput.equals(that.tput)) + if (!this.io.equals(that.io)) return false; } @@ -5232,45 +5957,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_table = true && (isSetTable()); - builder.append(present_table); - if (present_table) - builder.append(table); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); - boolean present_tput = true && (isSetTput()); - builder.append(present_tput); - if (present_tput) - builder.append(tput); + boolean present_io = true && (isSetIo()); + list.add(present_io); + if (present_io) + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(put_args other) { + @Override + public int compareTo(getMultiple_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - put_args typedOther = (put_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTput()).compareTo(typedOther.isSetTput()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } - if (isSetTput()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tput, typedOther.tput); + if (isSetIo()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -5288,26 +6013,26 @@ public class THBaseService { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("put_args("); + StringBuilder sb = new StringBuilder("getMultiple_result("); boolean first = true; - sb.append("table:"); - if (this.table == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.table, sb); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("tput:"); - if (this.tput == null) { + sb.append("io:"); + if (this.io == null) { sb.append("null"); } else { - sb.append(this.tput); + sb.append(this.io); } first = false; sb.append(")"); @@ -5316,16 +6041,7 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields - if (table == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); - } - if (tput == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tput' was not present! Struct: " + toString()); - } // check for sub-struct validity - if (tput != null) { - tput.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -5344,15 +6060,15 @@ public class THBaseService { } } - private static class put_argsStandardSchemeFactory implements SchemeFactory { - public put_argsStandardScheme getScheme() { - return new put_argsStandardScheme(); + private static class getMultiple_resultStandardSchemeFactory implements SchemeFactory { + public getMultiple_resultStandardScheme getScheme() { + return new getMultiple_resultStandardScheme(); } } - private static class put_argsStandardScheme extends StandardScheme { + private static class getMultiple_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, put_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -5362,19 +6078,30 @@ public class THBaseService { break; } switch (schemeField.id) { - case 1: // TABLE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list140 = iprot.readListBegin(); + struct.success = new ArrayList(_list140.size); + TResult _elem141; + for (int _i142 = 0; _i142 < _list140.size; ++_i142) + { + _elem141 = new TResult(); + _elem141.read(iprot); + struct.success.add(_elem141); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TPUT + case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tput = new TPut(); - struct.tput.read(iprot); - struct.setTputIsSet(true); + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -5390,18 +6117,25 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, put_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getMultiple_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.table != null) { - oprot.writeFieldBegin(TABLE_FIELD_DESC); - oprot.writeBinary(struct.table); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TResult _iter143 : struct.success) + { + _iter143.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } - if (struct.tput != null) { - oprot.writeFieldBegin(TPUT_FIELD_DESC); - struct.tput.write(oprot); + if (struct.io != null) { + oprot.writeFieldBegin(IO_FIELD_DESC); + struct.io.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -5410,50 +6144,98 @@ public class THBaseService { } - private static class put_argsTupleSchemeFactory implements SchemeFactory { - public put_argsTupleScheme getScheme() { - return new put_argsTupleScheme(); + private static class getMultiple_resultTupleSchemeFactory implements SchemeFactory { + public getMultiple_resultTupleScheme getScheme() { + return new getMultiple_resultTupleScheme(); } } - private static class put_argsTupleScheme extends TupleScheme { + private static class getMultiple_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getMultiple_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeBinary(struct.table); - struct.tput.write(oprot); + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIo()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (TResult _iter144 : struct.success) + { + _iter144.write(oprot); + } + } + } + if (struct.isSetIo()) { + struct.io.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getMultiple_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); - struct.tput = new TPut(); - struct.tput.read(iprot); - struct.setTputIsSet(true); + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list145.size); + TResult _elem146; + for (int _i147 = 0; _i147 < _list145.size; ++_i147) + { + _elem146 = new TResult(); + _elem146.read(iprot); + struct.success.add(_elem146); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); + } } } } - public static class put_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("put_result"); + public static class put_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("put_args"); - private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("tput", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new put_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new put_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new put_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new put_argsTupleSchemeFactory()); } - public TIOError io; // required + /** + * the table to put data in + */ + public ByteBuffer table; // required + /** + * the TPut to put + */ + public TPut tput; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - IO((short)1, "io"); + /** + * the table to put data in + */ + TABLE((short)1, "table"), + /** + * the TPut to put + */ + TPUT((short)2, "tput"); private static final Map byName = new HashMap(); @@ -5468,8 +6250,10 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IO - return IO; + case 1: // TABLE + return TABLE; + case 2: // TPUT + return TPUT; default: return null; } @@ -5513,71 +6297,133 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TPUT, new org.apache.thrift.meta_data.FieldMetaData("tput", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_args.class, metaDataMap); } - public put_result() { + public put_args() { } - public put_result( - TIOError io) + public put_args( + ByteBuffer table, + TPut tput) { this(); - this.io = io; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tput = tput; } /** * Performs a deep copy on other. */ - public put_result(put_result other) { - if (other.isSetIo()) { - this.io = new TIOError(other.io); + public put_args(put_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); + } + if (other.isSetTput()) { + this.tput = new TPut(other.tput); } } - public put_result deepCopy() { - return new put_result(this); + public put_args deepCopy() { + return new put_args(this); } @Override public void clear() { - this.io = null; + this.table = null; + this.tput = null; } - public TIOError getIo() { - return this.io; + /** + * the table to put data in + */ + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); } - public put_result setIo(TIOError io) { - this.io = io; + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); + } + + /** + * the table to put data in + */ + public put_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public void unsetIo() { - this.io = null; + public put_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + return this; } - /** Returns true if field io is set (has been assigned a value) and false otherwise */ - public boolean isSetIo() { - return this.io != null; + public void unsetTable() { + this.table = null; } - public void setIoIsSet(boolean value) { + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; + } + + public void setTableIsSet(boolean value) { if (!value) { - this.io = null; + this.table = null; + } + } + + /** + * the TPut to put + */ + public TPut getTput() { + return this.tput; + } + + /** + * the TPut to put + */ + public put_args setTput(TPut tput) { + this.tput = tput; + return this; + } + + public void unsetTput() { + this.tput = null; + } + + /** Returns true if field tput is set (has been assigned a value) and false otherwise */ + public boolean isSetTput() { + return this.tput != null; + } + + public void setTputIsSet(boolean value) { + if (!value) { + this.tput = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case IO: + case TABLE: if (value == null) { - unsetIo(); + unsetTable(); } else { - setIo((TIOError)value); + setTable((ByteBuffer)value); + } + break; + + case TPUT: + if (value == null) { + unsetTput(); + } else { + setTput((TPut)value); } break; @@ -5586,8 +6432,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case IO: - return getIo(); + case TABLE: + return getTable(); + + case TPUT: + return getTput(); } throw new IllegalStateException(); @@ -5600,8 +6449,10 @@ public class THBaseService { } switch (field) { - case IO: - return isSetIo(); + case TABLE: + return isSetTable(); + case TPUT: + return isSetTput(); } throw new IllegalStateException(); } @@ -5610,21 +6461,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof put_result) - return this.equals((put_result)that); + if (that instanceof put_args) + return this.equals((put_args)that); return false; } - public boolean equals(put_result that) { + public boolean equals(put_args that) { if (that == null) return false; - boolean this_present_io = true && this.isSetIo(); - boolean that_present_io = true && that.isSetIo(); - if (this_present_io || that_present_io) { - if (!(this_present_io && that_present_io)) + boolean this_present_table = true && this.isSetTable(); + boolean that_present_table = true && that.isSetTable(); + if (this_present_table || that_present_table) { + if (!(this_present_table && that_present_table)) return false; - if (!this.io.equals(that.io)) + if (!this.table.equals(that.table)) + return false; + } + + boolean this_present_tput = true && this.isSetTput(); + boolean that_present_tput = true && that.isSetTput(); + if (this_present_tput || that_present_tput) { + if (!(this_present_tput && that_present_tput)) + return false; + if (!this.tput.equals(that.tput)) return false; } @@ -5633,30 +6493,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_io = true && (isSetIo()); - builder.append(present_io); - if (present_io) - builder.append(io); + boolean present_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); - return builder.toHashCode(); + boolean present_tput = true && (isSetTput()); + list.add(present_tput); + if (present_tput) + list.add(tput); + + return list.hashCode(); } - public int compareTo(put_result other) { + @Override + public int compareTo(put_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - put_result typedOther = (put_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } - if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + if (isSetTable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTput()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tput, other.tput); if (lastComparison != 0) { return lastComparison; } @@ -5674,18 +6549,26 @@ public class THBaseService { public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + } @Override public String toString() { - StringBuilder sb = new StringBuilder("put_result("); + StringBuilder sb = new StringBuilder("put_args("); boolean first = true; - sb.append("io:"); - if (this.io == null) { + sb.append("table:"); + if (this.table == null) { sb.append("null"); } else { - sb.append(this.io); + org.apache.thrift.TBaseHelper.toString(this.table, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("tput:"); + if (this.tput == null) { + sb.append("null"); + } else { + sb.append(this.tput); } first = false; sb.append(")"); @@ -5694,7 +6577,16 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields + if (table == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); + } + if (tput == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tput' was not present! Struct: " + toString()); + } // check for sub-struct validity + if (tput != null) { + tput.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -5713,15 +6605,15 @@ public class THBaseService { } } - private static class put_resultStandardSchemeFactory implements SchemeFactory { - public put_resultStandardScheme getScheme() { - return new put_resultStandardScheme(); + private static class put_argsStandardSchemeFactory implements SchemeFactory { + public put_argsStandardScheme getScheme() { + return new put_argsStandardScheme(); } } - private static class put_resultStandardScheme extends StandardScheme { + private static class put_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, put_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, put_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -5731,11 +6623,19 @@ public class THBaseService { break; } switch (schemeField.id) { - case 1: // IO + case 1: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TPUT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); + struct.tput = new TPut(); + struct.tput.read(iprot); + struct.setTputIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -5751,13 +6651,18 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, put_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, put_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.io != null) { - oprot.writeFieldBegin(IO_FIELD_DESC); - struct.io.write(oprot); + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeBinary(struct.table); + oprot.writeFieldEnd(); + } + if (struct.tput != null) { + oprot.writeFieldBegin(TPUT_FIELD_DESC); + struct.tput.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -5766,112 +6671,50 @@ public class THBaseService { } - private static class put_resultTupleSchemeFactory implements SchemeFactory { - public put_resultTupleScheme getScheme() { - return new put_resultTupleScheme(); + private static class put_argsTupleSchemeFactory implements SchemeFactory { + public put_argsTupleScheme getScheme() { + return new put_argsTupleScheme(); } } - private static class put_resultTupleScheme extends TupleScheme { + private static class put_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetIo()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetIo()) { - struct.io.write(oprot); - } + oprot.writeBinary(struct.table); + struct.tput.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); - } + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + struct.tput = new TPut(); + struct.tput.read(iprot); + struct.setTputIsSet(true); } } } - public static class checkAndPut_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_args"); + public static class put_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("put_result"); - private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifier", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField TPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("tput", org.apache.thrift.protocol.TType.STRUCT, (short)6); + private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new checkAndPut_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndPut_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new put_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new put_resultTupleSchemeFactory()); } - /** - * to check in and put to - */ - public ByteBuffer table; // required - /** - * row to check - */ - public ByteBuffer row; // required - /** - * column family to check - */ - public ByteBuffer family; // required - /** - * column qualifier to check - */ - public ByteBuffer qualifier; // required - /** - * the expected value, if not provided the - * check is for the non-existence of the - * column in question - */ - public ByteBuffer value; // required - /** - * the TPut to put if the check succeeds - */ - public TPut tput; // required + public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - /** - * to check in and put to - */ - TABLE((short)1, "table"), - /** - * row to check - */ - ROW((short)2, "row"), - /** - * column family to check - */ - FAMILY((short)3, "family"), - /** - * column qualifier to check - */ - QUALIFIER((short)4, "qualifier"), - /** - * the expected value, if not provided the - * check is for the non-existence of the - * column in question - */ - VALUE((short)5, "value"), - /** - * the TPut to put if the check succeeds - */ - TPUT((short)6, "tput"); + IO((short)1, "io"); private static final Map byName = new HashMap(); @@ -5886,18 +6729,8 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TABLE - return TABLE; - case 2: // ROW - return ROW; - case 3: // FAMILY - return FAMILY; - case 4: // QUALIFIER - return QUALIFIER; - case 5: // VALUE - return VALUE; - case 6: // TPUT - return TPUT; + case 1: // IO + return IO; default: return null; } @@ -5941,316 +6774,1984 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TPUT, new org.apache.thrift.meta_data.FieldMetaData("tput", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class))); + tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_result.class, metaDataMap); } - public checkAndPut_args() { + public put_result() { } - public checkAndPut_args( - ByteBuffer table, - ByteBuffer row, - ByteBuffer family, - ByteBuffer qualifier, - ByteBuffer value, - TPut tput) + public put_result( + TIOError io) { this(); - this.table = table; - this.row = row; - this.family = family; - this.qualifier = qualifier; - this.value = value; - this.tput = tput; + this.io = io; } /** * Performs a deep copy on other. */ - public checkAndPut_args(checkAndPut_args other) { - if (other.isSetTable()) { - this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; - } - if (other.isSetRow()) { - this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); -; - } - if (other.isSetFamily()) { - this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); -; - } - if (other.isSetQualifier()) { - this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); -; - } - if (other.isSetValue()) { - this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); -; - } - if (other.isSetTput()) { - this.tput = new TPut(other.tput); + public put_result(put_result other) { + if (other.isSetIo()) { + this.io = new TIOError(other.io); } } - public checkAndPut_args deepCopy() { - return new checkAndPut_args(this); + public put_result deepCopy() { + return new put_result(this); } @Override public void clear() { - this.table = null; - this.row = null; - this.family = null; - this.qualifier = null; - this.value = null; - this.tput = null; - } - - /** - * to check in and put to - */ - public byte[] getTable() { - setTable(org.apache.thrift.TBaseHelper.rightSize(table)); - return table == null ? null : table.array(); - } - - public ByteBuffer bufferForTable() { - return table; + this.io = null; } - /** - * to check in and put to - */ - public checkAndPut_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); - return this; + public TIOError getIo() { + return this.io; } - public checkAndPut_args setTable(ByteBuffer table) { - this.table = table; + public put_result setIo(TIOError io) { + this.io = io; return this; } - public void unsetTable() { - this.table = null; + public void unsetIo() { + this.io = null; } - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; + /** Returns true if field io is set (has been assigned a value) and false otherwise */ + public boolean isSetIo() { + return this.io != null; } - public void setTableIsSet(boolean value) { + public void setIoIsSet(boolean value) { if (!value) { - this.table = null; + this.io = null; } } - /** - * row to check - */ - public byte[] getRow() { - setRow(org.apache.thrift.TBaseHelper.rightSize(row)); - return row == null ? null : row.array(); - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case IO: + if (value == null) { + unsetIo(); + } else { + setIo((TIOError)value); + } + break; - public ByteBuffer bufferForRow() { - return row; + } } - /** - * row to check - */ - public checkAndPut_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); - return this; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case IO: + return getIo(); - public checkAndPut_args setRow(ByteBuffer row) { - this.row = row; - return this; + } + throw new IllegalStateException(); } - public void unsetRow() { - this.row = null; + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case IO: + return isSetIo(); + } + throw new IllegalStateException(); } - /** Returns true if field row is set (has been assigned a value) and false otherwise */ - public boolean isSetRow() { - return this.row != null; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof put_result) + return this.equals((put_result)that); + return false; } - public void setRowIsSet(boolean value) { - if (!value) { - this.row = null; + public boolean equals(put_result that) { + if (that == null) + return false; + + boolean this_present_io = true && this.isSetIo(); + boolean that_present_io = true && that.isSetIo(); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; } - } - /** - * column family to check - */ - public byte[] getFamily() { - setFamily(org.apache.thrift.TBaseHelper.rightSize(family)); - return family == null ? null : family.array(); + return true; } - public ByteBuffer bufferForFamily() { - return family; - } + @Override + public int hashCode() { + List list = new ArrayList(); - /** - * column family to check - */ - public checkAndPut_args setFamily(byte[] family) { - setFamily(family == null ? (ByteBuffer)null : ByteBuffer.wrap(family)); - return this; - } + boolean present_io = true && (isSetIo()); + list.add(present_io); + if (present_io) + list.add(io); - public checkAndPut_args setFamily(ByteBuffer family) { - this.family = family; - return this; + return list.hashCode(); } - public void unsetFamily() { - this.family = null; - } + @Override + public int compareTo(put_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } - /** Returns true if field family is set (has been assigned a value) and false otherwise */ - public boolean isSetFamily() { - return this.family != null; - } + int lastComparison = 0; - public void setFamilyIsSet(boolean value) { - if (!value) { - this.family = null; + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIo()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); + if (lastComparison != 0) { + return lastComparison; + } } + return 0; } - /** + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("put_result("); + boolean first = true; + + sb.append("io:"); + if (this.io == null) { + sb.append("null"); + } else { + sb.append(this.io); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class put_resultStandardSchemeFactory implements SchemeFactory { + public put_resultStandardScheme getScheme() { + return new put_resultStandardScheme(); + } + } + + private static class put_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, put_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // IO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, put_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.io != null) { + oprot.writeFieldBegin(IO_FIELD_DESC); + struct.io.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class put_resultTupleSchemeFactory implements SchemeFactory { + public put_resultTupleScheme getScheme() { + return new put_resultTupleScheme(); + } + } + + private static class put_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetIo()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetIo()) { + struct.io.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); + } + } + } + + } + + public static class checkAndPut_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_args"); + + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifier", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField TPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("tput", org.apache.thrift.protocol.TType.STRUCT, (short)6); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new checkAndPut_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkAndPut_argsTupleSchemeFactory()); + } + + /** + * to check in and put to + */ + public ByteBuffer table; // required + /** + * row to check + */ + public ByteBuffer row; // required + /** + * column family to check + */ + public ByteBuffer family; // required + /** * column qualifier to check */ - public byte[] getQualifier() { - setQualifier(org.apache.thrift.TBaseHelper.rightSize(qualifier)); - return qualifier == null ? null : qualifier.array(); + public ByteBuffer qualifier; // required + /** + * the expected value, if not provided the + * check is for the non-existence of the + * column in question + */ + public ByteBuffer value; // required + /** + * the TPut to put if the check succeeds + */ + public TPut tput; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + /** + * to check in and put to + */ + TABLE((short)1, "table"), + /** + * row to check + */ + ROW((short)2, "row"), + /** + * column family to check + */ + FAMILY((short)3, "family"), + /** + * column qualifier to check + */ + QUALIFIER((short)4, "qualifier"), + /** + * the expected value, if not provided the + * check is for the non-existence of the + * column in question + */ + VALUE((short)5, "value"), + /** + * the TPut to put if the check succeeds + */ + TPUT((short)6, "tput"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // TABLE + return TABLE; + case 2: // ROW + return ROW; + case 3: // FAMILY + return FAMILY; + case 4: // QUALIFIER + return QUALIFIER; + case 5: // VALUE + return VALUE; + case 6: // TPUT + return TPUT; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TPUT, new org.apache.thrift.meta_data.FieldMetaData("tput", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_args.class, metaDataMap); + } + + public checkAndPut_args() { + } + + public checkAndPut_args( + ByteBuffer table, + ByteBuffer row, + ByteBuffer family, + ByteBuffer qualifier, + ByteBuffer value, + TPut tput) + { + this(); + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.family = org.apache.thrift.TBaseHelper.copyBinary(family); + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); + this.tput = tput; + } + + /** + * Performs a deep copy on other. + */ + public checkAndPut_args(checkAndPut_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); + } + if (other.isSetRow()) { + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); + } + if (other.isSetFamily()) { + this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); + } + if (other.isSetQualifier()) { + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); + } + if (other.isSetValue()) { + this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); + } + if (other.isSetTput()) { + this.tput = new TPut(other.tput); + } + } + + public checkAndPut_args deepCopy() { + return new checkAndPut_args(this); + } + + @Override + public void clear() { + this.table = null; + this.row = null; + this.family = null; + this.qualifier = null; + this.value = null; + this.tput = null; + } + + /** + * to check in and put to + */ + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); + } + + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); + } + + /** + * to check in and put to + */ + public checkAndPut_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + return this; + } + + public checkAndPut_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + return this; + } + + public void unsetTable() { + this.table = null; + } + + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; + } + + public void setTableIsSet(boolean value) { + if (!value) { + this.table = null; + } + } + + /** + * row to check + */ + public byte[] getRow() { + setRow(org.apache.thrift.TBaseHelper.rightSize(row)); + return row == null ? null : row.array(); + } + + public ByteBuffer bufferForRow() { + return org.apache.thrift.TBaseHelper.copyBinary(row); + } + + /** + * row to check + */ + public checkAndPut_args setRow(byte[] row) { + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + return this; + } + + public checkAndPut_args setRow(ByteBuffer row) { + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + return this; + } + + public void unsetRow() { + this.row = null; + } + + /** Returns true if field row is set (has been assigned a value) and false otherwise */ + public boolean isSetRow() { + return this.row != null; + } + + public void setRowIsSet(boolean value) { + if (!value) { + this.row = null; + } + } + + /** + * column family to check + */ + public byte[] getFamily() { + setFamily(org.apache.thrift.TBaseHelper.rightSize(family)); + return family == null ? null : family.array(); + } + + public ByteBuffer bufferForFamily() { + return org.apache.thrift.TBaseHelper.copyBinary(family); + } + + /** + * column family to check + */ + public checkAndPut_args setFamily(byte[] family) { + this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + return this; + } + + public checkAndPut_args setFamily(ByteBuffer family) { + this.family = org.apache.thrift.TBaseHelper.copyBinary(family); + return this; + } + + public void unsetFamily() { + this.family = null; + } + + /** Returns true if field family is set (has been assigned a value) and false otherwise */ + public boolean isSetFamily() { + return this.family != null; + } + + public void setFamilyIsSet(boolean value) { + if (!value) { + this.family = null; + } + } + + /** + * column qualifier to check + */ + public byte[] getQualifier() { + setQualifier(org.apache.thrift.TBaseHelper.rightSize(qualifier)); + return qualifier == null ? null : qualifier.array(); + } + + public ByteBuffer bufferForQualifier() { + return org.apache.thrift.TBaseHelper.copyBinary(qualifier); + } + + /** + * column qualifier to check + */ + public checkAndPut_args setQualifier(byte[] qualifier) { + this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + return this; + } + + public checkAndPut_args setQualifier(ByteBuffer qualifier) { + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); + return this; + } + + public void unsetQualifier() { + this.qualifier = null; + } + + /** Returns true if field qualifier is set (has been assigned a value) and false otherwise */ + public boolean isSetQualifier() { + return this.qualifier != null; + } + + public void setQualifierIsSet(boolean value) { + if (!value) { + this.qualifier = null; + } + } + + /** + * the expected value, if not provided the + * check is for the non-existence of the + * column in question + */ + public byte[] getValue() { + setValue(org.apache.thrift.TBaseHelper.rightSize(value)); + return value == null ? null : value.array(); + } + + public ByteBuffer bufferForValue() { + return org.apache.thrift.TBaseHelper.copyBinary(value); + } + + /** + * the expected value, if not provided the + * check is for the non-existence of the + * column in question + */ + public checkAndPut_args setValue(byte[] value) { + this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + return this; + } + + public checkAndPut_args setValue(ByteBuffer value) { + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); + return this; + } + + public void unsetValue() { + this.value = null; + } + + /** Returns true if field value is set (has been assigned a value) and false otherwise */ + public boolean isSetValue() { + return this.value != null; + } + + public void setValueIsSet(boolean value) { + if (!value) { + this.value = null; + } + } + + /** + * the TPut to put if the check succeeds + */ + public TPut getTput() { + return this.tput; + } + + /** + * the TPut to put if the check succeeds + */ + public checkAndPut_args setTput(TPut tput) { + this.tput = tput; + return this; + } + + public void unsetTput() { + this.tput = null; + } + + /** Returns true if field tput is set (has been assigned a value) and false otherwise */ + public boolean isSetTput() { + return this.tput != null; + } + + public void setTputIsSet(boolean value) { + if (!value) { + this.tput = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TABLE: + if (value == null) { + unsetTable(); + } else { + setTable((ByteBuffer)value); + } + break; + + case ROW: + if (value == null) { + unsetRow(); + } else { + setRow((ByteBuffer)value); + } + break; + + case FAMILY: + if (value == null) { + unsetFamily(); + } else { + setFamily((ByteBuffer)value); + } + break; + + case QUALIFIER: + if (value == null) { + unsetQualifier(); + } else { + setQualifier((ByteBuffer)value); + } + break; + + case VALUE: + if (value == null) { + unsetValue(); + } else { + setValue((ByteBuffer)value); + } + break; + + case TPUT: + if (value == null) { + unsetTput(); + } else { + setTput((TPut)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TABLE: + return getTable(); + + case ROW: + return getRow(); + + case FAMILY: + return getFamily(); + + case QUALIFIER: + return getQualifier(); + + case VALUE: + return getValue(); + + case TPUT: + return getTput(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case TABLE: + return isSetTable(); + case ROW: + return isSetRow(); + case FAMILY: + return isSetFamily(); + case QUALIFIER: + return isSetQualifier(); + case VALUE: + return isSetValue(); + case TPUT: + return isSetTput(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof checkAndPut_args) + return this.equals((checkAndPut_args)that); + return false; + } + + public boolean equals(checkAndPut_args that) { + if (that == null) + return false; + + boolean this_present_table = true && this.isSetTable(); + boolean that_present_table = true && that.isSetTable(); + if (this_present_table || that_present_table) { + if (!(this_present_table && that_present_table)) + return false; + if (!this.table.equals(that.table)) + return false; + } + + boolean this_present_row = true && this.isSetRow(); + boolean that_present_row = true && that.isSetRow(); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!this.row.equals(that.row)) + return false; + } + + boolean this_present_family = true && this.isSetFamily(); + boolean that_present_family = true && that.isSetFamily(); + if (this_present_family || that_present_family) { + if (!(this_present_family && that_present_family)) + return false; + if (!this.family.equals(that.family)) + return false; + } + + boolean this_present_qualifier = true && this.isSetQualifier(); + boolean that_present_qualifier = true && that.isSetQualifier(); + if (this_present_qualifier || that_present_qualifier) { + if (!(this_present_qualifier && that_present_qualifier)) + return false; + if (!this.qualifier.equals(that.qualifier)) + return false; + } + + boolean this_present_value = true && this.isSetValue(); + boolean that_present_value = true && that.isSetValue(); + if (this_present_value || that_present_value) { + if (!(this_present_value && that_present_value)) + return false; + if (!this.value.equals(that.value)) + return false; + } + + boolean this_present_tput = true && this.isSetTput(); + boolean that_present_tput = true && that.isSetTput(); + if (this_present_tput || that_present_tput) { + if (!(this_present_tput && that_present_tput)) + return false; + if (!this.tput.equals(that.tput)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); + + boolean present_row = true && (isSetRow()); + list.add(present_row); + if (present_row) + list.add(row); + + boolean present_family = true && (isSetFamily()); + list.add(present_family); + if (present_family) + list.add(family); + + boolean present_qualifier = true && (isSetQualifier()); + list.add(present_qualifier); + if (present_qualifier) + list.add(qualifier); + + boolean present_value = true && (isSetValue()); + list.add(present_value); + if (present_value) + list.add(value); + + boolean present_tput = true && (isSetTput()); + list.add(present_tput); + if (present_tput) + list.add(tput); + + return list.hashCode(); + } + + @Override + public int compareTo(checkAndPut_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRow()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFamily()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, other.family); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetQualifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValue()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTput()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tput, other.tput); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("checkAndPut_args("); + boolean first = true; + + sb.append("table:"); + if (this.table == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.table, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("row:"); + if (this.row == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.row, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("family:"); + if (this.family == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.family, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("qualifier:"); + if (this.qualifier == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("value:"); + if (this.value == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.value, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("tput:"); + if (this.tput == null) { + sb.append("null"); + } else { + sb.append(this.tput); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (table == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); + } + if (row == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' was not present! Struct: " + toString()); + } + if (family == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'family' was not present! Struct: " + toString()); + } + if (qualifier == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'qualifier' was not present! Struct: " + toString()); + } + if (tput == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tput' was not present! Struct: " + toString()); + } + // check for sub-struct validity + if (tput != null) { + tput.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class checkAndPut_argsStandardSchemeFactory implements SchemeFactory { + public checkAndPut_argsStandardScheme getScheme() { + return new checkAndPut_argsStandardScheme(); + } + } + + private static class checkAndPut_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FAMILY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.family = iprot.readBinary(); + struct.setFamilyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // QUALIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.qualifier = iprot.readBinary(); + struct.setQualifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readBinary(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // TPUT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tput = new TPut(); + struct.tput.read(iprot); + struct.setTputIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndPut_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeBinary(struct.table); + oprot.writeFieldEnd(); + } + if (struct.row != null) { + oprot.writeFieldBegin(ROW_FIELD_DESC); + oprot.writeBinary(struct.row); + oprot.writeFieldEnd(); + } + if (struct.family != null) { + oprot.writeFieldBegin(FAMILY_FIELD_DESC); + oprot.writeBinary(struct.family); + oprot.writeFieldEnd(); + } + if (struct.qualifier != null) { + oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); + oprot.writeBinary(struct.qualifier); + oprot.writeFieldEnd(); + } + if (struct.value != null) { + oprot.writeFieldBegin(VALUE_FIELD_DESC); + oprot.writeBinary(struct.value); + oprot.writeFieldEnd(); + } + if (struct.tput != null) { + oprot.writeFieldBegin(TPUT_FIELD_DESC); + struct.tput.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class checkAndPut_argsTupleSchemeFactory implements SchemeFactory { + public checkAndPut_argsTupleScheme getScheme() { + return new checkAndPut_argsTupleScheme(); + } + } + + private static class checkAndPut_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeBinary(struct.table); + oprot.writeBinary(struct.row); + oprot.writeBinary(struct.family); + oprot.writeBinary(struct.qualifier); + struct.tput.write(oprot); + BitSet optionals = new BitSet(); + if (struct.isSetValue()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetValue()) { + oprot.writeBinary(struct.value); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + struct.family = iprot.readBinary(); + struct.setFamilyIsSet(true); + struct.qualifier = iprot.readBinary(); + struct.setQualifierIsSet(true); + struct.tput = new TPut(); + struct.tput.read(iprot); + struct.setTputIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readBinary(); + struct.setValueIsSet(true); + } + } + } + + } + + public static class checkAndPut_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new checkAndPut_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkAndPut_resultTupleSchemeFactory()); + } + + public boolean success; // required + public TIOError io; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IO((short)1, "io"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IO + return IO; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_result.class, metaDataMap); + } + + public checkAndPut_result() { + } + + public checkAndPut_result( + boolean success, + TIOError io) + { + this(); + this.success = success; + setSuccessIsSet(true); + this.io = io; + } + + /** + * Performs a deep copy on other. + */ + public checkAndPut_result(checkAndPut_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + if (other.isSetIo()) { + this.io = new TIOError(other.io); + } + } + + public checkAndPut_result deepCopy() { + return new checkAndPut_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + this.io = null; + } + + public boolean isSuccess() { + return this.success; + } + + public checkAndPut_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public TIOError getIo() { + return this.io; + } + + public checkAndPut_result setIo(TIOError io) { + this.io = io; + return this; + } + + public void unsetIo() { + this.io = null; + } + + /** Returns true if field io is set (has been assigned a value) and false otherwise */ + public boolean isSetIo() { + return this.io != null; + } + + public void setIoIsSet(boolean value) { + if (!value) { + this.io = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + case IO: + if (value == null) { + unsetIo(); + } else { + setIo((TIOError)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + case IO: + return getIo(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IO: + return isSetIo(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof checkAndPut_result) + return this.equals((checkAndPut_result)that); + return false; + } + + public boolean equals(checkAndPut_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.isSetIo(); + boolean that_present_io = true && that.isSetIo(); + 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; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true; + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_io = true && (isSetIo()); + list.add(present_io); + if (present_io) + list.add(io); + + return list.hashCode(); + } + + @Override + public int compareTo(checkAndPut_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIo()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("checkAndPut_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + if (!first) sb.append(", "); + sb.append("io:"); + if (this.io == null) { + sb.append("null"); + } else { + sb.append(this.io); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class checkAndPut_resultStandardSchemeFactory implements SchemeFactory { + public checkAndPut_resultStandardScheme getScheme() { + return new checkAndPut_resultStandardScheme(); + } + } + + private static class checkAndPut_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndPut_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + if (struct.io != null) { + oprot.writeFieldBegin(IO_FIELD_DESC); + struct.io.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class checkAndPut_resultTupleSchemeFactory implements SchemeFactory { + public checkAndPut_resultTupleScheme getScheme() { + return new checkAndPut_resultTupleScheme(); + } + } + + private static class checkAndPut_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIo()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + if (struct.isSetIo()) { + struct.io.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); + } + } + } + + } + + public static class putMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putMultiple_args"); + + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("tputs", org.apache.thrift.protocol.TType.LIST, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new putMultiple_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new putMultiple_argsTupleSchemeFactory()); + } + + /** + * the table to put data in + */ + public ByteBuffer table; // required + /** + * a list of TPuts to commit + */ + public List tputs; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + /** + * the table to put data in + */ + TABLE((short)1, "table"), + /** + * a list of TPuts to commit + */ + TPUTS((short)2, "tputs"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // TABLE + return TABLE; + case 2: // TPUTS + return TPUTS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } } - public ByteBuffer bufferForQualifier() { - return qualifier; + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TPUTS, new org.apache.thrift.meta_data.FieldMetaData("tputs", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putMultiple_args.class, metaDataMap); } - /** - * column qualifier to check - */ - public checkAndPut_args setQualifier(byte[] qualifier) { - setQualifier(qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(qualifier)); - return this; + public putMultiple_args() { } - public checkAndPut_args setQualifier(ByteBuffer qualifier) { - this.qualifier = qualifier; - return this; + public putMultiple_args( + ByteBuffer table, + List tputs) + { + this(); + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tputs = tputs; } - public void unsetQualifier() { - this.qualifier = null; + /** + * Performs a deep copy on other. + */ + public putMultiple_args(putMultiple_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); + } + if (other.isSetTputs()) { + List __this__tputs = new ArrayList(other.tputs.size()); + for (TPut other_element : other.tputs) { + __this__tputs.add(new TPut(other_element)); + } + this.tputs = __this__tputs; + } } - /** Returns true if field qualifier is set (has been assigned a value) and false otherwise */ - public boolean isSetQualifier() { - return this.qualifier != null; + public putMultiple_args deepCopy() { + return new putMultiple_args(this); } - public void setQualifierIsSet(boolean value) { - if (!value) { - this.qualifier = null; - } + @Override + public void clear() { + this.table = null; + this.tputs = null; } /** - * the expected value, if not provided the - * check is for the non-existence of the - * column in question + * the table to put data in */ - public byte[] getValue() { - setValue(org.apache.thrift.TBaseHelper.rightSize(value)); - return value == null ? null : value.array(); + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); } - public ByteBuffer bufferForValue() { - return value; + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** - * the expected value, if not provided the - * check is for the non-existence of the - * column in question + * the table to put data in */ - public checkAndPut_args setValue(byte[] value) { - setValue(value == null ? (ByteBuffer)null : ByteBuffer.wrap(value)); + public putMultiple_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public checkAndPut_args setValue(ByteBuffer value) { - this.value = value; + public putMultiple_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } - public void unsetValue() { - this.value = null; + public void unsetTable() { + this.table = null; } - /** Returns true if field value is set (has been assigned a value) and false otherwise */ - public boolean isSetValue() { - return this.value != null; + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; } - public void setValueIsSet(boolean value) { + public void setTableIsSet(boolean value) { if (!value) { - this.value = null; + this.table = null; + } + } + + public int getTputsSize() { + return (this.tputs == null) ? 0 : this.tputs.size(); + } + + public java.util.Iterator getTputsIterator() { + return (this.tputs == null) ? null : this.tputs.iterator(); + } + + public void addToTputs(TPut elem) { + if (this.tputs == null) { + this.tputs = new ArrayList(); } + this.tputs.add(elem); } /** - * the TPut to put if the check succeeds + * a list of TPuts to commit */ - public TPut getTput() { - return this.tput; + public List getTputs() { + return this.tputs; } /** - * the TPut to put if the check succeeds + * a list of TPuts to commit */ - public checkAndPut_args setTput(TPut tput) { - this.tput = tput; + public putMultiple_args setTputs(List tputs) { + this.tputs = tputs; return this; } - public void unsetTput() { - this.tput = null; + public void unsetTputs() { + this.tputs = null; } - /** Returns true if field tput is set (has been assigned a value) and false otherwise */ - public boolean isSetTput() { - return this.tput != null; + /** Returns true if field tputs is set (has been assigned a value) and false otherwise */ + public boolean isSetTputs() { + return this.tputs != null; } - public void setTputIsSet(boolean value) { + public void setTputsIsSet(boolean value) { if (!value) { - this.tput = null; + this.tputs = null; } } @@ -6264,43 +8765,11 @@ public class THBaseService { } break; - case ROW: - if (value == null) { - unsetRow(); - } else { - setRow((ByteBuffer)value); - } - break; - - case FAMILY: - if (value == null) { - unsetFamily(); - } else { - setFamily((ByteBuffer)value); - } - break; - - case QUALIFIER: - if (value == null) { - unsetQualifier(); - } else { - setQualifier((ByteBuffer)value); - } - break; - - case VALUE: - if (value == null) { - unsetValue(); - } else { - setValue((ByteBuffer)value); - } - break; - - case TPUT: + case TPUTS: if (value == null) { - unsetTput(); + unsetTputs(); } else { - setTput((TPut)value); + setTputs((List)value); } break; @@ -6312,20 +8781,8 @@ public class THBaseService { case TABLE: return getTable(); - case ROW: - return getRow(); - - case FAMILY: - return getFamily(); - - case QUALIFIER: - return getQualifier(); - - case VALUE: - return getValue(); - - case TPUT: - return getTput(); + case TPUTS: + return getTputs(); } throw new IllegalStateException(); @@ -6340,16 +8797,8 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case ROW: - return isSetRow(); - case FAMILY: - return isSetFamily(); - case QUALIFIER: - return isSetQualifier(); - case VALUE: - return isSetValue(); - case TPUT: - return isSetTput(); + case TPUTS: + return isSetTputs(); } throw new IllegalStateException(); } @@ -6358,12 +8807,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof checkAndPut_args) - return this.equals((checkAndPut_args)that); + if (that instanceof putMultiple_args) + return this.equals((putMultiple_args)that); return false; } - public boolean equals(checkAndPut_args that) { + public boolean equals(putMultiple_args that) { if (that == null) return false; @@ -6376,48 +8825,12 @@ public class THBaseService { return false; } - boolean this_present_row = true && this.isSetRow(); - boolean that_present_row = true && that.isSetRow(); - if (this_present_row || that_present_row) { - if (!(this_present_row && that_present_row)) - return false; - if (!this.row.equals(that.row)) - return false; - } - - boolean this_present_family = true && this.isSetFamily(); - boolean that_present_family = true && that.isSetFamily(); - if (this_present_family || that_present_family) { - if (!(this_present_family && that_present_family)) - return false; - if (!this.family.equals(that.family)) - return false; - } - - boolean this_present_qualifier = true && this.isSetQualifier(); - boolean that_present_qualifier = true && that.isSetQualifier(); - if (this_present_qualifier || that_present_qualifier) { - if (!(this_present_qualifier && that_present_qualifier)) - return false; - if (!this.qualifier.equals(that.qualifier)) - return false; - } - - boolean this_present_value = true && this.isSetValue(); - boolean that_present_value = true && that.isSetValue(); - if (this_present_value || that_present_value) { - if (!(this_present_value && that_present_value)) - return false; - if (!this.value.equals(that.value)) - return false; - } - - boolean this_present_tput = true && this.isSetTput(); - boolean that_present_tput = true && that.isSetTput(); - if (this_present_tput || that_present_tput) { - if (!(this_present_tput && that_present_tput)) + boolean this_present_tputs = true && this.isSetTputs(); + boolean that_present_tputs = true && that.isSetTputs(); + if (this_present_tputs || that_present_tputs) { + if (!(this_present_tputs && that_present_tputs)) return false; - if (!this.tput.equals(that.tput)) + if (!this.tputs.equals(that.tputs)) return false; } @@ -6426,105 +8839,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); - - boolean present_row = true && (isSetRow()); - builder.append(present_row); - if (present_row) - builder.append(row); - - boolean present_family = true && (isSetFamily()); - builder.append(present_family); - if (present_family) - builder.append(family); - - boolean present_qualifier = true && (isSetQualifier()); - builder.append(present_qualifier); - if (present_qualifier) - builder.append(qualifier); - - boolean present_value = true && (isSetValue()); - builder.append(present_value); - if (present_value) - builder.append(value); + list.add(table); - boolean present_tput = true && (isSetTput()); - builder.append(present_tput); - if (present_tput) - builder.append(tput); + boolean present_tputs = true && (isSetTputs()); + list.add(present_tputs); + if (present_tputs) + list.add(tputs); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(checkAndPut_args other) { + @Override + public int compareTo(putMultiple_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - checkAndPut_args typedOther = (checkAndPut_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(typedOther.isSetFamily()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFamily()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, typedOther.family); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(typedOther.isSetQualifier()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetQualifier()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, typedOther.qualifier); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTput()).compareTo(typedOther.isSetTput()); + lastComparison = Boolean.valueOf(isSetTputs()).compareTo(other.isSetTputs()); if (lastComparison != 0) { return lastComparison; } - if (isSetTput()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tput, typedOther.tput); + if (isSetTputs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tputs, other.tputs); if (lastComparison != 0) { return lastComparison; } @@ -6546,7 +8899,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("checkAndPut_args("); + StringBuilder sb = new StringBuilder("putMultiple_args("); boolean first = true; sb.append("table:"); @@ -6557,43 +8910,11 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("row:"); - if (this.row == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.row, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("family:"); - if (this.family == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.family, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("qualifier:"); - if (this.qualifier == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("value:"); - if (this.value == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.value, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("tput:"); - if (this.tput == null) { + sb.append("tputs:"); + if (this.tputs == null) { sb.append("null"); } else { - sb.append(this.tput); + sb.append(this.tputs); } first = false; sb.append(")"); @@ -6605,22 +8926,10 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (row == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' was not present! Struct: " + toString()); - } - if (family == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'family' was not present! Struct: " + toString()); - } - if (qualifier == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'qualifier' was not present! Struct: " + toString()); - } - if (tput == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tput' was not present! Struct: " + toString()); + if (tputs == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tputs' was not present! Struct: " + toString()); } // check for sub-struct validity - if (tput != null) { - tput.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -6639,15 +8948,15 @@ public class THBaseService { } } - private static class checkAndPut_argsStandardSchemeFactory implements SchemeFactory { - public checkAndPut_argsStandardScheme getScheme() { - return new checkAndPut_argsStandardScheme(); + private static class putMultiple_argsStandardSchemeFactory implements SchemeFactory { + public putMultiple_argsStandardScheme getScheme() { + return new putMultiple_argsStandardScheme(); } } - private static class checkAndPut_argsStandardScheme extends StandardScheme { + private static class putMultiple_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, putMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -6665,43 +8974,21 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // FAMILY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.family = iprot.readBinary(); - struct.setFamilyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // QUALIFIER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.qualifier = iprot.readBinary(); - struct.setQualifierIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readBinary(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // TPUT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tput = new TPut(); - struct.tput.read(iprot); - struct.setTputIsSet(true); + case 2: // TPUTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); + struct.tputs = new ArrayList(_list148.size); + TPut _elem149; + for (int _i150 = 0; _i150 < _list148.size; ++_i150) + { + _elem149 = new TPut(); + _elem149.read(iprot); + struct.tputs.add(_elem149); + } + iprot.readListEnd(); + } + struct.setTputsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6717,7 +9004,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndPut_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, putMultiple_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -6726,29 +9013,16 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.row != null) { - oprot.writeFieldBegin(ROW_FIELD_DESC); - oprot.writeBinary(struct.row); - oprot.writeFieldEnd(); - } - if (struct.family != null) { - oprot.writeFieldBegin(FAMILY_FIELD_DESC); - oprot.writeBinary(struct.family); - oprot.writeFieldEnd(); - } - if (struct.qualifier != null) { - oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); - oprot.writeBinary(struct.qualifier); - oprot.writeFieldEnd(); - } - if (struct.value != null) { - oprot.writeFieldBegin(VALUE_FIELD_DESC); - oprot.writeBinary(struct.value); - oprot.writeFieldEnd(); - } - if (struct.tput != null) { - oprot.writeFieldBegin(TPUT_FIELD_DESC); - struct.tput.write(oprot); + if (struct.tputs != null) { + oprot.writeFieldBegin(TPUTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tputs.size())); + for (TPut _iter151 : struct.tputs) + { + _iter151.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -6757,74 +9031,64 @@ public class THBaseService { } - private static class checkAndPut_argsTupleSchemeFactory implements SchemeFactory { - public checkAndPut_argsTupleScheme getScheme() { - return new checkAndPut_argsTupleScheme(); + private static class putMultiple_argsTupleSchemeFactory implements SchemeFactory { + public putMultiple_argsTupleScheme getScheme() { + return new putMultiple_argsTupleScheme(); } } - private static class checkAndPut_argsTupleScheme extends TupleScheme { + private static class putMultiple_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, putMultiple_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - oprot.writeBinary(struct.row); - oprot.writeBinary(struct.family); - oprot.writeBinary(struct.qualifier); - struct.tput.write(oprot); - BitSet optionals = new BitSet(); - if (struct.isSetValue()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetValue()) { - oprot.writeBinary(struct.value); + { + oprot.writeI32(struct.tputs.size()); + for (TPut _iter152 : struct.tputs) + { + _iter152.write(oprot); + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, putMultiple_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - struct.family = iprot.readBinary(); - struct.setFamilyIsSet(true); - struct.qualifier = iprot.readBinary(); - struct.setQualifierIsSet(true); - struct.tput = new TPut(); - struct.tput.read(iprot); - struct.setTputIsSet(true); - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readBinary(); - struct.setValueIsSet(true); + { + org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tputs = new ArrayList(_list153.size); + TPut _elem154; + for (int _i155 = 0; _i155 < _list153.size; ++_i155) + { + _elem154 = new TPut(); + _elem154.read(iprot); + struct.tputs.add(_elem154); + } } + struct.setTputsIsSet(true); } } } - public static class checkAndPut_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_result"); + public static class putMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putMultiple_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new checkAndPut_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndPut_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new putMultiple_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new putMultiple_resultTupleSchemeFactory()); } - public boolean success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), IO((short)1, "io"); private static final Map byName = new HashMap(); @@ -6840,8 +9104,6 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // IO return IO; default: @@ -6884,82 +9146,48 @@ public class THBaseService { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putMultiple_result.class, metaDataMap); } - public checkAndPut_result() { + public putMultiple_result() { } - public checkAndPut_result( - boolean success, + public putMultiple_result( TIOError io) { this(); - this.success = success; - setSuccessIsSet(true); this.io = io; } /** * Performs a deep copy on other. */ - public checkAndPut_result(checkAndPut_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public putMultiple_result(putMultiple_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public checkAndPut_result deepCopy() { - return new checkAndPut_result(this); + public putMultiple_result deepCopy() { + return new putMultiple_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.io = null; } - public boolean isSuccess() { - return this.success; - } - - public checkAndPut_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); - return this; - } - - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); - } - public TIOError getIo() { return this.io; } - public checkAndPut_result setIo(TIOError io) { + public putMultiple_result setIo(TIOError io) { this.io = io; return this; } @@ -6981,14 +9209,6 @@ public class THBaseService { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Boolean)value); - } - break; - case IO: if (value == null) { unsetIo(); @@ -7002,9 +9222,6 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); - case IO: return getIo(); @@ -7019,8 +9236,6 @@ public class THBaseService { } switch (field) { - case SUCCESS: - return isSetSuccess(); case IO: return isSetIo(); } @@ -7031,24 +9246,15 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof checkAndPut_result) - return this.equals((checkAndPut_result)that); + if (that instanceof putMultiple_result) + return this.equals((putMultiple_result)that); return false; } - public boolean equals(checkAndPut_result that) { + public boolean equals(putMultiple_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.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { @@ -7063,45 +9269,30 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); - - boolean present_success = true; - builder.append(present_success); - if (present_success) - builder.append(success); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(checkAndPut_result other) { + @Override + public int compareTo(putMultiple_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - checkAndPut_result typedOther = (checkAndPut_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -7123,13 +9314,9 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("checkAndPut_result("); + StringBuilder sb = new StringBuilder("putMultiple_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); - first = false; - if (!first) sb.append(", "); sb.append("io:"); if (this.io == null) { sb.append("null"); @@ -7156,23 +9343,21 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class checkAndPut_resultStandardSchemeFactory implements SchemeFactory { - public checkAndPut_resultStandardScheme getScheme() { - return new checkAndPut_resultStandardScheme(); + private static class putMultiple_resultStandardSchemeFactory implements SchemeFactory { + public putMultiple_resultStandardScheme getScheme() { + return new putMultiple_resultStandardScheme(); } } - private static class checkAndPut_resultStandardScheme extends StandardScheme { + private static class putMultiple_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, putMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7182,14 +9367,6 @@ public class THBaseService { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.io = new TIOError(); @@ -7210,15 +9387,10 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndPut_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, putMultiple_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); - oprot.writeFieldEnd(); - } if (struct.io != null) { oprot.writeFieldBegin(IO_FIELD_DESC); struct.io.write(oprot); @@ -7230,42 +9402,32 @@ public class THBaseService { } - private static class checkAndPut_resultTupleSchemeFactory implements SchemeFactory { - public checkAndPut_resultTupleScheme getScheme() { - return new checkAndPut_resultTupleScheme(); + private static class putMultiple_resultTupleSchemeFactory implements SchemeFactory { + public putMultiple_resultTupleScheme getScheme() { + return new putMultiple_resultTupleScheme(); } } - private static class checkAndPut_resultTupleScheme extends TupleScheme { + private static class putMultiple_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, putMultiple_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetIo()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + optionals.set(0); } + oprot.writeBitSet(optionals, 1); if (struct.isSetIo()) { struct.io.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, putMultiple_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); @@ -7275,37 +9437,37 @@ public class THBaseService { } - public static class putMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putMultiple_args"); + public static class deleteSingle_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSingle_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("tputs", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField TDELETE_FIELD_DESC = new org.apache.thrift.protocol.TField("tdelete", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new putMultiple_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new putMultiple_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteSingle_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteSingle_argsTupleSchemeFactory()); } /** - * the table to put data in + * the table to delete from */ public ByteBuffer table; // required /** - * a list of TPuts to commit + * the TDelete to delete */ - public List tputs; // required + public TDelete tdelete; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * the table to put data in + * the table to delete from */ TABLE((short)1, "table"), /** - * a list of TPuts to commit + * the TDelete to delete */ - TPUTS((short)2, "tputs"); + TDELETE((short)2, "tdelete"); private static final Map byName = new HashMap(); @@ -7322,8 +9484,8 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // TPUTS - return TPUTS; + case 2: // TDELETE + return TDELETE; default: return null; } @@ -7369,54 +9531,48 @@ public class THBaseService { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TPUTS, new org.apache.thrift.meta_data.FieldMetaData("tputs", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class)))); + tmpMap.put(_Fields.TDELETE, new org.apache.thrift.meta_data.FieldMetaData("tdelete", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putMultiple_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSingle_args.class, metaDataMap); } - public putMultiple_args() { + public deleteSingle_args() { } - public putMultiple_args( + public deleteSingle_args( ByteBuffer table, - List tputs) + TDelete tdelete) { this(); - this.table = table; - this.tputs = tputs; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tdelete = tdelete; } /** * Performs a deep copy on other. */ - public putMultiple_args(putMultiple_args other) { + public deleteSingle_args(deleteSingle_args other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; } - if (other.isSetTputs()) { - List __this__tputs = new ArrayList(); - for (TPut other_element : other.tputs) { - __this__tputs.add(new TPut(other_element)); - } - this.tputs = __this__tputs; + if (other.isSetTdelete()) { + this.tdelete = new TDelete(other.tdelete); } } - public putMultiple_args deepCopy() { - return new putMultiple_args(this); + public deleteSingle_args deepCopy() { + return new deleteSingle_args(this); } @Override public void clear() { this.table = null; - this.tputs = null; + this.tdelete = null; } /** - * the table to put data in + * the table to delete from */ public byte[] getTable() { setTable(org.apache.thrift.TBaseHelper.rightSize(table)); @@ -7424,19 +9580,19 @@ public class THBaseService { } public ByteBuffer bufferForTable() { - return table; + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** - * the table to put data in + * the table to delete from */ - public putMultiple_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); + public deleteSingle_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public putMultiple_args setTable(ByteBuffer table) { - this.table = table; + public deleteSingle_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -7455,48 +9611,33 @@ public class THBaseService { } } - public int getTputsSize() { - return (this.tputs == null) ? 0 : this.tputs.size(); - } - - public java.util.Iterator getTputsIterator() { - return (this.tputs == null) ? null : this.tputs.iterator(); - } - - public void addToTputs(TPut elem) { - if (this.tputs == null) { - this.tputs = new ArrayList(); - } - this.tputs.add(elem); - } - /** - * a list of TPuts to commit + * the TDelete to delete */ - public List getTputs() { - return this.tputs; + public TDelete getTdelete() { + return this.tdelete; } /** - * a list of TPuts to commit + * the TDelete to delete */ - public putMultiple_args setTputs(List tputs) { - this.tputs = tputs; + public deleteSingle_args setTdelete(TDelete tdelete) { + this.tdelete = tdelete; return this; } - public void unsetTputs() { - this.tputs = null; + public void unsetTdelete() { + this.tdelete = null; } - /** Returns true if field tputs is set (has been assigned a value) and false otherwise */ - public boolean isSetTputs() { - return this.tputs != null; + /** Returns true if field tdelete is set (has been assigned a value) and false otherwise */ + public boolean isSetTdelete() { + return this.tdelete != null; } - public void setTputsIsSet(boolean value) { + public void setTdeleteIsSet(boolean value) { if (!value) { - this.tputs = null; + this.tdelete = null; } } @@ -7510,11 +9651,11 @@ public class THBaseService { } break; - case TPUTS: + case TDELETE: if (value == null) { - unsetTputs(); + unsetTdelete(); } else { - setTputs((List)value); + setTdelete((TDelete)value); } break; @@ -7526,8 +9667,8 @@ public class THBaseService { case TABLE: return getTable(); - case TPUTS: - return getTputs(); + case TDELETE: + return getTdelete(); } throw new IllegalStateException(); @@ -7542,8 +9683,8 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case TPUTS: - return isSetTputs(); + case TDELETE: + return isSetTdelete(); } throw new IllegalStateException(); } @@ -7552,12 +9693,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof putMultiple_args) - return this.equals((putMultiple_args)that); + if (that instanceof deleteSingle_args) + return this.equals((deleteSingle_args)that); return false; } - public boolean equals(putMultiple_args that) { + public boolean equals(deleteSingle_args that) { if (that == null) return false; @@ -7570,12 +9711,12 @@ public class THBaseService { return false; } - boolean this_present_tputs = true && this.isSetTputs(); - boolean that_present_tputs = true && that.isSetTputs(); - if (this_present_tputs || that_present_tputs) { - if (!(this_present_tputs && that_present_tputs)) + boolean this_present_tdelete = true && this.isSetTdelete(); + boolean that_present_tdelete = true && that.isSetTdelete(); + if (this_present_tdelete || that_present_tdelete) { + if (!(this_present_tdelete && that_present_tdelete)) return false; - if (!this.tputs.equals(that.tputs)) + if (!this.tdelete.equals(that.tdelete)) return false; } @@ -7584,45 +9725,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); - boolean present_tputs = true && (isSetTputs()); - builder.append(present_tputs); - if (present_tputs) - builder.append(tputs); + boolean present_tdelete = true && (isSetTdelete()); + list.add(present_tdelete); + if (present_tdelete) + list.add(tdelete); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(putMultiple_args other) { + @Override + public int compareTo(deleteSingle_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - putMultiple_args typedOther = (putMultiple_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTputs()).compareTo(typedOther.isSetTputs()); + lastComparison = Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); if (lastComparison != 0) { return lastComparison; } - if (isSetTputs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tputs, typedOther.tputs); + if (isSetTdelete()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdelete, other.tdelete); if (lastComparison != 0) { return lastComparison; } @@ -7644,7 +9785,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("putMultiple_args("); + StringBuilder sb = new StringBuilder("deleteSingle_args("); boolean first = true; sb.append("table:"); @@ -7655,11 +9796,11 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("tputs:"); - if (this.tputs == null) { + sb.append("tdelete:"); + if (this.tdelete == null) { sb.append("null"); } else { - sb.append(this.tputs); + sb.append(this.tdelete); } first = false; sb.append(")"); @@ -7671,10 +9812,13 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (tputs == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tputs' was not present! Struct: " + toString()); + if (tdelete == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tdelete' was not present! Struct: " + toString()); } // check for sub-struct validity + if (tdelete != null) { + tdelete.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -7693,15 +9837,15 @@ public class THBaseService { } } - private static class putMultiple_argsStandardSchemeFactory implements SchemeFactory { - public putMultiple_argsStandardScheme getScheme() { - return new putMultiple_argsStandardScheme(); + private static class deleteSingle_argsStandardSchemeFactory implements SchemeFactory { + public deleteSingle_argsStandardScheme getScheme() { + return new deleteSingle_argsStandardScheme(); } } - private static class putMultiple_argsStandardScheme extends StandardScheme { + private static class deleteSingle_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, putMultiple_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteSingle_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7719,21 +9863,11 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TPUTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); - struct.tputs = new ArrayList(_list148.size); - for (int _i149 = 0; _i149 < _list148.size; ++_i149) - { - TPut _elem150; // required - _elem150 = new TPut(); - _elem150.read(iprot); - struct.tputs.add(_elem150); - } - iprot.readListEnd(); - } - struct.setTputsIsSet(true); + case 2: // TDELETE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tdelete = new TDelete(); + struct.tdelete.read(iprot); + struct.setTdeleteIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -7749,7 +9883,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, putMultiple_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteSingle_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -7758,16 +9892,9 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.tputs != null) { - oprot.writeFieldBegin(TPUTS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tputs.size())); - for (TPut _iter151 : struct.tputs) - { - _iter151.write(oprot); - } - oprot.writeListEnd(); - } + if (struct.tdelete != null) { + oprot.writeFieldBegin(TDELETE_FIELD_DESC); + struct.tdelete.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -7776,58 +9903,43 @@ public class THBaseService { } - private static class putMultiple_argsTupleSchemeFactory implements SchemeFactory { - public putMultiple_argsTupleScheme getScheme() { - return new putMultiple_argsTupleScheme(); + private static class deleteSingle_argsTupleSchemeFactory implements SchemeFactory { + public deleteSingle_argsTupleScheme getScheme() { + return new deleteSingle_argsTupleScheme(); } } - private static class putMultiple_argsTupleScheme extends TupleScheme { + private static class deleteSingle_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, putMultiple_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteSingle_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - { - oprot.writeI32(struct.tputs.size()); - for (TPut _iter152 : struct.tputs) - { - _iter152.write(oprot); - } - } + struct.tdelete.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, putMultiple_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteSingle_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - { - org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tputs = new ArrayList(_list153.size); - for (int _i154 = 0; _i154 < _list153.size; ++_i154) - { - TPut _elem155; // required - _elem155 = new TPut(); - _elem155.read(iprot); - struct.tputs.add(_elem155); - } - } - struct.setTputsIsSet(true); + struct.tdelete = new TDelete(); + struct.tdelete.read(iprot); + struct.setTdeleteIsSet(true); } } } - public static class putMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putMultiple_result"); + public static class deleteSingle_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSingle_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new putMultiple_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new putMultiple_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteSingle_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteSingle_resultTupleSchemeFactory()); } public TIOError io; // required @@ -7897,13 +10009,13 @@ public class THBaseService { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putMultiple_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSingle_result.class, metaDataMap); } - public putMultiple_result() { + public deleteSingle_result() { } - public putMultiple_result( + public deleteSingle_result( TIOError io) { this(); @@ -7913,14 +10025,14 @@ public class THBaseService { /** * Performs a deep copy on other. */ - public putMultiple_result(putMultiple_result other) { + public deleteSingle_result(deleteSingle_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public putMultiple_result deepCopy() { - return new putMultiple_result(this); + public deleteSingle_result deepCopy() { + return new deleteSingle_result(this); } @Override @@ -7932,7 +10044,7 @@ public class THBaseService { return this.io; } - public putMultiple_result setIo(TIOError io) { + public deleteSingle_result setIo(TIOError io) { this.io = io; return this; } @@ -7991,12 +10103,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof putMultiple_result) - return this.equals((putMultiple_result)that); + if (that instanceof deleteSingle_result) + return this.equals((deleteSingle_result)that); return false; } - public boolean equals(putMultiple_result that) { + public boolean equals(deleteSingle_result that) { if (that == null) return false; @@ -8014,30 +10126,30 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(putMultiple_result other) { + @Override + public int compareTo(deleteSingle_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - putMultiple_result typedOther = (putMultiple_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -8059,7 +10171,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("putMultiple_result("); + StringBuilder sb = new StringBuilder("deleteSingle_result("); boolean first = true; sb.append("io:"); @@ -8094,15 +10206,15 @@ public class THBaseService { } } - private static class putMultiple_resultStandardSchemeFactory implements SchemeFactory { - public putMultiple_resultStandardScheme getScheme() { - return new putMultiple_resultStandardScheme(); + private static class deleteSingle_resultStandardSchemeFactory implements SchemeFactory { + public deleteSingle_resultStandardScheme getScheme() { + return new deleteSingle_resultStandardScheme(); } } - private static class putMultiple_resultStandardScheme extends StandardScheme { + private static class deleteSingle_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, putMultiple_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteSingle_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8132,7 +10244,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, putMultiple_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteSingle_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -8147,16 +10259,16 @@ public class THBaseService { } - private static class putMultiple_resultTupleSchemeFactory implements SchemeFactory { - public putMultiple_resultTupleScheme getScheme() { - return new putMultiple_resultTupleScheme(); + private static class deleteSingle_resultTupleSchemeFactory implements SchemeFactory { + public deleteSingle_resultTupleScheme getScheme() { + return new deleteSingle_resultTupleScheme(); } } - private static class putMultiple_resultTupleScheme extends TupleScheme { + private static class deleteSingle_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, putMultiple_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteSingle_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIo()) { @@ -8169,7 +10281,7 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, putMultiple_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteSingle_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -8182,16 +10294,16 @@ public class THBaseService { } - public static class deleteSingle_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSingle_args"); + public static class deleteMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteMultiple_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TDELETE_FIELD_DESC = new org.apache.thrift.protocol.TField("tdelete", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TDELETES_FIELD_DESC = new org.apache.thrift.protocol.TField("tdeletes", org.apache.thrift.protocol.TType.LIST, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteSingle_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteSingle_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteMultiple_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteMultiple_argsTupleSchemeFactory()); } /** @@ -8199,9 +10311,9 @@ public class THBaseService { */ public ByteBuffer table; // required /** - * the TDelete to delete + * list of TDeletes to delete */ - public TDelete tdelete; // required + public List tdeletes; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -8210,9 +10322,9 @@ public class THBaseService { */ TABLE((short)1, "table"), /** - * the TDelete to delete + * list of TDeletes to delete */ - TDELETE((short)2, "tdelete"); + TDELETES((short)2, "tdeletes"); private static final Map byName = new HashMap(); @@ -8229,8 +10341,8 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // TDELETE - return TDELETE; + case 2: // TDELETES + return TDELETES; default: return null; } @@ -8276,45 +10388,49 @@ public class THBaseService { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TDELETE, new org.apache.thrift.meta_data.FieldMetaData("tdelete", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class))); + tmpMap.put(_Fields.TDELETES, new org.apache.thrift.meta_data.FieldMetaData("tdeletes", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSingle_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteMultiple_args.class, metaDataMap); } - public deleteSingle_args() { + public deleteMultiple_args() { } - public deleteSingle_args( + public deleteMultiple_args( ByteBuffer table, - TDelete tdelete) + List tdeletes) { this(); - this.table = table; - this.tdelete = tdelete; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tdeletes = tdeletes; } /** * Performs a deep copy on other. */ - public deleteSingle_args(deleteSingle_args other) { + public deleteMultiple_args(deleteMultiple_args other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; } - if (other.isSetTdelete()) { - this.tdelete = new TDelete(other.tdelete); + if (other.isSetTdeletes()) { + List __this__tdeletes = new ArrayList(other.tdeletes.size()); + for (TDelete other_element : other.tdeletes) { + __this__tdeletes.add(new TDelete(other_element)); + } + this.tdeletes = __this__tdeletes; } } - public deleteSingle_args deepCopy() { - return new deleteSingle_args(this); + public deleteMultiple_args deepCopy() { + return new deleteMultiple_args(this); } @Override public void clear() { this.table = null; - this.tdelete = null; + this.tdeletes = null; } /** @@ -8326,19 +10442,19 @@ public class THBaseService { } public ByteBuffer bufferForTable() { - return table; + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** * the table to delete from */ - public deleteSingle_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); + public deleteMultiple_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public deleteSingle_args setTable(ByteBuffer table) { - this.table = table; + public deleteMultiple_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -8357,33 +10473,48 @@ public class THBaseService { } } + public int getTdeletesSize() { + return (this.tdeletes == null) ? 0 : this.tdeletes.size(); + } + + public java.util.Iterator getTdeletesIterator() { + return (this.tdeletes == null) ? null : this.tdeletes.iterator(); + } + + public void addToTdeletes(TDelete elem) { + if (this.tdeletes == null) { + this.tdeletes = new ArrayList(); + } + this.tdeletes.add(elem); + } + /** - * the TDelete to delete + * list of TDeletes to delete */ - public TDelete getTdelete() { - return this.tdelete; + public List getTdeletes() { + return this.tdeletes; } /** - * the TDelete to delete + * list of TDeletes to delete */ - public deleteSingle_args setTdelete(TDelete tdelete) { - this.tdelete = tdelete; + public deleteMultiple_args setTdeletes(List tdeletes) { + this.tdeletes = tdeletes; return this; } - public void unsetTdelete() { - this.tdelete = null; + public void unsetTdeletes() { + this.tdeletes = null; } - /** Returns true if field tdelete is set (has been assigned a value) and false otherwise */ - public boolean isSetTdelete() { - return this.tdelete != null; + /** Returns true if field tdeletes is set (has been assigned a value) and false otherwise */ + public boolean isSetTdeletes() { + return this.tdeletes != null; } - public void setTdeleteIsSet(boolean value) { + public void setTdeletesIsSet(boolean value) { if (!value) { - this.tdelete = null; + this.tdeletes = null; } } @@ -8397,11 +10528,11 @@ public class THBaseService { } break; - case TDELETE: + case TDELETES: if (value == null) { - unsetTdelete(); + unsetTdeletes(); } else { - setTdelete((TDelete)value); + setTdeletes((List)value); } break; @@ -8413,8 +10544,8 @@ public class THBaseService { case TABLE: return getTable(); - case TDELETE: - return getTdelete(); + case TDELETES: + return getTdeletes(); } throw new IllegalStateException(); @@ -8429,8 +10560,8 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case TDELETE: - return isSetTdelete(); + case TDELETES: + return isSetTdeletes(); } throw new IllegalStateException(); } @@ -8439,12 +10570,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteSingle_args) - return this.equals((deleteSingle_args)that); + if (that instanceof deleteMultiple_args) + return this.equals((deleteMultiple_args)that); return false; } - public boolean equals(deleteSingle_args that) { + public boolean equals(deleteMultiple_args that) { if (that == null) return false; @@ -8457,12 +10588,12 @@ public class THBaseService { return false; } - boolean this_present_tdelete = true && this.isSetTdelete(); - boolean that_present_tdelete = true && that.isSetTdelete(); - if (this_present_tdelete || that_present_tdelete) { - if (!(this_present_tdelete && that_present_tdelete)) + boolean this_present_tdeletes = true && this.isSetTdeletes(); + boolean that_present_tdeletes = true && that.isSetTdeletes(); + if (this_present_tdeletes || that_present_tdeletes) { + if (!(this_present_tdeletes && that_present_tdeletes)) return false; - if (!this.tdelete.equals(that.tdelete)) + if (!this.tdeletes.equals(that.tdeletes)) return false; } @@ -8471,45 +10602,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); - boolean present_tdelete = true && (isSetTdelete()); - builder.append(present_tdelete); - if (present_tdelete) - builder.append(tdelete); + boolean present_tdeletes = true && (isSetTdeletes()); + list.add(present_tdeletes); + if (present_tdeletes) + list.add(tdeletes); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(deleteSingle_args other) { + @Override + public int compareTo(deleteMultiple_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteSingle_args typedOther = (deleteSingle_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdelete()).compareTo(typedOther.isSetTdelete()); + lastComparison = Boolean.valueOf(isSetTdeletes()).compareTo(other.isSetTdeletes()); if (lastComparison != 0) { return lastComparison; } - if (isSetTdelete()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdelete, typedOther.tdelete); + if (isSetTdeletes()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdeletes, other.tdeletes); if (lastComparison != 0) { return lastComparison; } @@ -8531,7 +10662,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteSingle_args("); + StringBuilder sb = new StringBuilder("deleteMultiple_args("); boolean first = true; sb.append("table:"); @@ -8542,11 +10673,11 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("tdelete:"); - if (this.tdelete == null) { + sb.append("tdeletes:"); + if (this.tdeletes == null) { sb.append("null"); } else { - sb.append(this.tdelete); + sb.append(this.tdeletes); } first = false; sb.append(")"); @@ -8558,13 +10689,10 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (tdelete == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tdelete' was not present! Struct: " + toString()); + if (tdeletes == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tdeletes' was not present! Struct: " + toString()); } // check for sub-struct validity - if (tdelete != null) { - tdelete.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -8583,15 +10711,15 @@ public class THBaseService { } } - private static class deleteSingle_argsStandardSchemeFactory implements SchemeFactory { - public deleteSingle_argsStandardScheme getScheme() { - return new deleteSingle_argsStandardScheme(); + private static class deleteMultiple_argsStandardSchemeFactory implements SchemeFactory { + public deleteMultiple_argsStandardScheme getScheme() { + return new deleteMultiple_argsStandardScheme(); } } - private static class deleteSingle_argsStandardScheme extends StandardScheme { + private static class deleteMultiple_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteSingle_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8609,11 +10737,21 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TDELETE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tdelete = new TDelete(); - struct.tdelete.read(iprot); - struct.setTdeleteIsSet(true); + case 2: // TDELETES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); + struct.tdeletes = new ArrayList(_list156.size); + TDelete _elem157; + for (int _i158 = 0; _i158 < _list156.size; ++_i158) + { + _elem157 = new TDelete(); + _elem157.read(iprot); + struct.tdeletes.add(_elem157); + } + iprot.readListEnd(); + } + struct.setTdeletesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -8629,7 +10767,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteSingle_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteMultiple_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -8638,9 +10776,16 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.tdelete != null) { - oprot.writeFieldBegin(TDELETE_FIELD_DESC); - struct.tdelete.write(oprot); + if (struct.tdeletes != null) { + oprot.writeFieldBegin(TDELETES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tdeletes.size())); + for (TDelete _iter159 : struct.tdeletes) + { + _iter159.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -8649,49 +10794,67 @@ public class THBaseService { } - private static class deleteSingle_argsTupleSchemeFactory implements SchemeFactory { - public deleteSingle_argsTupleScheme getScheme() { - return new deleteSingle_argsTupleScheme(); + private static class deleteMultiple_argsTupleSchemeFactory implements SchemeFactory { + public deleteMultiple_argsTupleScheme getScheme() { + return new deleteMultiple_argsTupleScheme(); } } - private static class deleteSingle_argsTupleScheme extends TupleScheme { + private static class deleteMultiple_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteSingle_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - struct.tdelete.write(oprot); + { + oprot.writeI32(struct.tdeletes.size()); + for (TDelete _iter160 : struct.tdeletes) + { + _iter160.write(oprot); + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteSingle_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - struct.tdelete = new TDelete(); - struct.tdelete.read(iprot); - struct.setTdeleteIsSet(true); + { + org.apache.thrift.protocol.TList _list161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tdeletes = new ArrayList(_list161.size); + TDelete _elem162; + for (int _i163 = 0; _i163 < _list161.size; ++_i163) + { + _elem162 = new TDelete(); + _elem162.read(iprot); + struct.tdeletes.add(_elem162); + } + } + struct.setTdeletesIsSet(true); } } } - public static class deleteSingle_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSingle_result"); + public static class deleteMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteMultiple_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteSingle_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteSingle_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteMultiple_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteMultiple_resultTupleSchemeFactory()); } + public List success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), IO((short)1, "io"); private static final Map byName = new HashMap(); @@ -8707,6 +10870,8 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // IO return IO; default: @@ -8752,45 +10917,97 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSingle_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteMultiple_result.class, metaDataMap); + } + + public deleteMultiple_result() { + } + + public deleteMultiple_result( + List success, + TIOError io) + { + this(); + this.success = success; + this.io = io; + } + + /** + * Performs a deep copy on other. + */ + public deleteMultiple_result(deleteMultiple_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (TDelete other_element : other.success) { + __this__success.add(new TDelete(other_element)); + } + this.success = __this__success; + } + if (other.isSetIo()) { + this.io = new TIOError(other.io); + } + } + + public deleteMultiple_result deepCopy() { + return new deleteMultiple_result(this); + } + + @Override + public void clear() { + this.success = null; + this.io = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(TDelete elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); } - public deleteSingle_result() { + public List getSuccess() { + return this.success; } - public deleteSingle_result( - TIOError io) - { - this(); - this.io = io; + public deleteMultiple_result setSuccess(List success) { + this.success = success; + return this; } - /** - * Performs a deep copy on other. - */ - public deleteSingle_result(deleteSingle_result other) { - if (other.isSetIo()) { - this.io = new TIOError(other.io); - } + public void unsetSuccess() { + this.success = null; } - public deleteSingle_result deepCopy() { - return new deleteSingle_result(this); + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - @Override - public void clear() { - this.io = null; + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } } public TIOError getIo() { return this.io; } - public deleteSingle_result setIo(TIOError io) { + public deleteMultiple_result setIo(TIOError io) { this.io = io; return this; } @@ -8812,6 +11029,14 @@ public class THBaseService { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + case IO: if (value == null) { unsetIo(); @@ -8825,6 +11050,9 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case IO: return getIo(); @@ -8839,6 +11067,8 @@ public class THBaseService { } switch (field) { + case SUCCESS: + return isSetSuccess(); case IO: return isSetIo(); } @@ -8849,15 +11079,24 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteSingle_result) - return this.equals((deleteSingle_result)that); + if (that instanceof deleteMultiple_result) + return this.equals((deleteMultiple_result)that); return false; } - public boolean equals(deleteSingle_result that) { + public boolean equals(deleteMultiple_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + 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.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { @@ -8872,30 +11111,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(deleteSingle_result other) { + @Override + public int compareTo(deleteMultiple_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteSingle_result typedOther = (deleteSingle_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -8917,9 +11171,17 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteSingle_result("); + StringBuilder sb = new StringBuilder("deleteMultiple_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("io:"); if (this.io == null) { sb.append("null"); @@ -8952,15 +11214,15 @@ public class THBaseService { } } - private static class deleteSingle_resultStandardSchemeFactory implements SchemeFactory { - public deleteSingle_resultStandardScheme getScheme() { - return new deleteSingle_resultStandardScheme(); + private static class deleteMultiple_resultStandardSchemeFactory implements SchemeFactory { + public deleteMultiple_resultStandardScheme getScheme() { + return new deleteMultiple_resultStandardScheme(); } } - private static class deleteSingle_resultStandardScheme extends StandardScheme { + private static class deleteMultiple_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteSingle_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8970,6 +11232,25 @@ public class THBaseService { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list164 = iprot.readListBegin(); + struct.success = new ArrayList(_list164.size); + TDelete _elem165; + for (int _i166 = 0; _i166 < _list164.size; ++_i166) + { + _elem165 = new TDelete(); + _elem165.read(iprot); + struct.success.add(_elem165); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.io = new TIOError(); @@ -8990,10 +11271,22 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteSingle_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteMultiple_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TDelete _iter167 : struct.success) + { + _iter167.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.io != null) { oprot.writeFieldBegin(IO_FIELD_DESC); struct.io.write(oprot); @@ -9005,32 +11298,58 @@ public class THBaseService { } - private static class deleteSingle_resultTupleSchemeFactory implements SchemeFactory { - public deleteSingle_resultTupleScheme getScheme() { - return new deleteSingle_resultTupleScheme(); + private static class deleteMultiple_resultTupleSchemeFactory implements SchemeFactory { + public deleteMultiple_resultTupleScheme getScheme() { + return new deleteMultiple_resultTupleScheme(); } } - private static class deleteSingle_resultTupleScheme extends TupleScheme { + private static class deleteMultiple_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteSingle_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetIo()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetIo()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (TDelete _iter168 : struct.success) + { + _iter168.write(oprot); + } + } + } if (struct.isSetIo()) { struct.io.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteSingle_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list169.size); + TDelete _elem170; + for (int _i171 = 0; _i171 < _list169.size; ++_i171) + { + _elem170 = new TDelete(); + _elem170.read(iprot); + struct.success.add(_elem170); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); @@ -9040,37 +11359,77 @@ public class THBaseService { } - public static class deleteMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteMultiple_args"); + public static class checkAndDelete_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndDelete_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TDELETES_FIELD_DESC = new org.apache.thrift.protocol.TField("tdeletes", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifier", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField TDELETE_FIELD_DESC = new org.apache.thrift.protocol.TField("tdelete", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteMultiple_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteMultiple_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new checkAndDelete_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkAndDelete_argsTupleSchemeFactory()); } /** - * the table to delete from + * to check in and delete from */ public ByteBuffer table; // required /** - * list of TDeletes to delete + * row to check */ - public List tdeletes; // required + public ByteBuffer row; // required + /** + * column family to check + */ + public ByteBuffer family; // required + /** + * column qualifier to check + */ + public ByteBuffer qualifier; // required + /** + * the expected value, if not provided the + * check is for the non-existence of the + * column in question + */ + public ByteBuffer value; // required + /** + * the TDelete to execute if the check succeeds + */ + public TDelete tdelete; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * the table to delete from + * to check in and delete from */ TABLE((short)1, "table"), /** - * list of TDeletes to delete + * row to check */ - TDELETES((short)2, "tdeletes"); + ROW((short)2, "row"), + /** + * column family to check + */ + FAMILY((short)3, "family"), + /** + * column qualifier to check + */ + QUALIFIER((short)4, "qualifier"), + /** + * the expected value, if not provided the + * check is for the non-existence of the + * column in question + */ + VALUE((short)5, "value"), + /** + * the TDelete to execute if the check succeeds + */ + TDELETE((short)6, "tdelete"); private static final Map byName = new HashMap(); @@ -9087,8 +11446,16 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // TDELETES - return TDELETES; + case 2: // ROW + return ROW; + case 3: // FAMILY + return FAMILY; + case 4: // QUALIFIER + return QUALIFIER; + case 5: // VALUE + return VALUE; + case 6: // TDELETE + return TDELETE; default: return null; } @@ -9134,54 +11501,80 @@ public class THBaseService { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TDELETES, new org.apache.thrift.meta_data.FieldMetaData("tdeletes", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class)))); + tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TDELETE, new org.apache.thrift.meta_data.FieldMetaData("tdelete", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteMultiple_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndDelete_args.class, metaDataMap); } - public deleteMultiple_args() { + public checkAndDelete_args() { } - public deleteMultiple_args( + public checkAndDelete_args( ByteBuffer table, - List tdeletes) + ByteBuffer row, + ByteBuffer family, + ByteBuffer qualifier, + ByteBuffer value, + TDelete tdelete) { this(); - this.table = table; - this.tdeletes = tdeletes; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.family = org.apache.thrift.TBaseHelper.copyBinary(family); + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); + this.tdelete = tdelete; } /** * Performs a deep copy on other. */ - public deleteMultiple_args(deleteMultiple_args other) { + public checkAndDelete_args(checkAndDelete_args other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; } - if (other.isSetTdeletes()) { - List __this__tdeletes = new ArrayList(); - for (TDelete other_element : other.tdeletes) { - __this__tdeletes.add(new TDelete(other_element)); - } - this.tdeletes = __this__tdeletes; + if (other.isSetRow()) { + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); + } + if (other.isSetFamily()) { + this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); + } + if (other.isSetQualifier()) { + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); + } + if (other.isSetValue()) { + this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); + } + if (other.isSetTdelete()) { + this.tdelete = new TDelete(other.tdelete); } } - public deleteMultiple_args deepCopy() { - return new deleteMultiple_args(this); + public checkAndDelete_args deepCopy() { + return new checkAndDelete_args(this); } @Override public void clear() { this.table = null; - this.tdeletes = null; + this.row = null; + this.family = null; + this.qualifier = null; + this.value = null; + this.tdelete = null; } /** - * the table to delete from + * to check in and delete from */ public byte[] getTable() { setTable(org.apache.thrift.TBaseHelper.rightSize(table)); @@ -9189,19 +11582,19 @@ public class THBaseService { } public ByteBuffer bufferForTable() { - return table; + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** - * the table to delete from + * to check in and delete from */ - public deleteMultiple_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); + public checkAndDelete_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public deleteMultiple_args setTable(ByteBuffer table) { - this.table = table; + public checkAndDelete_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -9220,48 +11613,197 @@ public class THBaseService { } } - public int getTdeletesSize() { - return (this.tdeletes == null) ? 0 : this.tdeletes.size(); + /** + * row to check + */ + public byte[] getRow() { + setRow(org.apache.thrift.TBaseHelper.rightSize(row)); + return row == null ? null : row.array(); } - public java.util.Iterator getTdeletesIterator() { - return (this.tdeletes == null) ? null : this.tdeletes.iterator(); + public ByteBuffer bufferForRow() { + return org.apache.thrift.TBaseHelper.copyBinary(row); } - public void addToTdeletes(TDelete elem) { - if (this.tdeletes == null) { - this.tdeletes = new ArrayList(); + /** + * row to check + */ + public checkAndDelete_args setRow(byte[] row) { + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + return this; + } + + public checkAndDelete_args setRow(ByteBuffer row) { + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + return this; + } + + public void unsetRow() { + this.row = null; + } + + /** Returns true if field row is set (has been assigned a value) and false otherwise */ + public boolean isSetRow() { + return this.row != null; + } + + public void setRowIsSet(boolean value) { + if (!value) { + this.row = null; } - this.tdeletes.add(elem); } /** - * list of TDeletes to delete + * column family to check */ - public List getTdeletes() { - return this.tdeletes; + public byte[] getFamily() { + setFamily(org.apache.thrift.TBaseHelper.rightSize(family)); + return family == null ? null : family.array(); + } + + public ByteBuffer bufferForFamily() { + return org.apache.thrift.TBaseHelper.copyBinary(family); } /** - * list of TDeletes to delete + * column family to check */ - public deleteMultiple_args setTdeletes(List tdeletes) { - this.tdeletes = tdeletes; + public checkAndDelete_args setFamily(byte[] family) { + this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); return this; } - public void unsetTdeletes() { - this.tdeletes = null; + public checkAndDelete_args setFamily(ByteBuffer family) { + this.family = org.apache.thrift.TBaseHelper.copyBinary(family); + return this; } - /** Returns true if field tdeletes is set (has been assigned a value) and false otherwise */ - public boolean isSetTdeletes() { - return this.tdeletes != null; + public void unsetFamily() { + this.family = null; } - public void setTdeletesIsSet(boolean value) { + /** Returns true if field family is set (has been assigned a value) and false otherwise */ + public boolean isSetFamily() { + return this.family != null; + } + + public void setFamilyIsSet(boolean value) { if (!value) { - this.tdeletes = null; + this.family = null; + } + } + + /** + * column qualifier to check + */ + public byte[] getQualifier() { + setQualifier(org.apache.thrift.TBaseHelper.rightSize(qualifier)); + return qualifier == null ? null : qualifier.array(); + } + + public ByteBuffer bufferForQualifier() { + return org.apache.thrift.TBaseHelper.copyBinary(qualifier); + } + + /** + * column qualifier to check + */ + public checkAndDelete_args setQualifier(byte[] qualifier) { + this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + return this; + } + + public checkAndDelete_args setQualifier(ByteBuffer qualifier) { + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); + return this; + } + + public void unsetQualifier() { + this.qualifier = null; + } + + /** Returns true if field qualifier is set (has been assigned a value) and false otherwise */ + public boolean isSetQualifier() { + return this.qualifier != null; + } + + public void setQualifierIsSet(boolean value) { + if (!value) { + this.qualifier = null; + } + } + + /** + * the expected value, if not provided the + * check is for the non-existence of the + * column in question + */ + public byte[] getValue() { + setValue(org.apache.thrift.TBaseHelper.rightSize(value)); + return value == null ? null : value.array(); + } + + public ByteBuffer bufferForValue() { + return org.apache.thrift.TBaseHelper.copyBinary(value); + } + + /** + * the expected value, if not provided the + * check is for the non-existence of the + * column in question + */ + public checkAndDelete_args setValue(byte[] value) { + this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + return this; + } + + public checkAndDelete_args setValue(ByteBuffer value) { + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); + return this; + } + + public void unsetValue() { + this.value = null; + } + + /** Returns true if field value is set (has been assigned a value) and false otherwise */ + public boolean isSetValue() { + return this.value != null; + } + + public void setValueIsSet(boolean value) { + if (!value) { + this.value = null; + } + } + + /** + * the TDelete to execute if the check succeeds + */ + public TDelete getTdelete() { + return this.tdelete; + } + + /** + * the TDelete to execute if the check succeeds + */ + public checkAndDelete_args setTdelete(TDelete tdelete) { + this.tdelete = tdelete; + return this; + } + + public void unsetTdelete() { + this.tdelete = null; + } + + /** Returns true if field tdelete is set (has been assigned a value) and false otherwise */ + public boolean isSetTdelete() { + return this.tdelete != null; + } + + public void setTdeleteIsSet(boolean value) { + if (!value) { + this.tdelete = null; } } @@ -9269,17 +11811,49 @@ public class THBaseService { switch (field) { case TABLE: if (value == null) { - unsetTable(); + unsetTable(); + } else { + setTable((ByteBuffer)value); + } + break; + + case ROW: + if (value == null) { + unsetRow(); + } else { + setRow((ByteBuffer)value); + } + break; + + case FAMILY: + if (value == null) { + unsetFamily(); + } else { + setFamily((ByteBuffer)value); + } + break; + + case QUALIFIER: + if (value == null) { + unsetQualifier(); + } else { + setQualifier((ByteBuffer)value); + } + break; + + case VALUE: + if (value == null) { + unsetValue(); } else { - setTable((ByteBuffer)value); + setValue((ByteBuffer)value); } break; - case TDELETES: + case TDELETE: if (value == null) { - unsetTdeletes(); + unsetTdelete(); } else { - setTdeletes((List)value); + setTdelete((TDelete)value); } break; @@ -9291,8 +11865,20 @@ public class THBaseService { case TABLE: return getTable(); - case TDELETES: - return getTdeletes(); + case ROW: + return getRow(); + + case FAMILY: + return getFamily(); + + case QUALIFIER: + return getQualifier(); + + case VALUE: + return getValue(); + + case TDELETE: + return getTdelete(); } throw new IllegalStateException(); @@ -9307,8 +11893,16 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case TDELETES: - return isSetTdeletes(); + case ROW: + return isSetRow(); + case FAMILY: + return isSetFamily(); + case QUALIFIER: + return isSetQualifier(); + case VALUE: + return isSetValue(); + case TDELETE: + return isSetTdelete(); } throw new IllegalStateException(); } @@ -9317,12 +11911,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteMultiple_args) - return this.equals((deleteMultiple_args)that); + if (that instanceof checkAndDelete_args) + return this.equals((checkAndDelete_args)that); return false; } - public boolean equals(deleteMultiple_args that) { + public boolean equals(checkAndDelete_args that) { if (that == null) return false; @@ -9335,12 +11929,48 @@ public class THBaseService { return false; } - boolean this_present_tdeletes = true && this.isSetTdeletes(); - boolean that_present_tdeletes = true && that.isSetTdeletes(); - if (this_present_tdeletes || that_present_tdeletes) { - if (!(this_present_tdeletes && that_present_tdeletes)) + boolean this_present_row = true && this.isSetRow(); + boolean that_present_row = true && that.isSetRow(); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) return false; - if (!this.tdeletes.equals(that.tdeletes)) + if (!this.row.equals(that.row)) + return false; + } + + boolean this_present_family = true && this.isSetFamily(); + boolean that_present_family = true && that.isSetFamily(); + if (this_present_family || that_present_family) { + if (!(this_present_family && that_present_family)) + return false; + if (!this.family.equals(that.family)) + return false; + } + + boolean this_present_qualifier = true && this.isSetQualifier(); + boolean that_present_qualifier = true && that.isSetQualifier(); + if (this_present_qualifier || that_present_qualifier) { + if (!(this_present_qualifier && that_present_qualifier)) + return false; + if (!this.qualifier.equals(that.qualifier)) + return false; + } + + boolean this_present_value = true && this.isSetValue(); + boolean that_present_value = true && that.isSetValue(); + if (this_present_value || that_present_value) { + if (!(this_present_value && that_present_value)) + return false; + if (!this.value.equals(that.value)) + return false; + } + + boolean this_present_tdelete = true && this.isSetTdelete(); + boolean that_present_tdelete = true && that.isSetTdelete(); + if (this_present_tdelete || that_present_tdelete) { + if (!(this_present_tdelete && that_present_tdelete)) + return false; + if (!this.tdelete.equals(that.tdelete)) return false; } @@ -9349,45 +11979,105 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); - boolean present_tdeletes = true && (isSetTdeletes()); - builder.append(present_tdeletes); - if (present_tdeletes) - builder.append(tdeletes); + boolean present_row = true && (isSetRow()); + list.add(present_row); + if (present_row) + list.add(row); - return builder.toHashCode(); + boolean present_family = true && (isSetFamily()); + list.add(present_family); + if (present_family) + list.add(family); + + boolean present_qualifier = true && (isSetQualifier()); + list.add(present_qualifier); + if (present_qualifier) + list.add(qualifier); + + boolean present_value = true && (isSetValue()); + list.add(present_value); + if (present_value) + list.add(value); + + boolean present_tdelete = true && (isSetTdelete()); + list.add(present_tdelete); + if (present_tdelete) + list.add(tdelete); + + return list.hashCode(); } - public int compareTo(deleteMultiple_args other) { + @Override + public int compareTo(checkAndDelete_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteMultiple_args typedOther = (deleteMultiple_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdeletes()).compareTo(typedOther.isSetTdeletes()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } - if (isSetTdeletes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdeletes, typedOther.tdeletes); + if (isSetRow()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFamily()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, other.family); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetQualifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValue()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTdelete()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdelete, other.tdelete); if (lastComparison != 0) { return lastComparison; } @@ -9409,7 +12099,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteMultiple_args("); + StringBuilder sb = new StringBuilder("checkAndDelete_args("); boolean first = true; sb.append("table:"); @@ -9420,11 +12110,43 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("tdeletes:"); - if (this.tdeletes == null) { + sb.append("row:"); + if (this.row == null) { sb.append("null"); } else { - sb.append(this.tdeletes); + org.apache.thrift.TBaseHelper.toString(this.row, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("family:"); + if (this.family == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.family, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("qualifier:"); + if (this.qualifier == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("value:"); + if (this.value == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.value, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("tdelete:"); + if (this.tdelete == null) { + sb.append("null"); + } else { + sb.append(this.tdelete); } first = false; sb.append(")"); @@ -9436,10 +12158,22 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (tdeletes == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tdeletes' was not present! Struct: " + toString()); + if (row == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' was not present! Struct: " + toString()); + } + if (family == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'family' was not present! Struct: " + toString()); + } + if (qualifier == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'qualifier' was not present! Struct: " + toString()); + } + if (tdelete == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tdelete' was not present! Struct: " + toString()); } // check for sub-struct validity + if (tdelete != null) { + tdelete.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -9458,15 +12192,15 @@ public class THBaseService { } } - private static class deleteMultiple_argsStandardSchemeFactory implements SchemeFactory { - public deleteMultiple_argsStandardScheme getScheme() { - return new deleteMultiple_argsStandardScheme(); + private static class checkAndDelete_argsStandardSchemeFactory implements SchemeFactory { + public checkAndDelete_argsStandardScheme getScheme() { + return new checkAndDelete_argsStandardScheme(); } } - private static class deleteMultiple_argsStandardScheme extends StandardScheme { + private static class checkAndDelete_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteMultiple_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndDelete_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9484,21 +12218,43 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TDELETES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); - struct.tdeletes = new ArrayList(_list156.size); - for (int _i157 = 0; _i157 < _list156.size; ++_i157) - { - TDelete _elem158; // required - _elem158 = new TDelete(); - _elem158.read(iprot); - struct.tdeletes.add(_elem158); - } - iprot.readListEnd(); - } - struct.setTdeletesIsSet(true); + case 2: // ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FAMILY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.family = iprot.readBinary(); + struct.setFamilyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // QUALIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.qualifier = iprot.readBinary(); + struct.setQualifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readBinary(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // TDELETE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tdelete = new TDelete(); + struct.tdelete.read(iprot); + struct.setTdeleteIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -9514,7 +12270,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteMultiple_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndDelete_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -9523,16 +12279,29 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.tdeletes != null) { - oprot.writeFieldBegin(TDELETES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tdeletes.size())); - for (TDelete _iter159 : struct.tdeletes) - { - _iter159.write(oprot); - } - oprot.writeListEnd(); - } + if (struct.row != null) { + oprot.writeFieldBegin(ROW_FIELD_DESC); + oprot.writeBinary(struct.row); + oprot.writeFieldEnd(); + } + if (struct.family != null) { + oprot.writeFieldBegin(FAMILY_FIELD_DESC); + oprot.writeBinary(struct.family); + oprot.writeFieldEnd(); + } + if (struct.qualifier != null) { + oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); + oprot.writeBinary(struct.qualifier); + oprot.writeFieldEnd(); + } + if (struct.value != null) { + oprot.writeFieldBegin(VALUE_FIELD_DESC); + oprot.writeBinary(struct.value); + oprot.writeFieldEnd(); + } + if (struct.tdelete != null) { + oprot.writeFieldBegin(TDELETE_FIELD_DESC); + struct.tdelete.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -9541,62 +12310,69 @@ public class THBaseService { } - private static class deleteMultiple_argsTupleSchemeFactory implements SchemeFactory { - public deleteMultiple_argsTupleScheme getScheme() { - return new deleteMultiple_argsTupleScheme(); + private static class checkAndDelete_argsTupleSchemeFactory implements SchemeFactory { + public checkAndDelete_argsTupleScheme getScheme() { + return new checkAndDelete_argsTupleScheme(); } } - private static class deleteMultiple_argsTupleScheme extends TupleScheme { + private static class checkAndDelete_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - { - oprot.writeI32(struct.tdeletes.size()); - for (TDelete _iter160 : struct.tdeletes) - { - _iter160.write(oprot); - } + oprot.writeBinary(struct.row); + oprot.writeBinary(struct.family); + oprot.writeBinary(struct.qualifier); + struct.tdelete.write(oprot); + BitSet optionals = new BitSet(); + if (struct.isSetValue()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetValue()) { + oprot.writeBinary(struct.value); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - { - org.apache.thrift.protocol.TList _list161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tdeletes = new ArrayList(_list161.size); - for (int _i162 = 0; _i162 < _list161.size; ++_i162) - { - TDelete _elem163; // required - _elem163 = new TDelete(); - _elem163.read(iprot); - struct.tdeletes.add(_elem163); - } + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + struct.family = iprot.readBinary(); + struct.setFamilyIsSet(true); + struct.qualifier = iprot.readBinary(); + struct.setQualifierIsSet(true); + struct.tdelete = new TDelete(); + struct.tdelete.read(iprot); + struct.setTdeleteIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readBinary(); + struct.setValueIsSet(true); } - struct.setTdeletesIsSet(true); } } } - public static class deleteMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteMultiple_result"); + public static class checkAndDelete_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndDelete_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteMultiple_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteMultiple_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new checkAndDelete_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkAndDelete_resultTupleSchemeFactory()); } - public List success; // required + public boolean success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -9661,100 +12437,82 @@ public class THBaseService { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteMultiple_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndDelete_result.class, metaDataMap); } - public deleteMultiple_result() { + public checkAndDelete_result() { } - public deleteMultiple_result( - List success, + public checkAndDelete_result( + boolean success, TIOError io) { this(); this.success = success; + setSuccessIsSet(true); this.io = io; } /** * Performs a deep copy on other. */ - public deleteMultiple_result(deleteMultiple_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (TDelete other_element : other.success) { - __this__success.add(new TDelete(other_element)); - } - this.success = __this__success; - } + public checkAndDelete_result(checkAndDelete_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public deleteMultiple_result deepCopy() { - return new deleteMultiple_result(this); + public checkAndDelete_result deepCopy() { + return new checkAndDelete_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.io = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(TDelete elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public boolean isSuccess() { return this.success; } - public deleteMultiple_result setSuccess(List success) { + public checkAndDelete_result setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); return this; } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public TIOError getIo() { return this.io; } - public deleteMultiple_result setIo(TIOError io) { + public checkAndDelete_result setIo(TIOError io) { this.io = io; return this; } @@ -9780,7 +12538,7 @@ public class THBaseService { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((Boolean)value); } break; @@ -9798,7 +12556,7 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Boolean.valueOf(isSuccess()); case IO: return getIo(); @@ -9826,21 +12584,21 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteMultiple_result) - return this.equals((deleteMultiple_result)that); + if (that instanceof checkAndDelete_result) + return this.equals((checkAndDelete_result)that); return false; } - public boolean equals(deleteMultiple_result that) { + public boolean equals(checkAndDelete_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + 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.equals(that.success)) + if (this.success != that.success) return false; } @@ -9858,45 +12616,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + boolean present_success = true; + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(deleteMultiple_result other) { + @Override + public int compareTo(checkAndDelete_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - deleteMultiple_result typedOther = (deleteMultiple_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -9918,15 +12676,11 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteMultiple_result("); + StringBuilder sb = new StringBuilder("checkAndDelete_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("io:"); @@ -9955,21 +12709,23 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class deleteMultiple_resultStandardSchemeFactory implements SchemeFactory { - public deleteMultiple_resultStandardScheme getScheme() { - return new deleteMultiple_resultStandardScheme(); + private static class checkAndDelete_resultStandardSchemeFactory implements SchemeFactory { + public checkAndDelete_resultStandardScheme getScheme() { + return new checkAndDelete_resultStandardScheme(); } } - private static class deleteMultiple_resultStandardScheme extends StandardScheme { + private static class checkAndDelete_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteMultiple_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndDelete_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9980,19 +12736,8 @@ public class THBaseService { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list164 = iprot.readListBegin(); - struct.success = new ArrayList(_list164.size); - for (int _i165 = 0; _i165 < _list164.size; ++_i165) - { - TDelete _elem166; // required - _elem166 = new TDelete(); - _elem166.read(iprot); - struct.success.add(_elem166); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -10018,20 +12763,13 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteMultiple_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndDelete_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TDelete _iter167 : struct.success) - { - _iter167.write(oprot); - } - oprot.writeListEnd(); - } + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.io != null) { @@ -10045,16 +12783,16 @@ public class THBaseService { } - private static class deleteMultiple_resultTupleSchemeFactory implements SchemeFactory { - public deleteMultiple_resultTupleScheme getScheme() { - return new deleteMultiple_resultTupleScheme(); + private static class checkAndDelete_resultTupleSchemeFactory implements SchemeFactory { + public checkAndDelete_resultTupleScheme getScheme() { + return new checkAndDelete_resultTupleScheme(); } } - private static class deleteMultiple_resultTupleScheme extends TupleScheme { + private static class checkAndDelete_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -10065,13 +12803,7 @@ public class THBaseService { } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (TDelete _iter168 : struct.success) - { - _iter168.write(oprot); - } - } + oprot.writeBool(struct.success); } if (struct.isSetIo()) { struct.io.write(oprot); @@ -10079,21 +12811,11 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list169.size); - for (int _i170 = 0; _i170 < _list169.size; ++_i170) - { - TDelete _elem171; // required - _elem171 = new TDelete(); - _elem171.read(iprot); - struct.success.add(_elem171); - } - } + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -10106,77 +12828,37 @@ public class THBaseService { } - public static class checkAndDelete_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndDelete_args"); - - private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifier", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField TDELETE_FIELD_DESC = new org.apache.thrift.protocol.TField("tdelete", org.apache.thrift.protocol.TType.STRUCT, (short)6); + public static class increment_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_args"); + + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TINCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("tincrement", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new checkAndDelete_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndDelete_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new increment_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new increment_argsTupleSchemeFactory()); } /** - * to check in and delete from + * the table to increment the value on */ public ByteBuffer table; // required /** - * row to check - */ - public ByteBuffer row; // required - /** - * column family to check - */ - public ByteBuffer family; // required - /** - * column qualifier to check - */ - public ByteBuffer qualifier; // required - /** - * the expected value, if not provided the - * check is for the non-existence of the - * column in question - */ - public ByteBuffer value; // required - /** - * the TDelete to execute if the check succeeds + * the TIncrement to increment */ - public TDelete tdelete; // required + public TIncrement tincrement; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * to check in and delete from + * the table to increment the value on */ TABLE((short)1, "table"), /** - * row to check - */ - ROW((short)2, "row"), - /** - * column family to check - */ - FAMILY((short)3, "family"), - /** - * column qualifier to check - */ - QUALIFIER((short)4, "qualifier"), - /** - * the expected value, if not provided the - * check is for the non-existence of the - * column in question - */ - VALUE((short)5, "value"), - /** - * the TDelete to execute if the check succeeds + * the TIncrement to increment */ - TDELETE((short)6, "tdelete"); + TINCREMENT((short)2, "tincrement"); private static final Map byName = new HashMap(); @@ -10193,16 +12875,8 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // ROW - return ROW; - case 3: // FAMILY - return FAMILY; - case 4: // QUALIFIER - return QUALIFIER; - case 5: // VALUE - return VALUE; - case 6: // TDELETE - return TDELETE; + case 2: // TINCREMENT + return TINCREMENT; default: return null; } @@ -10218,344 +12892,143 @@ public class THBaseService { return fields; } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TDELETE, new org.apache.thrift.meta_data.FieldMetaData("tdelete", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndDelete_args.class, metaDataMap); - } - - public checkAndDelete_args() { - } - - public checkAndDelete_args( - ByteBuffer table, - ByteBuffer row, - ByteBuffer family, - ByteBuffer qualifier, - ByteBuffer value, - TDelete tdelete) - { - this(); - this.table = table; - this.row = row; - this.family = family; - this.qualifier = qualifier; - this.value = value; - this.tdelete = tdelete; - } - - /** - * Performs a deep copy on other. - */ - public checkAndDelete_args(checkAndDelete_args other) { - if (other.isSetTable()) { - this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; - } - if (other.isSetRow()) { - this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); -; - } - if (other.isSetFamily()) { - this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); -; - } - if (other.isSetQualifier()) { - this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); -; - } - if (other.isSetValue()) { - this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); -; - } - if (other.isSetTdelete()) { - this.tdelete = new TDelete(other.tdelete); - } - } - - public checkAndDelete_args deepCopy() { - return new checkAndDelete_args(this); - } - - @Override - public void clear() { - this.table = null; - this.row = null; - this.family = null; - this.qualifier = null; - this.value = null; - this.tdelete = null; - } - - /** - * to check in and delete from - */ - public byte[] getTable() { - setTable(org.apache.thrift.TBaseHelper.rightSize(table)); - return table == null ? null : table.array(); - } - - public ByteBuffer bufferForTable() { - return table; - } - - /** - * to check in and delete from - */ - public checkAndDelete_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); - return this; - } - - public checkAndDelete_args setTable(ByteBuffer table) { - this.table = table; - return this; - } - - public void unsetTable() { - this.table = null; - } - - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; - } - - public void setTableIsSet(boolean value) { - if (!value) { - this.table = null; - } - } - - /** - * row to check - */ - public byte[] getRow() { - setRow(org.apache.thrift.TBaseHelper.rightSize(row)); - return row == null ? null : row.array(); - } - - public ByteBuffer bufferForRow() { - return row; - } - - /** - * row to check - */ - public checkAndDelete_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); - return this; - } - - public checkAndDelete_args setRow(ByteBuffer row) { - this.row = row; - return this; - } - - public void unsetRow() { - this.row = null; - } - - /** Returns true if field row is set (has been assigned a value) and false otherwise */ - public boolean isSetRow() { - return this.row != null; - } - - public void setRowIsSet(boolean value) { - if (!value) { - this.row = null; - } - } - - /** - * column family to check - */ - public byte[] getFamily() { - setFamily(org.apache.thrift.TBaseHelper.rightSize(family)); - return family == null ? null : family.array(); - } - - public ByteBuffer bufferForFamily() { - return family; - } - - /** - * column family to check - */ - public checkAndDelete_args setFamily(byte[] family) { - setFamily(family == null ? (ByteBuffer)null : ByteBuffer.wrap(family)); - return this; - } - - public checkAndDelete_args setFamily(ByteBuffer family) { - this.family = family; - return this; - } + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - public void unsetFamily() { - this.family = null; - } + private final short _thriftId; + private final String _fieldName; - /** Returns true if field family is set (has been assigned a value) and false otherwise */ - public boolean isSetFamily() { - return this.family != null; - } + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } - public void setFamilyIsSet(boolean value) { - if (!value) { - this.family = null; + public short getThriftFieldId() { + return _thriftId; } - } - /** - * column qualifier to check - */ - public byte[] getQualifier() { - setQualifier(org.apache.thrift.TBaseHelper.rightSize(qualifier)); - return qualifier == null ? null : qualifier.array(); + public String getFieldName() { + return _fieldName; + } } - public ByteBuffer bufferForQualifier() { - return qualifier; + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TINCREMENT, new org.apache.thrift.meta_data.FieldMetaData("tincrement", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_args.class, metaDataMap); } - /** - * column qualifier to check - */ - public checkAndDelete_args setQualifier(byte[] qualifier) { - setQualifier(qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(qualifier)); - return this; + public increment_args() { } - public checkAndDelete_args setQualifier(ByteBuffer qualifier) { - this.qualifier = qualifier; - return this; + public increment_args( + ByteBuffer table, + TIncrement tincrement) + { + this(); + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tincrement = tincrement; } - public void unsetQualifier() { - this.qualifier = null; + /** + * Performs a deep copy on other. + */ + public increment_args(increment_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); + } + if (other.isSetTincrement()) { + this.tincrement = new TIncrement(other.tincrement); + } } - /** Returns true if field qualifier is set (has been assigned a value) and false otherwise */ - public boolean isSetQualifier() { - return this.qualifier != null; + public increment_args deepCopy() { + return new increment_args(this); } - public void setQualifierIsSet(boolean value) { - if (!value) { - this.qualifier = null; - } + @Override + public void clear() { + this.table = null; + this.tincrement = null; } /** - * the expected value, if not provided the - * check is for the non-existence of the - * column in question + * the table to increment the value on */ - public byte[] getValue() { - setValue(org.apache.thrift.TBaseHelper.rightSize(value)); - return value == null ? null : value.array(); + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); } - public ByteBuffer bufferForValue() { - return value; + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** - * the expected value, if not provided the - * check is for the non-existence of the - * column in question + * the table to increment the value on */ - public checkAndDelete_args setValue(byte[] value) { - setValue(value == null ? (ByteBuffer)null : ByteBuffer.wrap(value)); + public increment_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public checkAndDelete_args setValue(ByteBuffer value) { - this.value = value; + public increment_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } - public void unsetValue() { - this.value = null; + public void unsetTable() { + this.table = null; } - /** Returns true if field value is set (has been assigned a value) and false otherwise */ - public boolean isSetValue() { - return this.value != null; + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; } - public void setValueIsSet(boolean value) { + public void setTableIsSet(boolean value) { if (!value) { - this.value = null; + this.table = null; } } /** - * the TDelete to execute if the check succeeds + * the TIncrement to increment */ - public TDelete getTdelete() { - return this.tdelete; + public TIncrement getTincrement() { + return this.tincrement; } /** - * the TDelete to execute if the check succeeds + * the TIncrement to increment */ - public checkAndDelete_args setTdelete(TDelete tdelete) { - this.tdelete = tdelete; + public increment_args setTincrement(TIncrement tincrement) { + this.tincrement = tincrement; return this; } - public void unsetTdelete() { - this.tdelete = null; + public void unsetTincrement() { + this.tincrement = null; } - /** Returns true if field tdelete is set (has been assigned a value) and false otherwise */ - public boolean isSetTdelete() { - return this.tdelete != null; + /** Returns true if field tincrement is set (has been assigned a value) and false otherwise */ + public boolean isSetTincrement() { + return this.tincrement != null; } - public void setTdeleteIsSet(boolean value) { + public void setTincrementIsSet(boolean value) { if (!value) { - this.tdelete = null; + this.tincrement = null; } } @@ -10569,43 +13042,11 @@ public class THBaseService { } break; - case ROW: - if (value == null) { - unsetRow(); - } else { - setRow((ByteBuffer)value); - } - break; - - case FAMILY: - if (value == null) { - unsetFamily(); - } else { - setFamily((ByteBuffer)value); - } - break; - - case QUALIFIER: - if (value == null) { - unsetQualifier(); - } else { - setQualifier((ByteBuffer)value); - } - break; - - case VALUE: - if (value == null) { - unsetValue(); - } else { - setValue((ByteBuffer)value); - } - break; - - case TDELETE: + case TINCREMENT: if (value == null) { - unsetTdelete(); + unsetTincrement(); } else { - setTdelete((TDelete)value); + setTincrement((TIncrement)value); } break; @@ -10617,20 +13058,8 @@ public class THBaseService { case TABLE: return getTable(); - case ROW: - return getRow(); - - case FAMILY: - return getFamily(); - - case QUALIFIER: - return getQualifier(); - - case VALUE: - return getValue(); - - case TDELETE: - return getTdelete(); + case TINCREMENT: + return getTincrement(); } throw new IllegalStateException(); @@ -10645,16 +13074,8 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case ROW: - return isSetRow(); - case FAMILY: - return isSetFamily(); - case QUALIFIER: - return isSetQualifier(); - case VALUE: - return isSetValue(); - case TDELETE: - return isSetTdelete(); + case TINCREMENT: + return isSetTincrement(); } throw new IllegalStateException(); } @@ -10663,66 +13084,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof checkAndDelete_args) - return this.equals((checkAndDelete_args)that); + if (that instanceof increment_args) + return this.equals((increment_args)that); return false; } - public boolean equals(checkAndDelete_args that) { + public boolean equals(increment_args that) { if (that == null) return false; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); if (this_present_table || that_present_table) { - if (!(this_present_table && that_present_table)) - return false; - if (!this.table.equals(that.table)) - return false; - } - - boolean this_present_row = true && this.isSetRow(); - boolean that_present_row = true && that.isSetRow(); - if (this_present_row || that_present_row) { - if (!(this_present_row && that_present_row)) - return false; - if (!this.row.equals(that.row)) - return false; - } - - boolean this_present_family = true && this.isSetFamily(); - boolean that_present_family = true && that.isSetFamily(); - if (this_present_family || that_present_family) { - if (!(this_present_family && that_present_family)) - return false; - if (!this.family.equals(that.family)) - return false; - } - - boolean this_present_qualifier = true && this.isSetQualifier(); - boolean that_present_qualifier = true && that.isSetQualifier(); - if (this_present_qualifier || that_present_qualifier) { - if (!(this_present_qualifier && that_present_qualifier)) - return false; - if (!this.qualifier.equals(that.qualifier)) - return false; - } - - boolean this_present_value = true && this.isSetValue(); - boolean that_present_value = true && that.isSetValue(); - if (this_present_value || that_present_value) { - if (!(this_present_value && that_present_value)) + if (!(this_present_table && that_present_table)) return false; - if (!this.value.equals(that.value)) + if (!this.table.equals(that.table)) return false; } - boolean this_present_tdelete = true && this.isSetTdelete(); - boolean that_present_tdelete = true && that.isSetTdelete(); - if (this_present_tdelete || that_present_tdelete) { - if (!(this_present_tdelete && that_present_tdelete)) + boolean this_present_tincrement = true && this.isSetTincrement(); + boolean that_present_tincrement = true && that.isSetTincrement(); + if (this_present_tincrement || that_present_tincrement) { + if (!(this_present_tincrement && that_present_tincrement)) return false; - if (!this.tdelete.equals(that.tdelete)) + if (!this.tincrement.equals(that.tincrement)) return false; } @@ -10731,105 +13116,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); - - boolean present_row = true && (isSetRow()); - builder.append(present_row); - if (present_row) - builder.append(row); + list.add(table); - boolean present_family = true && (isSetFamily()); - builder.append(present_family); - if (present_family) - builder.append(family); - - boolean present_qualifier = true && (isSetQualifier()); - builder.append(present_qualifier); - if (present_qualifier) - builder.append(qualifier); - - boolean present_value = true && (isSetValue()); - builder.append(present_value); - if (present_value) - builder.append(value); - - boolean present_tdelete = true && (isSetTdelete()); - builder.append(present_tdelete); - if (present_tdelete) - builder.append(tdelete); + boolean present_tincrement = true && (isSetTincrement()); + list.add(present_tincrement); + if (present_tincrement) + list.add(tincrement); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(checkAndDelete_args other) { + @Override + public int compareTo(increment_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - checkAndDelete_args typedOther = (checkAndDelete_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(typedOther.isSetFamily()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFamily()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, typedOther.family); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(typedOther.isSetQualifier()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetQualifier()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, typedOther.qualifier); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdelete()).compareTo(typedOther.isSetTdelete()); + lastComparison = Boolean.valueOf(isSetTincrement()).compareTo(other.isSetTincrement()); if (lastComparison != 0) { return lastComparison; } - if (isSetTdelete()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdelete, typedOther.tdelete); + if (isSetTincrement()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tincrement, other.tincrement); if (lastComparison != 0) { return lastComparison; } @@ -10851,7 +13176,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("checkAndDelete_args("); + StringBuilder sb = new StringBuilder("increment_args("); boolean first = true; sb.append("table:"); @@ -10862,43 +13187,11 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("row:"); - if (this.row == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.row, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("family:"); - if (this.family == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.family, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("qualifier:"); - if (this.qualifier == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("value:"); - if (this.value == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.value, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("tdelete:"); - if (this.tdelete == null) { + sb.append("tincrement:"); + if (this.tincrement == null) { sb.append("null"); } else { - sb.append(this.tdelete); + sb.append(this.tincrement); } first = false; sb.append(")"); @@ -10910,21 +13203,12 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (row == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' was not present! Struct: " + toString()); - } - if (family == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'family' was not present! Struct: " + toString()); - } - if (qualifier == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'qualifier' was not present! Struct: " + toString()); - } - if (tdelete == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tdelete' was not present! Struct: " + toString()); + if (tincrement == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tincrement' was not present! Struct: " + toString()); } // check for sub-struct validity - if (tdelete != null) { - tdelete.validate(); + if (tincrement != null) { + tincrement.validate(); } } @@ -10944,15 +13228,15 @@ public class THBaseService { } } - private static class checkAndDelete_argsStandardSchemeFactory implements SchemeFactory { - public checkAndDelete_argsStandardScheme getScheme() { - return new checkAndDelete_argsStandardScheme(); + private static class increment_argsStandardSchemeFactory implements SchemeFactory { + public increment_argsStandardScheme getScheme() { + return new increment_argsStandardScheme(); } } - private static class checkAndDelete_argsStandardScheme extends StandardScheme { + private static class increment_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndDelete_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, increment_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10970,43 +13254,11 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // FAMILY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.family = iprot.readBinary(); - struct.setFamilyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // QUALIFIER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.qualifier = iprot.readBinary(); - struct.setQualifierIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readBinary(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // TDELETE + case 2: // TINCREMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tdelete = new TDelete(); - struct.tdelete.read(iprot); - struct.setTdeleteIsSet(true); + struct.tincrement = new TIncrement(); + struct.tincrement.read(iprot); + struct.setTincrementIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -11022,7 +13274,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndDelete_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, increment_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11031,29 +13283,9 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.row != null) { - oprot.writeFieldBegin(ROW_FIELD_DESC); - oprot.writeBinary(struct.row); - oprot.writeFieldEnd(); - } - if (struct.family != null) { - oprot.writeFieldBegin(FAMILY_FIELD_DESC); - oprot.writeBinary(struct.family); - oprot.writeFieldEnd(); - } - if (struct.qualifier != null) { - oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); - oprot.writeBinary(struct.qualifier); - oprot.writeFieldEnd(); - } - if (struct.value != null) { - oprot.writeFieldBegin(VALUE_FIELD_DESC); - oprot.writeBinary(struct.value); - oprot.writeFieldEnd(); - } - if (struct.tdelete != null) { - oprot.writeFieldBegin(TDELETE_FIELD_DESC); - struct.tdelete.write(oprot); + if (struct.tincrement != null) { + oprot.writeFieldBegin(TINCREMENT_FIELD_DESC); + struct.tincrement.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -11062,69 +13294,47 @@ public class THBaseService { } - private static class checkAndDelete_argsTupleSchemeFactory implements SchemeFactory { - public checkAndDelete_argsTupleScheme getScheme() { - return new checkAndDelete_argsTupleScheme(); + private static class increment_argsTupleSchemeFactory implements SchemeFactory { + public increment_argsTupleScheme getScheme() { + return new increment_argsTupleScheme(); } } - private static class checkAndDelete_argsTupleScheme extends TupleScheme { + private static class increment_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - oprot.writeBinary(struct.row); - oprot.writeBinary(struct.family); - oprot.writeBinary(struct.qualifier); - struct.tdelete.write(oprot); - BitSet optionals = new BitSet(); - if (struct.isSetValue()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetValue()) { - oprot.writeBinary(struct.value); - } + struct.tincrement.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - struct.family = iprot.readBinary(); - struct.setFamilyIsSet(true); - struct.qualifier = iprot.readBinary(); - struct.setQualifierIsSet(true); - struct.tdelete = new TDelete(); - struct.tdelete.read(iprot); - struct.setTdeleteIsSet(true); - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readBinary(); - struct.setValueIsSet(true); - } + struct.tincrement = new TIncrement(); + struct.tincrement.read(iprot); + struct.setTincrementIsSet(true); } } } - public static class checkAndDelete_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndDelete_result"); + public static class increment_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new checkAndDelete_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndDelete_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new increment_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new increment_resultTupleSchemeFactory()); } - public boolean success; // required + public TResult success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -11189,82 +13399,80 @@ public class THBaseService { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndDelete_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_result.class, metaDataMap); } - public checkAndDelete_result() { + public increment_result() { } - public checkAndDelete_result( - boolean success, + public increment_result( + TResult success, TIOError io) { this(); this.success = success; - setSuccessIsSet(true); this.io = io; } /** * Performs a deep copy on other. */ - public checkAndDelete_result(checkAndDelete_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public increment_result(increment_result other) { + if (other.isSetSuccess()) { + this.success = new TResult(other.success); + } if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public checkAndDelete_result deepCopy() { - return new checkAndDelete_result(this); + public increment_result deepCopy() { + return new increment_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.io = null; } - public boolean isSuccess() { + public TResult getSuccess() { return this.success; } - public checkAndDelete_result setSuccess(boolean success) { + public increment_result setSuccess(TResult success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public TIOError getIo() { return this.io; } - public checkAndDelete_result setIo(TIOError io) { + public increment_result setIo(TIOError io) { this.io = io; return this; } @@ -11290,7 +13498,7 @@ public class THBaseService { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((TResult)value); } break; @@ -11308,7 +13516,7 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case IO: return getIo(); @@ -11336,21 +13544,21 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof checkAndDelete_result) - return this.equals((checkAndDelete_result)that); + if (that instanceof increment_result) + return this.equals((increment_result)that); return false; } - public boolean equals(checkAndDelete_result that) { + public boolean equals(increment_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -11368,45 +13576,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_success = true; - builder.append(present_success); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(checkAndDelete_result other) { + @Override + public int compareTo(increment_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - checkAndDelete_result typedOther = (checkAndDelete_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -11428,11 +13636,15 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("checkAndDelete_result("); + StringBuilder sb = new StringBuilder("increment_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("io:"); @@ -11449,6 +13661,9 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -11461,23 +13676,21 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class checkAndDelete_resultStandardSchemeFactory implements SchemeFactory { - public checkAndDelete_resultStandardScheme getScheme() { - return new checkAndDelete_resultStandardScheme(); + private static class increment_resultStandardSchemeFactory implements SchemeFactory { + public increment_resultStandardScheme getScheme() { + return new increment_resultStandardScheme(); } } - private static class checkAndDelete_resultStandardScheme extends StandardScheme { + private static class increment_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndDelete_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, increment_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11488,8 +13701,9 @@ public class THBaseService { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -11515,13 +13729,13 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndDelete_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, increment_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.io != null) { @@ -11535,16 +13749,16 @@ public class THBaseService { } - private static class checkAndDelete_resultTupleSchemeFactory implements SchemeFactory { - public checkAndDelete_resultTupleScheme getScheme() { - return new checkAndDelete_resultTupleScheme(); + private static class increment_resultTupleSchemeFactory implements SchemeFactory { + public increment_resultTupleScheme getScheme() { + return new increment_resultTupleScheme(); } } - private static class checkAndDelete_resultTupleScheme extends TupleScheme { + private static class increment_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -11555,7 +13769,7 @@ public class THBaseService { } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetIo()) { struct.io.write(oprot); @@ -11563,11 +13777,12 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new TResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -11580,37 +13795,37 @@ public class THBaseService { } - public static class increment_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_args"); + public static class append_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TINCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("tincrement", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TAPPEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tappend", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new increment_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new increment_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_argsTupleSchemeFactory()); } /** - * the table to increment the value on + * the table to append the value on */ public ByteBuffer table; // required /** - * the TIncrement to increment + * the TAppend to append */ - public TIncrement tincrement; // required + public TAppend tappend; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * the table to increment the value on + * the table to append the value on */ TABLE((short)1, "table"), /** - * the TIncrement to increment + * the TAppend to append */ - TINCREMENT((short)2, "tincrement"); + TAPPEND((short)2, "tappend"); private static final Map byName = new HashMap(); @@ -11627,8 +13842,8 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // TINCREMENT - return TINCREMENT; + case 2: // TAPPEND + return TAPPEND; default: return null; } @@ -11674,49 +13889,48 @@ public class THBaseService { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TINCREMENT, new org.apache.thrift.meta_data.FieldMetaData("tincrement", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class))); + tmpMap.put(_Fields.TAPPEND, new org.apache.thrift.meta_data.FieldMetaData("tappend", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAppend.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_args.class, metaDataMap); } - public increment_args() { + public append_args() { } - public increment_args( + public append_args( ByteBuffer table, - TIncrement tincrement) + TAppend tappend) { this(); - this.table = table; - this.tincrement = tincrement; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tappend = tappend; } /** * Performs a deep copy on other. */ - public increment_args(increment_args other) { + public append_args(append_args other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; } - if (other.isSetTincrement()) { - this.tincrement = new TIncrement(other.tincrement); + if (other.isSetTappend()) { + this.tappend = new TAppend(other.tappend); } } - public increment_args deepCopy() { - return new increment_args(this); + public append_args deepCopy() { + return new append_args(this); } @Override public void clear() { this.table = null; - this.tincrement = null; + this.tappend = null; } /** - * the table to increment the value on + * the table to append the value on */ public byte[] getTable() { setTable(org.apache.thrift.TBaseHelper.rightSize(table)); @@ -11724,19 +13938,19 @@ public class THBaseService { } public ByteBuffer bufferForTable() { - return table; + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** - * the table to increment the value on + * the table to append the value on */ - public increment_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); + public append_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public increment_args setTable(ByteBuffer table) { - this.table = table; + public append_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -11756,32 +13970,32 @@ public class THBaseService { } /** - * the TIncrement to increment + * the TAppend to append */ - public TIncrement getTincrement() { - return this.tincrement; + public TAppend getTappend() { + return this.tappend; } /** - * the TIncrement to increment + * the TAppend to append */ - public increment_args setTincrement(TIncrement tincrement) { - this.tincrement = tincrement; + public append_args setTappend(TAppend tappend) { + this.tappend = tappend; return this; } - public void unsetTincrement() { - this.tincrement = null; + public void unsetTappend() { + this.tappend = null; } - /** Returns true if field tincrement is set (has been assigned a value) and false otherwise */ - public boolean isSetTincrement() { - return this.tincrement != null; + /** Returns true if field tappend is set (has been assigned a value) and false otherwise */ + public boolean isSetTappend() { + return this.tappend != null; } - public void setTincrementIsSet(boolean value) { + public void setTappendIsSet(boolean value) { if (!value) { - this.tincrement = null; + this.tappend = null; } } @@ -11795,11 +14009,11 @@ public class THBaseService { } break; - case TINCREMENT: + case TAPPEND: if (value == null) { - unsetTincrement(); + unsetTappend(); } else { - setTincrement((TIncrement)value); + setTappend((TAppend)value); } break; @@ -11811,8 +14025,8 @@ public class THBaseService { case TABLE: return getTable(); - case TINCREMENT: - return getTincrement(); + case TAPPEND: + return getTappend(); } throw new IllegalStateException(); @@ -11827,8 +14041,8 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case TINCREMENT: - return isSetTincrement(); + case TAPPEND: + return isSetTappend(); } throw new IllegalStateException(); } @@ -11837,12 +14051,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof increment_args) - return this.equals((increment_args)that); + if (that instanceof append_args) + return this.equals((append_args)that); return false; } - public boolean equals(increment_args that) { + public boolean equals(append_args that) { if (that == null) return false; @@ -11855,12 +14069,12 @@ public class THBaseService { return false; } - boolean this_present_tincrement = true && this.isSetTincrement(); - boolean that_present_tincrement = true && that.isSetTincrement(); - if (this_present_tincrement || that_present_tincrement) { - if (!(this_present_tincrement && that_present_tincrement)) + boolean this_present_tappend = true && this.isSetTappend(); + boolean that_present_tappend = true && that.isSetTappend(); + if (this_present_tappend || that_present_tappend) { + if (!(this_present_tappend && that_present_tappend)) return false; - if (!this.tincrement.equals(that.tincrement)) + if (!this.tappend.equals(that.tappend)) return false; } @@ -11869,45 +14083,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); - boolean present_tincrement = true && (isSetTincrement()); - builder.append(present_tincrement); - if (present_tincrement) - builder.append(tincrement); + boolean present_tappend = true && (isSetTappend()); + list.add(present_tappend); + if (present_tappend) + list.add(tappend); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(increment_args other) { + @Override + public int compareTo(append_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - increment_args typedOther = (increment_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTincrement()).compareTo(typedOther.isSetTincrement()); + lastComparison = Boolean.valueOf(isSetTappend()).compareTo(other.isSetTappend()); if (lastComparison != 0) { return lastComparison; } - if (isSetTincrement()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tincrement, typedOther.tincrement); + if (isSetTappend()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tappend, other.tappend); if (lastComparison != 0) { return lastComparison; } @@ -11929,7 +14143,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("increment_args("); + StringBuilder sb = new StringBuilder("append_args("); boolean first = true; sb.append("table:"); @@ -11940,11 +14154,11 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("tincrement:"); - if (this.tincrement == null) { + sb.append("tappend:"); + if (this.tappend == null) { sb.append("null"); } else { - sb.append(this.tincrement); + sb.append(this.tappend); } first = false; sb.append(")"); @@ -11956,12 +14170,12 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (tincrement == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tincrement' was not present! Struct: " + toString()); + if (tappend == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tappend' was not present! Struct: " + toString()); } // check for sub-struct validity - if (tincrement != null) { - tincrement.validate(); + if (tappend != null) { + tappend.validate(); } } @@ -11981,15 +14195,15 @@ public class THBaseService { } } - private static class increment_argsStandardSchemeFactory implements SchemeFactory { - public increment_argsStandardScheme getScheme() { - return new increment_argsStandardScheme(); + private static class append_argsStandardSchemeFactory implements SchemeFactory { + public append_argsStandardScheme getScheme() { + return new append_argsStandardScheme(); } } - private static class increment_argsStandardScheme extends StandardScheme { + private static class append_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, increment_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12007,11 +14221,11 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TINCREMENT + case 2: // TAPPEND if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tincrement = new TIncrement(); - struct.tincrement.read(iprot); - struct.setTincrementIsSet(true); + struct.tappend = new TAppend(); + struct.tappend.read(iprot); + struct.setTappendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12027,7 +14241,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, increment_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12036,9 +14250,9 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.tincrement != null) { - oprot.writeFieldBegin(TINCREMENT_FIELD_DESC); - struct.tincrement.write(oprot); + if (struct.tappend != null) { + oprot.writeFieldBegin(TAPPEND_FIELD_DESC); + struct.tappend.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -12047,44 +14261,44 @@ public class THBaseService { } - private static class increment_argsTupleSchemeFactory implements SchemeFactory { - public increment_argsTupleScheme getScheme() { - return new increment_argsTupleScheme(); + private static class append_argsTupleSchemeFactory implements SchemeFactory { + public append_argsTupleScheme getScheme() { + return new append_argsTupleScheme(); } } - private static class increment_argsTupleScheme extends TupleScheme { + private static class append_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - struct.tincrement.write(oprot); + struct.tappend.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - struct.tincrement = new TIncrement(); - struct.tincrement.read(iprot); - struct.setTincrementIsSet(true); + struct.tappend = new TAppend(); + struct.tappend.read(iprot); + struct.setTappendIsSet(true); } } } - public static class increment_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_result"); + public static class append_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new increment_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new increment_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_resultTupleSchemeFactory()); } public TResult success; // required @@ -12160,13 +14374,13 @@ public class THBaseService { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_result.class, metaDataMap); } - public increment_result() { + public append_result() { } - public increment_result( + public append_result( TResult success, TIOError io) { @@ -12178,7 +14392,7 @@ public class THBaseService { /** * Performs a deep copy on other. */ - public increment_result(increment_result other) { + public append_result(append_result other) { if (other.isSetSuccess()) { this.success = new TResult(other.success); } @@ -12187,8 +14401,8 @@ public class THBaseService { } } - public increment_result deepCopy() { - return new increment_result(this); + public append_result deepCopy() { + return new append_result(this); } @Override @@ -12201,7 +14415,7 @@ public class THBaseService { return this.success; } - public increment_result setSuccess(TResult success) { + public append_result setSuccess(TResult success) { this.success = success; return this; } @@ -12225,7 +14439,7 @@ public class THBaseService { return this.io; } - public increment_result setIo(TIOError io) { + public append_result setIo(TIOError io) { this.io = io; return this; } @@ -12297,12 +14511,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof increment_result) - return this.equals((increment_result)that); + if (that instanceof append_result) + return this.equals((append_result)that); return false; } - public boolean equals(increment_result that) { + public boolean equals(append_result that) { if (that == null) return false; @@ -12329,45 +14543,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(increment_result other) { + @Override + public int compareTo(append_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - increment_result typedOther = (increment_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -12389,7 +14603,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("increment_result("); + StringBuilder sb = new StringBuilder("append_result("); boolean first = true; sb.append("success:"); @@ -12435,15 +14649,15 @@ public class THBaseService { } } - private static class increment_resultStandardSchemeFactory implements SchemeFactory { - public increment_resultStandardScheme getScheme() { - return new increment_resultStandardScheme(); + private static class append_resultStandardSchemeFactory implements SchemeFactory { + public append_resultStandardScheme getScheme() { + return new append_resultStandardScheme(); } } - private static class increment_resultStandardScheme extends StandardScheme { + private static class append_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, increment_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12482,7 +14696,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, increment_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12502,16 +14716,16 @@ public class THBaseService { } - private static class increment_resultTupleSchemeFactory implements SchemeFactory { - public increment_resultTupleScheme getScheme() { - return new increment_resultTupleScheme(); + private static class append_resultTupleSchemeFactory implements SchemeFactory { + public append_resultTupleScheme getScheme() { + return new append_resultTupleScheme(); } } - private static class increment_resultTupleScheme extends TupleScheme { + private static class append_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -12530,7 +14744,7 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -12548,37 +14762,37 @@ public class THBaseService { } - public static class append_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_args"); + public static class openScanner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("openScanner_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TAPPEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tappend", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TSCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("tscan", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new openScanner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new openScanner_argsTupleSchemeFactory()); } /** - * the table to append the value on + * the table to get the Scanner for */ public ByteBuffer table; // required /** - * the TAppend to append + * the scan object to get a Scanner for */ - public TAppend tappend; // required + public TScan tscan; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * the table to append the value on + * the table to get the Scanner for */ TABLE((short)1, "table"), /** - * the TAppend to append + * the scan object to get a Scanner for */ - TAPPEND((short)2, "tappend"); + TSCAN((short)2, "tscan"); private static final Map byName = new HashMap(); @@ -12595,8 +14809,8 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // TAPPEND - return TAPPEND; + case 2: // TSCAN + return TSCAN; default: return null; } @@ -12642,49 +14856,48 @@ public class THBaseService { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TAPPEND, new org.apache.thrift.meta_data.FieldMetaData("tappend", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAppend.class))); + tmpMap.put(_Fields.TSCAN, new org.apache.thrift.meta_data.FieldMetaData("tscan", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openScanner_args.class, metaDataMap); } - public append_args() { + public openScanner_args() { } - public append_args( + public openScanner_args( ByteBuffer table, - TAppend tappend) + TScan tscan) { this(); - this.table = table; - this.tappend = tappend; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tscan = tscan; } /** * Performs a deep copy on other. */ - public append_args(append_args other) { + public openScanner_args(openScanner_args other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; } - if (other.isSetTappend()) { - this.tappend = new TAppend(other.tappend); + if (other.isSetTscan()) { + this.tscan = new TScan(other.tscan); } } - public append_args deepCopy() { - return new append_args(this); + public openScanner_args deepCopy() { + return new openScanner_args(this); } @Override public void clear() { this.table = null; - this.tappend = null; + this.tscan = null; } /** - * the table to append the value on + * the table to get the Scanner for */ public byte[] getTable() { setTable(org.apache.thrift.TBaseHelper.rightSize(table)); @@ -12692,19 +14905,19 @@ public class THBaseService { } public ByteBuffer bufferForTable() { - return table; + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** - * the table to append the value on + * the table to get the Scanner for */ - public append_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); + public openScanner_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public append_args setTable(ByteBuffer table) { - this.table = table; + public openScanner_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -12724,32 +14937,32 @@ public class THBaseService { } /** - * the TAppend to append + * the scan object to get a Scanner for */ - public TAppend getTappend() { - return this.tappend; + public TScan getTscan() { + return this.tscan; } /** - * the TAppend to append + * the scan object to get a Scanner for */ - public append_args setTappend(TAppend tappend) { - this.tappend = tappend; + public openScanner_args setTscan(TScan tscan) { + this.tscan = tscan; return this; } - public void unsetTappend() { - this.tappend = null; + public void unsetTscan() { + this.tscan = null; } - /** Returns true if field tappend is set (has been assigned a value) and false otherwise */ - public boolean isSetTappend() { - return this.tappend != null; + /** Returns true if field tscan is set (has been assigned a value) and false otherwise */ + public boolean isSetTscan() { + return this.tscan != null; } - public void setTappendIsSet(boolean value) { + public void setTscanIsSet(boolean value) { if (!value) { - this.tappend = null; + this.tscan = null; } } @@ -12763,11 +14976,11 @@ public class THBaseService { } break; - case TAPPEND: + case TSCAN: if (value == null) { - unsetTappend(); + unsetTscan(); } else { - setTappend((TAppend)value); + setTscan((TScan)value); } break; @@ -12779,8 +14992,8 @@ public class THBaseService { case TABLE: return getTable(); - case TAPPEND: - return getTappend(); + case TSCAN: + return getTscan(); } throw new IllegalStateException(); @@ -12795,8 +15008,8 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case TAPPEND: - return isSetTappend(); + case TSCAN: + return isSetTscan(); } throw new IllegalStateException(); } @@ -12805,12 +15018,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_args) - return this.equals((append_args)that); + if (that instanceof openScanner_args) + return this.equals((openScanner_args)that); return false; } - public boolean equals(append_args that) { + public boolean equals(openScanner_args that) { if (that == null) return false; @@ -12823,12 +15036,12 @@ public class THBaseService { return false; } - boolean this_present_tappend = true && this.isSetTappend(); - boolean that_present_tappend = true && that.isSetTappend(); - if (this_present_tappend || that_present_tappend) { - if (!(this_present_tappend && that_present_tappend)) + boolean this_present_tscan = true && this.isSetTscan(); + boolean that_present_tscan = true && that.isSetTscan(); + if (this_present_tscan || that_present_tscan) { + if (!(this_present_tscan && that_present_tscan)) return false; - if (!this.tappend.equals(that.tappend)) + if (!this.tscan.equals(that.tscan)) return false; } @@ -12837,45 +15050,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); - boolean present_tappend = true && (isSetTappend()); - builder.append(present_tappend); - if (present_tappend) - builder.append(tappend); + boolean present_tscan = true && (isSetTscan()); + list.add(present_tscan); + if (present_tscan) + list.add(tscan); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(append_args other) { + @Override + public int compareTo(openScanner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - append_args typedOther = (append_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTappend()).compareTo(typedOther.isSetTappend()); + lastComparison = Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); if (lastComparison != 0) { return lastComparison; } - if (isSetTappend()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tappend, typedOther.tappend); + if (isSetTscan()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tscan, other.tscan); if (lastComparison != 0) { return lastComparison; } @@ -12897,7 +15110,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("append_args("); + StringBuilder sb = new StringBuilder("openScanner_args("); boolean first = true; sb.append("table:"); @@ -12908,11 +15121,11 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("tappend:"); - if (this.tappend == null) { + sb.append("tscan:"); + if (this.tscan == null) { sb.append("null"); } else { - sb.append(this.tappend); + sb.append(this.tscan); } first = false; sb.append(")"); @@ -12924,12 +15137,12 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (tappend == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tappend' was not present! Struct: " + toString()); + if (tscan == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tscan' was not present! Struct: " + toString()); } // check for sub-struct validity - if (tappend != null) { - tappend.validate(); + if (tscan != null) { + tscan.validate(); } } @@ -12949,15 +15162,15 @@ public class THBaseService { } } - private static class append_argsStandardSchemeFactory implements SchemeFactory { - public append_argsStandardScheme getScheme() { - return new append_argsStandardScheme(); + private static class openScanner_argsStandardSchemeFactory implements SchemeFactory { + public openScanner_argsStandardScheme getScheme() { + return new openScanner_argsStandardScheme(); } } - private static class append_argsStandardScheme extends StandardScheme { + private static class openScanner_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, openScanner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12975,11 +15188,11 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TAPPEND + case 2: // TSCAN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tappend = new TAppend(); - struct.tappend.read(iprot); - struct.setTappendIsSet(true); + struct.tscan = new TScan(); + struct.tscan.read(iprot); + struct.setTscanIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12995,7 +15208,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, openScanner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13004,9 +15217,9 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.tappend != null) { - oprot.writeFieldBegin(TAPPEND_FIELD_DESC); - struct.tappend.write(oprot); + if (struct.tscan != null) { + oprot.writeFieldBegin(TSCAN_FIELD_DESC); + struct.tscan.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -13015,47 +15228,47 @@ public class THBaseService { } - private static class append_argsTupleSchemeFactory implements SchemeFactory { - public append_argsTupleScheme getScheme() { - return new append_argsTupleScheme(); + private static class openScanner_argsTupleSchemeFactory implements SchemeFactory { + public openScanner_argsTupleScheme getScheme() { + return new openScanner_argsTupleScheme(); } } - private static class append_argsTupleScheme extends TupleScheme { + private static class openScanner_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, openScanner_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - struct.tappend.write(oprot); + struct.tscan.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, openScanner_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - struct.tappend = new TAppend(); - struct.tappend.read(iprot); - struct.setTappendIsSet(true); + struct.tscan = new TScan(); + struct.tscan.read(iprot); + struct.setTscanIsSet(true); } } } - public static class append_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_result"); + public static class openScanner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("openScanner_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new openScanner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new openScanner_resultTupleSchemeFactory()); } - public TResult success; // required + public int success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -13120,80 +15333,82 @@ public class THBaseService { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openScanner_result.class, metaDataMap); } - public append_result() { + public openScanner_result() { } - public append_result( - TResult success, + public openScanner_result( + int success, TIOError io) { this(); this.success = success; + setSuccessIsSet(true); this.io = io; } /** * Performs a deep copy on other. */ - public append_result(append_result other) { - if (other.isSetSuccess()) { - this.success = new TResult(other.success); - } + public openScanner_result(openScanner_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public append_result deepCopy() { - return new append_result(this); + public openScanner_result deepCopy() { + return new openScanner_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = 0; this.io = null; } - public TResult getSuccess() { + public int getSuccess() { return this.success; } - public append_result setSuccess(TResult success) { + public openScanner_result setSuccess(int success) { this.success = success; + setSuccessIsSet(true); return this; } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public TIOError getIo() { return this.io; } - public append_result setIo(TIOError io) { + public openScanner_result setIo(TIOError io) { this.io = io; return this; } @@ -13219,7 +15434,7 @@ public class THBaseService { if (value == null) { unsetSuccess(); } else { - setSuccess((TResult)value); + setSuccess((Integer)value); } break; @@ -13237,7 +15452,7 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Integer.valueOf(getSuccess()); case IO: return getIo(); @@ -13265,21 +15480,21 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_result) - return this.equals((append_result)that); + if (that instanceof openScanner_result) + return this.equals((openScanner_result)that); return false; } - public boolean equals(append_result that) { + public boolean equals(openScanner_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + 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.equals(that.success)) + if (this.success != that.success) return false; } @@ -13297,45 +15512,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + boolean present_success = true; + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(append_result other) { + @Override + public int compareTo(openScanner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - append_result typedOther = (append_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -13357,15 +15572,11 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("append_result("); + StringBuilder sb = new StringBuilder("openScanner_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("io:"); @@ -13382,9 +15593,6 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -13397,21 +15605,23 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class append_resultStandardSchemeFactory implements SchemeFactory { - public append_resultStandardScheme getScheme() { - return new append_resultStandardScheme(); + private static class openScanner_resultStandardSchemeFactory implements SchemeFactory { + public openScanner_resultStandardScheme getScheme() { + return new openScanner_resultStandardScheme(); } } - private static class append_resultStandardScheme extends StandardScheme { + private static class openScanner_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, openScanner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13422,9 +15632,8 @@ public class THBaseService { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -13450,13 +15659,13 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, openScanner_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeI32(struct.success); oprot.writeFieldEnd(); } if (struct.io != null) { @@ -13470,16 +15679,16 @@ public class THBaseService { } - private static class append_resultTupleSchemeFactory implements SchemeFactory { - public append_resultTupleScheme getScheme() { - return new append_resultTupleScheme(); + private static class openScanner_resultTupleSchemeFactory implements SchemeFactory { + public openScanner_resultTupleScheme getScheme() { + return new openScanner_resultTupleScheme(); } } - private static class append_resultTupleScheme extends TupleScheme { + private static class openScanner_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, openScanner_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -13490,7 +15699,7 @@ public class THBaseService { } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeI32(struct.success); } if (struct.isSetIo()) { struct.io.write(oprot); @@ -13498,12 +15707,11 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, openScanner_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new TResult(); - struct.success.read(iprot); + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -13516,37 +15724,37 @@ public class THBaseService { } - public static class openScanner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("openScanner_args"); + public static class getScannerRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScannerRows_args"); - private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TSCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("tscan", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SCANNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("scannerId", org.apache.thrift.protocol.TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new openScanner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new openScanner_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getScannerRows_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getScannerRows_argsTupleSchemeFactory()); } /** - * the table to get the Scanner for + * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. */ - public ByteBuffer table; // required + public int scannerId; // required /** - * the scan object to get a Scanner for + * number of rows to return */ - public TScan tscan; // required + public int numRows; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * the table to get the Scanner for + * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. */ - TABLE((short)1, "table"), + SCANNER_ID((short)1, "scannerId"), /** - * the scan object to get a Scanner for + * number of rows to return */ - TSCAN((short)2, "tscan"); + NUM_ROWS((short)2, "numRows"); private static final Map byName = new HashMap(); @@ -13561,10 +15769,10 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TABLE - return TABLE; - case 2: // TSCAN - return TSCAN; + case 1: // SCANNER_ID + return SCANNER_ID; + case 2: // NUM_ROWS + return NUM_ROWS; default: return null; } @@ -13605,137 +15813,130 @@ public class THBaseService { } // isset id assignments + private static final int __SCANNERID_ISSET_ID = 0; + private static final int __NUMROWS_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TSCAN, new org.apache.thrift.meta_data.FieldMetaData("tscan", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class))); + tmpMap.put(_Fields.SCANNER_ID, new org.apache.thrift.meta_data.FieldMetaData("scannerId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.NUM_ROWS, new org.apache.thrift.meta_data.FieldMetaData("numRows", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openScanner_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerRows_args.class, metaDataMap); } - public openScanner_args() { + public getScannerRows_args() { + this.numRows = 1; + } - public openScanner_args( - ByteBuffer table, - TScan tscan) + public getScannerRows_args( + int scannerId, + int numRows) { this(); - this.table = table; - this.tscan = tscan; + this.scannerId = scannerId; + setScannerIdIsSet(true); + this.numRows = numRows; + setNumRowsIsSet(true); } /** * Performs a deep copy on other. */ - public openScanner_args(openScanner_args other) { - if (other.isSetTable()) { - this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; - } - if (other.isSetTscan()) { - this.tscan = new TScan(other.tscan); - } + public getScannerRows_args(getScannerRows_args other) { + __isset_bitfield = other.__isset_bitfield; + this.scannerId = other.scannerId; + this.numRows = other.numRows; } - public openScanner_args deepCopy() { - return new openScanner_args(this); + public getScannerRows_args deepCopy() { + return new getScannerRows_args(this); } @Override public void clear() { - this.table = null; - this.tscan = null; + setScannerIdIsSet(false); + this.scannerId = 0; + this.numRows = 1; + } /** - * the table to get the Scanner for + * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. */ - public byte[] getTable() { - setTable(org.apache.thrift.TBaseHelper.rightSize(table)); - return table == null ? null : table.array(); - } - - public ByteBuffer bufferForTable() { - return table; + public int getScannerId() { + return this.scannerId; } /** - * the table to get the Scanner for + * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. */ - public openScanner_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); - return this; - } - - public openScanner_args setTable(ByteBuffer table) { - this.table = table; + public getScannerRows_args setScannerId(int scannerId) { + this.scannerId = scannerId; + setScannerIdIsSet(true); return this; } - - public void unsetTable() { - this.table = null; + + public void unsetScannerId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); } - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; + /** Returns true if field scannerId is set (has been assigned a value) and false otherwise */ + public boolean isSetScannerId() { + return EncodingUtils.testBit(__isset_bitfield, __SCANNERID_ISSET_ID); } - public void setTableIsSet(boolean value) { - if (!value) { - this.table = null; - } + public void setScannerIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); } /** - * the scan object to get a Scanner for + * number of rows to return */ - public TScan getTscan() { - return this.tscan; + public int getNumRows() { + return this.numRows; } /** - * the scan object to get a Scanner for + * number of rows to return */ - public openScanner_args setTscan(TScan tscan) { - this.tscan = tscan; + public getScannerRows_args setNumRows(int numRows) { + this.numRows = numRows; + setNumRowsIsSet(true); return this; } - public void unsetTscan() { - this.tscan = null; + public void unsetNumRows() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); } - /** Returns true if field tscan is set (has been assigned a value) and false otherwise */ - public boolean isSetTscan() { - return this.tscan != null; + /** Returns true if field numRows is set (has been assigned a value) and false otherwise */ + public boolean isSetNumRows() { + return EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); } - public void setTscanIsSet(boolean value) { - if (!value) { - this.tscan = null; - } + public void setNumRowsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TABLE: + case SCANNER_ID: if (value == null) { - unsetTable(); + unsetScannerId(); } else { - setTable((ByteBuffer)value); + setScannerId((Integer)value); } break; - case TSCAN: + case NUM_ROWS: if (value == null) { - unsetTscan(); + unsetNumRows(); } else { - setTscan((TScan)value); + setNumRows((Integer)value); } break; @@ -13744,11 +15945,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case TABLE: - return getTable(); + case SCANNER_ID: + return Integer.valueOf(getScannerId()); - case TSCAN: - return getTscan(); + case NUM_ROWS: + return Integer.valueOf(getNumRows()); } throw new IllegalStateException(); @@ -13761,10 +15962,10 @@ public class THBaseService { } switch (field) { - case TABLE: - return isSetTable(); - case TSCAN: - return isSetTscan(); + case SCANNER_ID: + return isSetScannerId(); + case NUM_ROWS: + return isSetNumRows(); } throw new IllegalStateException(); } @@ -13773,30 +15974,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof openScanner_args) - return this.equals((openScanner_args)that); + if (that instanceof getScannerRows_args) + return this.equals((getScannerRows_args)that); return false; } - public boolean equals(openScanner_args that) { + public boolean equals(getScannerRows_args that) { if (that == null) return false; - boolean this_present_table = true && this.isSetTable(); - boolean that_present_table = true && that.isSetTable(); - if (this_present_table || that_present_table) { - if (!(this_present_table && that_present_table)) + boolean this_present_scannerId = true; + boolean that_present_scannerId = true; + if (this_present_scannerId || that_present_scannerId) { + if (!(this_present_scannerId && that_present_scannerId)) return false; - if (!this.table.equals(that.table)) + if (this.scannerId != that.scannerId) return false; } - boolean this_present_tscan = true && this.isSetTscan(); - boolean that_present_tscan = true && that.isSetTscan(); - if (this_present_tscan || that_present_tscan) { - if (!(this_present_tscan && that_present_tscan)) + boolean this_present_numRows = true; + boolean that_present_numRows = true; + if (this_present_numRows || that_present_numRows) { + if (!(this_present_numRows && that_present_numRows)) return false; - if (!this.tscan.equals(that.tscan)) + if (this.numRows != that.numRows) return false; } @@ -13805,45 +16006,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_table = true && (isSetTable()); - builder.append(present_table); - if (present_table) - builder.append(table); + boolean present_scannerId = true; + list.add(present_scannerId); + if (present_scannerId) + list.add(scannerId); - boolean present_tscan = true && (isSetTscan()); - builder.append(present_tscan); - if (present_tscan) - builder.append(tscan); + boolean present_numRows = true; + list.add(present_numRows); + if (present_numRows) + list.add(numRows); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(openScanner_args other) { + @Override + public int compareTo(getScannerRows_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - openScanner_args typedOther = (openScanner_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); if (lastComparison != 0) { return lastComparison; } - if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + if (isSetScannerId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scannerId, other.scannerId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTscan()).compareTo(typedOther.isSetTscan()); + lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); if (lastComparison != 0) { return lastComparison; } - if (isSetTscan()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tscan, typedOther.tscan); + if (isSetNumRows()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, other.numRows); if (lastComparison != 0) { return lastComparison; } @@ -13865,23 +16066,15 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("openScanner_args("); + StringBuilder sb = new StringBuilder("getScannerRows_args("); boolean first = true; - sb.append("table:"); - if (this.table == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.table, sb); - } + sb.append("scannerId:"); + sb.append(this.scannerId); first = false; if (!first) sb.append(", "); - sb.append("tscan:"); - if (this.tscan == null) { - sb.append("null"); - } else { - sb.append(this.tscan); - } + sb.append("numRows:"); + sb.append(this.numRows); first = false; sb.append(")"); return sb.toString(); @@ -13889,16 +16082,8 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields - if (table == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); - } - if (tscan == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tscan' was not present! Struct: " + toString()); - } + // alas, we cannot check 'scannerId' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity - if (tscan != null) { - tscan.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -13911,21 +16096,23 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class openScanner_argsStandardSchemeFactory implements SchemeFactory { - public openScanner_argsStandardScheme getScheme() { - return new openScanner_argsStandardScheme(); + private static class getScannerRows_argsStandardSchemeFactory implements SchemeFactory { + public getScannerRows_argsStandardScheme getScheme() { + return new getScannerRows_argsStandardScheme(); } } - private static class openScanner_argsStandardScheme extends StandardScheme { + private static class getScannerRows_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, openScanner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerRows_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13935,19 +16122,18 @@ public class THBaseService { break; } switch (schemeField.id) { - case 1: // TABLE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); + case 1: // SCANNER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.scannerId = iprot.readI32(); + struct.setScannerIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TSCAN - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tscan = new TScan(); - struct.tscan.read(iprot); - struct.setTscanIsSet(true); + case 2: // NUM_ROWS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.numRows = iprot.readI32(); + struct.setNumRowsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -13960,76 +16146,93 @@ public class THBaseService { iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetScannerId()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'scannerId' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, openScanner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getScannerRows_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.table != null) { - oprot.writeFieldBegin(TABLE_FIELD_DESC); - oprot.writeBinary(struct.table); - oprot.writeFieldEnd(); - } - if (struct.tscan != null) { - oprot.writeFieldBegin(TSCAN_FIELD_DESC); - struct.tscan.write(oprot); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(SCANNER_ID_FIELD_DESC); + oprot.writeI32(struct.scannerId); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(NUM_ROWS_FIELD_DESC); + oprot.writeI32(struct.numRows); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class openScanner_argsTupleSchemeFactory implements SchemeFactory { - public openScanner_argsTupleScheme getScheme() { - return new openScanner_argsTupleScheme(); + private static class getScannerRows_argsTupleSchemeFactory implements SchemeFactory { + public getScannerRows_argsTupleScheme getScheme() { + return new getScannerRows_argsTupleScheme(); } } - private static class openScanner_argsTupleScheme extends TupleScheme { + private static class getScannerRows_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, openScanner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeBinary(struct.table); - struct.tscan.write(oprot); + oprot.writeI32(struct.scannerId); + BitSet optionals = new BitSet(); + if (struct.isSetNumRows()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetNumRows()) { + oprot.writeI32(struct.numRows); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, openScanner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getScannerRows_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); - struct.tscan = new TScan(); - struct.tscan.read(iprot); - struct.setTscanIsSet(true); + struct.scannerId = iprot.readI32(); + struct.setScannerIdIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.numRows = iprot.readI32(); + struct.setNumRowsIsSet(true); + } } } } - public static class openScanner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("openScanner_result"); + public static class getScannerRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScannerRows_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new openScanner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new openScanner_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getScannerRows_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getScannerRows_resultTupleSchemeFactory()); } - public int success; // required + public List success; // required public TIOError io; // required + /** + * if the scannerId is invalid + */ + public TIllegalArgument ia; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - IO((short)1, "io"); + IO((short)1, "io"), + /** + * if the scannerId is invalid + */ + IA((short)2, "ia"); private static final Map byName = new HashMap(); @@ -14048,6 +16251,8 @@ public class THBaseService { return SUCCESS; case 1: // IO return IO; + case 2: // IA + return IA; default: return null; } @@ -14088,82 +16293,108 @@ public class THBaseService { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openScanner_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerRows_result.class, metaDataMap); } - public openScanner_result() { + public getScannerRows_result() { } - public openScanner_result( - int success, - TIOError io) + public getScannerRows_result( + List success, + TIOError io, + TIllegalArgument ia) { this(); this.success = success; - setSuccessIsSet(true); this.io = io; + this.ia = ia; } /** * Performs a deep copy on other. */ - public openScanner_result(openScanner_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getScannerRows_result(getScannerRows_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (TResult other_element : other.success) { + __this__success.add(new TResult(other_element)); + } + this.success = __this__success; + } if (other.isSetIo()) { this.io = new TIOError(other.io); } + if (other.isSetIa()) { + this.ia = new TIllegalArgument(other.ia); + } } - public openScanner_result deepCopy() { - return new openScanner_result(this); + public getScannerRows_result deepCopy() { + return new getScannerRows_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = 0; + this.success = null; this.io = null; + this.ia = null; } - public int getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(TResult elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public openScanner_result setSuccess(int success) { + public getScannerRows_result setSuccess(List success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public TIOError getIo() { return this.io; } - public openScanner_result setIo(TIOError io) { + public getScannerRows_result setIo(TIOError io) { this.io = io; return this; } @@ -14183,13 +16414,43 @@ public class THBaseService { } } + /** + * if the scannerId is invalid + */ + public TIllegalArgument getIa() { + return this.ia; + } + + /** + * if the scannerId is invalid + */ + public getScannerRows_result setIa(TIllegalArgument ia) { + this.ia = ia; + return this; + } + + public void unsetIa() { + this.ia = null; + } + + /** Returns true if field ia is set (has been assigned a value) and false otherwise */ + public boolean isSetIa() { + return this.ia != null; + } + + public void setIaIsSet(boolean value) { + if (!value) { + this.ia = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((List)value); } break; @@ -14201,17 +16462,28 @@ public class THBaseService { } break; + case IA: + if (value == null) { + unsetIa(); + } else { + setIa((TIllegalArgument)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Integer.valueOf(getSuccess()); + return getSuccess(); case IO: return getIo(); + case IA: + return getIa(); + } throw new IllegalStateException(); } @@ -14227,6 +16499,8 @@ public class THBaseService { return isSetSuccess(); case IO: return isSetIo(); + case IA: + return isSetIa(); } throw new IllegalStateException(); } @@ -14235,21 +16509,21 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof openScanner_result) - return this.equals((openScanner_result)that); + if (that instanceof getScannerRows_result) + return this.equals((getScannerRows_result)that); return false; } - public boolean equals(openScanner_result that) { + public boolean equals(getScannerRows_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -14262,50 +16536,74 @@ public class THBaseService { return false; } + boolean this_present_ia = true && this.isSetIa(); + boolean that_present_ia = true && that.isSetIa(); + 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; } @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_success = true; - builder.append(present_success); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); + + boolean present_ia = true && (isSetIa()); + list.add(present_ia); + if (present_ia) + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(openScanner_result other) { + @Override + public int compareTo(getScannerRows_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - openScanner_result typedOther = (openScanner_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIa()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -14327,11 +16625,15 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("openScanner_result("); + StringBuilder sb = new StringBuilder("getScannerRows_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("io:"); @@ -14341,6 +16643,14 @@ public class THBaseService { sb.append(this.io); } first = false; + if (!first) sb.append(", "); + sb.append("ia:"); + if (this.ia == null) { + sb.append("null"); + } else { + sb.append(this.ia); + } + first = false; sb.append(")"); return sb.toString(); } @@ -14360,23 +16670,21 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class openScanner_resultStandardSchemeFactory implements SchemeFactory { - public openScanner_resultStandardScheme getScheme() { - return new openScanner_resultStandardScheme(); + private static class getScannerRows_resultStandardSchemeFactory implements SchemeFactory { + public getScannerRows_resultStandardScheme getScheme() { + return new getScannerRows_resultStandardScheme(); } } - private static class openScanner_resultStandardScheme extends StandardScheme { + private static class getScannerRows_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, openScanner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerRows_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14387,8 +16695,19 @@ public class THBaseService { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.success = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list172 = iprot.readListBegin(); + struct.success = new ArrayList(_list172.size); + TResult _elem173; + for (int _i174 = 0; _i174 < _list172.size; ++_i174) + { + _elem173 = new TResult(); + _elem173.read(iprot); + struct.success.add(_elem173); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -14403,6 +16722,15 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // IA + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ia = new TIllegalArgument(); + struct.ia.read(iprot); + struct.setIaIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14414,13 +16742,20 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, openScanner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getScannerRows_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeI32(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TResult _iter175 : struct.success) + { + _iter175.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.io != null) { @@ -14428,22 +16763,27 @@ public class THBaseService { struct.io.write(oprot); oprot.writeFieldEnd(); } + if (struct.ia != null) { + oprot.writeFieldBegin(IA_FIELD_DESC); + struct.ia.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class openScanner_resultTupleSchemeFactory implements SchemeFactory { - public openScanner_resultTupleScheme getScheme() { - return new openScanner_resultTupleScheme(); + private static class getScannerRows_resultTupleSchemeFactory implements SchemeFactory { + public getScannerRows_resultTupleScheme getScheme() { + return new getScannerRows_resultTupleScheme(); } } - private static class openScanner_resultTupleScheme extends TupleScheme { + private static class getScannerRows_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, openScanner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -14452,21 +16792,43 @@ public class THBaseService { if (struct.isSetIo()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetIa()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeI32(struct.success); + { + oprot.writeI32(struct.success.size()); + for (TResult _iter176 : struct.success) + { + _iter176.write(oprot); + } + } } if (struct.isSetIo()) { struct.io.write(oprot); } + if (struct.isSetIa()) { + struct.ia.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, openScanner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readI32(); + { + org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list177.size); + TResult _elem178; + for (int _i179 = 0; _i179 < _list177.size; ++_i179) + { + _elem178 = new TResult(); + _elem178.read(iprot); + struct.success.add(_elem178); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -14474,42 +16836,38 @@ public class THBaseService { struct.io.read(iprot); struct.setIoIsSet(true); } + if (incoming.get(2)) { + struct.ia = new TIllegalArgument(); + struct.ia.read(iprot); + struct.setIaIsSet(true); + } } } } - public static class getScannerRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScannerRows_args"); + public static class closeScanner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeScanner_args"); private static final org.apache.thrift.protocol.TField SCANNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("scannerId", org.apache.thrift.protocol.TType.I32, (short)1); - private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getScannerRows_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerRows_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new closeScanner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new closeScanner_argsTupleSchemeFactory()); } /** - * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. + * the Id of the Scanner to close * */ public int scannerId; // required - /** - * number of rows to return - */ - public int numRows; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. - */ - SCANNER_ID((short)1, "scannerId"), - /** - * number of rows to return + * the Id of the Scanner to close * */ - NUM_ROWS((short)2, "numRows"); + SCANNER_ID((short)1, "scannerId"); private static final Map byName = new HashMap(); @@ -14526,8 +16884,6 @@ public class THBaseService { switch(fieldId) { case 1: // SCANNER_ID return SCANNER_ID; - case 2: // NUM_ROWS - return NUM_ROWS; default: return null; } @@ -14569,67 +16925,56 @@ public class THBaseService { // isset id assignments private static final int __SCANNERID_ISSET_ID = 0; - private static final int __NUMROWS_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SCANNER_ID, new org.apache.thrift.meta_data.FieldMetaData("scannerId", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.NUM_ROWS, new org.apache.thrift.meta_data.FieldMetaData("numRows", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerRows_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeScanner_args.class, metaDataMap); } - public getScannerRows_args() { - this.numRows = 1; - + public closeScanner_args() { } - public getScannerRows_args( - int scannerId, - int numRows) + public closeScanner_args( + int scannerId) { this(); this.scannerId = scannerId; setScannerIdIsSet(true); - this.numRows = numRows; - setNumRowsIsSet(true); } /** * Performs a deep copy on other. */ - public getScannerRows_args(getScannerRows_args other) { + public closeScanner_args(closeScanner_args other) { __isset_bitfield = other.__isset_bitfield; this.scannerId = other.scannerId; - this.numRows = other.numRows; } - public getScannerRows_args deepCopy() { - return new getScannerRows_args(this); + public closeScanner_args deepCopy() { + return new closeScanner_args(this); } @Override public void clear() { setScannerIdIsSet(false); this.scannerId = 0; - this.numRows = 1; - } /** - * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. + * the Id of the Scanner to close * */ public int getScannerId() { return this.scannerId; } /** - * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. + * the Id of the Scanner to close * */ - public getScannerRows_args setScannerId(int scannerId) { + public closeScanner_args setScannerId(int scannerId) { this.scannerId = scannerId; setScannerIdIsSet(true); return this; @@ -14648,35 +16993,6 @@ public class THBaseService { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); } - /** - * number of rows to return - */ - public int getNumRows() { - return this.numRows; - } - - /** - * number of rows to return - */ - public getScannerRows_args setNumRows(int numRows) { - this.numRows = numRows; - setNumRowsIsSet(true); - return this; - } - - public void unsetNumRows() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); - } - - /** Returns true if field numRows is set (has been assigned a value) and false otherwise */ - public boolean isSetNumRows() { - return EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); - } - - public void setNumRowsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SCANNER_ID: @@ -14687,14 +17003,6 @@ public class THBaseService { } break; - case NUM_ROWS: - if (value == null) { - unsetNumRows(); - } else { - setNumRows((Integer)value); - } - break; - } } @@ -14703,9 +17011,6 @@ public class THBaseService { case SCANNER_ID: return Integer.valueOf(getScannerId()); - case NUM_ROWS: - return Integer.valueOf(getNumRows()); - } throw new IllegalStateException(); } @@ -14719,8 +17024,6 @@ public class THBaseService { switch (field) { case SCANNER_ID: return isSetScannerId(); - case NUM_ROWS: - return isSetNumRows(); } throw new IllegalStateException(); } @@ -14729,12 +17032,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getScannerRows_args) - return this.equals((getScannerRows_args)that); + if (that instanceof closeScanner_args) + return this.equals((closeScanner_args)that); return false; } - public boolean equals(getScannerRows_args that) { + public boolean equals(closeScanner_args that) { if (that == null) return false; @@ -14747,59 +17050,35 @@ public class THBaseService { return false; } - boolean this_present_numRows = true; - boolean that_present_numRows = true; - if (this_present_numRows || that_present_numRows) { - if (!(this_present_numRows && that_present_numRows)) - return false; - if (this.numRows != that.numRows) - return false; - } - return true; } @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_scannerId = true; - builder.append(present_scannerId); + list.add(present_scannerId); if (present_scannerId) - builder.append(scannerId); - - boolean present_numRows = true; - builder.append(present_numRows); - if (present_numRows) - builder.append(numRows); + list.add(scannerId); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getScannerRows_args other) { + @Override + public int compareTo(closeScanner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getScannerRows_args typedOther = (getScannerRows_args)other; - lastComparison = Boolean.valueOf(isSetScannerId()).compareTo(typedOther.isSetScannerId()); + lastComparison = Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); if (lastComparison != 0) { return lastComparison; } if (isSetScannerId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scannerId, typedOther.scannerId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(typedOther.isSetNumRows()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNumRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, typedOther.numRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scannerId, other.scannerId); if (lastComparison != 0) { return lastComparison; } @@ -14821,16 +17100,12 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("getScannerRows_args("); + StringBuilder sb = new StringBuilder("closeScanner_args("); boolean first = true; sb.append("scannerId:"); sb.append(this.scannerId); first = false; - if (!first) sb.append(", "); - sb.append("numRows:"); - sb.append(this.numRows); - first = false; sb.append(")"); return sb.toString(); } @@ -14859,15 +17134,15 @@ public class THBaseService { } } - private static class getScannerRows_argsStandardSchemeFactory implements SchemeFactory { - public getScannerRows_argsStandardScheme getScheme() { - return new getScannerRows_argsStandardScheme(); + private static class closeScanner_argsStandardSchemeFactory implements SchemeFactory { + public closeScanner_argsStandardScheme getScheme() { + return new closeScanner_argsStandardScheme(); } } - private static class getScannerRows_argsStandardScheme extends StandardScheme { + private static class closeScanner_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerRows_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, closeScanner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14885,14 +17160,6 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NUM_ROWS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.numRows = iprot.readI32(); - struct.setNumRowsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14907,73 +17174,55 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getScannerRows_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, closeScanner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(SCANNER_ID_FIELD_DESC); oprot.writeI32(struct.scannerId); oprot.writeFieldEnd(); - oprot.writeFieldBegin(NUM_ROWS_FIELD_DESC); - oprot.writeI32(struct.numRows); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getScannerRows_argsTupleSchemeFactory implements SchemeFactory { - public getScannerRows_argsTupleScheme getScheme() { - return new getScannerRows_argsTupleScheme(); + private static class closeScanner_argsTupleSchemeFactory implements SchemeFactory { + public closeScanner_argsTupleScheme getScheme() { + return new closeScanner_argsTupleScheme(); } } - private static class getScannerRows_argsTupleScheme extends TupleScheme { + private static class closeScanner_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, closeScanner_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.scannerId); - BitSet optionals = new BitSet(); - if (struct.isSetNumRows()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetNumRows()) { - oprot.writeI32(struct.numRows); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getScannerRows_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, closeScanner_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.scannerId = iprot.readI32(); struct.setScannerIdIsSet(true); - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.numRows = iprot.readI32(); - struct.setNumRowsIsSet(true); - } } } } - public static class getScannerRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScannerRows_result"); + public static class closeScanner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeScanner_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getScannerRows_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerRows_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new closeScanner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new closeScanner_resultTupleSchemeFactory()); } - public List success; // required public TIOError io; // required /** * if the scannerId is invalid @@ -14982,7 +17231,6 @@ public class THBaseService { /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), IO((short)1, "io"), /** * if the scannerId is invalid @@ -15002,8 +17250,6 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // IO return IO; case 2: // IA @@ -15051,105 +17297,53 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerRows_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeScanner_result.class, metaDataMap); } - public getScannerRows_result() { + public closeScanner_result() { } - public getScannerRows_result( - List success, + public closeScanner_result( TIOError io, TIllegalArgument ia) { this(); - this.success = success; this.io = io; this.ia = ia; } - - /** - * Performs a deep copy on other. - */ - public getScannerRows_result(getScannerRows_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (TResult other_element : other.success) { - __this__success.add(new TResult(other_element)); - } - this.success = __this__success; - } - if (other.isSetIo()) { - this.io = new TIOError(other.io); - } - if (other.isSetIa()) { - this.ia = new TIllegalArgument(other.ia); - } - } - - public getScannerRows_result deepCopy() { - return new getScannerRows_result(this); - } - - @Override - public void clear() { - this.success = null; - this.io = null; - this.ia = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(TResult elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public getScannerRows_result setSuccess(List success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; + + /** + * Performs a deep copy on other. + */ + public closeScanner_result(closeScanner_result other) { + if (other.isSetIo()) { + this.io = new TIOError(other.io); + } + if (other.isSetIa()) { + this.ia = new TIllegalArgument(other.ia); + } } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + public closeScanner_result deepCopy() { + return new closeScanner_result(this); } - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + @Override + public void clear() { + this.io = null; + this.ia = null; } public TIOError getIo() { return this.io; } - public getScannerRows_result setIo(TIOError io) { + public closeScanner_result setIo(TIOError io) { this.io = io; return this; } @@ -15179,7 +17373,7 @@ public class THBaseService { /** * if the scannerId is invalid */ - public getScannerRows_result setIa(TIllegalArgument ia) { + public closeScanner_result setIa(TIllegalArgument ia) { this.ia = ia; return this; } @@ -15201,14 +17395,6 @@ public class THBaseService { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - case IO: if (value == null) { unsetIo(); @@ -15230,9 +17416,6 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case IO: return getIo(); @@ -15250,8 +17433,6 @@ public class THBaseService { } switch (field) { - case SUCCESS: - return isSetSuccess(); case IO: return isSetIo(); case IA: @@ -15264,24 +17445,15 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getScannerRows_result) - return this.equals((getScannerRows_result)that); + if (that instanceof closeScanner_result) + return this.equals((closeScanner_result)that); return false; } - public boolean equals(getScannerRows_result that) { + public boolean equals(closeScanner_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - 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.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { @@ -15305,60 +17477,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); - - boolean present_success = true && (isSetSuccess()); - builder.append(present_success); - if (present_success) - builder.append(success); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); boolean present_ia = true && (isSetIa()); - builder.append(present_ia); + list.add(present_ia); if (present_ia) - builder.append(ia); + list.add(ia); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getScannerRows_result other) { + @Override + public int compareTo(closeScanner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getScannerRows_result typedOther = (getScannerRows_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); + lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, other.ia); if (lastComparison != 0) { return lastComparison; } @@ -15380,17 +17537,9 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("getScannerRows_result("); + StringBuilder sb = new StringBuilder("closeScanner_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); sb.append("io:"); if (this.io == null) { sb.append("null"); @@ -15431,15 +17580,15 @@ public class THBaseService { } } - private static class getScannerRows_resultStandardSchemeFactory implements SchemeFactory { - public getScannerRows_resultStandardScheme getScheme() { - return new getScannerRows_resultStandardScheme(); + private static class closeScanner_resultStandardSchemeFactory implements SchemeFactory { + public closeScanner_resultStandardScheme getScheme() { + return new closeScanner_resultStandardScheme(); } } - private static class getScannerRows_resultStandardScheme extends StandardScheme { + private static class closeScanner_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerRows_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, closeScanner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15449,25 +17598,6 @@ public class THBaseService { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list172 = iprot.readListBegin(); - struct.success = new ArrayList(_list172.size); - for (int _i173 = 0; _i173 < _list172.size; ++_i173) - { - TResult _elem174; // required - _elem174 = new TResult(); - _elem174.read(iprot); - struct.success.add(_elem174); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.io = new TIOError(); @@ -15497,22 +17627,10 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getScannerRows_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, closeScanner_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TResult _iter175 : struct.success) - { - _iter175.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.io != null) { oprot.writeFieldBegin(IO_FIELD_DESC); struct.io.write(oprot); @@ -15529,37 +17647,25 @@ public class THBaseService { } - private static class getScannerRows_resultTupleSchemeFactory implements SchemeFactory { - public getScannerRows_resultTupleScheme getScheme() { - return new getScannerRows_resultTupleScheme(); + private static class closeScanner_resultTupleSchemeFactory implements SchemeFactory { + public closeScanner_resultTupleScheme getScheme() { + return new closeScanner_resultTupleScheme(); } } - private static class getScannerRows_resultTupleScheme extends TupleScheme { + private static class closeScanner_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, closeScanner_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetIo()) { - optionals.set(1); + optionals.set(0); } if (struct.isSetIa()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (TResult _iter176 : struct.success) - { - _iter176.write(oprot); - } - } + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetIo()) { struct.io.write(oprot); } @@ -15569,29 +17675,15 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, closeScanner_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list177.size); - for (int _i178 = 0; _i178 < _list177.size; ++_i178) - { - TResult _elem179; // required - _elem179 = new TResult(); - _elem179.read(iprot); - struct.success.add(_elem179); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.ia = new TIllegalArgument(); struct.ia.read(iprot); struct.setIaIsSet(true); @@ -15601,28 +17693,37 @@ public class THBaseService { } - public static class closeScanner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeScanner_args"); + public static class mutateRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_args"); - private static final org.apache.thrift.protocol.TField SCANNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("scannerId", org.apache.thrift.protocol.TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TROW_MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("trowMutations", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new closeScanner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new closeScanner_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mutateRow_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mutateRow_argsTupleSchemeFactory()); } /** - * the Id of the Scanner to close * + * table to apply the mutations */ - public int scannerId; // required + public ByteBuffer table; // required + /** + * mutations to apply + */ + public TRowMutations trowMutations; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * the Id of the Scanner to close * + * table to apply the mutations */ - SCANNER_ID((short)1, "scannerId"); + TABLE((short)1, "table"), + /** + * mutations to apply + */ + TROW_MUTATIONS((short)2, "trowMutations"); private static final Map byName = new HashMap(); @@ -15637,8 +17738,10 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // SCANNER_ID - return SCANNER_ID; + case 1: // TABLE + return TABLE; + case 2: // TROW_MUTATIONS + return TROW_MUTATIONS; default: return null; } @@ -15679,82 +17782,136 @@ public class THBaseService { } // isset id assignments - private static final int __SCANNERID_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SCANNER_ID, new org.apache.thrift.meta_data.FieldMetaData("scannerId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.TROW_MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("trowMutations", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowMutations.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeScanner_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_args.class, metaDataMap); } - public closeScanner_args() { + public mutateRow_args() { } - public closeScanner_args( - int scannerId) + public mutateRow_args( + ByteBuffer table, + TRowMutations trowMutations) { this(); - this.scannerId = scannerId; - setScannerIdIsSet(true); + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.trowMutations = trowMutations; + } + + /** + * Performs a deep copy on other. + */ + public mutateRow_args(mutateRow_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); + } + if (other.isSetTrowMutations()) { + this.trowMutations = new TRowMutations(other.trowMutations); + } + } + + public mutateRow_args deepCopy() { + return new mutateRow_args(this); + } + + @Override + public void clear() { + this.table = null; + this.trowMutations = null; + } + + /** + * table to apply the mutations + */ + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); + } + + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); + } + + /** + * table to apply the mutations + */ + public mutateRow_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + return this; + } + + public mutateRow_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + return this; } - /** - * Performs a deep copy on other. - */ - public closeScanner_args(closeScanner_args other) { - __isset_bitfield = other.__isset_bitfield; - this.scannerId = other.scannerId; + public void unsetTable() { + this.table = null; } - public closeScanner_args deepCopy() { - return new closeScanner_args(this); + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; } - @Override - public void clear() { - setScannerIdIsSet(false); - this.scannerId = 0; + public void setTableIsSet(boolean value) { + if (!value) { + this.table = null; + } } /** - * the Id of the Scanner to close * + * mutations to apply */ - public int getScannerId() { - return this.scannerId; + public TRowMutations getTrowMutations() { + return this.trowMutations; } /** - * the Id of the Scanner to close * + * mutations to apply */ - public closeScanner_args setScannerId(int scannerId) { - this.scannerId = scannerId; - setScannerIdIsSet(true); + public mutateRow_args setTrowMutations(TRowMutations trowMutations) { + this.trowMutations = trowMutations; return this; } - public void unsetScannerId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); + public void unsetTrowMutations() { + this.trowMutations = null; } - /** Returns true if field scannerId is set (has been assigned a value) and false otherwise */ - public boolean isSetScannerId() { - return EncodingUtils.testBit(__isset_bitfield, __SCANNERID_ISSET_ID); + /** Returns true if field trowMutations is set (has been assigned a value) and false otherwise */ + public boolean isSetTrowMutations() { + return this.trowMutations != null; } - public void setScannerIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); + public void setTrowMutationsIsSet(boolean value) { + if (!value) { + this.trowMutations = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SCANNER_ID: + case TABLE: if (value == null) { - unsetScannerId(); + unsetTable(); } else { - setScannerId((Integer)value); + setTable((ByteBuffer)value); + } + break; + + case TROW_MUTATIONS: + if (value == null) { + unsetTrowMutations(); + } else { + setTrowMutations((TRowMutations)value); } break; @@ -15763,8 +17920,11 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { - case SCANNER_ID: - return Integer.valueOf(getScannerId()); + case TABLE: + return getTable(); + + case TROW_MUTATIONS: + return getTrowMutations(); } throw new IllegalStateException(); @@ -15777,8 +17937,10 @@ public class THBaseService { } switch (field) { - case SCANNER_ID: - return isSetScannerId(); + case TABLE: + return isSetTable(); + case TROW_MUTATIONS: + return isSetTrowMutations(); } throw new IllegalStateException(); } @@ -15787,21 +17949,30 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof closeScanner_args) - return this.equals((closeScanner_args)that); + if (that instanceof mutateRow_args) + return this.equals((mutateRow_args)that); return false; } - public boolean equals(closeScanner_args that) { + public boolean equals(mutateRow_args that) { if (that == null) return false; - boolean this_present_scannerId = true; - boolean that_present_scannerId = true; - if (this_present_scannerId || that_present_scannerId) { - if (!(this_present_scannerId && that_present_scannerId)) + boolean this_present_table = true && this.isSetTable(); + boolean that_present_table = true && that.isSetTable(); + if (this_present_table || that_present_table) { + if (!(this_present_table && that_present_table)) return false; - if (this.scannerId != that.scannerId) + if (!this.table.equals(that.table)) + return false; + } + + boolean this_present_trowMutations = true && this.isSetTrowMutations(); + boolean that_present_trowMutations = true && that.isSetTrowMutations(); + if (this_present_trowMutations || that_present_trowMutations) { + if (!(this_present_trowMutations && that_present_trowMutations)) + return false; + if (!this.trowMutations.equals(that.trowMutations)) return false; } @@ -15810,30 +17981,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_scannerId = true; - builder.append(present_scannerId); - if (present_scannerId) - builder.append(scannerId); + boolean present_table = true && (isSetTable()); + list.add(present_table); + if (present_table) + list.add(table); + + boolean present_trowMutations = true && (isSetTrowMutations()); + list.add(present_trowMutations); + if (present_trowMutations) + list.add(trowMutations); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(closeScanner_args other) { + @Override + public int compareTo(mutateRow_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - closeScanner_args typedOther = (closeScanner_args)other; - lastComparison = Boolean.valueOf(isSetScannerId()).compareTo(typedOther.isSetScannerId()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } - if (isSetScannerId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scannerId, typedOther.scannerId); + if (isSetTable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTrowMutations()).compareTo(other.isSetTrowMutations()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTrowMutations()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trowMutations, other.trowMutations); if (lastComparison != 0) { return lastComparison; } @@ -15855,11 +18041,23 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("closeScanner_args("); + StringBuilder sb = new StringBuilder("mutateRow_args("); boolean first = true; - sb.append("scannerId:"); - sb.append(this.scannerId); + sb.append("table:"); + if (this.table == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.table, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("trowMutations:"); + if (this.trowMutations == null) { + sb.append("null"); + } else { + sb.append(this.trowMutations); + } first = false; sb.append(")"); return sb.toString(); @@ -15867,8 +18065,16 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields - // alas, we cannot check 'scannerId' because it's a primitive and you chose the non-beans generator. + if (table == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); + } + if (trowMutations == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'trowMutations' was not present! Struct: " + toString()); + } // check for sub-struct validity + if (trowMutations != null) { + trowMutations.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -15881,23 +18087,21 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class closeScanner_argsStandardSchemeFactory implements SchemeFactory { - public closeScanner_argsStandardScheme getScheme() { - return new closeScanner_argsStandardScheme(); + private static class mutateRow_argsStandardSchemeFactory implements SchemeFactory { + public mutateRow_argsStandardScheme getScheme() { + return new mutateRow_argsStandardScheme(); } } - private static class closeScanner_argsStandardScheme extends StandardScheme { + private static class mutateRow_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, closeScanner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15907,10 +18111,19 @@ public class THBaseService { break; } switch (schemeField.id) { - case 1: // SCANNER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.scannerId = iprot.readI32(); - struct.setScannerIdIsSet(true); + case 1: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TROW_MUTATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.trowMutations = new TRowMutations(); + struct.trowMutations.read(iprot); + struct.setTrowMutationsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15923,74 +18136,73 @@ public class THBaseService { iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method - if (!struct.isSetScannerId()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'scannerId' was not found in serialized data! Struct: " + toString()); - } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, closeScanner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldBegin(SCANNER_ID_FIELD_DESC); - oprot.writeI32(struct.scannerId); - oprot.writeFieldEnd(); + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeBinary(struct.table); + oprot.writeFieldEnd(); + } + if (struct.trowMutations != null) { + oprot.writeFieldBegin(TROW_MUTATIONS_FIELD_DESC); + struct.trowMutations.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class closeScanner_argsTupleSchemeFactory implements SchemeFactory { - public closeScanner_argsTupleScheme getScheme() { - return new closeScanner_argsTupleScheme(); + private static class mutateRow_argsTupleSchemeFactory implements SchemeFactory { + public mutateRow_argsTupleScheme getScheme() { + return new mutateRow_argsTupleScheme(); } } - private static class closeScanner_argsTupleScheme extends TupleScheme { + private static class mutateRow_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, closeScanner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeI32(struct.scannerId); + oprot.writeBinary(struct.table); + struct.trowMutations.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, closeScanner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.scannerId = iprot.readI32(); - struct.setScannerIdIsSet(true); + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + struct.trowMutations = new TRowMutations(); + struct.trowMutations.read(iprot); + struct.setTrowMutationsIsSet(true); } } } - public static class closeScanner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeScanner_result"); + public static class mutateRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new closeScanner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new closeScanner_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mutateRow_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mutateRow_resultTupleSchemeFactory()); } public TIOError io; // required - /** - * if the scannerId is invalid - */ - public TIllegalArgument ia; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - IO((short)1, "io"), - /** - * if the scannerId is invalid - */ - IA((short)2, "ia"); + IO((short)1, "io"); private static final Map byName = new HashMap(); @@ -16007,8 +18219,6 @@ public class THBaseService { switch(fieldId) { case 1: // IO return IO; - case 2: // IA - return IA; default: return null; } @@ -16054,51 +18264,43 @@ public class THBaseService { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeScanner_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_result.class, metaDataMap); } - public closeScanner_result() { + public mutateRow_result() { } - public closeScanner_result( - TIOError io, - TIllegalArgument ia) + public mutateRow_result( + TIOError io) { this(); this.io = io; - this.ia = ia; } /** * Performs a deep copy on other. */ - public closeScanner_result(closeScanner_result other) { + public mutateRow_result(mutateRow_result other) { if (other.isSetIo()) { - this.io = new TIOError(other.io); - } - if (other.isSetIa()) { - this.ia = new TIllegalArgument(other.ia); + this.io = new TIOError(other.io); } } - public closeScanner_result deepCopy() { - return new closeScanner_result(this); + public mutateRow_result deepCopy() { + return new mutateRow_result(this); } @Override public void clear() { this.io = null; - this.ia = null; } public TIOError getIo() { return this.io; } - public closeScanner_result setIo(TIOError io) { + public mutateRow_result setIo(TIOError io) { this.io = io; return this; } @@ -16118,36 +18320,6 @@ public class THBaseService { } } - /** - * if the scannerId is invalid - */ - public TIllegalArgument getIa() { - return this.ia; - } - - /** - * if the scannerId is invalid - */ - public closeScanner_result setIa(TIllegalArgument ia) { - this.ia = ia; - return this; - } - - public void unsetIa() { - this.ia = null; - } - - /** Returns true if field ia is set (has been assigned a value) and false otherwise */ - public boolean isSetIa() { - return this.ia != null; - } - - public void setIaIsSet(boolean value) { - if (!value) { - this.ia = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case IO: @@ -16158,14 +18330,6 @@ public class THBaseService { } break; - case IA: - if (value == null) { - unsetIa(); - } else { - setIa((TIllegalArgument)value); - } - break; - } } @@ -16174,9 +18338,6 @@ public class THBaseService { case IO: return getIo(); - case IA: - return getIa(); - } throw new IllegalStateException(); } @@ -16190,8 +18351,6 @@ public class THBaseService { switch (field) { case IO: return isSetIo(); - case IA: - return isSetIa(); } throw new IllegalStateException(); } @@ -16200,12 +18359,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof closeScanner_result) - return this.equals((closeScanner_result)that); + if (that instanceof mutateRow_result) + return this.equals((mutateRow_result)that); return false; } - public boolean equals(closeScanner_result that) { + public boolean equals(mutateRow_result that) { if (that == null) return false; @@ -16218,59 +18377,35 @@ public class THBaseService { return false; } - boolean this_present_ia = true && this.isSetIa(); - boolean that_present_ia = true && that.isSetIa(); - 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; } @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); - - boolean present_ia = true && (isSetIa()); - builder.append(present_ia); - if (present_ia) - builder.append(ia); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(closeScanner_result other) { + @Override + public int compareTo(mutateRow_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - closeScanner_result typedOther = (closeScanner_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIa()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -16292,7 +18427,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("closeScanner_result("); + StringBuilder sb = new StringBuilder("mutateRow_result("); boolean first = true; sb.append("io:"); @@ -16302,14 +18437,6 @@ public class THBaseService { sb.append(this.io); } first = false; - if (!first) sb.append(", "); - sb.append("ia:"); - if (this.ia == null) { - sb.append("null"); - } else { - sb.append(this.ia); - } - first = false; sb.append(")"); return sb.toString(); } @@ -16335,15 +18462,15 @@ public class THBaseService { } } - private static class closeScanner_resultStandardSchemeFactory implements SchemeFactory { - public closeScanner_resultStandardScheme getScheme() { - return new closeScanner_resultStandardScheme(); + private static class mutateRow_resultStandardSchemeFactory implements SchemeFactory { + public mutateRow_resultStandardScheme getScheme() { + return new mutateRow_resultStandardScheme(); } } - private static class closeScanner_resultStandardScheme extends StandardScheme { + private static class mutateRow_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, closeScanner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16362,15 +18489,6 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IA - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ia = new TIllegalArgument(); - struct.ia.read(iprot); - struct.setIaIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16382,7 +18500,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, closeScanner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16391,94 +18509,87 @@ public class THBaseService { struct.io.write(oprot); oprot.writeFieldEnd(); } - if (struct.ia != null) { - oprot.writeFieldBegin(IA_FIELD_DESC); - struct.ia.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class closeScanner_resultTupleSchemeFactory implements SchemeFactory { - public closeScanner_resultTupleScheme getScheme() { - return new closeScanner_resultTupleScheme(); + private static class mutateRow_resultTupleSchemeFactory implements SchemeFactory { + public mutateRow_resultTupleScheme getScheme() { + return new mutateRow_resultTupleScheme(); } } - private static class closeScanner_resultTupleScheme extends TupleScheme { + private static class mutateRow_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, closeScanner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIo()) { optionals.set(0); } - if (struct.isSetIa()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetIo()) { struct.io.write(oprot); } - if (struct.isSetIa()) { - struct.ia.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, closeScanner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } - if (incoming.get(1)) { - struct.ia = new TIllegalArgument(); - struct.ia.read(iprot); - struct.setIaIsSet(true); - } } } } - public static class mutateRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_args"); + public static class getScannerResults_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScannerResults_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TROW_MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("trowMutations", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TSCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("tscan", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new mutateRow_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRow_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getScannerResults_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getScannerResults_argsTupleSchemeFactory()); } /** - * table to apply the mutations + * the table to get the Scanner for */ public ByteBuffer table; // required /** - * mutations to apply + * the scan object to get a Scanner for */ - public TRowMutations trowMutations; // required + public TScan tscan; // required + /** + * number of rows to return + */ + public int numRows; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** - * table to apply the mutations + * the table to get the Scanner for */ TABLE((short)1, "table"), /** - * mutations to apply + * the scan object to get a Scanner for */ - TROW_MUTATIONS((short)2, "trowMutations"); + TSCAN((short)2, "tscan"), + /** + * number of rows to return + */ + NUM_ROWS((short)3, "numRows"); private static final Map byName = new HashMap(); @@ -16495,8 +18606,10 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // TROW_MUTATIONS - return TROW_MUTATIONS; + case 2: // TSCAN + return TSCAN; + case 3: // NUM_ROWS + return NUM_ROWS; default: return null; } @@ -16537,54 +18650,66 @@ public class THBaseService { } // isset id assignments + private static final int __NUMROWS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TROW_MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("trowMutations", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowMutations.class))); + tmpMap.put(_Fields.TSCAN, new org.apache.thrift.meta_data.FieldMetaData("tscan", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class))); + tmpMap.put(_Fields.NUM_ROWS, new org.apache.thrift.meta_data.FieldMetaData("numRows", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerResults_args.class, metaDataMap); } - public mutateRow_args() { + public getScannerResults_args() { + this.numRows = 1; + } - public mutateRow_args( + public getScannerResults_args( ByteBuffer table, - TRowMutations trowMutations) + TScan tscan, + int numRows) { this(); - this.table = table; - this.trowMutations = trowMutations; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.tscan = tscan; + this.numRows = numRows; + setNumRowsIsSet(true); } /** * Performs a deep copy on other. */ - public mutateRow_args(mutateRow_args other) { + public getScannerResults_args(getScannerResults_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; } - if (other.isSetTrowMutations()) { - this.trowMutations = new TRowMutations(other.trowMutations); + if (other.isSetTscan()) { + this.tscan = new TScan(other.tscan); } + this.numRows = other.numRows; } - public mutateRow_args deepCopy() { - return new mutateRow_args(this); + public getScannerResults_args deepCopy() { + return new getScannerResults_args(this); } @Override public void clear() { this.table = null; - this.trowMutations = null; + this.tscan = null; + this.numRows = 1; + } /** - * table to apply the mutations + * the table to get the Scanner for */ public byte[] getTable() { setTable(org.apache.thrift.TBaseHelper.rightSize(table)); @@ -16592,19 +18717,19 @@ public class THBaseService { } public ByteBuffer bufferForTable() { - return table; + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** - * table to apply the mutations + * the table to get the Scanner for */ - public mutateRow_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); + public getScannerResults_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public mutateRow_args setTable(ByteBuffer table) { - this.table = table; + public getScannerResults_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -16624,33 +18749,62 @@ public class THBaseService { } /** - * mutations to apply + * the scan object to get a Scanner for + */ + public TScan getTscan() { + return this.tscan; + } + + /** + * the scan object to get a Scanner for + */ + public getScannerResults_args setTscan(TScan tscan) { + this.tscan = tscan; + return this; + } + + public void unsetTscan() { + this.tscan = null; + } + + /** Returns true if field tscan is set (has been assigned a value) and false otherwise */ + public boolean isSetTscan() { + return this.tscan != null; + } + + public void setTscanIsSet(boolean value) { + if (!value) { + this.tscan = null; + } + } + + /** + * number of rows to return */ - public TRowMutations getTrowMutations() { - return this.trowMutations; + public int getNumRows() { + return this.numRows; } /** - * mutations to apply + * number of rows to return */ - public mutateRow_args setTrowMutations(TRowMutations trowMutations) { - this.trowMutations = trowMutations; + public getScannerResults_args setNumRows(int numRows) { + this.numRows = numRows; + setNumRowsIsSet(true); return this; } - public void unsetTrowMutations() { - this.trowMutations = null; + public void unsetNumRows() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); } - /** Returns true if field trowMutations is set (has been assigned a value) and false otherwise */ - public boolean isSetTrowMutations() { - return this.trowMutations != null; + /** Returns true if field numRows is set (has been assigned a value) and false otherwise */ + public boolean isSetNumRows() { + return EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); } - public void setTrowMutationsIsSet(boolean value) { - if (!value) { - this.trowMutations = null; - } + public void setNumRowsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -16663,11 +18817,19 @@ public class THBaseService { } break; - case TROW_MUTATIONS: + case TSCAN: if (value == null) { - unsetTrowMutations(); + unsetTscan(); } else { - setTrowMutations((TRowMutations)value); + setTscan((TScan)value); + } + break; + + case NUM_ROWS: + if (value == null) { + unsetNumRows(); + } else { + setNumRows((Integer)value); } break; @@ -16679,8 +18841,11 @@ public class THBaseService { case TABLE: return getTable(); - case TROW_MUTATIONS: - return getTrowMutations(); + case TSCAN: + return getTscan(); + + case NUM_ROWS: + return Integer.valueOf(getNumRows()); } throw new IllegalStateException(); @@ -16695,8 +18860,10 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case TROW_MUTATIONS: - return isSetTrowMutations(); + case TSCAN: + return isSetTscan(); + case NUM_ROWS: + return isSetNumRows(); } throw new IllegalStateException(); } @@ -16705,12 +18872,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof mutateRow_args) - return this.equals((mutateRow_args)that); + if (that instanceof getScannerResults_args) + return this.equals((getScannerResults_args)that); return false; } - public boolean equals(mutateRow_args that) { + public boolean equals(getScannerResults_args that) { if (that == null) return false; @@ -16723,12 +18890,21 @@ public class THBaseService { return false; } - boolean this_present_trowMutations = true && this.isSetTrowMutations(); - boolean that_present_trowMutations = true && that.isSetTrowMutations(); - if (this_present_trowMutations || that_present_trowMutations) { - if (!(this_present_trowMutations && that_present_trowMutations)) + boolean this_present_tscan = true && this.isSetTscan(); + boolean that_present_tscan = true && that.isSetTscan(); + if (this_present_tscan || that_present_tscan) { + if (!(this_present_tscan && that_present_tscan)) return false; - if (!this.trowMutations.equals(that.trowMutations)) + if (!this.tscan.equals(that.tscan)) + return false; + } + + boolean this_present_numRows = true; + boolean that_present_numRows = true; + if (this_present_numRows || that_present_numRows) { + if (!(this_present_numRows && that_present_numRows)) + return false; + if (this.numRows != that.numRows) return false; } @@ -16737,45 +18913,60 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); - boolean present_trowMutations = true && (isSetTrowMutations()); - builder.append(present_trowMutations); - if (present_trowMutations) - builder.append(trowMutations); + boolean present_tscan = true && (isSetTscan()); + list.add(present_tscan); + if (present_tscan) + list.add(tscan); - return builder.toHashCode(); + boolean present_numRows = true; + list.add(present_numRows); + if (present_numRows) + list.add(numRows); + + return list.hashCode(); } - public int compareTo(mutateRow_args other) { + @Override + public int compareTo(getScannerResults_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRow_args typedOther = (mutateRow_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTrowMutations()).compareTo(typedOther.isSetTrowMutations()); + lastComparison = Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); if (lastComparison != 0) { return lastComparison; } - if (isSetTrowMutations()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trowMutations, typedOther.trowMutations); + if (isSetTscan()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tscan, other.tscan); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNumRows()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, other.numRows); if (lastComparison != 0) { return lastComparison; } @@ -16797,7 +18988,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("mutateRow_args("); + StringBuilder sb = new StringBuilder("getScannerResults_args("); boolean first = true; sb.append("table:"); @@ -16808,13 +18999,17 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("trowMutations:"); - if (this.trowMutations == null) { + sb.append("tscan:"); + if (this.tscan == null) { sb.append("null"); } else { - sb.append(this.trowMutations); + sb.append(this.tscan); } first = false; + if (!first) sb.append(", "); + sb.append("numRows:"); + sb.append(this.numRows); + first = false; sb.append(")"); return sb.toString(); } @@ -16824,12 +19019,12 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (trowMutations == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'trowMutations' was not present! Struct: " + toString()); + if (tscan == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tscan' was not present! Struct: " + toString()); } // check for sub-struct validity - if (trowMutations != null) { - trowMutations.validate(); + if (tscan != null) { + tscan.validate(); } } @@ -16843,21 +19038,23 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class mutateRow_argsStandardSchemeFactory implements SchemeFactory { - public mutateRow_argsStandardScheme getScheme() { - return new mutateRow_argsStandardScheme(); + private static class getScannerResults_argsStandardSchemeFactory implements SchemeFactory { + public getScannerResults_argsStandardScheme getScheme() { + return new getScannerResults_argsStandardScheme(); } } - private static class mutateRow_argsStandardScheme extends StandardScheme { + private static class getScannerResults_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerResults_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16875,11 +19072,19 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TROW_MUTATIONS + case 2: // TSCAN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.trowMutations = new TRowMutations(); - struct.trowMutations.read(iprot); - struct.setTrowMutationsIsSet(true); + struct.tscan = new TScan(); + struct.tscan.read(iprot); + struct.setTscanIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NUM_ROWS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.numRows = iprot.readI32(); + struct.setNumRowsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16895,7 +19100,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getScannerResults_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16904,60 +19109,79 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.trowMutations != null) { - oprot.writeFieldBegin(TROW_MUTATIONS_FIELD_DESC); - struct.trowMutations.write(oprot); + if (struct.tscan != null) { + oprot.writeFieldBegin(TSCAN_FIELD_DESC); + struct.tscan.write(oprot); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(NUM_ROWS_FIELD_DESC); + oprot.writeI32(struct.numRows); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class mutateRow_argsTupleSchemeFactory implements SchemeFactory { - public mutateRow_argsTupleScheme getScheme() { - return new mutateRow_argsTupleScheme(); + private static class getScannerResults_argsTupleSchemeFactory implements SchemeFactory { + public getScannerResults_argsTupleScheme getScheme() { + return new getScannerResults_argsTupleScheme(); } } - private static class mutateRow_argsTupleScheme extends TupleScheme { + private static class getScannerResults_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - struct.trowMutations.write(oprot); + struct.tscan.write(oprot); + BitSet optionals = new BitSet(); + if (struct.isSetNumRows()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetNumRows()) { + oprot.writeI32(struct.numRows); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - struct.trowMutations = new TRowMutations(); - struct.trowMutations.read(iprot); - struct.setTrowMutationsIsSet(true); + struct.tscan = new TScan(); + struct.tscan.read(iprot); + struct.setTscanIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.numRows = iprot.readI32(); + struct.setNumRowsIsSet(true); + } } } } - public static class mutateRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_result"); + public static class getScannerResults_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScannerResults_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new mutateRow_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRow_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getScannerResults_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getScannerResults_resultTupleSchemeFactory()); } + public List success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), IO((short)1, "io"); private static final Map byName = new HashMap(); @@ -16973,6 +19197,8 @@ public class THBaseService { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // IO return IO; default: @@ -17018,45 +19244,97 @@ public class THBaseService { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerResults_result.class, metaDataMap); } - public mutateRow_result() { + public getScannerResults_result() { } - public mutateRow_result( + public getScannerResults_result( + List success, TIOError io) { this(); + this.success = success; this.io = io; } - /** - * Performs a deep copy on other. - */ - public mutateRow_result(mutateRow_result other) { - if (other.isSetIo()) { - this.io = new TIOError(other.io); - } + /** + * Performs a deep copy on other. + */ + public getScannerResults_result(getScannerResults_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (TResult other_element : other.success) { + __this__success.add(new TResult(other_element)); + } + this.success = __this__success; + } + if (other.isSetIo()) { + this.io = new TIOError(other.io); + } + } + + public getScannerResults_result deepCopy() { + return new getScannerResults_result(this); + } + + @Override + public void clear() { + this.success = null; + this.io = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(TResult elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public getScannerResults_result setSuccess(List success) { + this.success = success; + return this; } - public mutateRow_result deepCopy() { - return new mutateRow_result(this); + public void unsetSuccess() { + this.success = null; } - @Override - public void clear() { - this.io = null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } } public TIOError getIo() { return this.io; } - public mutateRow_result setIo(TIOError io) { + public getScannerResults_result setIo(TIOError io) { this.io = io; return this; } @@ -17078,6 +19356,14 @@ public class THBaseService { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + case IO: if (value == null) { unsetIo(); @@ -17091,6 +19377,9 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case IO: return getIo(); @@ -17105,6 +19394,8 @@ public class THBaseService { } switch (field) { + case SUCCESS: + return isSetSuccess(); case IO: return isSetIo(); } @@ -17115,15 +19406,24 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof mutateRow_result) - return this.equals((mutateRow_result)that); + if (that instanceof getScannerResults_result) + return this.equals((getScannerResults_result)that); return false; } - public boolean equals(mutateRow_result that) { + public boolean equals(getScannerResults_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + 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.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { @@ -17138,30 +19438,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(mutateRow_result other) { + @Override + public int compareTo(getScannerResults_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - mutateRow_result typedOther = (mutateRow_result)other; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -17183,9 +19498,17 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("mutateRow_result("); + StringBuilder sb = new StringBuilder("getScannerResults_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("io:"); if (this.io == null) { sb.append("null"); @@ -17218,15 +19541,15 @@ public class THBaseService { } } - private static class mutateRow_resultStandardSchemeFactory implements SchemeFactory { - public mutateRow_resultStandardScheme getScheme() { - return new mutateRow_resultStandardScheme(); + private static class getScannerResults_resultStandardSchemeFactory implements SchemeFactory { + public getScannerResults_resultStandardScheme getScheme() { + return new getScannerResults_resultStandardScheme(); } } - private static class mutateRow_resultStandardScheme extends StandardScheme { + private static class getScannerResults_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerResults_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17236,6 +19559,25 @@ public class THBaseService { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list180 = iprot.readListBegin(); + struct.success = new ArrayList(_list180.size); + TResult _elem181; + for (int _i182 = 0; _i182 < _list180.size; ++_i182) + { + _elem181 = new TResult(); + _elem181.read(iprot); + struct.success.add(_elem181); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.io = new TIOError(); @@ -17256,10 +19598,22 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getScannerResults_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TResult _iter183 : struct.success) + { + _iter183.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.io != null) { oprot.writeFieldBegin(IO_FIELD_DESC); struct.io.write(oprot); @@ -17271,32 +19625,58 @@ public class THBaseService { } - private static class mutateRow_resultTupleSchemeFactory implements SchemeFactory { - public mutateRow_resultTupleScheme getScheme() { - return new mutateRow_resultTupleScheme(); + private static class getScannerResults_resultTupleSchemeFactory implements SchemeFactory { + public getScannerResults_resultTupleScheme getScheme() { + return new getScannerResults_resultTupleScheme(); } } - private static class mutateRow_resultTupleScheme extends TupleScheme { + private static class getScannerResults_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getScannerResults_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetIo()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetIo()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (TResult _iter184 : struct.success) + { + _iter184.write(oprot); + } + } + } if (struct.isSetIo()) { struct.io.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list185.size); + TResult _elem186; + for (int _i187 = 0; _i187 < _list185.size; ++_i187) + { + _elem186 = new TResult(); + _elem186.read(iprot); + struct.success.add(_elem186); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); @@ -17306,46 +19686,28 @@ public class THBaseService { } - public static class getScannerResults_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScannerResults_args"); + public static class getRegionLocation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionLocation_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TSCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("tscan", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField RELOAD_FIELD_DESC = new org.apache.thrift.protocol.TField("reload", org.apache.thrift.protocol.TType.BOOL, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getScannerResults_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerResults_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getRegionLocation_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getRegionLocation_argsTupleSchemeFactory()); } - /** - * the table to get the Scanner for - */ public ByteBuffer table; // required - /** - * the scan object to get a Scanner for - */ - public TScan tscan; // required - /** - * number of rows to return - */ - public int numRows; // required + public ByteBuffer row; // required + public boolean reload; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - /** - * the table to get the Scanner for - */ TABLE((short)1, "table"), - /** - * the scan object to get a Scanner for - */ - TSCAN((short)2, "tscan"), - /** - * number of rows to return - */ - NUM_ROWS((short)3, "numRows"); + ROW((short)2, "row"), + RELOAD((short)3, "reload"); private static final Map byName = new HashMap(); @@ -17362,10 +19724,10 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // TSCAN - return TSCAN; - case 3: // NUM_ROWS - return NUM_ROWS; + case 2: // ROW + return ROW; + case 3: // RELOAD + return RELOAD; default: return null; } @@ -17406,87 +19768,78 @@ public class THBaseService { } // isset id assignments - private static final int __NUMROWS_ISSET_ID = 0; + private static final int __RELOAD_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.TSCAN, new org.apache.thrift.meta_data.FieldMetaData("tscan", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class))); - tmpMap.put(_Fields.NUM_ROWS, new org.apache.thrift.meta_data.FieldMetaData("numRows", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.RELOAD, new org.apache.thrift.meta_data.FieldMetaData("reload", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerResults_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionLocation_args.class, metaDataMap); } - public getScannerResults_args() { - this.numRows = 1; - + public getRegionLocation_args() { } - public getScannerResults_args( + public getRegionLocation_args( ByteBuffer table, - TScan tscan, - int numRows) + ByteBuffer row, + boolean reload) { this(); - this.table = table; - this.tscan = tscan; - this.numRows = numRows; - setNumRowsIsSet(true); + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.reload = reload; + setReloadIsSet(true); } /** * Performs a deep copy on other. */ - public getScannerResults_args(getScannerResults_args other) { + public getRegionLocation_args(getRegionLocation_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; } - if (other.isSetTscan()) { - this.tscan = new TScan(other.tscan); + if (other.isSetRow()) { + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } - this.numRows = other.numRows; + this.reload = other.reload; } - public getScannerResults_args deepCopy() { - return new getScannerResults_args(this); + public getRegionLocation_args deepCopy() { + return new getRegionLocation_args(this); } @Override public void clear() { this.table = null; - this.tscan = null; - this.numRows = 1; - + this.row = null; + setReloadIsSet(false); + this.reload = false; } - /** - * the table to get the Scanner for - */ public byte[] getTable() { setTable(org.apache.thrift.TBaseHelper.rightSize(table)); return table == null ? null : table.array(); } public ByteBuffer bufferForTable() { - return table; + return org.apache.thrift.TBaseHelper.copyBinary(table); } - - /** - * the table to get the Scanner for - */ - public getScannerResults_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); + + public getRegionLocation_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public getScannerResults_args setTable(ByteBuffer table) { - this.table = table; + public getRegionLocation_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -17505,63 +19858,61 @@ public class THBaseService { } } - /** - * the scan object to get a Scanner for - */ - public TScan getTscan() { - return this.tscan; + public byte[] getRow() { + setRow(org.apache.thrift.TBaseHelper.rightSize(row)); + return row == null ? null : row.array(); } - /** - * the scan object to get a Scanner for - */ - public getScannerResults_args setTscan(TScan tscan) { - this.tscan = tscan; + public ByteBuffer bufferForRow() { + return org.apache.thrift.TBaseHelper.copyBinary(row); + } + + public getRegionLocation_args setRow(byte[] row) { + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } - public void unsetTscan() { - this.tscan = null; + public getRegionLocation_args setRow(ByteBuffer row) { + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + return this; } - /** Returns true if field tscan is set (has been assigned a value) and false otherwise */ - public boolean isSetTscan() { - return this.tscan != null; + public void unsetRow() { + this.row = null; } - public void setTscanIsSet(boolean value) { + /** Returns true if field row is set (has been assigned a value) and false otherwise */ + public boolean isSetRow() { + return this.row != null; + } + + public void setRowIsSet(boolean value) { if (!value) { - this.tscan = null; + this.row = null; } } - /** - * number of rows to return - */ - public int getNumRows() { - return this.numRows; + public boolean isReload() { + return this.reload; } - /** - * number of rows to return - */ - public getScannerResults_args setNumRows(int numRows) { - this.numRows = numRows; - setNumRowsIsSet(true); + public getRegionLocation_args setReload(boolean reload) { + this.reload = reload; + setReloadIsSet(true); return this; } - public void unsetNumRows() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); + public void unsetReload() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RELOAD_ISSET_ID); } - /** Returns true if field numRows is set (has been assigned a value) and false otherwise */ - public boolean isSetNumRows() { - return EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); + /** Returns true if field reload is set (has been assigned a value) and false otherwise */ + public boolean isSetReload() { + return EncodingUtils.testBit(__isset_bitfield, __RELOAD_ISSET_ID); } - public void setNumRowsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); + public void setReloadIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RELOAD_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -17574,19 +19925,19 @@ public class THBaseService { } break; - case TSCAN: + case ROW: if (value == null) { - unsetTscan(); + unsetRow(); } else { - setTscan((TScan)value); + setRow((ByteBuffer)value); } break; - case NUM_ROWS: + case RELOAD: if (value == null) { - unsetNumRows(); + unsetReload(); } else { - setNumRows((Integer)value); + setReload((Boolean)value); } break; @@ -17598,11 +19949,11 @@ public class THBaseService { case TABLE: return getTable(); - case TSCAN: - return getTscan(); + case ROW: + return getRow(); - case NUM_ROWS: - return Integer.valueOf(getNumRows()); + case RELOAD: + return Boolean.valueOf(isReload()); } throw new IllegalStateException(); @@ -17617,10 +19968,10 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case TSCAN: - return isSetTscan(); - case NUM_ROWS: - return isSetNumRows(); + case ROW: + return isSetRow(); + case RELOAD: + return isSetReload(); } throw new IllegalStateException(); } @@ -17629,12 +19980,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getScannerResults_args) - return this.equals((getScannerResults_args)that); + if (that instanceof getRegionLocation_args) + return this.equals((getRegionLocation_args)that); return false; } - public boolean equals(getScannerResults_args that) { + public boolean equals(getRegionLocation_args that) { if (that == null) return false; @@ -17647,21 +19998,21 @@ public class THBaseService { return false; } - boolean this_present_tscan = true && this.isSetTscan(); - boolean that_present_tscan = true && that.isSetTscan(); - if (this_present_tscan || that_present_tscan) { - if (!(this_present_tscan && that_present_tscan)) + boolean this_present_row = true && this.isSetRow(); + boolean that_present_row = true && that.isSetRow(); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) return false; - if (!this.tscan.equals(that.tscan)) + if (!this.row.equals(that.row)) return false; } - boolean this_present_numRows = true; - boolean that_present_numRows = true; - if (this_present_numRows || that_present_numRows) { - if (!(this_present_numRows && that_present_numRows)) + boolean this_present_reload = true; + boolean that_present_reload = true; + if (this_present_reload || that_present_reload) { + if (!(this_present_reload && that_present_reload)) return false; - if (this.numRows != that.numRows) + if (this.reload != that.reload) return false; } @@ -17670,60 +20021,60 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); - boolean present_tscan = true && (isSetTscan()); - builder.append(present_tscan); - if (present_tscan) - builder.append(tscan); + boolean present_row = true && (isSetRow()); + list.add(present_row); + if (present_row) + list.add(row); - boolean present_numRows = true; - builder.append(present_numRows); - if (present_numRows) - builder.append(numRows); + boolean present_reload = true; + list.add(present_reload); + if (present_reload) + list.add(reload); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getScannerResults_args other) { + @Override + public int compareTo(getRegionLocation_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getScannerResults_args typedOther = (getScannerResults_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTscan()).compareTo(typedOther.isSetTscan()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } - if (isSetTscan()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tscan, typedOther.tscan); + if (isSetRow()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(typedOther.isSetNumRows()); + lastComparison = Boolean.valueOf(isSetReload()).compareTo(other.isSetReload()); if (lastComparison != 0) { return lastComparison; } - if (isSetNumRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, typedOther.numRows); + if (isSetReload()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reload, other.reload); if (lastComparison != 0) { return lastComparison; } @@ -17745,7 +20096,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("getScannerResults_args("); + StringBuilder sb = new StringBuilder("getRegionLocation_args("); boolean first = true; sb.append("table:"); @@ -17756,16 +20107,16 @@ public class THBaseService { } first = false; if (!first) sb.append(", "); - sb.append("tscan:"); - if (this.tscan == null) { + sb.append("row:"); + if (this.row == null) { sb.append("null"); } else { - sb.append(this.tscan); + org.apache.thrift.TBaseHelper.toString(this.row, sb); } first = false; if (!first) sb.append(", "); - sb.append("numRows:"); - sb.append(this.numRows); + sb.append("reload:"); + sb.append(this.reload); first = false; sb.append(")"); return sb.toString(); @@ -17776,13 +20127,10 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (tscan == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tscan' was not present! Struct: " + toString()); + if (row == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' was not present! Struct: " + toString()); } // check for sub-struct validity - if (tscan != null) { - tscan.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -17803,15 +20151,15 @@ public class THBaseService { } } - private static class getScannerResults_argsStandardSchemeFactory implements SchemeFactory { - public getScannerResults_argsStandardScheme getScheme() { - return new getScannerResults_argsStandardScheme(); + private static class getRegionLocation_argsStandardSchemeFactory implements SchemeFactory { + public getRegionLocation_argsStandardScheme getScheme() { + return new getRegionLocation_argsStandardScheme(); } } - private static class getScannerResults_argsStandardScheme extends StandardScheme { + private static class getRegionLocation_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerResults_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionLocation_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17829,19 +20177,18 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TSCAN - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tscan = new TScan(); - struct.tscan.read(iprot); - struct.setTscanIsSet(true); + case 2: // ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // NUM_ROWS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.numRows = iprot.readI32(); - struct.setNumRowsIsSet(true); + case 3: // RELOAD + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.reload = iprot.readBool(); + struct.setReloadIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17857,7 +20204,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getScannerResults_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionLocation_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17866,13 +20213,13 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.tscan != null) { - oprot.writeFieldBegin(TSCAN_FIELD_DESC); - struct.tscan.write(oprot); + if (struct.row != null) { + oprot.writeFieldBegin(ROW_FIELD_DESC); + oprot.writeBinary(struct.row); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(NUM_ROWS_FIELD_DESC); - oprot.writeI32(struct.numRows); + oprot.writeFieldBegin(RELOAD_FIELD_DESC); + oprot.writeBool(struct.reload); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -17880,60 +20227,59 @@ public class THBaseService { } - private static class getScannerResults_argsTupleSchemeFactory implements SchemeFactory { - public getScannerResults_argsTupleScheme getScheme() { - return new getScannerResults_argsTupleScheme(); + private static class getRegionLocation_argsTupleSchemeFactory implements SchemeFactory { + public getRegionLocation_argsTupleScheme getScheme() { + return new getRegionLocation_argsTupleScheme(); } } - private static class getScannerResults_argsTupleScheme extends TupleScheme { + private static class getRegionLocation_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - struct.tscan.write(oprot); + oprot.writeBinary(struct.row); BitSet optionals = new BitSet(); - if (struct.isSetNumRows()) { + if (struct.isSetReload()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetNumRows()) { - oprot.writeI32(struct.numRows); + if (struct.isSetReload()) { + oprot.writeBool(struct.reload); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - struct.tscan = new TScan(); - struct.tscan.read(iprot); - struct.setTscanIsSet(true); + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.numRows = iprot.readI32(); - struct.setNumRowsIsSet(true); + struct.reload = iprot.readBool(); + struct.setReloadIsSet(true); } } } } - public static class getScannerResults_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScannerResults_result"); + public static class getRegionLocation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionLocation_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getScannerResults_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerResults_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getRegionLocation_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getRegionLocation_resultTupleSchemeFactory()); } - public List success; // required + public THRegionLocation success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -18002,19 +20348,18 @@ public class THBaseService { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, THRegionLocation.class))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerResults_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionLocation_result.class, metaDataMap); } - public getScannerResults_result() { + public getRegionLocation_result() { } - public getScannerResults_result( - List success, + public getRegionLocation_result( + THRegionLocation success, TIOError io) { this(); @@ -18025,21 +20370,17 @@ public class THBaseService { /** * Performs a deep copy on other. */ - public getScannerResults_result(getScannerResults_result other) { + public getRegionLocation_result(getRegionLocation_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (TResult other_element : other.success) { - __this__success.add(new TResult(other_element)); - } - this.success = __this__success; + this.success = new THRegionLocation(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public getScannerResults_result deepCopy() { - return new getScannerResults_result(this); + public getRegionLocation_result deepCopy() { + return new getRegionLocation_result(this); } @Override @@ -18048,26 +20389,11 @@ public class THBaseService { this.io = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(TResult elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public THRegionLocation getSuccess() { return this.success; } - public getScannerResults_result setSuccess(List success) { + public getRegionLocation_result setSuccess(THRegionLocation success) { this.success = success; return this; } @@ -18091,7 +20417,7 @@ public class THBaseService { return this.io; } - public getScannerResults_result setIo(TIOError io) { + public getRegionLocation_result setIo(TIOError io) { this.io = io; return this; } @@ -18117,7 +20443,7 @@ public class THBaseService { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((THRegionLocation)value); } break; @@ -18163,12 +20489,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getScannerResults_result) - return this.equals((getScannerResults_result)that); + if (that instanceof getRegionLocation_result) + return this.equals((getRegionLocation_result)that); return false; } - public boolean equals(getScannerResults_result that) { + public boolean equals(getRegionLocation_result that) { if (that == null) return false; @@ -18195,45 +20521,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getScannerResults_result other) { + @Override + public int compareTo(getRegionLocation_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getScannerResults_result typedOther = (getScannerResults_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -18255,7 +20581,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("getScannerResults_result("); + StringBuilder sb = new StringBuilder("getRegionLocation_result("); boolean first = true; sb.append("success:"); @@ -18280,6 +20606,9 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -18298,15 +20627,15 @@ public class THBaseService { } } - private static class getScannerResults_resultStandardSchemeFactory implements SchemeFactory { - public getScannerResults_resultStandardScheme getScheme() { - return new getScannerResults_resultStandardScheme(); + private static class getRegionLocation_resultStandardSchemeFactory implements SchemeFactory { + public getRegionLocation_resultStandardScheme getScheme() { + return new getRegionLocation_resultStandardScheme(); } } - private static class getScannerResults_resultStandardScheme extends StandardScheme { + private static class getRegionLocation_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerResults_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionLocation_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18317,19 +20646,9 @@ public class THBaseService { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list180 = iprot.readListBegin(); - struct.success = new ArrayList(_list180.size); - for (int _i181 = 0; _i181 < _list180.size; ++_i181) - { - TResult _elem182; // required - _elem182 = new TResult(); - _elem182.read(iprot); - struct.success.add(_elem182); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new THRegionLocation(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -18355,20 +20674,13 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getScannerResults_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionLocation_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TResult _iter183 : struct.success) - { - _iter183.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.io != null) { @@ -18382,16 +20694,16 @@ public class THBaseService { } - private static class getScannerResults_resultTupleSchemeFactory implements SchemeFactory { - public getScannerResults_resultTupleScheme getScheme() { - return new getScannerResults_resultTupleScheme(); + private static class getRegionLocation_resultTupleSchemeFactory implements SchemeFactory { + public getRegionLocation_resultTupleScheme getScheme() { + return new getRegionLocation_resultTupleScheme(); } } - private static class getScannerResults_resultTupleScheme extends TupleScheme { + private static class getRegionLocation_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getScannerResults_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -18402,13 +20714,7 @@ public class THBaseService { } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (TResult _iter184 : struct.success) - { - _iter184.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetIo()) { struct.io.write(oprot); @@ -18416,21 +20722,12 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list185.size); - for (int _i186 = 0; _i186 < _list185.size; ++_i186) - { - TResult _elem187; // required - _elem187 = new TResult(); - _elem187.read(iprot); - struct.success.add(_elem187); - } - } + struct.success = new THRegionLocation(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -18443,28 +20740,22 @@ public class THBaseService { } - public static class getRegionLocation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionLocation_args"); + public static class getAllRegionLocations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllRegionLocations_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField RELOAD_FIELD_DESC = new org.apache.thrift.protocol.TField("reload", org.apache.thrift.protocol.TType.BOOL, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getRegionLocation_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRegionLocation_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllRegionLocations_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllRegionLocations_argsTupleSchemeFactory()); } public ByteBuffer table; // required - public ByteBuffer row; // required - public boolean reload; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - TABLE((short)1, "table"), - ROW((short)2, "row"), - RELOAD((short)3, "reload"); + TABLE((short)1, "table"); private static final Map byName = new HashMap(); @@ -18481,10 +20772,6 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // ROW - return ROW; - case 3: // RELOAD - return RELOAD; default: return null; } @@ -18525,62 +20812,41 @@ public class THBaseService { } // isset id assignments - private static final int __RELOAD_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - tmpMap.put(_Fields.RELOAD, new org.apache.thrift.meta_data.FieldMetaData("reload", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionLocation_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllRegionLocations_args.class, metaDataMap); } - public getRegionLocation_args() { + public getAllRegionLocations_args() { } - public getRegionLocation_args( - ByteBuffer table, - ByteBuffer row, - boolean reload) + public getAllRegionLocations_args( + ByteBuffer table) { this(); - this.table = table; - this.row = row; - this.reload = reload; - setReloadIsSet(true); + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); } /** * Performs a deep copy on other. */ - public getRegionLocation_args(getRegionLocation_args other) { - __isset_bitfield = other.__isset_bitfield; + public getAllRegionLocations_args(getAllRegionLocations_args other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; - } - if (other.isSetRow()) { - this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); -; } - this.reload = other.reload; } - public getRegionLocation_args deepCopy() { - return new getRegionLocation_args(this); + public getAllRegionLocations_args deepCopy() { + return new getAllRegionLocations_args(this); } @Override public void clear() { this.table = null; - this.row = null; - setReloadIsSet(false); - this.reload = false; } public byte[] getTable() { @@ -18589,16 +20855,16 @@ public class THBaseService { } public ByteBuffer bufferForTable() { - return table; + return org.apache.thrift.TBaseHelper.copyBinary(table); } - public getRegionLocation_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); + public getAllRegionLocations_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); return this; } - public getRegionLocation_args setTable(ByteBuffer table) { - this.table = table; + public getAllRegionLocations_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -18617,63 +20883,6 @@ public class THBaseService { } } - public byte[] getRow() { - setRow(org.apache.thrift.TBaseHelper.rightSize(row)); - return row == null ? null : row.array(); - } - - public ByteBuffer bufferForRow() { - return row; - } - - public getRegionLocation_args setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); - return this; - } - - public getRegionLocation_args setRow(ByteBuffer row) { - this.row = row; - return this; - } - - public void unsetRow() { - this.row = null; - } - - /** Returns true if field row is set (has been assigned a value) and false otherwise */ - public boolean isSetRow() { - return this.row != null; - } - - public void setRowIsSet(boolean value) { - if (!value) { - this.row = null; - } - } - - public boolean isReload() { - return this.reload; - } - - public getRegionLocation_args setReload(boolean reload) { - this.reload = reload; - setReloadIsSet(true); - return this; - } - - public void unsetReload() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RELOAD_ISSET_ID); - } - - /** Returns true if field reload is set (has been assigned a value) and false otherwise */ - public boolean isSetReload() { - return EncodingUtils.testBit(__isset_bitfield, __RELOAD_ISSET_ID); - } - - public void setReloadIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RELOAD_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: @@ -18684,22 +20893,6 @@ public class THBaseService { } break; - case ROW: - if (value == null) { - unsetRow(); - } else { - setRow((ByteBuffer)value); - } - break; - - case RELOAD: - if (value == null) { - unsetReload(); - } else { - setReload((Boolean)value); - } - break; - } } @@ -18708,12 +20901,6 @@ public class THBaseService { case TABLE: return getTable(); - case ROW: - return getRow(); - - case RELOAD: - return Boolean.valueOf(isReload()); - } throw new IllegalStateException(); } @@ -18727,10 +20914,6 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); - case ROW: - return isSetRow(); - case RELOAD: - return isSetReload(); } throw new IllegalStateException(); } @@ -18739,12 +20922,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getRegionLocation_args) - return this.equals((getRegionLocation_args)that); + if (that instanceof getAllRegionLocations_args) + return this.equals((getAllRegionLocations_args)that); return false; } - public boolean equals(getRegionLocation_args that) { + public boolean equals(getAllRegionLocations_args that) { if (that == null) return false; @@ -18753,25 +20936,7 @@ public class THBaseService { if (this_present_table || that_present_table) { if (!(this_present_table && that_present_table)) return false; - if (!this.table.equals(that.table)) - return false; - } - - boolean this_present_row = true && this.isSetRow(); - boolean that_present_row = true && that.isSetRow(); - if (this_present_row || that_present_row) { - if (!(this_present_row && that_present_row)) - return false; - if (!this.row.equals(that.row)) - return false; - } - - boolean this_present_reload = true; - boolean that_present_reload = true; - if (this_present_reload || that_present_reload) { - if (!(this_present_reload && that_present_reload)) - return false; - if (this.reload != that.reload) + if (!this.table.equals(that.table)) return false; } @@ -18780,60 +20945,30 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); - - boolean present_row = true && (isSetRow()); - builder.append(present_row); - if (present_row) - builder.append(row); - - boolean present_reload = true; - builder.append(present_reload); - if (present_reload) - builder.append(reload); + list.add(table); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getRegionLocation_args other) { + @Override + public int compareTo(getAllRegionLocations_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRegionLocation_args typedOther = (getRegionLocation_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetReload()).compareTo(typedOther.isSetReload()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetReload()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reload, typedOther.reload); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } @@ -18855,7 +20990,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("getRegionLocation_args("); + StringBuilder sb = new StringBuilder("getAllRegionLocations_args("); boolean first = true; sb.append("table:"); @@ -18865,18 +21000,6 @@ public class THBaseService { org.apache.thrift.TBaseHelper.toString(this.table, sb); } first = false; - if (!first) sb.append(", "); - sb.append("row:"); - if (this.row == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.row, sb); - } - first = false; - if (!first) sb.append(", "); - sb.append("reload:"); - sb.append(this.reload); - first = false; sb.append(")"); return sb.toString(); } @@ -18886,9 +21009,6 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } - if (row == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' was not present! Struct: " + toString()); - } // check for sub-struct validity } @@ -18902,23 +21022,21 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getRegionLocation_argsStandardSchemeFactory implements SchemeFactory { - public getRegionLocation_argsStandardScheme getScheme() { - return new getRegionLocation_argsStandardScheme(); + private static class getAllRegionLocations_argsStandardSchemeFactory implements SchemeFactory { + public getAllRegionLocations_argsStandardScheme getScheme() { + return new getAllRegionLocations_argsStandardScheme(); } } - private static class getRegionLocation_argsStandardScheme extends StandardScheme { + private static class getAllRegionLocations_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionLocation_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18936,22 +21054,6 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // RELOAD - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.reload = iprot.readBool(); - struct.setReloadIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -18963,7 +21065,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionLocation_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18972,73 +21074,49 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } - if (struct.row != null) { - oprot.writeFieldBegin(ROW_FIELD_DESC); - oprot.writeBinary(struct.row); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(RELOAD_FIELD_DESC); - oprot.writeBool(struct.reload); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getRegionLocation_argsTupleSchemeFactory implements SchemeFactory { - public getRegionLocation_argsTupleScheme getScheme() { - return new getRegionLocation_argsTupleScheme(); + private static class getAllRegionLocations_argsTupleSchemeFactory implements SchemeFactory { + public getAllRegionLocations_argsTupleScheme getScheme() { + return new getAllRegionLocations_argsTupleScheme(); } } - private static class getRegionLocation_argsTupleScheme extends TupleScheme { + private static class getAllRegionLocations_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); - oprot.writeBinary(struct.row); - BitSet optionals = new BitSet(); - if (struct.isSetReload()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReload()) { - oprot.writeBool(struct.reload); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.reload = iprot.readBool(); - struct.setReloadIsSet(true); - } } } } - public static class getRegionLocation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionLocation_result"); + public static class getAllRegionLocations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllRegionLocations_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getRegionLocation_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRegionLocation_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllRegionLocations_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllRegionLocations_resultTupleSchemeFactory()); } - public THRegionLocation success; // required + public List success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -19107,18 +21185,19 @@ public class THBaseService { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, THRegionLocation.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, THRegionLocation.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionLocation_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllRegionLocations_result.class, metaDataMap); } - public getRegionLocation_result() { + public getAllRegionLocations_result() { } - public getRegionLocation_result( - THRegionLocation success, + public getAllRegionLocations_result( + List success, TIOError io) { this(); @@ -19129,17 +21208,21 @@ public class THBaseService { /** * Performs a deep copy on other. */ - public getRegionLocation_result(getRegionLocation_result other) { + public getAllRegionLocations_result(getAllRegionLocations_result other) { if (other.isSetSuccess()) { - this.success = new THRegionLocation(other.success); + List __this__success = new ArrayList(other.success.size()); + for (THRegionLocation other_element : other.success) { + __this__success.add(new THRegionLocation(other_element)); + } + this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public getRegionLocation_result deepCopy() { - return new getRegionLocation_result(this); + public getAllRegionLocations_result deepCopy() { + return new getAllRegionLocations_result(this); } @Override @@ -19148,11 +21231,26 @@ public class THBaseService { this.io = null; } - public THRegionLocation getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(THRegionLocation elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public getRegionLocation_result setSuccess(THRegionLocation success) { + public getAllRegionLocations_result setSuccess(List success) { this.success = success; return this; } @@ -19176,7 +21274,7 @@ public class THBaseService { return this.io; } - public getRegionLocation_result setIo(TIOError io) { + public getAllRegionLocations_result setIo(TIOError io) { this.io = io; return this; } @@ -19202,7 +21300,7 @@ public class THBaseService { if (value == null) { unsetSuccess(); } else { - setSuccess((THRegionLocation)value); + setSuccess((List)value); } break; @@ -19248,12 +21346,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getRegionLocation_result) - return this.equals((getRegionLocation_result)that); + if (that instanceof getAllRegionLocations_result) + return this.equals((getAllRegionLocations_result)that); return false; } - public boolean equals(getRegionLocation_result that) { + public boolean equals(getAllRegionLocations_result that) { if (that == null) return false; @@ -19280,45 +21378,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getRegionLocation_result other) { + @Override + public int compareTo(getAllRegionLocations_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getRegionLocation_result typedOther = (getRegionLocation_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -19340,7 +21438,7 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("getRegionLocation_result("); + StringBuilder sb = new StringBuilder("getAllRegionLocations_result("); boolean first = true; sb.append("success:"); @@ -19365,9 +21463,6 @@ public class THBaseService { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -19386,15 +21481,15 @@ public class THBaseService { } } - private static class getRegionLocation_resultStandardSchemeFactory implements SchemeFactory { - public getRegionLocation_resultStandardScheme getScheme() { - return new getRegionLocation_resultStandardScheme(); + private static class getAllRegionLocations_resultStandardSchemeFactory implements SchemeFactory { + public getAllRegionLocations_resultStandardScheme getScheme() { + return new getAllRegionLocations_resultStandardScheme(); } } - private static class getRegionLocation_resultStandardScheme extends StandardScheme { + private static class getAllRegionLocations_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionLocation_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19405,9 +21500,19 @@ public class THBaseService { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new THRegionLocation(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list188 = iprot.readListBegin(); + struct.success = new ArrayList(_list188.size); + THRegionLocation _elem189; + for (int _i190 = 0; _i190 < _list188.size; ++_i190) + { + _elem189 = new THRegionLocation(); + _elem189.read(iprot); + struct.success.add(_elem189); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -19433,13 +21538,20 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionLocation_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (THRegionLocation _iter191 : struct.success) + { + _iter191.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.io != null) { @@ -19453,16 +21565,16 @@ public class THBaseService { } - private static class getRegionLocation_resultTupleSchemeFactory implements SchemeFactory { - public getRegionLocation_resultTupleScheme getScheme() { - return new getRegionLocation_resultTupleScheme(); + private static class getAllRegionLocations_resultTupleSchemeFactory implements SchemeFactory { + public getAllRegionLocations_resultTupleScheme getScheme() { + return new getAllRegionLocations_resultTupleScheme(); } } - private static class getRegionLocation_resultTupleScheme extends TupleScheme { + private static class getAllRegionLocations_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -19473,7 +21585,13 @@ public class THBaseService { } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (THRegionLocation _iter192 : struct.success) + { + _iter192.write(oprot); + } + } } if (struct.isSetIo()) { struct.io.write(oprot); @@ -19481,12 +21599,21 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new THRegionLocation(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list193.size); + THRegionLocation _elem194; + for (int _i195 = 0; _i195 < _list193.size; ++_i195) + { + _elem194 = new THRegionLocation(); + _elem194.read(iprot); + struct.success.add(_elem194); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -19499,22 +21626,88 @@ public class THBaseService { } - public static class getAllRegionLocations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllRegionLocations_args"); + public static class checkAndMutate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndMutate_args"); private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifier", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField COMPARE_OP_FIELD_DESC = new org.apache.thrift.protocol.TField("compareOp", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField ROW_MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("rowMutations", org.apache.thrift.protocol.TType.STRUCT, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllRegionLocations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllRegionLocations_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new checkAndMutate_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkAndMutate_argsTupleSchemeFactory()); } + /** + * to check in and delete from + */ public ByteBuffer table; // required + /** + * row to check + */ + public ByteBuffer row; // required + /** + * column family to check + */ + public ByteBuffer family; // required + /** + * column qualifier to check + */ + public ByteBuffer qualifier; // required + /** + * comparison to make on the value + * + * @see TCompareOp + */ + public TCompareOp compareOp; // required + /** + * the expected value to be compared against, if not provided the + * check is for the non-existence of the column in question + */ + public ByteBuffer value; // required + /** + * row mutations to execute if the value matches + */ + public TRowMutations rowMutations; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - TABLE((short)1, "table"); + /** + * to check in and delete from + */ + TABLE((short)1, "table"), + /** + * row to check + */ + ROW((short)2, "row"), + /** + * column family to check + */ + FAMILY((short)3, "family"), + /** + * column qualifier to check + */ + QUALIFIER((short)4, "qualifier"), + /** + * comparison to make on the value + * + * @see TCompareOp + */ + COMPARE_OP((short)5, "compareOp"), + /** + * the expected value to be compared against, if not provided the + * check is for the non-existence of the column in question + */ + VALUE((short)6, "value"), + /** + * row mutations to execute if the value matches + */ + ROW_MUTATIONS((short)7, "rowMutations"); private static final Map byName = new HashMap(); @@ -19531,6 +21724,18 @@ public class THBaseService { switch(fieldId) { case 1: // TABLE return TABLE; + case 2: // ROW + return ROW; + case 3: // FAMILY + return FAMILY; + case 4: // QUALIFIER + return QUALIFIER; + case 5: // COMPARE_OP + return COMPARE_OP; + case 6: // VALUE + return VALUE; + case 7: // ROW_MUTATIONS + return ROW_MUTATIONS; default: return null; } @@ -19576,70 +21781,349 @@ public class THBaseService { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.COMPARE_OP, new org.apache.thrift.meta_data.FieldMetaData("compareOp", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TCompareOp.class))); + tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + tmpMap.put(_Fields.ROW_MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("rowMutations", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowMutations.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllRegionLocations_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndMutate_args.class, metaDataMap); } - public getAllRegionLocations_args() { + public checkAndMutate_args() { + } + + public checkAndMutate_args( + ByteBuffer table, + ByteBuffer row, + ByteBuffer family, + ByteBuffer qualifier, + TCompareOp compareOp, + ByteBuffer value, + TRowMutations rowMutations) + { + this(); + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + this.family = org.apache.thrift.TBaseHelper.copyBinary(family); + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); + this.compareOp = compareOp; + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); + this.rowMutations = rowMutations; + } + + /** + * Performs a deep copy on other. + */ + public checkAndMutate_args(checkAndMutate_args other) { + if (other.isSetTable()) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); + } + if (other.isSetRow()) { + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); + } + if (other.isSetFamily()) { + this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); + } + if (other.isSetQualifier()) { + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); + } + if (other.isSetCompareOp()) { + this.compareOp = other.compareOp; + } + if (other.isSetValue()) { + this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); + } + if (other.isSetRowMutations()) { + this.rowMutations = new TRowMutations(other.rowMutations); + } + } + + public checkAndMutate_args deepCopy() { + return new checkAndMutate_args(this); + } + + @Override + public void clear() { + this.table = null; + this.row = null; + this.family = null; + this.qualifier = null; + this.compareOp = null; + this.value = null; + this.rowMutations = null; + } + + /** + * to check in and delete from + */ + public byte[] getTable() { + setTable(org.apache.thrift.TBaseHelper.rightSize(table)); + return table == null ? null : table.array(); + } + + public ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); + } + + /** + * to check in and delete from + */ + public checkAndMutate_args setTable(byte[] table) { + this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + return this; + } + + public checkAndMutate_args setTable(ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); + return this; + } + + public void unsetTable() { + this.table = null; + } + + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; + } + + public void setTableIsSet(boolean value) { + if (!value) { + this.table = null; + } + } + + /** + * row to check + */ + public byte[] getRow() { + setRow(org.apache.thrift.TBaseHelper.rightSize(row)); + return row == null ? null : row.array(); + } + + public ByteBuffer bufferForRow() { + return org.apache.thrift.TBaseHelper.copyBinary(row); + } + + /** + * row to check + */ + public checkAndMutate_args setRow(byte[] row) { + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + return this; + } + + public checkAndMutate_args setRow(ByteBuffer row) { + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); + return this; + } + + public void unsetRow() { + this.row = null; + } + + /** Returns true if field row is set (has been assigned a value) and false otherwise */ + public boolean isSetRow() { + return this.row != null; + } + + public void setRowIsSet(boolean value) { + if (!value) { + this.row = null; + } + } + + /** + * column family to check + */ + public byte[] getFamily() { + setFamily(org.apache.thrift.TBaseHelper.rightSize(family)); + return family == null ? null : family.array(); + } + + public ByteBuffer bufferForFamily() { + return org.apache.thrift.TBaseHelper.copyBinary(family); + } + + /** + * column family to check + */ + public checkAndMutate_args setFamily(byte[] family) { + this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + return this; + } + + public checkAndMutate_args setFamily(ByteBuffer family) { + this.family = org.apache.thrift.TBaseHelper.copyBinary(family); + return this; + } + + public void unsetFamily() { + this.family = null; + } + + /** Returns true if field family is set (has been assigned a value) and false otherwise */ + public boolean isSetFamily() { + return this.family != null; + } + + public void setFamilyIsSet(boolean value) { + if (!value) { + this.family = null; + } + } + + /** + * column qualifier to check + */ + public byte[] getQualifier() { + setQualifier(org.apache.thrift.TBaseHelper.rightSize(qualifier)); + return qualifier == null ? null : qualifier.array(); + } + + public ByteBuffer bufferForQualifier() { + return org.apache.thrift.TBaseHelper.copyBinary(qualifier); + } + + /** + * column qualifier to check + */ + public checkAndMutate_args setQualifier(byte[] qualifier) { + this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + return this; + } + + public checkAndMutate_args setQualifier(ByteBuffer qualifier) { + this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); + return this; + } + + public void unsetQualifier() { + this.qualifier = null; + } + + /** Returns true if field qualifier is set (has been assigned a value) and false otherwise */ + public boolean isSetQualifier() { + return this.qualifier != null; + } + + public void setQualifierIsSet(boolean value) { + if (!value) { + this.qualifier = null; + } + } + + /** + * comparison to make on the value + * + * @see TCompareOp + */ + public TCompareOp getCompareOp() { + return this.compareOp; + } + + /** + * comparison to make on the value + * + * @see TCompareOp + */ + public checkAndMutate_args setCompareOp(TCompareOp compareOp) { + this.compareOp = compareOp; + return this; + } + + public void unsetCompareOp() { + this.compareOp = null; + } + + /** Returns true if field compareOp is set (has been assigned a value) and false otherwise */ + public boolean isSetCompareOp() { + return this.compareOp != null; + } + + public void setCompareOpIsSet(boolean value) { + if (!value) { + this.compareOp = null; + } + } + + /** + * the expected value to be compared against, if not provided the + * check is for the non-existence of the column in question + */ + public byte[] getValue() { + setValue(org.apache.thrift.TBaseHelper.rightSize(value)); + return value == null ? null : value.array(); } - public getAllRegionLocations_args( - ByteBuffer table) - { - this(); - this.table = table; + public ByteBuffer bufferForValue() { + return org.apache.thrift.TBaseHelper.copyBinary(value); } /** - * Performs a deep copy on other. + * the expected value to be compared against, if not provided the + * check is for the non-existence of the column in question */ - public getAllRegionLocations_args(getAllRegionLocations_args other) { - if (other.isSetTable()) { - this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); -; - } + public checkAndMutate_args setValue(byte[] value) { + this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + return this; } - public getAllRegionLocations_args deepCopy() { - return new getAllRegionLocations_args(this); + public checkAndMutate_args setValue(ByteBuffer value) { + this.value = org.apache.thrift.TBaseHelper.copyBinary(value); + return this; } - @Override - public void clear() { - this.table = null; + public void unsetValue() { + this.value = null; } - public byte[] getTable() { - setTable(org.apache.thrift.TBaseHelper.rightSize(table)); - return table == null ? null : table.array(); + /** Returns true if field value is set (has been assigned a value) and false otherwise */ + public boolean isSetValue() { + return this.value != null; } - public ByteBuffer bufferForTable() { - return table; + public void setValueIsSet(boolean value) { + if (!value) { + this.value = null; + } } - public getAllRegionLocations_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); - return this; + /** + * row mutations to execute if the value matches + */ + public TRowMutations getRowMutations() { + return this.rowMutations; } - public getAllRegionLocations_args setTable(ByteBuffer table) { - this.table = table; + /** + * row mutations to execute if the value matches + */ + public checkAndMutate_args setRowMutations(TRowMutations rowMutations) { + this.rowMutations = rowMutations; return this; } - public void unsetTable() { - this.table = null; + public void unsetRowMutations() { + this.rowMutations = null; } - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; + /** Returns true if field rowMutations is set (has been assigned a value) and false otherwise */ + public boolean isSetRowMutations() { + return this.rowMutations != null; } - public void setTableIsSet(boolean value) { + public void setRowMutationsIsSet(boolean value) { if (!value) { - this.table = null; + this.rowMutations = null; } } @@ -19653,6 +22137,54 @@ public class THBaseService { } break; + case ROW: + if (value == null) { + unsetRow(); + } else { + setRow((ByteBuffer)value); + } + break; + + case FAMILY: + if (value == null) { + unsetFamily(); + } else { + setFamily((ByteBuffer)value); + } + break; + + case QUALIFIER: + if (value == null) { + unsetQualifier(); + } else { + setQualifier((ByteBuffer)value); + } + break; + + case COMPARE_OP: + if (value == null) { + unsetCompareOp(); + } else { + setCompareOp((TCompareOp)value); + } + break; + + case VALUE: + if (value == null) { + unsetValue(); + } else { + setValue((ByteBuffer)value); + } + break; + + case ROW_MUTATIONS: + if (value == null) { + unsetRowMutations(); + } else { + setRowMutations((TRowMutations)value); + } + break; + } } @@ -19661,6 +22193,24 @@ public class THBaseService { case TABLE: return getTable(); + case ROW: + return getRow(); + + case FAMILY: + return getFamily(); + + case QUALIFIER: + return getQualifier(); + + case COMPARE_OP: + return getCompareOp(); + + case VALUE: + return getValue(); + + case ROW_MUTATIONS: + return getRowMutations(); + } throw new IllegalStateException(); } @@ -19674,6 +22224,18 @@ public class THBaseService { switch (field) { case TABLE: return isSetTable(); + case ROW: + return isSetRow(); + case FAMILY: + return isSetFamily(); + case QUALIFIER: + return isSetQualifier(); + case COMPARE_OP: + return isSetCompareOp(); + case VALUE: + return isSetValue(); + case ROW_MUTATIONS: + return isSetRowMutations(); } throw new IllegalStateException(); } @@ -19682,12 +22244,12 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllRegionLocations_args) - return this.equals((getAllRegionLocations_args)that); + if (that instanceof checkAndMutate_args) + return this.equals((checkAndMutate_args)that); return false; } - public boolean equals(getAllRegionLocations_args that) { + public boolean equals(checkAndMutate_args that) { if (that == null) return false; @@ -19700,35 +22262,179 @@ public class THBaseService { return false; } + boolean this_present_row = true && this.isSetRow(); + boolean that_present_row = true && that.isSetRow(); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!this.row.equals(that.row)) + return false; + } + + boolean this_present_family = true && this.isSetFamily(); + boolean that_present_family = true && that.isSetFamily(); + if (this_present_family || that_present_family) { + if (!(this_present_family && that_present_family)) + return false; + if (!this.family.equals(that.family)) + return false; + } + + boolean this_present_qualifier = true && this.isSetQualifier(); + boolean that_present_qualifier = true && that.isSetQualifier(); + if (this_present_qualifier || that_present_qualifier) { + if (!(this_present_qualifier && that_present_qualifier)) + return false; + if (!this.qualifier.equals(that.qualifier)) + return false; + } + + boolean this_present_compareOp = true && this.isSetCompareOp(); + boolean that_present_compareOp = true && that.isSetCompareOp(); + if (this_present_compareOp || that_present_compareOp) { + if (!(this_present_compareOp && that_present_compareOp)) + return false; + if (!this.compareOp.equals(that.compareOp)) + return false; + } + + boolean this_present_value = true && this.isSetValue(); + boolean that_present_value = true && that.isSetValue(); + if (this_present_value || that_present_value) { + if (!(this_present_value && that_present_value)) + return false; + if (!this.value.equals(that.value)) + return false; + } + + boolean this_present_rowMutations = true && this.isSetRowMutations(); + boolean that_present_rowMutations = true && that.isSetRowMutations(); + if (this_present_rowMutations || that_present_rowMutations) { + if (!(this_present_rowMutations && that_present_rowMutations)) + return false; + if (!this.rowMutations.equals(that.rowMutations)) + return false; + } + return true; } @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_table = true && (isSetTable()); - builder.append(present_table); + list.add(present_table); if (present_table) - builder.append(table); + list.add(table); - return builder.toHashCode(); + boolean present_row = true && (isSetRow()); + list.add(present_row); + if (present_row) + list.add(row); + + boolean present_family = true && (isSetFamily()); + list.add(present_family); + if (present_family) + list.add(family); + + boolean present_qualifier = true && (isSetQualifier()); + list.add(present_qualifier); + if (present_qualifier) + list.add(qualifier); + + boolean present_compareOp = true && (isSetCompareOp()); + list.add(present_compareOp); + if (present_compareOp) + list.add(compareOp.getValue()); + + boolean present_value = true && (isSetValue()); + list.add(present_value); + if (present_value) + list.add(value); + + boolean present_rowMutations = true && (isSetRowMutations()); + list.add(present_rowMutations); + if (present_rowMutations) + list.add(rowMutations); + + return list.hashCode(); } - public int compareTo(getAllRegionLocations_args other) { + @Override + public int compareTo(checkAndMutate_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getAllRegionLocations_args typedOther = (getAllRegionLocations_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRow()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFamily()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, other.family); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetQualifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCompareOp()).compareTo(other.isSetCompareOp()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCompareOp()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compareOp, other.compareOp); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValue()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRowMutations()).compareTo(other.isSetRowMutations()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRowMutations()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowMutations, other.rowMutations); if (lastComparison != 0) { return lastComparison; } @@ -19750,14 +22456,62 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllRegionLocations_args("); + StringBuilder sb = new StringBuilder("checkAndMutate_args("); boolean first = true; sb.append("table:"); if (this.table == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.table, sb); + org.apache.thrift.TBaseHelper.toString(this.table, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("row:"); + if (this.row == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.row, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("family:"); + if (this.family == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.family, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("qualifier:"); + if (this.qualifier == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("compareOp:"); + if (this.compareOp == null) { + sb.append("null"); + } else { + sb.append(this.compareOp); + } + first = false; + if (!first) sb.append(", "); + sb.append("value:"); + if (this.value == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.value, sb); + } + first = false; + if (!first) sb.append(", "); + sb.append("rowMutations:"); + if (this.rowMutations == null) { + sb.append("null"); + } else { + sb.append(this.rowMutations); } first = false; sb.append(")"); @@ -19769,7 +22523,25 @@ public class THBaseService { if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } + if (row == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' was not present! Struct: " + toString()); + } + if (family == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'family' was not present! Struct: " + toString()); + } + if (qualifier == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'qualifier' was not present! Struct: " + toString()); + } + if (compareOp == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'compareOp' was not present! Struct: " + toString()); + } + if (rowMutations == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'rowMutations' was not present! Struct: " + toString()); + } // check for sub-struct validity + if (rowMutations != null) { + rowMutations.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -19788,15 +22560,15 @@ public class THBaseService { } } - private static class getAllRegionLocations_argsStandardSchemeFactory implements SchemeFactory { - public getAllRegionLocations_argsStandardScheme getScheme() { - return new getAllRegionLocations_argsStandardScheme(); + private static class checkAndMutate_argsStandardSchemeFactory implements SchemeFactory { + public checkAndMutate_argsStandardScheme getScheme() { + return new checkAndMutate_argsStandardScheme(); } } - private static class getAllRegionLocations_argsStandardScheme extends StandardScheme { + private static class checkAndMutate_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndMutate_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19814,6 +22586,55 @@ public class THBaseService { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FAMILY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.family = iprot.readBinary(); + struct.setFamilyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // QUALIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.qualifier = iprot.readBinary(); + struct.setQualifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // COMPARE_OP + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.compareOp = org.apache.hadoop.hbase.thrift2.generated.TCompareOp.findByValue(iprot.readI32()); + struct.setCompareOpIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readBinary(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // ROW_MUTATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rowMutations = new TRowMutations(); + struct.rowMutations.read(iprot); + struct.setRowMutationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19825,7 +22646,7 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndMutate_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -19834,49 +22655,108 @@ public class THBaseService { oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } + if (struct.row != null) { + oprot.writeFieldBegin(ROW_FIELD_DESC); + oprot.writeBinary(struct.row); + oprot.writeFieldEnd(); + } + if (struct.family != null) { + oprot.writeFieldBegin(FAMILY_FIELD_DESC); + oprot.writeBinary(struct.family); + oprot.writeFieldEnd(); + } + if (struct.qualifier != null) { + oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); + oprot.writeBinary(struct.qualifier); + oprot.writeFieldEnd(); + } + if (struct.compareOp != null) { + oprot.writeFieldBegin(COMPARE_OP_FIELD_DESC); + oprot.writeI32(struct.compareOp.getValue()); + oprot.writeFieldEnd(); + } + if (struct.value != null) { + oprot.writeFieldBegin(VALUE_FIELD_DESC); + oprot.writeBinary(struct.value); + oprot.writeFieldEnd(); + } + if (struct.rowMutations != null) { + oprot.writeFieldBegin(ROW_MUTATIONS_FIELD_DESC); + struct.rowMutations.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllRegionLocations_argsTupleSchemeFactory implements SchemeFactory { - public getAllRegionLocations_argsTupleScheme getScheme() { - return new getAllRegionLocations_argsTupleScheme(); + private static class checkAndMutate_argsTupleSchemeFactory implements SchemeFactory { + public checkAndMutate_argsTupleScheme getScheme() { + return new checkAndMutate_argsTupleScheme(); } } - private static class getAllRegionLocations_argsTupleScheme extends TupleScheme { + private static class checkAndMutate_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); + oprot.writeBinary(struct.row); + oprot.writeBinary(struct.family); + oprot.writeBinary(struct.qualifier); + oprot.writeI32(struct.compareOp.getValue()); + struct.rowMutations.write(oprot); + BitSet optionals = new BitSet(); + if (struct.isSetValue()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetValue()) { + oprot.writeBinary(struct.value); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + struct.family = iprot.readBinary(); + struct.setFamilyIsSet(true); + struct.qualifier = iprot.readBinary(); + struct.setQualifierIsSet(true); + struct.compareOp = org.apache.hadoop.hbase.thrift2.generated.TCompareOp.findByValue(iprot.readI32()); + struct.setCompareOpIsSet(true); + struct.rowMutations = new TRowMutations(); + struct.rowMutations.read(iprot); + struct.setRowMutationsIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readBinary(); + struct.setValueIsSet(true); + } } } } - public static class getAllRegionLocations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllRegionLocations_result"); + public static class checkAndMutate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndMutate_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllRegionLocations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllRegionLocations_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new checkAndMutate_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new checkAndMutate_resultTupleSchemeFactory()); } - public List success; // required + public boolean success; // required public TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -19941,100 +22821,82 @@ public class THBaseService { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, THRegionLocation.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllRegionLocations_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndMutate_result.class, metaDataMap); } - public getAllRegionLocations_result() { + public checkAndMutate_result() { } - public getAllRegionLocations_result( - List success, + public checkAndMutate_result( + boolean success, TIOError io) { this(); this.success = success; + setSuccessIsSet(true); this.io = io; } /** * Performs a deep copy on other. */ - public getAllRegionLocations_result(getAllRegionLocations_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (THRegionLocation other_element : other.success) { - __this__success.add(new THRegionLocation(other_element)); - } - this.success = __this__success; - } + public checkAndMutate_result(checkAndMutate_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public getAllRegionLocations_result deepCopy() { - return new getAllRegionLocations_result(this); + public checkAndMutate_result deepCopy() { + return new checkAndMutate_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.io = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(THRegionLocation elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public boolean isSuccess() { return this.success; } - public getAllRegionLocations_result setSuccess(List success) { + public checkAndMutate_result setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); return this; } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public TIOError getIo() { return this.io; } - public getAllRegionLocations_result setIo(TIOError io) { + public checkAndMutate_result setIo(TIOError io) { this.io = io; return this; } @@ -20060,7 +22922,7 @@ public class THBaseService { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((Boolean)value); } break; @@ -20078,7 +22940,7 @@ public class THBaseService { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Boolean.valueOf(isSuccess()); case IO: return getIo(); @@ -20106,21 +22968,21 @@ public class THBaseService { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllRegionLocations_result) - return this.equals((getAllRegionLocations_result)that); + if (that instanceof checkAndMutate_result) + return this.equals((checkAndMutate_result)that); return false; } - public boolean equals(getAllRegionLocations_result that) { + public boolean equals(checkAndMutate_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + 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.equals(that.success)) + if (this.success != that.success) return false; } @@ -20138,45 +23000,45 @@ public class THBaseService { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + boolean present_success = true; + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_io = true && (isSetIo()); - builder.append(present_io); + list.add(present_io); if (present_io) - builder.append(io); + list.add(io); - return builder.toHashCode(); + return list.hashCode(); } - public int compareTo(getAllRegionLocations_result other) { + @Override + public int compareTo(checkAndMutate_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - getAllRegionLocations_result typedOther = (getAllRegionLocations_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -20198,15 +23060,11 @@ public class THBaseService { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllRegionLocations_result("); + StringBuilder sb = new StringBuilder("checkAndMutate_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("io:"); @@ -20235,21 +23093,23 @@ public class THBaseService { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getAllRegionLocations_resultStandardSchemeFactory implements SchemeFactory { - public getAllRegionLocations_resultStandardScheme getScheme() { - return new getAllRegionLocations_resultStandardScheme(); + private static class checkAndMutate_resultStandardSchemeFactory implements SchemeFactory { + public checkAndMutate_resultStandardScheme getScheme() { + return new checkAndMutate_resultStandardScheme(); } } - private static class getAllRegionLocations_resultStandardScheme extends StandardScheme { + private static class checkAndMutate_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndMutate_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20260,19 +23120,8 @@ public class THBaseService { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list188 = iprot.readListBegin(); - struct.success = new ArrayList(_list188.size); - for (int _i189 = 0; _i189 < _list188.size; ++_i189) - { - THRegionLocation _elem190; // required - _elem190 = new THRegionLocation(); - _elem190.read(iprot); - struct.success.add(_elem190); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -20298,20 +23147,13 @@ public class THBaseService { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndMutate_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (THRegionLocation _iter191 : struct.success) - { - _iter191.write(oprot); - } - oprot.writeListEnd(); - } + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.io != null) { @@ -20325,16 +23167,16 @@ public class THBaseService { } - private static class getAllRegionLocations_resultTupleSchemeFactory implements SchemeFactory { - public getAllRegionLocations_resultTupleScheme getScheme() { - return new getAllRegionLocations_resultTupleScheme(); + private static class checkAndMutate_resultTupleSchemeFactory implements SchemeFactory { + public checkAndMutate_resultTupleScheme getScheme() { + return new checkAndMutate_resultTupleScheme(); } } - private static class getAllRegionLocations_resultTupleScheme extends TupleScheme { + private static class checkAndMutate_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -20345,13 +23187,7 @@ public class THBaseService { } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (THRegionLocation _iter192 : struct.success) - { - _iter192.write(oprot); - } - } + oprot.writeBool(struct.success); } if (struct.isSetIo()) { struct.io.write(oprot); @@ -20359,21 +23195,11 @@ public class THBaseService { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list193.size); - for (int _i194 = 0; _i194 < _list193.size; ++_i194) - { - THRegionLocation _elem195; // required - _elem195 = new THRegionLocation(); - _elem195.read(iprot); - struct.success.add(_elem195); - } - } + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java index e709612..47444cf 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class THRegionInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class THRegionInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("THRegionInfo"); private static final org.apache.thrift.protocol.TField REGION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("regionId", org.apache.thrift.protocol.TType.I64, (short)1); @@ -138,7 +142,7 @@ public class THRegionInfo implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -170,7 +174,7 @@ public class THRegionInfo implements org.apache.thrift.TBase list = new ArrayList(); boolean present_regionId = true; - builder.append(present_regionId); + list.add(present_regionId); if (present_regionId) - builder.append(regionId); + list.add(regionId); boolean present_tableName = true && (isSetTableName()); - builder.append(present_tableName); + list.add(present_tableName); if (present_tableName) - builder.append(tableName); + list.add(tableName); boolean present_startKey = true && (isSetStartKey()); - builder.append(present_startKey); + list.add(present_startKey); if (present_startKey) - builder.append(startKey); + list.add(startKey); boolean present_endKey = true && (isSetEndKey()); - builder.append(present_endKey); + list.add(present_endKey); if (present_endKey) - builder.append(endKey); + list.add(endKey); boolean present_offline = true && (isSetOffline()); - builder.append(present_offline); + list.add(present_offline); if (present_offline) - builder.append(offline); + list.add(offline); boolean present_split = true && (isSetSplit()); - builder.append(present_split); + list.add(present_split); if (present_split) - builder.append(split); + list.add(split); boolean present_replicaId = true && (isSetReplicaId()); - builder.append(present_replicaId); + list.add(present_replicaId); if (present_replicaId) - builder.append(replicaId); + list.add(replicaId); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(THRegionInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - THRegionInfo typedOther = (THRegionInfo)other; - lastComparison = Boolean.valueOf(isSetRegionId()).compareTo(typedOther.isSetRegionId()); + lastComparison = Boolean.valueOf(isSetRegionId()).compareTo(other.isSetRegionId()); if (lastComparison != 0) { return lastComparison; } if (isSetRegionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionId, typedOther.regionId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionId, other.regionId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartKey()).compareTo(typedOther.isSetStartKey()); + lastComparison = Boolean.valueOf(isSetStartKey()).compareTo(other.isSetStartKey()); if (lastComparison != 0) { return lastComparison; } if (isSetStartKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startKey, typedOther.startKey); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startKey, other.startKey); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEndKey()).compareTo(typedOther.isSetEndKey()); + lastComparison = Boolean.valueOf(isSetEndKey()).compareTo(other.isSetEndKey()); if (lastComparison != 0) { return lastComparison; } if (isSetEndKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endKey, typedOther.endKey); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endKey, other.endKey); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOffline()).compareTo(typedOther.isSetOffline()); + lastComparison = Boolean.valueOf(isSetOffline()).compareTo(other.isSetOffline()); if (lastComparison != 0) { return lastComparison; } if (isSetOffline()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offline, typedOther.offline); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offline, other.offline); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSplit()).compareTo(typedOther.isSetSplit()); + lastComparison = Boolean.valueOf(isSetSplit()).compareTo(other.isSetSplit()); if (lastComparison != 0) { return lastComparison; } if (isSetSplit()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.split, typedOther.split); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.split, other.split); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReplicaId()).compareTo(typedOther.isSetReplicaId()); + lastComparison = Boolean.valueOf(isSetReplicaId()).compareTo(other.isSetReplicaId()); if (lastComparison != 0) { return lastComparison; } if (isSetReplicaId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replicaId, typedOther.replicaId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replicaId, other.replicaId); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java index 22d00fc..e376701 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class THRegionLocation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class THRegionLocation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("THRegionLocation"); private static final org.apache.thrift.protocol.TField SERVER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("serverName", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -285,45 +289,45 @@ public class THRegionLocation implements org.apache.thrift.TBase list = new ArrayList(); boolean present_serverName = true && (isSetServerName()); - builder.append(present_serverName); + list.add(present_serverName); if (present_serverName) - builder.append(serverName); + list.add(serverName); boolean present_regionInfo = true && (isSetRegionInfo()); - builder.append(present_regionInfo); + list.add(present_regionInfo); if (present_regionInfo) - builder.append(regionInfo); + list.add(regionInfo); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(THRegionLocation other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - THRegionLocation typedOther = (THRegionLocation)other; - lastComparison = Boolean.valueOf(isSetServerName()).compareTo(typedOther.isSetServerName()); + lastComparison = Boolean.valueOf(isSetServerName()).compareTo(other.isSetServerName()); if (lastComparison != 0) { return lastComparison; } if (isSetServerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, typedOther.serverName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, other.serverName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRegionInfo()).compareTo(typedOther.isSetRegionInfo()); + lastComparison = Boolean.valueOf(isSetRegionInfo()).compareTo(other.isSetRegionInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetRegionInfo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionInfo, typedOther.regionInfo); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionInfo, other.regionInfo); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java index d79eb3f..526a577 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,15 +29,18 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * A TIOError exception signals that an error occurred communicating * to the HBase master or a HBase region server. Also used to return * more general HBase error conditions. */ -public class TIOError extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TIOError extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIOError"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -108,7 +112,7 @@ public class TIOError extends TException implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -225,30 +229,30 @@ public class TIOError extends TException implements org.apache.thrift.TBase list = new ArrayList(); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TIOError other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TIOError typedOther = (TIOError)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java index b18ce43..e95e1b5 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,14 +29,17 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * A TIllegalArgument exception indicates an illegal or invalid * argument was passed into a procedure. */ -public class TIllegalArgument extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TIllegalArgument extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIllegalArgument"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -107,7 +111,7 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB } // isset id assignments - private _Fields optionals[] = {_Fields.MESSAGE}; + private static final _Fields optionals[] = {_Fields.MESSAGE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -224,30 +228,30 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TIllegalArgument other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TIllegalArgument typedOther = (TIllegalArgument)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java index 358a9fc..1fe143d 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,9 +29,11 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Used to perform Increment operations for a single row. * @@ -38,7 +41,8 @@ import org.slf4j.LoggerFactory; * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -public class TIncrement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TIncrement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIncrement"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -138,7 +142,7 @@ public class TIncrement implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -167,7 +171,7 @@ public class TIncrement implements org.apache.thrift.TBase columns) { this(); - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.columns = columns; } @@ -177,30 +181,16 @@ public class TIncrement implements org.apache.thrift.TBase __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (TColumnIncrement other_element : other.columns) { __this__columns.add(new TColumnIncrement(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); - for (Map.Entry other_element : other.attributes.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); - - ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); -; - - __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); - } + Map __this__attributes = new HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -230,16 +220,16 @@ public class TIncrement implements org.apache.thrift.TBase list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); boolean present_durability = true && (isSetDurability()); - builder.append(present_durability); + list.add(present_durability); if (present_durability) - builder.append(durability.getValue()); + list.add(durability.getValue()); boolean present_cellVisibility = true && (isSetCellVisibility()); - builder.append(present_cellVisibility); + list.add(present_cellVisibility); if (present_cellVisibility) - builder.append(cellVisibility); + list.add(cellVisibility); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TIncrement other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TIncrement typedOther = (TIncrement)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDurability()).compareTo(typedOther.isSetDurability()); + lastComparison = Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); if (lastComparison != 0) { return lastComparison; } if (isSetDurability()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, typedOther.durability); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, other.durability); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCellVisibility()).compareTo(typedOther.isSetCellVisibility()); + lastComparison = Boolean.valueOf(isSetCellVisibility()).compareTo(other.isSetCellVisibility()); if (lastComparison != 0) { return lastComparison; } if (isSetCellVisibility()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cellVisibility, typedOther.cellVisibility); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cellVisibility, other.cellVisibility); if (lastComparison != 0) { return lastComparison; } @@ -756,12 +746,12 @@ public class TIncrement implements org.apache.thrift.TBase(_list70.size); - for (int _i71 = 0; _i71 < _list70.size; ++_i71) + TColumnIncrement _elem71; + for (int _i72 = 0; _i72 < _list70.size; ++_i72) { - TColumnIncrement _elem72; // required - _elem72 = new TColumnIncrement(); - _elem72.read(iprot); - struct.columns.add(_elem72); + _elem71 = new TColumnIncrement(); + _elem71.read(iprot); + struct.columns.add(_elem71); } iprot.readListEnd(); } @@ -775,13 +765,13 @@ public class TIncrement implements org.apache.thrift.TBase(2*_map73.size); - for (int _i74 = 0; _i74 < _map73.size; ++_i74) + ByteBuffer _key74; + ByteBuffer _val75; + for (int _i76 = 0; _i76 < _map73.size; ++_i76) { - ByteBuffer _key75; // required - ByteBuffer _val76; // required - _key75 = iprot.readBinary(); - _val76 = iprot.readBinary(); - struct.attributes.put(_key75, _val76); + _key74 = iprot.readBinary(); + _val75 = iprot.readBinary(); + struct.attributes.put(_key74, _val75); } iprot.readMapEnd(); } @@ -792,7 +782,7 @@ public class TIncrement implements org.apache.thrift.TBase(_list81.size); - for (int _i82 = 0; _i82 < _list81.size; ++_i82) + TColumnIncrement _elem82; + for (int _i83 = 0; _i83 < _list81.size; ++_i83) { - TColumnIncrement _elem83; // required - _elem83 = new TColumnIncrement(); - _elem83.read(iprot); - struct.columns.add(_elem83); + _elem82 = new TColumnIncrement(); + _elem82.read(iprot); + struct.columns.add(_elem82); } } struct.setColumnsIsSet(true); @@ -944,19 +934,19 @@ public class TIncrement implements org.apache.thrift.TBase(2*_map84.size); - for (int _i85 = 0; _i85 < _map84.size; ++_i85) + ByteBuffer _key85; + ByteBuffer _val86; + for (int _i87 = 0; _i87 < _map84.size; ++_i87) { - ByteBuffer _key86; // required - ByteBuffer _val87; // required - _key86 = iprot.readBinary(); - _val87 = iprot.readBinary(); - struct.attributes.put(_key86, _val87); + _key85 = iprot.readBinary(); + _val86 = iprot.readBinary(); + struct.attributes.put(_key85, _val86); } } struct.setAttributesIsSet(true); } if (incoming.get(1)) { - struct.durability = TDurability.findByValue(iprot.readI32()); + struct.durability = org.apache.hadoop.hbase.thrift2.generated.TDurability.findByValue(iprot.readI32()); struct.setDurabilityIsSet(true); } if (incoming.get(2)) { diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java index 8fb1567..9dce9a4 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,9 +29,11 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Atomic mutation for the specified row. It can be either Put or Delete. */ @@ -186,6 +189,7 @@ public class TMutation extends org.apache.thrift.TUnion list = new ArrayList(); + list.add(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - hcb.append(setField.getThriftFieldId()); + list.add(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - hcb.append(value); + list.add(value); } } - return hcb.toHashCode(); + return list.hashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java index c9a122c..4055c25 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,9 +29,11 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Used to perform Put operations for a single row. * @@ -43,7 +46,8 @@ import org.slf4j.LoggerFactory; * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -public class TPut implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TPut implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPut"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -150,7 +154,7 @@ public class TPut implements org.apache.thrift.TBase, java.i // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.TIMESTAMP,_Fields.ATTRIBUTES,_Fields.DURABILITY,_Fields.CELL_VISIBILITY}; + private static final _Fields optionals[] = {_Fields.TIMESTAMP,_Fields.ATTRIBUTES,_Fields.DURABILITY,_Fields.CELL_VISIBILITY}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -181,7 +185,7 @@ public class TPut implements org.apache.thrift.TBase, java.i List columnValues) { this(); - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.columnValues = columnValues; } @@ -192,10 +196,9 @@ public class TPut implements org.apache.thrift.TBase, java.i __isset_bitfield = other.__isset_bitfield; if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); -; } if (other.isSetColumnValues()) { - List __this__columnValues = new ArrayList(); + List __this__columnValues = new ArrayList(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } @@ -203,20 +206,7 @@ public class TPut implements org.apache.thrift.TBase, java.i } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); - for (Map.Entry other_element : other.attributes.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); - - ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); -; - - __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); - } + Map __this__attributes = new HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -248,16 +238,16 @@ public class TPut implements org.apache.thrift.TBase, java.i } public ByteBuffer bufferForRow() { - return row; + return org.apache.thrift.TBaseHelper.copyBinary(row); } public TPut setRow(byte[] row) { - setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); + this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); return this; } public TPut setRow(ByteBuffer row) { - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -601,105 +591,105 @@ public class TPut implements org.apache.thrift.TBase, java.i @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columnValues = true && (isSetColumnValues()); - builder.append(present_columnValues); + list.add(present_columnValues); if (present_columnValues) - builder.append(columnValues); + list.add(columnValues); boolean present_timestamp = true && (isSetTimestamp()); - builder.append(present_timestamp); + list.add(present_timestamp); if (present_timestamp) - builder.append(timestamp); + list.add(timestamp); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); boolean present_durability = true && (isSetDurability()); - builder.append(present_durability); + list.add(present_durability); if (present_durability) - builder.append(durability.getValue()); + list.add(durability.getValue()); boolean present_cellVisibility = true && (isSetCellVisibility()); - builder.append(present_cellVisibility); + list.add(present_cellVisibility); if (present_cellVisibility) - builder.append(cellVisibility); + list.add(cellVisibility); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TPut other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TPut typedOther = (TPut)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnValues()).compareTo(typedOther.isSetColumnValues()); + lastComparison = Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnValues, typedOther.columnValues); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnValues, other.columnValues); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDurability()).compareTo(typedOther.isSetDurability()); + lastComparison = Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); if (lastComparison != 0) { return lastComparison; } if (isSetDurability()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, typedOther.durability); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durability, other.durability); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCellVisibility()).compareTo(typedOther.isSetCellVisibility()); + lastComparison = Boolean.valueOf(isSetCellVisibility()).compareTo(other.isSetCellVisibility()); if (lastComparison != 0) { return lastComparison; } if (isSetCellVisibility()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cellVisibility, typedOther.cellVisibility); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cellVisibility, other.cellVisibility); if (lastComparison != 0) { return lastComparison; } @@ -842,12 +832,12 @@ public class TPut implements org.apache.thrift.TBase, java.i { org.apache.thrift.protocol.TList _list34 = iprot.readListBegin(); struct.columnValues = new ArrayList(_list34.size); - for (int _i35 = 0; _i35 < _list34.size; ++_i35) + TColumnValue _elem35; + for (int _i36 = 0; _i36 < _list34.size; ++_i36) { - TColumnValue _elem36; // required - _elem36 = new TColumnValue(); - _elem36.read(iprot); - struct.columnValues.add(_elem36); + _elem35 = new TColumnValue(); + _elem35.read(iprot); + struct.columnValues.add(_elem35); } iprot.readListEnd(); } @@ -869,13 +859,13 @@ public class TPut implements org.apache.thrift.TBase, java.i { org.apache.thrift.protocol.TMap _map37 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map37.size); - for (int _i38 = 0; _i38 < _map37.size; ++_i38) + ByteBuffer _key38; + ByteBuffer _val39; + for (int _i40 = 0; _i40 < _map37.size; ++_i40) { - ByteBuffer _key39; // required - ByteBuffer _val40; // required - _key39 = iprot.readBinary(); - _val40 = iprot.readBinary(); - struct.attributes.put(_key39, _val40); + _key38 = iprot.readBinary(); + _val39 = iprot.readBinary(); + struct.attributes.put(_key38, _val39); } iprot.readMapEnd(); } @@ -886,7 +876,7 @@ public class TPut implements org.apache.thrift.TBase, java.i break; case 6: // DURABILITY if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.durability = TDurability.findByValue(iprot.readI32()); + struct.durability = org.apache.hadoop.hbase.thrift2.generated.TDurability.findByValue(iprot.readI32()); struct.setDurabilityIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1035,12 +1025,12 @@ public class TPut implements org.apache.thrift.TBase, java.i { org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columnValues = new ArrayList(_list45.size); - for (int _i46 = 0; _i46 < _list45.size; ++_i46) + TColumnValue _elem46; + for (int _i47 = 0; _i47 < _list45.size; ++_i47) { - TColumnValue _elem47; // required - _elem47 = new TColumnValue(); - _elem47.read(iprot); - struct.columnValues.add(_elem47); + _elem46 = new TColumnValue(); + _elem46.read(iprot); + struct.columnValues.add(_elem46); } } struct.setColumnValuesIsSet(true); @@ -1053,19 +1043,19 @@ public class TPut implements org.apache.thrift.TBase, java.i { org.apache.thrift.protocol.TMap _map48 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map48.size); - for (int _i49 = 0; _i49 < _map48.size; ++_i49) + ByteBuffer _key49; + ByteBuffer _val50; + for (int _i51 = 0; _i51 < _map48.size; ++_i51) { - ByteBuffer _key50; // required - ByteBuffer _val51; // required - _key50 = iprot.readBinary(); - _val51 = iprot.readBinary(); - struct.attributes.put(_key50, _val51); + _key49 = iprot.readBinary(); + _val50 = iprot.readBinary(); + struct.attributes.put(_key49, _val50); } } struct.setAttributesIsSet(true); } if (incoming.get(2)) { - struct.durability = TDurability.findByValue(iprot.readI32()); + struct.durability = org.apache.hadoop.hbase.thrift2.generated.TDurability.findByValue(iprot.readI32()); struct.setDurabilityIsSet(true); } if (incoming.get(3)) { diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java index 182f947..b5c7699 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * if no Result is found, row and columnValues will not be set. */ -public class TResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TResult"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -111,7 +115,7 @@ public class TResult implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -140,10 +144,9 @@ public class TResult implements org.apache.thrift.TBase __this__columnValues = new ArrayList(); + List __this__columnValues = new ArrayList(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } @@ -167,16 +170,16 @@ public class TResult implements org.apache.thrift.TBase list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_columnValues = true && (isSetColumnValues()); - builder.append(present_columnValues); + list.add(present_columnValues); if (present_columnValues) - builder.append(columnValues); + list.add(columnValues); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TResult typedOther = (TResult)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnValues()).compareTo(typedOther.isSetColumnValues()); + lastComparison = Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnValues, typedOther.columnValues); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnValues, other.columnValues); if (lastComparison != 0) { return lastComparison; } @@ -457,12 +460,12 @@ public class TResult implements org.apache.thrift.TBase(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) + TColumnValue _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) { - TColumnValue _elem2; // required - _elem2 = new TColumnValue(); - _elem2.read(iprot); - struct.columnValues.add(_elem2); + _elem1 = new TColumnValue(); + _elem1.read(iprot); + struct.columnValues.add(_elem1); } iprot.readListEnd(); } @@ -545,12 +548,12 @@ public class TResult implements org.apache.thrift.TBase(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) + TColumnValue _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) { - TColumnValue _elem7; // required - _elem7 = new TColumnValue(); - _elem7.read(iprot); - struct.columnValues.add(_elem7); + _elem6 = new TColumnValue(); + _elem6.read(iprot); + struct.columnValues.add(_elem6); } } struct.setColumnValuesIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java index 94521c2..cda5755 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,13 +29,16 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * A TRowMutations object is used to apply a number of Mutations to a single row. */ -public class TRowMutations implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TRowMutations implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRowMutations"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -131,7 +135,7 @@ public class TRowMutations implements org.apache.thrift.TBase mutations) { this(); - this.row = row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(row); this.mutations = mutations; } @@ -141,10 +145,9 @@ public class TRowMutations implements org.apache.thrift.TBase __this__mutations = new ArrayList(); + List __this__mutations = new ArrayList(other.mutations.size()); for (TMutation other_element : other.mutations) { __this__mutations.add(new TMutation(other_element)); } @@ -168,16 +171,16 @@ public class TRowMutations implements org.apache.thrift.TBase list = new ArrayList(); boolean present_row = true && (isSetRow()); - builder.append(present_row); + list.add(present_row); if (present_row) - builder.append(row); + list.add(row); boolean present_mutations = true && (isSetMutations()); - builder.append(present_mutations); + list.add(present_mutations); if (present_mutations) - builder.append(mutations); + list.add(mutations); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TRowMutations other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TRowMutations typedOther = (TRowMutations)other; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations()); + lastComparison = Boolean.valueOf(isSetMutations()).compareTo(other.isSetMutations()); if (lastComparison != 0) { return lastComparison; } if (isSetMutations()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, other.mutations); if (lastComparison != 0) { return lastComparison; } @@ -459,12 +462,12 @@ public class TRowMutations implements org.apache.thrift.TBase(_list124.size); - for (int _i125 = 0; _i125 < _list124.size; ++_i125) + TMutation _elem125; + for (int _i126 = 0; _i126 < _list124.size; ++_i126) { - TMutation _elem126; // required - _elem126 = new TMutation(); - _elem126.read(iprot); - struct.mutations.add(_elem126); + _elem125 = new TMutation(); + _elem125.read(iprot); + struct.mutations.add(_elem125); } iprot.readListEnd(); } @@ -540,12 +543,12 @@ public class TRowMutations implements org.apache.thrift.TBase(_list129.size); - for (int _i130 = 0; _i130 < _list129.size; ++_i130) + TMutation _elem130; + for (int _i131 = 0; _i131 < _list129.size; ++_i131) { - TMutation _elem131; // required - _elem131 = new TMutation(); - _elem131.read(iprot); - struct.mutations.add(_elem131); + _elem130 = new TMutation(); + _elem130.read(iprot); + struct.mutations.add(_elem130); } } struct.setMutationsIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java index 3fbf970..92d0fb6 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,14 +29,17 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) /** * Any timestamps in the columns are ignored, use timeRange to select by timestamp. * Max versions defaults to 1. */ -public class TScan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TScan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TScan"); private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -162,7 +166,7 @@ public class TScan implements org.apache.thrift.TBase, jav private static final int __BATCHSIZE_ISSET_ID = 2; private static final int __REVERSED_ISSET_ID = 3; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.START_ROW,_Fields.STOP_ROW,_Fields.COLUMNS,_Fields.CACHING,_Fields.MAX_VERSIONS,_Fields.TIME_RANGE,_Fields.FILTER_STRING,_Fields.BATCH_SIZE,_Fields.ATTRIBUTES,_Fields.AUTHORIZATIONS,_Fields.REVERSED}; + private static final _Fields optionals[] = {_Fields.START_ROW,_Fields.STOP_ROW,_Fields.COLUMNS,_Fields.CACHING,_Fields.MAX_VERSIONS,_Fields.TIME_RANGE,_Fields.FILTER_STRING,_Fields.BATCH_SIZE,_Fields.ATTRIBUTES,_Fields.AUTHORIZATIONS,_Fields.REVERSED}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -207,14 +211,12 @@ public class TScan implements org.apache.thrift.TBase, jav __isset_bitfield = other.__isset_bitfield; if (other.isSetStartRow()) { this.startRow = org.apache.thrift.TBaseHelper.copyBinary(other.startRow); -; } if (other.isSetStopRow()) { this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(other.stopRow); -; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -227,24 +229,10 @@ public class TScan implements org.apache.thrift.TBase, jav } if (other.isSetFilterString()) { this.filterString = org.apache.thrift.TBaseHelper.copyBinary(other.filterString); -; } this.batchSize = other.batchSize; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(); - for (Map.Entry other_element : other.attributes.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); - - ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); -; - - __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); - } + Map __this__attributes = new HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetAuthorizations()) { @@ -282,16 +270,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public ByteBuffer bufferForStartRow() { - return startRow; + return org.apache.thrift.TBaseHelper.copyBinary(startRow); } public TScan setStartRow(byte[] startRow) { - setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); + this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); return this; } public TScan setStartRow(ByteBuffer startRow) { - this.startRow = startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -316,16 +304,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public ByteBuffer bufferForStopRow() { - return stopRow; + return org.apache.thrift.TBaseHelper.copyBinary(stopRow); } public TScan setStopRow(byte[] stopRow) { - setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow)); + this.stopRow = stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(stopRow, stopRow.length)); return this; } public TScan setStopRow(ByteBuffer stopRow) { - this.stopRow = stopRow; + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); return this; } @@ -459,16 +447,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public ByteBuffer bufferForFilterString() { - return filterString; + return org.apache.thrift.TBaseHelper.copyBinary(filterString); } public TScan setFilterString(byte[] filterString) { - setFilterString(filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(filterString)); + this.filterString = filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterString, filterString.length)); return this; } public TScan setFilterString(ByteBuffer filterString) { - this.filterString = filterString; + this.filterString = org.apache.thrift.TBaseHelper.copyBinary(filterString); return this; } @@ -874,180 +862,180 @@ public class TScan implements org.apache.thrift.TBase, jav @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_startRow = true && (isSetStartRow()); - builder.append(present_startRow); + list.add(present_startRow); if (present_startRow) - builder.append(startRow); + list.add(startRow); boolean present_stopRow = true && (isSetStopRow()); - builder.append(present_stopRow); + list.add(present_stopRow); if (present_stopRow) - builder.append(stopRow); + list.add(stopRow); boolean present_columns = true && (isSetColumns()); - builder.append(present_columns); + list.add(present_columns); if (present_columns) - builder.append(columns); + list.add(columns); boolean present_caching = true && (isSetCaching()); - builder.append(present_caching); + list.add(present_caching); if (present_caching) - builder.append(caching); + list.add(caching); boolean present_maxVersions = true && (isSetMaxVersions()); - builder.append(present_maxVersions); + list.add(present_maxVersions); if (present_maxVersions) - builder.append(maxVersions); + list.add(maxVersions); boolean present_timeRange = true && (isSetTimeRange()); - builder.append(present_timeRange); + list.add(present_timeRange); if (present_timeRange) - builder.append(timeRange); + list.add(timeRange); boolean present_filterString = true && (isSetFilterString()); - builder.append(present_filterString); + list.add(present_filterString); if (present_filterString) - builder.append(filterString); + list.add(filterString); boolean present_batchSize = true && (isSetBatchSize()); - builder.append(present_batchSize); + list.add(present_batchSize); if (present_batchSize) - builder.append(batchSize); + list.add(batchSize); boolean present_attributes = true && (isSetAttributes()); - builder.append(present_attributes); + list.add(present_attributes); if (present_attributes) - builder.append(attributes); + list.add(attributes); boolean present_authorizations = true && (isSetAuthorizations()); - builder.append(present_authorizations); + list.add(present_authorizations); if (present_authorizations) - builder.append(authorizations); + list.add(authorizations); boolean present_reversed = true && (isSetReversed()); - builder.append(present_reversed); + list.add(present_reversed); if (present_reversed) - builder.append(reversed); + list.add(reversed); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TScan other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TScan typedOther = (TScan)other; - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); + lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStartRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, other.startRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow()); + lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); if (lastComparison != 0) { return lastComparison; } if (isSetStopRow()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, other.stopRow); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCaching()).compareTo(typedOther.isSetCaching()); + lastComparison = Boolean.valueOf(isSetCaching()).compareTo(other.isSetCaching()); if (lastComparison != 0) { return lastComparison; } if (isSetCaching()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.caching, typedOther.caching); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.caching, other.caching); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(typedOther.isSetMaxVersions()); + lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxVersions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxVersions, typedOther.maxVersions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxVersions, other.maxVersions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimeRange()).compareTo(typedOther.isSetTimeRange()); + lastComparison = Boolean.valueOf(isSetTimeRange()).compareTo(other.isSetTimeRange()); if (lastComparison != 0) { return lastComparison; } if (isSetTimeRange()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeRange, typedOther.timeRange); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeRange, other.timeRange); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(typedOther.isSetFilterString()); + lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); if (lastComparison != 0) { return lastComparison; } if (isSetFilterString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filterString, typedOther.filterString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filterString, other.filterString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBatchSize()).compareTo(typedOther.isSetBatchSize()); + lastComparison = Boolean.valueOf(isSetBatchSize()).compareTo(other.isSetBatchSize()); if (lastComparison != 0) { return lastComparison; } if (isSetBatchSize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batchSize, typedOther.batchSize); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batchSize, other.batchSize); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthorizations()).compareTo(typedOther.isSetAuthorizations()); + lastComparison = Boolean.valueOf(isSetAuthorizations()).compareTo(other.isSetAuthorizations()); if (lastComparison != 0) { return lastComparison; } if (isSetAuthorizations()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizations, typedOther.authorizations); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizations, other.authorizations); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReversed()).compareTo(typedOther.isSetReversed()); + lastComparison = Boolean.valueOf(isSetReversed()).compareTo(other.isSetReversed()); if (lastComparison != 0) { return lastComparison; } if (isSetReversed()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reversed, typedOther.reversed); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reversed, other.reversed); if (lastComparison != 0) { return lastComparison; } @@ -1237,12 +1225,12 @@ public class TScan implements org.apache.thrift.TBase, jav { org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); struct.columns = new ArrayList(_list106.size); - for (int _i107 = 0; _i107 < _list106.size; ++_i107) + TColumn _elem107; + for (int _i108 = 0; _i108 < _list106.size; ++_i108) { - TColumn _elem108; // required - _elem108 = new TColumn(); - _elem108.read(iprot); - struct.columns.add(_elem108); + _elem107 = new TColumn(); + _elem107.read(iprot); + struct.columns.add(_elem107); } iprot.readListEnd(); } @@ -1297,13 +1285,13 @@ public class TScan implements org.apache.thrift.TBase, jav { org.apache.thrift.protocol.TMap _map109 = iprot.readMapBegin(); struct.attributes = new HashMap(2*_map109.size); - for (int _i110 = 0; _i110 < _map109.size; ++_i110) + ByteBuffer _key110; + ByteBuffer _val111; + for (int _i112 = 0; _i112 < _map109.size; ++_i112) { - ByteBuffer _key111; // required - ByteBuffer _val112; // required - _key111 = iprot.readBinary(); - _val112 = iprot.readBinary(); - struct.attributes.put(_key111, _val112); + _key110 = iprot.readBinary(); + _val111 = iprot.readBinary(); + struct.attributes.put(_key110, _val111); } iprot.readMapEnd(); } @@ -1544,12 +1532,12 @@ public class TScan implements org.apache.thrift.TBase, jav { org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new ArrayList(_list117.size); - for (int _i118 = 0; _i118 < _list117.size; ++_i118) + TColumn _elem118; + for (int _i119 = 0; _i119 < _list117.size; ++_i119) { - TColumn _elem119; // required - _elem119 = new TColumn(); - _elem119.read(iprot); - struct.columns.add(_elem119); + _elem118 = new TColumn(); + _elem118.read(iprot); + struct.columns.add(_elem118); } } struct.setColumnsIsSet(true); @@ -1579,13 +1567,13 @@ public class TScan implements org.apache.thrift.TBase, jav { org.apache.thrift.protocol.TMap _map120 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new HashMap(2*_map120.size); - for (int _i121 = 0; _i121 < _map120.size; ++_i121) + ByteBuffer _key121; + ByteBuffer _val122; + for (int _i123 = 0; _i123 < _map120.size; ++_i123) { - ByteBuffer _key122; // required - ByteBuffer _val123; // required - _key122 = iprot.readBinary(); - _val123 = iprot.readBinary(); - struct.attributes.put(_key122, _val123); + _key121 = iprot.readBinary(); + _val122 = iprot.readBinary(); + struct.attributes.put(_key121, _val122); } } struct.setAttributesIsSet(true); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java index 652fa3f..c0fb20c 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class TServerName implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TServerName implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TServerName"); private static final org.apache.thrift.protocol.TField HOST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("hostName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -116,7 +120,7 @@ public class TServerName implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -341,60 +345,60 @@ public class TServerName implements org.apache.thrift.TBase list = new ArrayList(); boolean present_hostName = true && (isSetHostName()); - builder.append(present_hostName); + list.add(present_hostName); if (present_hostName) - builder.append(hostName); + list.add(hostName); boolean present_port = true && (isSetPort()); - builder.append(present_port); + list.add(present_port); if (present_port) - builder.append(port); + list.add(port); boolean present_startCode = true && (isSetStartCode()); - builder.append(present_startCode); + list.add(present_startCode); if (present_startCode) - builder.append(startCode); + list.add(startCode); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TServerName other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TServerName typedOther = (TServerName)other; - lastComparison = Boolean.valueOf(isSetHostName()).compareTo(typedOther.isSetHostName()); + lastComparison = Boolean.valueOf(isSetHostName()).compareTo(other.isSetHostName()); if (lastComparison != 0) { return lastComparison; } if (isSetHostName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostName, typedOther.hostName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostName, other.hostName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPort()).compareTo(typedOther.isSetPort()); + lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort()); if (lastComparison != 0) { return lastComparison; } if (isSetPort()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, typedOther.port); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartCode()).compareTo(typedOther.isSetStartCode()); + lastComparison = Boolean.valueOf(isSetStartCode()).compareTo(other.isSetStartCode()); if (lastComparison != 0) { return lastComparison; } if (isSetStartCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startCode, typedOther.startCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startCode, other.startCode); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java index cc7a15b..15676a9 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class TTimeRange implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-11") +public class TTimeRange implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTimeRange"); private static final org.apache.thrift.protocol.TField MIN_STAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("minStamp", org.apache.thrift.protocol.TType.I64, (short)1); @@ -287,45 +291,45 @@ public class TTimeRange implements org.apache.thrift.TBase list = new ArrayList(); boolean present_minStamp = true; - builder.append(present_minStamp); + list.add(present_minStamp); if (present_minStamp) - builder.append(minStamp); + list.add(minStamp); boolean present_maxStamp = true; - builder.append(present_maxStamp); + list.add(present_maxStamp); if (present_maxStamp) - builder.append(maxStamp); + list.add(maxStamp); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(TTimeRange other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TTimeRange typedOther = (TTimeRange)other; - lastComparison = Boolean.valueOf(isSetMinStamp()).compareTo(typedOther.isSetMinStamp()); + lastComparison = Boolean.valueOf(isSetMinStamp()).compareTo(other.isSetMinStamp()); if (lastComparison != 0) { return lastComparison; } if (isSetMinStamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStamp, typedOther.minStamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStamp, other.minStamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxStamp()).compareTo(typedOther.isSetMaxStamp()); + lastComparison = Boolean.valueOf(isSetMaxStamp()).compareTo(other.isSetMaxStamp()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxStamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxStamp, typedOther.maxStamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxStamp, other.maxStamp); if (lastComparison != 0) { return lastComparison; } diff --git a/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift b/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift index 4ad4cdd..5396b27 100644 --- a/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift +++ b/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift @@ -263,6 +263,20 @@ struct THRegionLocation { 2: required THRegionInfo regionInfo } +/** + * Thrift wrapper around + * org.apache.hadoop.hbase.filter.CompareFilter$CompareOp. + */ +enum TCompareOp { + LESS = 0, + LESS_OR_EQUAL = 1, + EQUAL = 2, + NOT_EQUAL = 3, + GREATER_OR_EQUAL = 4, + GREATER = 5, + NO_OP = 6 +} + // // Exceptions // @@ -556,4 +570,34 @@ service THBaseService { ) throws ( 1: TIOError io ) + + /** + * Atomically checks if a row/family/qualifier value matches the expected + * value. If it does, it mutates the row. + * + * @return true if the row was mutated, false otherwise + */ + bool checkAndMutate( + /** to check in and delete from */ + 1: required binary table, + + /** row to check */ + 2: required binary row, + + /** column family to check */ + 3: required binary family, + + /** column qualifier to check */ + 4: required binary qualifier, + + /** comparison to make on the value */ + 5: required TCompareOp compareOp, + + /** the expected value to be compared against, if not provided the + check is for the non-existence of the column in question */ + 6: binary value, + + /** row mutations to execute if the value matches */ + 7: required TRowMutations rowMutations + ) throws (1: TIOError io) } diff --git a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftHBaseServiceHandler.java b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftHBaseServiceHandler.java index 8003bff..4cc385c 100644 --- a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftHBaseServiceHandler.java +++ b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftHBaseServiceHandler.java @@ -43,6 +43,7 @@ import org.apache.hadoop.hbase.thrift2.generated.TAppend; import org.apache.hadoop.hbase.thrift2.generated.TColumn; import org.apache.hadoop.hbase.thrift2.generated.TColumnIncrement; import org.apache.hadoop.hbase.thrift2.generated.TColumnValue; +import org.apache.hadoop.hbase.thrift2.generated.TCompareOp; import org.apache.hadoop.hbase.thrift2.generated.TDelete; import org.apache.hadoop.hbase.thrift2.generated.TDeleteType; import org.apache.hadoop.hbase.thrift2.generated.TGet; @@ -67,6 +68,7 @@ import org.junit.experimental.categories.Category; import java.io.IOException; import java.nio.ByteBuffer; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.List; @@ -125,12 +127,16 @@ public class TestThriftHBaseServiceHandler { for (int i = 0; i < columnValuesA.size(); i++) { TColumnValue a = columnValuesA.get(i); TColumnValue b = columnValuesB.get(i); - assertArrayEquals(a.getFamily(), b.getFamily()); - assertArrayEquals(a.getQualifier(), b.getQualifier()); - assertArrayEquals(a.getValue(), b.getValue()); + assertTColumnValueEqual(a, b); } } + public void assertTColumnValueEqual(TColumnValue a, TColumnValue b) { + assertArrayEquals(a.getFamily(), b.getFamily()); + assertArrayEquals(a.getQualifier(), b.getQualifier()); + assertArrayEquals(a.getValue(), b.getValue()); + } + @BeforeClass public static void beforeClass() throws Exception { UTIL.startMiniCluster(); @@ -1037,5 +1043,56 @@ public class TestThriftHBaseServiceHandler { increment = incrementFromThrift(tIncrement); assertEquals(increment.getDurability(), Durability.FSYNC_WAL); } + + @Test + public void testCheckAndMutate() throws Exception { + ThriftHBaseServiceHandler handler = createHandler(); + ByteBuffer table = wrap(tableAname); + ByteBuffer row = wrap("row".getBytes()); + ByteBuffer family = wrap(familyAname); + ByteBuffer qualifier = wrap(qualifierAname); + ByteBuffer value = wrap(valueAname); + + // Create a mutation to write to 'B', our "mutate" of "checkAndMutate" + List columnValuesB = new ArrayList(); + TColumnValue columnValueB = new TColumnValue(family, wrap(qualifierBname), wrap(valueBname)); + columnValuesB.add(columnValueB); + TPut putB = new TPut(row, columnValuesB); + putB.setColumnValues(columnValuesB); + + TRowMutations tRowMutations = new TRowMutations(row, + Arrays. asList(TMutation.put(putB))); + + // Empty table when we begin + TResult result = handler.get(table, new TGet(row)); + assertEquals(0, result.getColumnValuesSize()); + + // checkAndMutate -- condition should fail because the value doesn't exist. + assertFalse("Expected condition to not pass", + handler.checkAndMutate(table, row, family, qualifier, TCompareOp.EQUAL, value, + tRowMutations)); + + List columnValuesA = new ArrayList(); + TColumnValue columnValueA = new TColumnValue(family, qualifier, value); + columnValuesA.add(columnValueA); + + // Put an update 'A' + handler.put(table, new TPut(row, columnValuesA)); + + // Verify that the update is there + result = handler.get(table, new TGet(row)); + assertEquals(1, result.getColumnValuesSize()); + assertTColumnValueEqual(columnValueA, result.getColumnValues().get(0)); + + // checkAndMutate -- condition should pass since we added the value + assertTrue("Expected condition to pass", + handler.checkAndMutate(table, row, family, qualifier, TCompareOp.EQUAL, value, + tRowMutations)); + + result = handler.get(table, new TGet(row)); + assertEquals(2, result.getColumnValuesSize()); + assertTColumnValueEqual(columnValueA, result.getColumnValues().get(0)); + assertTColumnValueEqual(columnValueB, result.getColumnValues().get(1)); + } } -- 2.1.2