From c63314db804ccb0f01259d6a9c60535672c90bea Mon Sep 17 00:00:00 2001 From: Francis Liu Date: Mon, 18 Mar 2019 21:26:11 +0000 Subject: [PATCH] backport HBASE-21791 Upgrade thrift dependency to 0.12.0 --- hbase-thrift/pom.xml | 8 +- .../hbase/thrift/generated/AlreadyExists.java | 133 +- .../hbase/thrift/generated/BatchMutation.java | 171 +- .../hbase/thrift/generated/ColumnDescriptor.java | 268 +- .../hadoop/hbase/thrift/generated/Hbase.java | 16852 ++++++++++--------- .../hadoop/hbase/thrift/generated/IOError.java | 133 +- .../hbase/thrift/generated/IllegalArgument.java | 133 +- .../hadoop/hbase/thrift/generated/Mutation.java | 195 +- .../hadoop/hbase/thrift/generated/TAppend.java | 255 +- .../hadoop/hbase/thrift/generated/TCell.java | 153 +- .../hadoop/hbase/thrift/generated/TColumn.java | 152 +- .../hadoop/hbase/thrift/generated/TIncrement.java | 207 +- .../hadoop/hbase/thrift/generated/TRegionInfo.java | 264 +- .../hadoop/hbase/thrift/generated/TRowResult.java | 215 +- .../hadoop/hbase/thrift/generated/TScan.java | 331 +- .../hadoop/hbase/thrift2/generated/TAppend.java | 237 +- .../hbase/thrift2/generated/TAuthorization.java | 150 +- .../hbase/thrift2/generated/TCellVisibility.java | 129 +- .../hadoop/hbase/thrift2/generated/TColumn.java | 176 +- .../hbase/thrift2/generated/TColumnIncrement.java | 178 +- .../hbase/thrift2/generated/TColumnValue.java | 226 +- .../hadoop/hbase/thrift2/generated/TCompareOp.java | 8 +- .../hadoop/hbase/thrift2/generated/TDelete.java | 266 +- .../hbase/thrift2/generated/TDeleteType.java | 8 +- .../hbase/thrift2/generated/TDurability.java | 8 +- .../hadoop/hbase/thrift2/generated/TGet.java | 292 +- .../hbase/thrift2/generated/THBaseService.java | 7055 ++++---- .../hbase/thrift2/generated/THRegionInfo.java | 248 +- .../hbase/thrift2/generated/THRegionLocation.java | 135 +- .../hadoop/hbase/thrift2/generated/TIOError.java | 131 +- .../hbase/thrift2/generated/TIllegalArgument.java | 131 +- .../hadoop/hbase/thrift2/generated/TIncrement.java | 237 +- .../hadoop/hbase/thrift2/generated/TMutation.java | 101 +- .../hadoop/hbase/thrift2/generated/TPut.java | 268 +- .../hadoop/hbase/thrift2/generated/TResult.java | 167 +- .../hbase/thrift2/generated/TRowMutations.java | 193 +- .../hadoop/hbase/thrift2/generated/TScan.java | 457 +- .../hbase/thrift2/generated/TServerName.java | 165 +- .../hadoop/hbase/thrift2/generated/TTimeRange.java | 137 +- pom.xml | 2 +- 40 files changed, 15903 insertions(+), 14672 deletions(-) diff --git a/hbase-thrift/pom.xml b/hbase-thrift/pom.xml index 6f73c35..1394daf 100644 --- a/hbase-thrift/pom.xml +++ b/hbase-thrift/pom.xml @@ -408,12 +408,12 @@ thrift.version "The Thrift version must be specified." - 0\.9\.3 + 0\.12\.0 - - [FATAL] ========================================================================================== -[FATAL] HBase Thrift requires the thrift generator version 0.9.3. +[FATAL] HBase Thrift requires the thrift generator version 0.12.0. [FATAL] Setting it to something else needs to be reviewed for wire and behavior compatibility. [FATAL] ========================================================================================== - @@ -461,7 +461,7 @@ -strict --gen - java:hashcode + java -out ${basedir}/src/main/java ${basedir}/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift @@ -480,7 +480,7 @@ -strict --gen - java:hashcode + java -out ${basedir}/src/main/java ${basedir}/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift 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 3526532..a43bf8a 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,65 +1,35 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * An AlreadyExists exceptions signals that a table with the specified * name already exists */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") -public class AlreadyExists extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") +public class AlreadyExists extends org.apache.thrift.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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new AlreadyExistsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new AlreadyExistsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new AlreadyExistsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new AlreadyExistsTupleSchemeFactory(); - public String message; // required + public @org.apache.thrift.annotation.Nullable java.lang.String message; // 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 { MESSAGE((short)1, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -67,6 +37,7 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // MESSAGE @@ -82,21 +53,22 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -105,18 +77,18 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AlreadyExists.class, metaDataMap); } @@ -124,7 +96,7 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase } public AlreadyExists( - String message) + java.lang.String message) { this(); this.message = message; @@ -148,11 +120,12 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase this.message = null; } - public String getMessage() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMessage() { return this.message; } - public AlreadyExists setMessage(String message) { + public AlreadyExists setMessage(@org.apache.thrift.annotation.Nullable java.lang.String message) { this.message = message; return this; } @@ -172,43 +145,44 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case MESSAGE: if (value == null) { unsetMessage(); } else { - setMessage((String)value); + setMessage((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case MESSAGE: return getMessage(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case MESSAGE: return isSetMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof AlreadyExists) @@ -219,6 +193,8 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase public boolean equals(AlreadyExists that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); @@ -234,14 +210,13 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -252,7 +227,7 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = java.lang.Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } @@ -265,21 +240,22 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("AlreadyExists("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("AlreadyExists("); boolean first = true; sb.append("message:"); @@ -306,7 +282,7 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -314,13 +290,13 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase } } - private static class AlreadyExistsStandardSchemeFactory implements SchemeFactory { + private static class AlreadyExistsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public AlreadyExistsStandardScheme getScheme() { return new AlreadyExistsStandardScheme(); } } - private static class AlreadyExistsStandardScheme extends StandardScheme { + private static class AlreadyExistsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, AlreadyExists struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -366,18 +342,18 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase } - private static class AlreadyExistsTupleSchemeFactory implements SchemeFactory { + private static class AlreadyExistsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public AlreadyExistsTupleScheme getScheme() { return new AlreadyExistsTupleScheme(); } } - private static class AlreadyExistsTupleScheme extends TupleScheme { + private static class AlreadyExistsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, AlreadyExists struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetMessage()) { optionals.set(0); } @@ -389,8 +365,8 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase @Override public void read(org.apache.thrift.protocol.TProtocol prot, AlreadyExists struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); @@ -398,5 +374,8 @@ public class AlreadyExists extends TException implements org.apache.thrift.TBase } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 9bdffec..c63ca9a 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,67 +1,37 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A BatchMutation object is used to apply a number of Mutations to a single row. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new BatchMutationStandardSchemeFactory()); - schemes.put(TupleScheme.class, new BatchMutationTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new BatchMutationStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new BatchMutationTupleSchemeFactory(); - public ByteBuffer row; // required - public List mutations; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List mutations; // 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 { ROW((short)1, "row"), MUTATIONS((short)2, "mutations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class BatchMutation implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", 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, Mutation.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BatchMutation.class, metaDataMap); } @@ -131,8 +103,8 @@ public class BatchMutation implements org.apache.thrift.TBase mutations) + java.nio.ByteBuffer row, + java.util.List mutations) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -144,10 +116,10 @@ public class BatchMutation implements org.apache.thrift.TBase __this__mutations = new ArrayList(other.mutations.size()); + java.util.List __this__mutations = new java.util.ArrayList(other.mutations.size()); for (Mutation other_element : other.mutations) { __this__mutations.add(new Mutation(other_element)); } @@ -170,16 +142,16 @@ public class BatchMutation implements org.apache.thrift.TBase getMutationsIterator() { return (this.mutations == null) ? null : this.mutations.iterator(); } public void addToMutations(Mutation elem) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new java.util.ArrayList(); } this.mutations.add(elem); } - public List getMutations() { + @org.apache.thrift.annotation.Nullable + public java.util.List getMutations() { return this.mutations; } - public BatchMutation setMutations(List mutations) { + public BatchMutation setMutations(@org.apache.thrift.annotation.Nullable java.util.List mutations) { this.mutations = mutations; return this; } @@ -238,13 +212,17 @@ public class BatchMutation implements org.apache.thrift.TBase)value); + setMutations((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -268,13 +247,13 @@ public class BatchMutation implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_mutations = true && (isSetMutations()); - list.add(present_mutations); - if (present_mutations) - list.add(mutations); + hashCode = hashCode * 8191 + ((isSetMutations()) ? 131071 : 524287); + if (isSetMutations()) + hashCode = hashCode * 8191 + mutations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -345,7 +324,7 @@ public class BatchMutation implements org.apache.thrift.TBase { + private static class BatchMutationStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, BatchMutation struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -455,8 +435,8 @@ public class BatchMutation implements org.apache.thrift.TBase(_list0.size); - Mutation _elem1; + struct.mutations = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable Mutation _elem1; for (int _i2 = 0; _i2 < _list0.size; ++_i2) { _elem1 = new Mutation(); @@ -508,18 +488,18 @@ public class BatchMutation implements org.apache.thrift.TBase { + private static class BatchMutationTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, BatchMutation struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetRow()) { optionals.set(0); } @@ -543,8 +523,8 @@ public class BatchMutation implements org.apache.thrift.TBase(_list5.size); - Mutation _elem6; + struct.mutations = new java.util.ArrayList(_list5.size); + @org.apache.thrift.annotation.Nullable Mutation _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = new Mutation(); @@ -566,5 +546,8 @@ public class BatchMutation implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 6895785..e942d39 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,45 +1,18 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * 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. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -53,17 +26,14 @@ public class ColumnDescriptor implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ColumnDescriptorStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ColumnDescriptorTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ColumnDescriptorStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ColumnDescriptorTupleSchemeFactory(); - public ByteBuffer name; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer name; // required public int maxVersions; // required - public String compression; // required + public @org.apache.thrift.annotation.Nullable java.lang.String compression; // required public boolean inMemory; // required - public String bloomFilterType; // required + public @org.apache.thrift.annotation.Nullable java.lang.String bloomFilterType; // required public int bloomFilterVectorSize; // required public int bloomFilterNbHashes; // required public boolean blockCacheEnabled; // required @@ -81,10 +51,10 @@ public class ColumnDescriptor implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -92,6 +62,7 @@ public class ColumnDescriptor implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.MAX_VERSIONS, new org.apache.thrift.meta_data.FieldMetaData("maxVersions", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -180,7 +152,7 @@ public class ColumnDescriptor implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); + hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); + if (isSetName()) + hashCode = hashCode * 8191 + name.hashCode(); - boolean present_maxVersions = true; - list.add(present_maxVersions); - if (present_maxVersions) - list.add(maxVersions); + hashCode = hashCode * 8191 + maxVersions; - boolean present_compression = true && (isSetCompression()); - list.add(present_compression); - if (present_compression) - list.add(compression); + hashCode = hashCode * 8191 + ((isSetCompression()) ? 131071 : 524287); + if (isSetCompression()) + hashCode = hashCode * 8191 + compression.hashCode(); - boolean present_inMemory = true; - list.add(present_inMemory); - if (present_inMemory) - list.add(inMemory); + hashCode = hashCode * 8191 + ((inMemory) ? 131071 : 524287); - boolean present_bloomFilterType = true && (isSetBloomFilterType()); - list.add(present_bloomFilterType); - if (present_bloomFilterType) - list.add(bloomFilterType); + hashCode = hashCode * 8191 + ((isSetBloomFilterType()) ? 131071 : 524287); + if (isSetBloomFilterType()) + hashCode = hashCode * 8191 + bloomFilterType.hashCode(); - boolean present_bloomFilterVectorSize = true; - list.add(present_bloomFilterVectorSize); - if (present_bloomFilterVectorSize) - list.add(bloomFilterVectorSize); + hashCode = hashCode * 8191 + bloomFilterVectorSize; - boolean present_bloomFilterNbHashes = true; - list.add(present_bloomFilterNbHashes); - if (present_bloomFilterNbHashes) - list.add(bloomFilterNbHashes); + hashCode = hashCode * 8191 + bloomFilterNbHashes; - boolean present_blockCacheEnabled = true; - list.add(present_blockCacheEnabled); - if (present_blockCacheEnabled) - list.add(blockCacheEnabled); + hashCode = hashCode * 8191 + ((blockCacheEnabled) ? 131071 : 524287); - boolean present_timeToLive = true; - list.add(present_timeToLive); - if (present_timeToLive) - list.add(timeToLive); + hashCode = hashCode * 8191 + timeToLive; - return list.hashCode(); + return hashCode; } @Override @@ -795,7 +755,7 @@ public class ColumnDescriptor implements org.apache.thrift.TBase { + private static class ColumnDescriptorStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnDescriptor struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1123,18 +1084,18 @@ public class ColumnDescriptor implements org.apache.thrift.TBase { + private static class ColumnDescriptorTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnDescriptor struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetName()) { optionals.set(0); } @@ -1194,8 +1155,8 @@ public class ColumnDescriptor implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 7e909ca..999c3b0 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,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") public class Hbase { public interface Iface { @@ -44,7 +17,7 @@ public class Hbase { * * @param tableName name of the table */ - public void enableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; + public void enableTable(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException; /** * Disables a table (takes it off-line) If it is being served, the master @@ -52,25 +25,25 @@ public class Hbase { * * @param tableName name of the table */ - public void disableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; + public void disableTable(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException; /** * @return true if table is on-line * * @param tableName name of the table to check */ - public boolean isTableEnabled(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; + public boolean isTableEnabled(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException; - public void compact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException; + public void compact(java.nio.ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException; - public void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException; + public void majorCompact(java.nio.ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException; /** * List all the userspace tables. * * @return returns a list of names */ - public List getTableNames() throws IOError, org.apache.thrift.TException; + public java.util.List getTableNames() throws IOError, org.apache.thrift.TException; /** * List all the column families assoicated with a table. @@ -79,7 +52,7 @@ public class Hbase { * * @param tableName table name */ - public Map getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; + public java.util.Map getColumnDescriptors(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException; /** * List the regions associated with a table. @@ -88,7 +61,7 @@ public class Hbase { * * @param tableName table name */ - public List getTableRegions(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; + public java.util.List getTableRegions(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException; /** * Create a table with the specified column families. The name @@ -104,7 +77,7 @@ public class Hbase { * * @param columnFamilies list of column family descriptors */ - public void createTable(ByteBuffer tableName, List columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException; + public void createTable(java.nio.ByteBuffer tableName, java.util.List columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException; /** * Deletes a table @@ -114,7 +87,7 @@ public class Hbase { * * @param tableName name of table to delete */ - public void deleteTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; + public void deleteTable(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException; /** * Get a single TCell for the specified table, row, and column at the @@ -130,7 +103,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List get(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get the specified number of versions for the specified table, @@ -148,7 +121,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getVer(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, int numVersions, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get the specified number of versions for the specified table, @@ -169,7 +142,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getVerTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, int numVersions, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get all the data for the specified table and row at the latest @@ -183,7 +156,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List getRow(ByteBuffer tableName, ByteBuffer row, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get the specified columns for the specified table and row at the latest @@ -199,7 +172,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getRowWithColumns(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get all the data for the specified table and row at the specified @@ -215,7 +188,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get the specified columns for the specified table and row at the specified @@ -232,7 +205,7 @@ public class Hbase { * @param timestamp * @param attributes Get attributes */ - public List getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getRowWithColumnsTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get all the data for the specified table and rows at the latest @@ -246,7 +219,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List getRows(ByteBuffer tableName, List rows, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getRows(java.nio.ByteBuffer tableName, java.util.List rows, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get the specified columns for the specified table and rows at the latest @@ -262,7 +235,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List getRowsWithColumns(ByteBuffer tableName, List rows, List columns, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getRowsWithColumns(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get all the data for the specified table and rows at the specified @@ -278,7 +251,7 @@ public class Hbase { * * @param attributes Get attributes */ - public List getRowsTs(ByteBuffer tableName, List rows, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getRowsTs(java.nio.ByteBuffer tableName, java.util.List rows, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get the specified columns for the specified table and rows at the specified @@ -295,7 +268,7 @@ public class Hbase { * @param timestamp * @param attributes Get attributes */ - public List getRowsWithColumnsTs(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException; + public java.util.List getRowsWithColumnsTs(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Apply a series of mutations (updates/deletes) to a row in a @@ -311,7 +284,7 @@ public class Hbase { * * @param attributes Mutation attributes */ - public void mutateRow(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; + public void mutateRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; /** * Apply a series of mutations (updates/deletes) to a row in a @@ -329,7 +302,7 @@ public class Hbase { * * @param attributes Mutation attributes */ - public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; + public void mutateRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, long timestamp, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; /** * Apply a series of batches (each a series of mutations on a single row) @@ -343,7 +316,7 @@ public class Hbase { * * @param attributes Mutation attributes */ - public void mutateRows(ByteBuffer tableName, List rowBatches, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; + public void mutateRows(java.nio.ByteBuffer tableName, java.util.List rowBatches, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; /** * Apply a series of batches (each a series of mutations on a single row) @@ -359,7 +332,7 @@ public class Hbase { * * @param attributes Mutation attributes */ - public void mutateRowsTs(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; + public void mutateRowsTs(java.nio.ByteBuffer tableName, java.util.List rowBatches, long timestamp, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; /** * Atomically increment the column value specified. Returns the next value post increment. @@ -372,7 +345,7 @@ public class Hbase { * * @param value amount to increment by */ - public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException; + public long atomicIncrement(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException; /** * Delete all cells that match the passed row and column. @@ -385,7 +358,7 @@ public class Hbase { * * @param attributes Delete attributes */ - public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes) throws IOError, org.apache.thrift.TException; + public void deleteAll(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Delete all cells that match the passed row and column and whose @@ -401,7 +374,7 @@ public class Hbase { * * @param attributes Delete attributes */ - public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException; + public void deleteAllTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Completely delete the row's cells. @@ -412,7 +385,7 @@ public class Hbase { * * @param attributes Delete attributes */ - public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map attributes) throws IOError, org.apache.thrift.TException; + public void deleteAllRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Increment a cell by the ammount. @@ -424,7 +397,7 @@ public class Hbase { */ public void increment(TIncrement increment) throws IOError, org.apache.thrift.TException; - public void incrementRows(List increments) throws IOError, org.apache.thrift.TException; + public void incrementRows(java.util.List increments) throws IOError, org.apache.thrift.TException; /** * Completely delete the row's cells marked with a timestamp @@ -438,7 +411,7 @@ public class Hbase { * * @param attributes Delete attributes */ - public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException; + public void deleteAllRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get a scanner on the current table, using the Scan instance @@ -450,7 +423,7 @@ public class Hbase { * * @param attributes Scan attributes */ - public int scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map attributes) throws IOError, org.apache.thrift.TException; + public int scannerOpenWithScan(java.nio.ByteBuffer tableName, TScan scan, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get a scanner on the current table starting at the specified row and @@ -469,7 +442,7 @@ public class Hbase { * * @param attributes Scan attributes */ - public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes) throws IOError, org.apache.thrift.TException; + public int scannerOpen(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get a scanner on the current table starting and stopping at the @@ -492,7 +465,7 @@ public class Hbase { * * @param attributes Scan attributes */ - public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes) throws IOError, org.apache.thrift.TException; + public int scannerOpenWithStop(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Open a scanner for a given prefix. That is all rows will have the specified @@ -508,7 +481,7 @@ public class Hbase { * * @param attributes Scan attributes */ - public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes) throws IOError, org.apache.thrift.TException; + public int scannerOpenWithPrefix(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startAndPrefix, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get a scanner on the current table starting at the specified row and @@ -530,7 +503,7 @@ public class Hbase { * * @param attributes Scan attributes */ - public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException; + public int scannerOpenTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Get a scanner on the current table starting and stopping at the @@ -556,7 +529,7 @@ public class Hbase { * * @param attributes Scan attributes */ - public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException; + public int scannerOpenWithStopTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException; /** * Returns the scanner's current row value and advances to the next @@ -572,7 +545,7 @@ public class Hbase { * * @param id id of a scanner returned by scannerOpen */ - public List scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException; + public java.util.List scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException; /** * Returns, starting at the scanner's current row value nbRows worth of @@ -590,7 +563,7 @@ public class Hbase { * * @param nbRows number of results to return */ - public List scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException; + public java.util.List scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException; /** * Closes the server-state associated with an open scanner. @@ -612,7 +585,7 @@ public class Hbase { * * @param family column name */ - public List getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws IOError, org.apache.thrift.TException; + public java.util.List getRowOrBefore(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer family) throws IOError, org.apache.thrift.TException; /** * Get the regininfo for the specified row. It scans @@ -622,7 +595,7 @@ public class Hbase { * * @param row row key */ - public TRegionInfo getRegionInfo(ByteBuffer row) throws IOError, org.apache.thrift.TException; + public TRegionInfo getRegionInfo(java.nio.ByteBuffer row) throws IOError, org.apache.thrift.TException; /** * Appends values to one or more columns within a single row. @@ -631,7 +604,7 @@ public class Hbase { * * @param append The single append operation to apply */ - public List append(TAppend append) throws IOError, org.apache.thrift.TException; + public java.util.List append(TAppend append) throws IOError, org.apache.thrift.TException; /** * Atomically checks if a row/family/qualifier value matches the expected @@ -653,101 +626,101 @@ public class Hbase { * * @param attributes Mutation attributes */ - public boolean checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; + public boolean checkAndPut(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.nio.ByteBuffer value, Mutation mput, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; } public interface AsyncIface { - public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void enableTable(java.nio.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(java.nio.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(java.nio.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(java.nio.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(java.nio.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(java.nio.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(java.nio.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(java.nio.ByteBuffer tableName, java.util.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(java.nio.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, int numVersions, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, int numVersions, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, long timestamp, java.util.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(java.nio.ByteBuffer tableName, java.util.List rows, java.util.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(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, java.util.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(java.nio.ByteBuffer tableName, java.util.List rows, long timestamp, java.util.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(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, long timestamp, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, long timestamp, java.util.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(java.nio.ByteBuffer tableName, java.util.List rowBatches, java.util.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(java.nio.ByteBuffer tableName, java.util.List rowBatches, long timestamp, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.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(java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.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(java.nio.ByteBuffer tableName, TScan scan, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startAndPrefix, java.util.List columns, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, long timestamp, java.util.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, long timestamp, java.util.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 getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRowOrBefore(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer family, 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(java.nio.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.nio.ByteBuffer value, Mutation mput, java.util.Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -771,13 +744,13 @@ public class Hbase { super(iprot, oprot); } - public void enableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException + public void enableTable(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException { send_enableTable(tableName); recv_enableTable(); } - public void send_enableTable(ByteBuffer tableName) throws org.apache.thrift.TException + public void send_enableTable(java.nio.ByteBuffer tableName) throws org.apache.thrift.TException { enableTable_args args = new enableTable_args(); args.setTableName(tableName); @@ -794,13 +767,13 @@ public class Hbase { return; } - public void disableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException + public void disableTable(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException { send_disableTable(tableName); recv_disableTable(); } - public void send_disableTable(ByteBuffer tableName) throws org.apache.thrift.TException + public void send_disableTable(java.nio.ByteBuffer tableName) throws org.apache.thrift.TException { disableTable_args args = new disableTable_args(); args.setTableName(tableName); @@ -817,13 +790,13 @@ public class Hbase { return; } - public boolean isTableEnabled(ByteBuffer tableName) throws IOError, org.apache.thrift.TException + public boolean isTableEnabled(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException { send_isTableEnabled(tableName); return recv_isTableEnabled(); } - public void send_isTableEnabled(ByteBuffer tableName) throws org.apache.thrift.TException + public void send_isTableEnabled(java.nio.ByteBuffer tableName) throws org.apache.thrift.TException { isTableEnabled_args args = new isTableEnabled_args(); args.setTableName(tableName); @@ -843,13 +816,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTableEnabled failed: unknown result"); } - public void compact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException + public void compact(java.nio.ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException { send_compact(tableNameOrRegionName); recv_compact(); } - public void send_compact(ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException + public void send_compact(java.nio.ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException { compact_args args = new compact_args(); args.setTableNameOrRegionName(tableNameOrRegionName); @@ -866,13 +839,13 @@ public class Hbase { return; } - public void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException + public void majorCompact(java.nio.ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException { send_majorCompact(tableNameOrRegionName); recv_majorCompact(); } - public void send_majorCompact(ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException + public void send_majorCompact(java.nio.ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException { majorCompact_args args = new majorCompact_args(); args.setTableNameOrRegionName(tableNameOrRegionName); @@ -889,7 +862,7 @@ public class Hbase { return; } - public List getTableNames() throws IOError, org.apache.thrift.TException + public java.util.List getTableNames() throws IOError, org.apache.thrift.TException { send_getTableNames(); return recv_getTableNames(); @@ -901,7 +874,7 @@ public class Hbase { sendBase("getTableNames", args); } - public List recv_getTableNames() throws IOError, org.apache.thrift.TException + public java.util.List recv_getTableNames() throws IOError, org.apache.thrift.TException { getTableNames_result result = new getTableNames_result(); receiveBase(result, "getTableNames"); @@ -914,20 +887,20 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result"); } - public Map getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException + public java.util.Map getColumnDescriptors(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException { send_getColumnDescriptors(tableName); return recv_getColumnDescriptors(); } - public void send_getColumnDescriptors(ByteBuffer tableName) throws org.apache.thrift.TException + public void send_getColumnDescriptors(java.nio.ByteBuffer tableName) throws org.apache.thrift.TException { getColumnDescriptors_args args = new getColumnDescriptors_args(); args.setTableName(tableName); sendBase("getColumnDescriptors", args); } - public Map recv_getColumnDescriptors() throws IOError, org.apache.thrift.TException + public java.util.Map recv_getColumnDescriptors() throws IOError, org.apache.thrift.TException { getColumnDescriptors_result result = new getColumnDescriptors_result(); receiveBase(result, "getColumnDescriptors"); @@ -940,20 +913,20 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result"); } - public List getTableRegions(ByteBuffer tableName) throws IOError, org.apache.thrift.TException + public java.util.List getTableRegions(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException { send_getTableRegions(tableName); return recv_getTableRegions(); } - public void send_getTableRegions(ByteBuffer tableName) throws org.apache.thrift.TException + public void send_getTableRegions(java.nio.ByteBuffer tableName) throws org.apache.thrift.TException { getTableRegions_args args = new getTableRegions_args(); args.setTableName(tableName); sendBase("getTableRegions", args); } - public List recv_getTableRegions() throws IOError, org.apache.thrift.TException + public java.util.List recv_getTableRegions() throws IOError, org.apache.thrift.TException { getTableRegions_result result = new getTableRegions_result(); receiveBase(result, "getTableRegions"); @@ -966,13 +939,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result"); } - public void createTable(ByteBuffer tableName, List columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException + public void createTable(java.nio.ByteBuffer tableName, java.util.List columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException { send_createTable(tableName, columnFamilies); recv_createTable(); } - public void send_createTable(ByteBuffer tableName, List columnFamilies) throws org.apache.thrift.TException + public void send_createTable(java.nio.ByteBuffer tableName, java.util.List columnFamilies) throws org.apache.thrift.TException { createTable_args args = new createTable_args(); args.setTableName(tableName); @@ -996,13 +969,13 @@ public class Hbase { return; } - public void deleteTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException + public void deleteTable(java.nio.ByteBuffer tableName) throws IOError, org.apache.thrift.TException { send_deleteTable(tableName); recv_deleteTable(); } - public void send_deleteTable(ByteBuffer tableName) throws org.apache.thrift.TException + public void send_deleteTable(java.nio.ByteBuffer tableName) throws org.apache.thrift.TException { deleteTable_args args = new deleteTable_args(); args.setTableName(tableName); @@ -1019,13 +992,13 @@ public class Hbase { return; } - public List get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List get(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_get(tableName, row, column, attributes); return recv_get(); } - public void send_get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes) throws org.apache.thrift.TException + public void send_get(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.Map attributes) throws org.apache.thrift.TException { get_args args = new get_args(); args.setTableName(tableName); @@ -1035,7 +1008,7 @@ public class Hbase { sendBase("get", args); } - public List recv_get() throws IOError, org.apache.thrift.TException + public java.util.List recv_get() throws IOError, org.apache.thrift.TException { get_result result = new get_result(); receiveBase(result, "get"); @@ -1048,13 +1021,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get failed: unknown result"); } - public List getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getVer(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, int numVersions, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getVer(tableName, row, column, numVersions, attributes); return recv_getVer(); } - public void send_getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map attributes) throws org.apache.thrift.TException + public void send_getVer(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, int numVersions, java.util.Map attributes) throws org.apache.thrift.TException { getVer_args args = new getVer_args(); args.setTableName(tableName); @@ -1065,7 +1038,7 @@ public class Hbase { sendBase("getVer", args); } - public List recv_getVer() throws IOError, org.apache.thrift.TException + public java.util.List recv_getVer() throws IOError, org.apache.thrift.TException { getVer_result result = new getVer_result(); receiveBase(result, "getVer"); @@ -1078,13 +1051,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVer failed: unknown result"); } - public List getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getVerTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, int numVersions, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getVerTs(tableName, row, column, timestamp, numVersions, attributes); return recv_getVerTs(); } - public void send_getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map attributes) throws org.apache.thrift.TException + public void send_getVerTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, int numVersions, java.util.Map attributes) throws org.apache.thrift.TException { getVerTs_args args = new getVerTs_args(); args.setTableName(tableName); @@ -1096,7 +1069,7 @@ public class Hbase { sendBase("getVerTs", args); } - public List recv_getVerTs() throws IOError, org.apache.thrift.TException + public java.util.List recv_getVerTs() throws IOError, org.apache.thrift.TException { getVerTs_result result = new getVerTs_result(); receiveBase(result, "getVerTs"); @@ -1109,13 +1082,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result"); } - public List getRow(ByteBuffer tableName, ByteBuffer row, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getRow(tableName, row, attributes); return recv_getRow(); } - public void send_getRow(ByteBuffer tableName, ByteBuffer row, Map attributes) throws org.apache.thrift.TException + public void send_getRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.Map attributes) throws org.apache.thrift.TException { getRow_args args = new getRow_args(); args.setTableName(tableName); @@ -1124,7 +1097,7 @@ public class Hbase { sendBase("getRow", args); } - public List recv_getRow() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRow() throws IOError, org.apache.thrift.TException { getRow_result result = new getRow_result(); receiveBase(result, "getRow"); @@ -1137,13 +1110,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRow failed: unknown result"); } - public List getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getRowWithColumns(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getRowWithColumns(tableName, row, columns, attributes); return recv_getRowWithColumns(); } - public void send_getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List columns, Map attributes) throws org.apache.thrift.TException + public void send_getRowWithColumns(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, java.util.Map attributes) throws org.apache.thrift.TException { getRowWithColumns_args args = new getRowWithColumns_args(); args.setTableName(tableName); @@ -1153,7 +1126,7 @@ public class Hbase { sendBase("getRowWithColumns", args); } - public List recv_getRowWithColumns() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRowWithColumns() throws IOError, org.apache.thrift.TException { getRowWithColumns_result result = new getRowWithColumns_result(); receiveBase(result, "getRowWithColumns"); @@ -1166,13 +1139,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowWithColumns failed: unknown result"); } - public List getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getRowTs(tableName, row, timestamp, attributes); return recv_getRowTs(); } - public void send_getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_getRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { getRowTs_args args = new getRowTs_args(); args.setTableName(tableName); @@ -1182,7 +1155,7 @@ public class Hbase { sendBase("getRowTs", args); } - public List recv_getRowTs() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRowTs() throws IOError, org.apache.thrift.TException { getRowTs_result result = new getRowTs_result(); receiveBase(result, "getRowTs"); @@ -1195,13 +1168,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowTs failed: unknown result"); } - public List getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getRowWithColumnsTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes); return recv_getRowWithColumnsTs(); } - public void send_getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List columns, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_getRowWithColumnsTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { getRowWithColumnsTs_args args = new getRowWithColumnsTs_args(); args.setTableName(tableName); @@ -1212,7 +1185,7 @@ public class Hbase { sendBase("getRowWithColumnsTs", args); } - public List recv_getRowWithColumnsTs() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRowWithColumnsTs() throws IOError, org.apache.thrift.TException { getRowWithColumnsTs_result result = new getRowWithColumnsTs_result(); receiveBase(result, "getRowWithColumnsTs"); @@ -1225,13 +1198,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowWithColumnsTs failed: unknown result"); } - public List getRows(ByteBuffer tableName, List rows, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getRows(java.nio.ByteBuffer tableName, java.util.List rows, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getRows(tableName, rows, attributes); return recv_getRows(); } - public void send_getRows(ByteBuffer tableName, List rows, Map attributes) throws org.apache.thrift.TException + public void send_getRows(java.nio.ByteBuffer tableName, java.util.List rows, java.util.Map attributes) throws org.apache.thrift.TException { getRows_args args = new getRows_args(); args.setTableName(tableName); @@ -1240,7 +1213,7 @@ public class Hbase { sendBase("getRows", args); } - public List recv_getRows() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRows() throws IOError, org.apache.thrift.TException { getRows_result result = new getRows_result(); receiveBase(result, "getRows"); @@ -1253,13 +1226,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRows failed: unknown result"); } - public List getRowsWithColumns(ByteBuffer tableName, List rows, List columns, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getRowsWithColumns(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getRowsWithColumns(tableName, rows, columns, attributes); return recv_getRowsWithColumns(); } - public void send_getRowsWithColumns(ByteBuffer tableName, List rows, List columns, Map attributes) throws org.apache.thrift.TException + public void send_getRowsWithColumns(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, java.util.Map attributes) throws org.apache.thrift.TException { getRowsWithColumns_args args = new getRowsWithColumns_args(); args.setTableName(tableName); @@ -1269,7 +1242,7 @@ public class Hbase { sendBase("getRowsWithColumns", args); } - public List recv_getRowsWithColumns() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRowsWithColumns() throws IOError, org.apache.thrift.TException { getRowsWithColumns_result result = new getRowsWithColumns_result(); receiveBase(result, "getRowsWithColumns"); @@ -1282,13 +1255,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsWithColumns failed: unknown result"); } - public List getRowsTs(ByteBuffer tableName, List rows, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getRowsTs(java.nio.ByteBuffer tableName, java.util.List rows, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getRowsTs(tableName, rows, timestamp, attributes); return recv_getRowsTs(); } - public void send_getRowsTs(ByteBuffer tableName, List rows, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_getRowsTs(java.nio.ByteBuffer tableName, java.util.List rows, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { getRowsTs_args args = new getRowsTs_args(); args.setTableName(tableName); @@ -1298,7 +1271,7 @@ public class Hbase { sendBase("getRowsTs", args); } - public List recv_getRowsTs() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRowsTs() throws IOError, org.apache.thrift.TException { getRowsTs_result result = new getRowsTs_result(); receiveBase(result, "getRowsTs"); @@ -1311,13 +1284,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsTs failed: unknown result"); } - public List getRowsWithColumnsTs(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException + public java.util.List getRowsWithColumnsTs(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes); return recv_getRowsWithColumnsTs(); } - public void send_getRowsWithColumnsTs(ByteBuffer tableName, List rows, List columns, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_getRowsWithColumnsTs(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { getRowsWithColumnsTs_args args = new getRowsWithColumnsTs_args(); args.setTableName(tableName); @@ -1328,7 +1301,7 @@ public class Hbase { sendBase("getRowsWithColumnsTs", args); } - public List recv_getRowsWithColumnsTs() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRowsWithColumnsTs() throws IOError, org.apache.thrift.TException { getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result(); receiveBase(result, "getRowsWithColumnsTs"); @@ -1341,13 +1314,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsWithColumnsTs failed: unknown result"); } - public void mutateRow(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException + public void mutateRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException { send_mutateRow(tableName, row, mutations, attributes); recv_mutateRow(); } - public void send_mutateRow(ByteBuffer tableName, ByteBuffer row, List mutations, Map attributes) throws org.apache.thrift.TException + public void send_mutateRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, java.util.Map attributes) throws org.apache.thrift.TException { mutateRow_args args = new mutateRow_args(); args.setTableName(tableName); @@ -1370,13 +1343,13 @@ public class Hbase { return; } - public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException + public void mutateRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, long timestamp, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException { send_mutateRowTs(tableName, row, mutations, timestamp, attributes); recv_mutateRowTs(); } - public void send_mutateRowTs(ByteBuffer tableName, ByteBuffer row, List mutations, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_mutateRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { mutateRowTs_args args = new mutateRowTs_args(); args.setTableName(tableName); @@ -1400,13 +1373,13 @@ public class Hbase { return; } - public void mutateRows(ByteBuffer tableName, List rowBatches, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException + public void mutateRows(java.nio.ByteBuffer tableName, java.util.List rowBatches, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException { send_mutateRows(tableName, rowBatches, attributes); recv_mutateRows(); } - public void send_mutateRows(ByteBuffer tableName, List rowBatches, Map attributes) throws org.apache.thrift.TException + public void send_mutateRows(java.nio.ByteBuffer tableName, java.util.List rowBatches, java.util.Map attributes) throws org.apache.thrift.TException { mutateRows_args args = new mutateRows_args(); args.setTableName(tableName); @@ -1428,13 +1401,13 @@ public class Hbase { return; } - public void mutateRowsTs(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException + public void mutateRowsTs(java.nio.ByteBuffer tableName, java.util.List rowBatches, long timestamp, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException { send_mutateRowsTs(tableName, rowBatches, timestamp, attributes); recv_mutateRowsTs(); } - public void send_mutateRowsTs(ByteBuffer tableName, List rowBatches, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_mutateRowsTs(java.nio.ByteBuffer tableName, java.util.List rowBatches, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { mutateRowsTs_args args = new mutateRowsTs_args(); args.setTableName(tableName); @@ -1457,13 +1430,13 @@ public class Hbase { return; } - public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException + public long atomicIncrement(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException { send_atomicIncrement(tableName, row, column, value); return recv_atomicIncrement(); } - public void send_atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws org.apache.thrift.TException + public void send_atomicIncrement(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long value) throws org.apache.thrift.TException { atomicIncrement_args args = new atomicIncrement_args(); args.setTableName(tableName); @@ -1489,13 +1462,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "atomicIncrement failed: unknown result"); } - public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes) throws IOError, org.apache.thrift.TException + public void deleteAll(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_deleteAll(tableName, row, column, attributes); recv_deleteAll(); } - public void send_deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map attributes) throws org.apache.thrift.TException + public void send_deleteAll(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.Map attributes) throws org.apache.thrift.TException { deleteAll_args args = new deleteAll_args(); args.setTableName(tableName); @@ -1515,13 +1488,13 @@ public class Hbase { return; } - public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException + public void deleteAllTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_deleteAllTs(tableName, row, column, timestamp, attributes); recv_deleteAllTs(); } - public void send_deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_deleteAllTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { deleteAllTs_args args = new deleteAllTs_args(); args.setTableName(tableName); @@ -1542,13 +1515,13 @@ public class Hbase { return; } - public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map attributes) throws IOError, org.apache.thrift.TException + public void deleteAllRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_deleteAllRow(tableName, row, attributes); recv_deleteAllRow(); } - public void send_deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map attributes) throws org.apache.thrift.TException + public void send_deleteAllRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.Map attributes) throws org.apache.thrift.TException { deleteAllRow_args args = new deleteAllRow_args(); args.setTableName(tableName); @@ -1590,13 +1563,13 @@ public class Hbase { return; } - public void incrementRows(List increments) throws IOError, org.apache.thrift.TException + public void incrementRows(java.util.List increments) throws IOError, org.apache.thrift.TException { send_incrementRows(increments); recv_incrementRows(); } - public void send_incrementRows(List increments) throws org.apache.thrift.TException + public void send_incrementRows(java.util.List increments) throws org.apache.thrift.TException { incrementRows_args args = new incrementRows_args(); args.setIncrements(increments); @@ -1613,13 +1586,13 @@ public class Hbase { return; } - public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException + public void deleteAllRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_deleteAllRowTs(tableName, row, timestamp, attributes); recv_deleteAllRowTs(); } - public void send_deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_deleteAllRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { deleteAllRowTs_args args = new deleteAllRowTs_args(); args.setTableName(tableName); @@ -1639,13 +1612,13 @@ public class Hbase { return; } - public int scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map attributes) throws IOError, org.apache.thrift.TException + public int scannerOpenWithScan(java.nio.ByteBuffer tableName, TScan scan, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_scannerOpenWithScan(tableName, scan, attributes); return recv_scannerOpenWithScan(); } - public void send_scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map attributes) throws org.apache.thrift.TException + public void send_scannerOpenWithScan(java.nio.ByteBuffer tableName, TScan scan, java.util.Map attributes) throws org.apache.thrift.TException { scannerOpenWithScan_args args = new scannerOpenWithScan_args(); args.setTableName(tableName); @@ -1667,13 +1640,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithScan failed: unknown result"); } - public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes) throws IOError, org.apache.thrift.TException + public int scannerOpen(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_scannerOpen(tableName, startRow, columns, attributes); return recv_scannerOpen(); } - public void send_scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List columns, Map attributes) throws org.apache.thrift.TException + public void send_scannerOpen(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, java.util.Map attributes) throws org.apache.thrift.TException { scannerOpen_args args = new scannerOpen_args(); args.setTableName(tableName); @@ -1696,13 +1669,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result"); } - public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes) throws IOError, org.apache.thrift.TException + public int scannerOpenWithStop(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes); return recv_scannerOpenWithStop(); } - public void send_scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, Map attributes) throws org.apache.thrift.TException + public void send_scannerOpenWithStop(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, java.util.Map attributes) throws org.apache.thrift.TException { scannerOpenWithStop_args args = new scannerOpenWithStop_args(); args.setTableName(tableName); @@ -1726,13 +1699,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result"); } - public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes) throws IOError, org.apache.thrift.TException + public int scannerOpenWithPrefix(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startAndPrefix, java.util.List columns, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes); return recv_scannerOpenWithPrefix(); } - public void send_scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List columns, Map attributes) throws org.apache.thrift.TException + public void send_scannerOpenWithPrefix(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startAndPrefix, java.util.List columns, java.util.Map attributes) throws org.apache.thrift.TException { scannerOpenWithPrefix_args args = new scannerOpenWithPrefix_args(); args.setTableName(tableName); @@ -1755,13 +1728,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithPrefix failed: unknown result"); } - public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException + public int scannerOpenTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes); return recv_scannerOpenTs(); } - public void send_scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List columns, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_scannerOpenTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { scannerOpenTs_args args = new scannerOpenTs_args(); args.setTableName(tableName); @@ -1785,13 +1758,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result"); } - public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes) throws IOError, org.apache.thrift.TException + public int scannerOpenWithStopTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, long timestamp, java.util.Map attributes) throws IOError, org.apache.thrift.TException { send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes); return recv_scannerOpenWithStopTs(); } - public void send_scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List columns, long timestamp, Map attributes) throws org.apache.thrift.TException + public void send_scannerOpenWithStopTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, long timestamp, java.util.Map attributes) throws org.apache.thrift.TException { scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args(); args.setTableName(tableName); @@ -1816,7 +1789,7 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithStopTs failed: unknown result"); } - public List scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException + public java.util.List scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException { send_scannerGet(id); return recv_scannerGet(); @@ -1829,7 +1802,7 @@ public class Hbase { sendBase("scannerGet", args); } - public List recv_scannerGet() throws IOError, IllegalArgument, org.apache.thrift.TException + public java.util.List recv_scannerGet() throws IOError, IllegalArgument, org.apache.thrift.TException { scannerGet_result result = new scannerGet_result(); receiveBase(result, "scannerGet"); @@ -1845,7 +1818,7 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerGet failed: unknown result"); } - public List scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException + public java.util.List scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException { send_scannerGetList(id, nbRows); return recv_scannerGetList(); @@ -1859,7 +1832,7 @@ public class Hbase { sendBase("scannerGetList", args); } - public List recv_scannerGetList() throws IOError, IllegalArgument, org.apache.thrift.TException + public java.util.List recv_scannerGetList() throws IOError, IllegalArgument, org.apache.thrift.TException { scannerGetList_result result = new scannerGetList_result(); receiveBase(result, "scannerGetList"); @@ -1901,13 +1874,13 @@ public class Hbase { return; } - public List getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws IOError, org.apache.thrift.TException + public java.util.List getRowOrBefore(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer family) throws IOError, org.apache.thrift.TException { send_getRowOrBefore(tableName, row, family); return recv_getRowOrBefore(); } - public void send_getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws org.apache.thrift.TException + public void send_getRowOrBefore(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer family) throws org.apache.thrift.TException { getRowOrBefore_args args = new getRowOrBefore_args(); args.setTableName(tableName); @@ -1916,7 +1889,7 @@ public class Hbase { sendBase("getRowOrBefore", args); } - public List recv_getRowOrBefore() throws IOError, org.apache.thrift.TException + public java.util.List recv_getRowOrBefore() throws IOError, org.apache.thrift.TException { getRowOrBefore_result result = new getRowOrBefore_result(); receiveBase(result, "getRowOrBefore"); @@ -1929,13 +1902,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowOrBefore failed: unknown result"); } - public TRegionInfo getRegionInfo(ByteBuffer row) throws IOError, org.apache.thrift.TException + public TRegionInfo getRegionInfo(java.nio.ByteBuffer row) throws IOError, org.apache.thrift.TException { send_getRegionInfo(row); return recv_getRegionInfo(); } - public void send_getRegionInfo(ByteBuffer row) throws org.apache.thrift.TException + public void send_getRegionInfo(java.nio.ByteBuffer row) throws org.apache.thrift.TException { getRegionInfo_args args = new getRegionInfo_args(); args.setRow(row); @@ -1955,7 +1928,7 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRegionInfo failed: unknown result"); } - public List append(TAppend append) throws IOError, org.apache.thrift.TException + public java.util.List append(TAppend append) throws IOError, org.apache.thrift.TException { send_append(append); return recv_append(); @@ -1968,7 +1941,7 @@ public class Hbase { sendBase("append", args); } - public List recv_append() throws IOError, org.apache.thrift.TException + public java.util.List recv_append() throws IOError, org.apache.thrift.TException { append_result result = new append_result(); receiveBase(result, "append"); @@ -1981,13 +1954,13 @@ public class Hbase { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "append failed: unknown result"); } - public boolean checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException + public boolean checkAndPut(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.nio.ByteBuffer value, Mutation mput, java.util.Map attributes) throws IOError, IllegalArgument, org.apache.thrift.TException { send_checkAndPut(tableName, row, column, value, mput, attributes); return recv_checkAndPut(); } - public void send_checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map attributes) throws org.apache.thrift.TException + public void send_checkAndPut(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.nio.ByteBuffer value, Mutation mput, java.util.Map attributes) throws org.apache.thrift.TException { checkAndPut_args args = new checkAndPut_args(); args.setTableName(tableName); @@ -2033,16 +2006,16 @@ 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(java.nio.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; ___manager.call(method_call); } - 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 static class enableTable_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + public enableTable_call(java.nio.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; } @@ -2055,26 +2028,26 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_enableTable(); + return null; } } - public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void disableTable(java.nio.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; ___manager.call(method_call); } - 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 static class disableTable_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + public disableTable_call(java.nio.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; } @@ -2087,26 +2060,26 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_disableTable(); + return null; } } - public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isTableEnabled(java.nio.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; ___manager.call(method_call); } - 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 static class isTableEnabled_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + public isTableEnabled_call(java.nio.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; } @@ -2119,9 +2092,9 @@ public class Hbase { prot.writeMessageEnd(); } - public boolean getResult() throws IOError, org.apache.thrift.TException { + public java.lang.Boolean getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2129,16 +2102,16 @@ public class Hbase { } } - public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void compact(java.nio.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; ___manager.call(method_call); } - 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 static class compact_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableNameOrRegionName; + public compact_call(java.nio.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; } @@ -2151,26 +2124,26 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_compact(); + return null; } } - public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void majorCompact(java.nio.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; ___manager.call(method_call); } - 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 static class majorCompact_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableNameOrRegionName; + public majorCompact_call(java.nio.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; } @@ -2183,25 +2156,25 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_majorCompact(); + return null; } } - 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; ___manager.call(method_call); } - 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 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 { super(client, protocolFactory, transport, resultHandler, false); } @@ -2212,9 +2185,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2222,16 +2195,16 @@ public class Hbase { } } - public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getColumnDescriptors(java.nio.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; ___manager.call(method_call); } - 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 static class getColumnDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + public getColumnDescriptors_call(java.nio.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; } @@ -2244,9 +2217,9 @@ public class Hbase { prot.writeMessageEnd(); } - public Map getResult() throws IOError, org.apache.thrift.TException { + public java.util.Map getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2254,16 +2227,16 @@ public class Hbase { } } - public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableRegions(java.nio.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; ___manager.call(method_call); } - 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 static class getTableRegions_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + public getTableRegions_call(java.nio.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; } @@ -2276,9 +2249,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2286,17 +2259,17 @@ public class Hbase { } } - public void createTable(ByteBuffer tableName, List columnFamilies, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void createTable(java.nio.ByteBuffer tableName, java.util.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; ___manager.call(method_call); } - 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 static class createTable_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.util.List columnFamilies; + public createTable_call(java.nio.ByteBuffer tableName, java.util.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; @@ -2311,26 +2284,26 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException { + public Void getResult() throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_createTable(); + return null; } } - public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteTable(java.nio.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; ___manager.call(method_call); } - 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 static class deleteTable_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + public deleteTable_call(java.nio.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; } @@ -2343,29 +2316,29 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteTable(); + return null; } } - 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.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; ___manager.call(method_call); } - public static class get_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - 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 static class get_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer column; + private java.util.Map attributes; + public get_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.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; @@ -2384,9 +2357,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2394,20 +2367,20 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, int numVersions, java.util.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; ___manager.call(method_call); } - public static class getVer_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; - private ByteBuffer column; + public static class getVer_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.nio.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 { + private java.util.Map attributes; + public getVer_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, int numVersions, java.util.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; @@ -2428,9 +2401,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2438,21 +2411,21 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, int numVersions, java.util.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; ___manager.call(method_call); } - public static class getVerTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; - private ByteBuffer column; + public static class getVerTs_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer column; 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 { + private java.util.Map attributes; + public getVerTs_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, int numVersions, java.util.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; @@ -2475,9 +2448,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2485,18 +2458,18 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.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; ___manager.call(method_call); } - public static class getRow_call extends org.apache.thrift.async.TAsyncMethodCall { - 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 static class getRow_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.util.Map attributes; + public getRow_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.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; @@ -2513,9 +2486,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2523,19 +2496,19 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, java.util.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; ___manager.call(method_call); } - public static class getRowWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - 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 static class getRowWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.util.List columns; + private java.util.Map attributes; + public getRowWithColumns_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, java.util.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; @@ -2554,9 +2527,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2564,19 +2537,19 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.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; ___manager.call(method_call); } - public static class getRowTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; + public static class getRowTs_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.nio.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 { + private java.util.Map attributes; + public getRowTs_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.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; @@ -2595,9 +2568,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2605,20 +2578,20 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, long timestamp, java.util.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; ___manager.call(method_call); } - public static class getRowWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; - private List columns; + public static class getRowWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.util.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 { + private java.util.Map attributes; + public getRowWithColumnsTs_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List columns, long timestamp, java.util.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; @@ -2639,9 +2612,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2649,18 +2622,18 @@ 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(java.nio.ByteBuffer tableName, java.util.List rows, java.util.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; ___manager.call(method_call); } - public static class getRows_call extends org.apache.thrift.async.TAsyncMethodCall { - 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 static class getRows_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.util.List rows; + private java.util.Map attributes; + public getRows_call(java.nio.ByteBuffer tableName, java.util.List rows, java.util.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; @@ -2677,9 +2650,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2687,19 +2660,19 @@ 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(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, java.util.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; ___manager.call(method_call); } - public static class getRowsWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - 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 static class getRowsWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.util.List rows; + private java.util.List columns; + private java.util.Map attributes; + public getRowsWithColumns_call(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, java.util.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; @@ -2718,9 +2691,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2728,19 +2701,19 @@ 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(java.nio.ByteBuffer tableName, java.util.List rows, long timestamp, java.util.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; ___manager.call(method_call); } - public static class getRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private List rows; + public static class getRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.util.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 { + private java.util.Map attributes; + public getRowsTs_call(java.nio.ByteBuffer tableName, java.util.List rows, long timestamp, java.util.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; @@ -2759,9 +2732,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2769,20 +2742,20 @@ 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(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, long timestamp, java.util.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; ___manager.call(method_call); } - public static class getRowsWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private List rows; - private List columns; + public static class getRowsWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.util.List rows; + private java.util.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 { + private java.util.Map attributes; + public getRowsWithColumnsTs_call(java.nio.ByteBuffer tableName, java.util.List rows, java.util.List columns, long timestamp, java.util.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; @@ -2803,9 +2776,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2813,19 +2786,19 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, java.util.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; ___manager.call(method_call); } - public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - 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 static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.util.List mutations; + private java.util.Map attributes; + public mutateRow_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, java.util.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; @@ -2844,30 +2817,30 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public Void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_mutateRow(); + return null; } } - 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, long timestamp, java.util.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; ___manager.call(method_call); } - public static class mutateRowTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; - private List mutations; + public static class mutateRowTs_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.util.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 { + private java.util.Map attributes; + public mutateRowTs_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List mutations, long timestamp, java.util.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; @@ -2888,28 +2861,28 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public Void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_mutateRowTs(); + return null; } } - public void mutateRows(ByteBuffer tableName, List rowBatches, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void mutateRows(java.nio.ByteBuffer tableName, java.util.List rowBatches, java.util.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; ___manager.call(method_call); } - public static class mutateRows_call extends org.apache.thrift.async.TAsyncMethodCall { - 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 static class mutateRows_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.util.List rowBatches; + private java.util.Map attributes; + public mutateRows_call(java.nio.ByteBuffer tableName, java.util.List rowBatches, java.util.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; @@ -2926,29 +2899,29 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public Void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_mutateRows(); + return null; } } - 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(java.nio.ByteBuffer tableName, java.util.List rowBatches, long timestamp, java.util.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; ___manager.call(method_call); } - public static class mutateRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private List rowBatches; + public static class mutateRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.util.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 { + private java.util.Map attributes; + public mutateRowsTs_call(java.nio.ByteBuffer tableName, java.util.List rowBatches, long timestamp, java.util.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; @@ -2967,29 +2940,29 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public Void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_mutateRowsTs(); + return null; } } - 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.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; ___manager.call(method_call); } - public static class atomicIncrement_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; - private ByteBuffer column; + public static class atomicIncrement_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.nio.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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.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; @@ -3008,9 +2981,9 @@ public class Hbase { prot.writeMessageEnd(); } - public long getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public java.lang.Long getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3018,19 +2991,19 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.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; ___manager.call(method_call); } - public static class deleteAll_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - 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 static class deleteAll_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer column; + private java.util.Map attributes; + public deleteAll_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.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; @@ -3049,30 +3022,30 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteAll(); + return null; } } - 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, java.util.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; ___manager.call(method_call); } - public static class deleteAllTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; - private ByteBuffer column; + public static class deleteAllTs_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.nio.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 { + private java.util.Map attributes; + public deleteAllTs_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, java.util.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; @@ -3093,28 +3066,28 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteAllTs(); + return null; } } - public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteAllRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.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; ___manager.call(method_call); } - public static class deleteAllRow_call extends org.apache.thrift.async.TAsyncMethodCall { - 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 static class deleteAllRow_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.util.Map attributes; + public deleteAllRow_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.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; @@ -3131,26 +3104,26 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteAllRow(); + return null; } } - 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; ___manager.call(method_call); } - public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall { + 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; } @@ -3163,26 +3136,26 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_increment(); + return null; } } - public void incrementRows(List increments, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void incrementRows(java.util.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; ___manager.call(method_call); } - 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 static class incrementRows_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.util.List increments; + public incrementRows_call(java.util.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; } @@ -3195,29 +3168,29 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_incrementRows(); + return null; } } - 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.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; ___manager.call(method_call); } - public static class deleteAllRowTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; + public static class deleteAllRowTs_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.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 { + private java.util.Map attributes; + public deleteAllRowTs_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.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; @@ -3236,28 +3209,28 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, org.apache.thrift.TException { + public Void getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteAllRowTs(); + return null; } } - public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map attributes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void scannerOpenWithScan(java.nio.ByteBuffer tableName, TScan scan, java.util.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; ___manager.call(method_call); } - public static class scannerOpenWithScan_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; + public static class scannerOpenWithScan_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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 { + private java.util.Map attributes; + public scannerOpenWithScan_call(java.nio.ByteBuffer tableName, TScan scan, java.util.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; @@ -3274,9 +3247,9 @@ public class Hbase { prot.writeMessageEnd(); } - public int getResult() throws IOError, org.apache.thrift.TException { + public java.lang.Integer getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3284,19 +3257,19 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, java.util.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; ___manager.call(method_call); } - public static class scannerOpen_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - 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 static class scannerOpen_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer startRow; + private java.util.List columns; + private java.util.Map attributes; + public scannerOpen_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, java.util.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; @@ -3315,9 +3288,9 @@ public class Hbase { prot.writeMessageEnd(); } - public int getResult() throws IOError, org.apache.thrift.TException { + public java.lang.Integer getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3325,20 +3298,20 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, java.util.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; ___manager.call(method_call); } - public static class scannerOpenWithStop_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer startRow; - 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 static class scannerOpenWithStop_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer startRow; + private java.nio.ByteBuffer stopRow; + private java.util.List columns; + private java.util.Map attributes; + public scannerOpenWithStop_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, java.util.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; @@ -3359,9 +3332,9 @@ public class Hbase { prot.writeMessageEnd(); } - public int getResult() throws IOError, org.apache.thrift.TException { + public java.lang.Integer getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3369,19 +3342,19 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startAndPrefix, java.util.List columns, java.util.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; ___manager.call(method_call); } - public static class scannerOpenWithPrefix_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - 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 static class scannerOpenWithPrefix_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer startAndPrefix; + private java.util.List columns; + private java.util.Map attributes; + public scannerOpenWithPrefix_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startAndPrefix, java.util.List columns, java.util.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; @@ -3400,9 +3373,9 @@ public class Hbase { prot.writeMessageEnd(); } - public int getResult() throws IOError, org.apache.thrift.TException { + public java.lang.Integer getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3410,20 +3383,20 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, long timestamp, java.util.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; ___manager.call(method_call); } - public static class scannerOpenTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer startRow; - private List columns; + public static class scannerOpenTs_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer startRow; + private java.util.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 { + private java.util.Map attributes; + public scannerOpenTs_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.util.List columns, long timestamp, java.util.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; @@ -3444,9 +3417,9 @@ public class Hbase { prot.writeMessageEnd(); } - public int getResult() throws IOError, org.apache.thrift.TException { + public java.lang.Integer getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3454,21 +3427,21 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, long timestamp, java.util.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; ___manager.call(method_call); } - public static class scannerOpenWithStopTs_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer startRow; - private ByteBuffer stopRow; - private List columns; + public static class scannerOpenWithStopTs_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer startRow; + private java.nio.ByteBuffer stopRow; + private java.util.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 { + private java.util.Map attributes; + public scannerOpenWithStopTs_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer startRow, java.nio.ByteBuffer stopRow, java.util.List columns, long timestamp, java.util.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; @@ -3491,9 +3464,9 @@ public class Hbase { prot.writeMessageEnd(); } - public int getResult() throws IOError, org.apache.thrift.TException { + public java.lang.Integer getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3501,16 +3474,16 @@ 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; ___manager.call(method_call); } - public static class scannerGet_call extends org.apache.thrift.async.TAsyncMethodCall { + 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; } @@ -3523,9 +3496,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3533,17 +3506,17 @@ 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; ___manager.call(method_call); } - public static class scannerGetList_call extends org.apache.thrift.async.TAsyncMethodCall { + 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; @@ -3558,9 +3531,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3568,16 +3541,16 @@ 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; ___manager.call(method_call); } - public static class scannerClose_call extends org.apache.thrift.async.TAsyncMethodCall { + 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; } @@ -3590,28 +3563,28 @@ public class Hbase { prot.writeMessageEnd(); } - public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public Void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_scannerClose(); + return null; } } - public void getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRowOrBefore(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getRowOrBefore_call method_call = new getRowOrBefore_call(tableName, row, family, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getRowOrBefore_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; - private ByteBuffer family; - public getRowOrBefore_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, 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 static class getRowOrBefore_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer family; + public getRowOrBefore_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer family, 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; @@ -3628,9 +3601,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3638,16 +3611,16 @@ public class Hbase { } } - public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRegionInfo(java.nio.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; ___manager.call(method_call); } - 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 static class getRegionInfo_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer row; + public getRegionInfo_call(java.nio.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; } @@ -3662,7 +3635,7 @@ public class Hbase { public TRegionInfo getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3670,16 +3643,16 @@ 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; ___manager.call(method_call); } - public static class append_call extends org.apache.thrift.async.TAsyncMethodCall { + 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; } @@ -3692,9 +3665,9 @@ public class Hbase { prot.writeMessageEnd(); } - public List getResult() throws IOError, org.apache.thrift.TException { + public java.util.List getResult() throws IOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3702,21 +3675,21 @@ 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(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.nio.ByteBuffer value, Mutation mput, java.util.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; ___manager.call(method_call); } - public static class checkAndPut_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer tableName; - private ByteBuffer row; - private ByteBuffer column; - private ByteBuffer value; + public static class checkAndPut_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer tableName; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer column; + private java.nio.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 { + private java.util.Map attributes; + public checkAndPut_call(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.nio.ByteBuffer value, Mutation mput, java.util.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; @@ -3739,9 +3712,9 @@ public class Hbase { prot.writeMessageEnd(); } - public boolean getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { + public java.lang.Boolean getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3752,16 +3725,16 @@ public class Hbase { } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("enableTable", new enableTable()); processMap.put("disableTable", new disableTable()); processMap.put("isTableEnabled", new isTableEnabled()); @@ -3823,6 +3796,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public enableTable_result getResult(I iface, enableTable_args args) throws org.apache.thrift.TException { enableTable_result result = new enableTable_result(); try { @@ -3847,6 +3825,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public disableTable_result getResult(I iface, disableTable_args args) throws org.apache.thrift.TException { disableTable_result result = new disableTable_result(); try { @@ -3871,6 +3854,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public isTableEnabled_result getResult(I iface, isTableEnabled_args args) throws org.apache.thrift.TException { isTableEnabled_result result = new isTableEnabled_result(); try { @@ -3896,6 +3884,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public compact_result getResult(I iface, compact_args args) throws org.apache.thrift.TException { compact_result result = new compact_result(); try { @@ -3920,6 +3913,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public majorCompact_result getResult(I iface, majorCompact_args args) throws org.apache.thrift.TException { majorCompact_result result = new majorCompact_result(); try { @@ -3944,6 +3942,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTableNames_result getResult(I iface, getTableNames_args args) throws org.apache.thrift.TException { getTableNames_result result = new getTableNames_result(); try { @@ -3968,6 +3971,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getColumnDescriptors_result getResult(I iface, getColumnDescriptors_args args) throws org.apache.thrift.TException { getColumnDescriptors_result result = new getColumnDescriptors_result(); try { @@ -3992,6 +4000,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTableRegions_result getResult(I iface, getTableRegions_args args) throws org.apache.thrift.TException { getTableRegions_result result = new getTableRegions_result(); try { @@ -4016,6 +4029,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public createTable_result getResult(I iface, createTable_args args) throws org.apache.thrift.TException { createTable_result result = new createTable_result(); try { @@ -4044,6 +4062,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteTable_result getResult(I iface, deleteTable_args args) throws org.apache.thrift.TException { deleteTable_result result = new deleteTable_result(); try { @@ -4068,6 +4091,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public get_result getResult(I iface, get_args args) throws org.apache.thrift.TException { get_result result = new get_result(); try { @@ -4092,6 +4120,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getVer_result getResult(I iface, getVer_args args) throws org.apache.thrift.TException { getVer_result result = new getVer_result(); try { @@ -4116,6 +4149,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getVerTs_result getResult(I iface, getVerTs_args args) throws org.apache.thrift.TException { getVerTs_result result = new getVerTs_result(); try { @@ -4140,6 +4178,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRow_result getResult(I iface, getRow_args args) throws org.apache.thrift.TException { getRow_result result = new getRow_result(); try { @@ -4164,6 +4207,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRowWithColumns_result getResult(I iface, getRowWithColumns_args args) throws org.apache.thrift.TException { getRowWithColumns_result result = new getRowWithColumns_result(); try { @@ -4188,6 +4236,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRowTs_result getResult(I iface, getRowTs_args args) throws org.apache.thrift.TException { getRowTs_result result = new getRowTs_result(); try { @@ -4212,6 +4265,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRowWithColumnsTs_result getResult(I iface, getRowWithColumnsTs_args args) throws org.apache.thrift.TException { getRowWithColumnsTs_result result = new getRowWithColumnsTs_result(); try { @@ -4236,6 +4294,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRows_result getResult(I iface, getRows_args args) throws org.apache.thrift.TException { getRows_result result = new getRows_result(); try { @@ -4260,6 +4323,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRowsWithColumns_result getResult(I iface, getRowsWithColumns_args args) throws org.apache.thrift.TException { getRowsWithColumns_result result = new getRowsWithColumns_result(); try { @@ -4284,6 +4352,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRowsTs_result getResult(I iface, getRowsTs_args args) throws org.apache.thrift.TException { getRowsTs_result result = new getRowsTs_result(); try { @@ -4308,6 +4381,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRowsWithColumnsTs_result getResult(I iface, getRowsWithColumnsTs_args args) throws org.apache.thrift.TException { getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result(); try { @@ -4332,6 +4410,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public mutateRow_result getResult(I iface, mutateRow_args args) throws org.apache.thrift.TException { mutateRow_result result = new mutateRow_result(); try { @@ -4358,6 +4441,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public mutateRowTs_result getResult(I iface, mutateRowTs_args args) throws org.apache.thrift.TException { mutateRowTs_result result = new mutateRowTs_result(); try { @@ -4384,6 +4472,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public mutateRows_result getResult(I iface, mutateRows_args args) throws org.apache.thrift.TException { mutateRows_result result = new mutateRows_result(); try { @@ -4410,6 +4503,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public mutateRowsTs_result getResult(I iface, mutateRowsTs_args args) throws org.apache.thrift.TException { mutateRowsTs_result result = new mutateRowsTs_result(); try { @@ -4436,6 +4534,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public atomicIncrement_result getResult(I iface, atomicIncrement_args args) throws org.apache.thrift.TException { atomicIncrement_result result = new atomicIncrement_result(); try { @@ -4463,6 +4566,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteAll_result getResult(I iface, deleteAll_args args) throws org.apache.thrift.TException { deleteAll_result result = new deleteAll_result(); try { @@ -4487,6 +4595,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteAllTs_result getResult(I iface, deleteAllTs_args args) throws org.apache.thrift.TException { deleteAllTs_result result = new deleteAllTs_result(); try { @@ -4511,6 +4624,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteAllRow_result getResult(I iface, deleteAllRow_args args) throws org.apache.thrift.TException { deleteAllRow_result result = new deleteAllRow_result(); try { @@ -4535,6 +4653,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public increment_result getResult(I iface, increment_args args) throws org.apache.thrift.TException { increment_result result = new increment_result(); try { @@ -4559,6 +4682,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public incrementRows_result getResult(I iface, incrementRows_args args) throws org.apache.thrift.TException { incrementRows_result result = new incrementRows_result(); try { @@ -4583,6 +4711,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteAllRowTs_result getResult(I iface, deleteAllRowTs_args args) throws org.apache.thrift.TException { deleteAllRowTs_result result = new deleteAllRowTs_result(); try { @@ -4607,6 +4740,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerOpenWithScan_result getResult(I iface, scannerOpenWithScan_args args) throws org.apache.thrift.TException { scannerOpenWithScan_result result = new scannerOpenWithScan_result(); try { @@ -4632,6 +4770,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerOpen_result getResult(I iface, scannerOpen_args args) throws org.apache.thrift.TException { scannerOpen_result result = new scannerOpen_result(); try { @@ -4657,6 +4800,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerOpenWithStop_result getResult(I iface, scannerOpenWithStop_args args) throws org.apache.thrift.TException { scannerOpenWithStop_result result = new scannerOpenWithStop_result(); try { @@ -4682,6 +4830,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerOpenWithPrefix_result getResult(I iface, scannerOpenWithPrefix_args args) throws org.apache.thrift.TException { scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result(); try { @@ -4707,6 +4860,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerOpenTs_result getResult(I iface, scannerOpenTs_args args) throws org.apache.thrift.TException { scannerOpenTs_result result = new scannerOpenTs_result(); try { @@ -4732,6 +4890,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerOpenWithStopTs_result getResult(I iface, scannerOpenWithStopTs_args args) throws org.apache.thrift.TException { scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result(); try { @@ -4757,6 +4920,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerGet_result getResult(I iface, scannerGet_args args) throws org.apache.thrift.TException { scannerGet_result result = new scannerGet_result(); try { @@ -4783,6 +4951,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerGetList_result getResult(I iface, scannerGetList_args args) throws org.apache.thrift.TException { scannerGetList_result result = new scannerGetList_result(); try { @@ -4809,6 +4982,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public scannerClose_result getResult(I iface, scannerClose_args args) throws org.apache.thrift.TException { scannerClose_result result = new scannerClose_result(); try { @@ -4835,6 +5013,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRowOrBefore_result getResult(I iface, getRowOrBefore_args args) throws org.apache.thrift.TException { getRowOrBefore_result result = new getRowOrBefore_result(); try { @@ -4859,6 +5042,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRegionInfo_result getResult(I iface, getRegionInfo_args args) throws org.apache.thrift.TException { getRegionInfo_result result = new getRegionInfo_result(); try { @@ -4883,6 +5071,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public append_result getResult(I iface, append_args args) throws org.apache.thrift.TException { append_result result = new append_result(); try { @@ -4907,6 +5100,11 @@ public class Hbase { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public checkAndPut_result getResult(I iface, checkAndPut_args args) throws org.apache.thrift.TException { checkAndPut_result result = new checkAndPut_result(); try { @@ -4924,16 +5122,16 @@ public class Hbase { } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("enableTable", new enableTable()); processMap.put("disableTable", new disableTable()); processMap.put("isTableEnabled", new isTableEnabled()); @@ -4991,40 +5189,48 @@ public class Hbase { return new enableTable_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; enableTable_result result = new enableTable_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5033,7 +5239,7 @@ public class Hbase { return false; } - public void start(I iface, enableTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, enableTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.enableTable(args.tableName,resultHandler); } } @@ -5047,40 +5253,48 @@ public class Hbase { return new disableTable_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; disableTable_result result = new disableTable_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5089,12 +5303,12 @@ public class Hbase { return false; } - public void start(I iface, disableTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, disableTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.disableTable(args.tableName,resultHandler); } } - public static class isTableEnabled extends org.apache.thrift.AsyncProcessFunction { + public static class isTableEnabled extends org.apache.thrift.AsyncProcessFunction { public isTableEnabled() { super("isTableEnabled"); } @@ -5103,42 +5317,50 @@ public class Hbase { return new isTableEnabled_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; isTableEnabled_result result = new isTableEnabled_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5147,7 +5369,7 @@ public class Hbase { return false; } - public void start(I iface, isTableEnabled_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, isTableEnabled_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.isTableEnabled(args.tableName,resultHandler); } } @@ -5161,40 +5383,48 @@ public class Hbase { return new compact_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; compact_result result = new compact_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5203,7 +5433,7 @@ public class Hbase { return false; } - public void start(I iface, compact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, compact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.compact(args.tableNameOrRegionName,resultHandler); } } @@ -5217,40 +5447,48 @@ public class Hbase { return new majorCompact_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; majorCompact_result result = new majorCompact_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5259,12 +5497,12 @@ public class Hbase { return false; } - public void start(I iface, majorCompact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, majorCompact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.majorCompact(args.tableNameOrRegionName,resultHandler); } } - public static class getTableNames extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableNames extends org.apache.thrift.AsyncProcessFunction> { public getTableNames() { super("getTableNames"); } @@ -5273,41 +5511,49 @@ public class Hbase { return new getTableNames_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getTableNames_result result = new getTableNames_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5316,12 +5562,12 @@ public class Hbase { return false; } - public void start(I iface, getTableNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getTableNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getTableNames(resultHandler); } } - public static class getColumnDescriptors extends org.apache.thrift.AsyncProcessFunction> { + public static class getColumnDescriptors extends org.apache.thrift.AsyncProcessFunction> { public getColumnDescriptors() { super("getColumnDescriptors"); } @@ -5330,41 +5576,49 @@ public class Hbase { return new getColumnDescriptors_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getColumnDescriptors_result result = new getColumnDescriptors_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5373,12 +5627,12 @@ public class Hbase { return false; } - public void start(I iface, getColumnDescriptors_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getColumnDescriptors_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getColumnDescriptors(args.tableName,resultHandler); } } - public static class getTableRegions extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableRegions extends org.apache.thrift.AsyncProcessFunction> { public getTableRegions() { super("getTableRegions"); } @@ -5387,41 +5641,49 @@ public class Hbase { return new getTableRegions_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getTableRegions_result result = new getTableRegions_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5430,7 +5692,7 @@ public class Hbase { return false; } - public void start(I iface, getTableRegions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getTableRegions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getTableRegions(args.tableName,resultHandler); } } @@ -5444,50 +5706,56 @@ public class Hbase { return new createTable_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5496,7 +5764,7 @@ public class Hbase { return false; } - public void start(I iface, createTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, createTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.createTable(args.tableName, args.columnFamilies,resultHandler); } } @@ -5510,40 +5778,48 @@ public class Hbase { return new deleteTable_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteTable_result result = new deleteTable_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5552,12 +5828,12 @@ public class Hbase { return false; } - public void start(I iface, deleteTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteTable(args.tableName,resultHandler); } } - public static class get extends org.apache.thrift.AsyncProcessFunction> { + public static class get extends org.apache.thrift.AsyncProcessFunction> { public get() { super("get"); } @@ -5566,41 +5842,49 @@ public class Hbase { return new get_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; get_result result = new get_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5609,12 +5893,12 @@ public class Hbase { return false; } - public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.get(args.tableName, args.row, args.column, args.attributes,resultHandler); } } - public static class getVer extends org.apache.thrift.AsyncProcessFunction> { + public static class getVer extends org.apache.thrift.AsyncProcessFunction> { public getVer() { super("getVer"); } @@ -5623,41 +5907,49 @@ public class Hbase { return new getVer_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getVer_result result = new getVer_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5666,12 +5958,12 @@ public class Hbase { return false; } - public void start(I iface, getVer_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getVer_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes,resultHandler); } } - public static class getVerTs extends org.apache.thrift.AsyncProcessFunction> { + public static class getVerTs extends org.apache.thrift.AsyncProcessFunction> { public getVerTs() { super("getVerTs"); } @@ -5680,41 +5972,49 @@ public class Hbase { return new getVerTs_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getVerTs_result result = new getVerTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5723,12 +6023,12 @@ public class Hbase { return false; } - public void start(I iface, getVerTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getVerTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.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 static class getRow extends org.apache.thrift.AsyncProcessFunction> { public getRow() { super("getRow"); } @@ -5737,41 +6037,49 @@ public class Hbase { return new getRow_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRow_result result = new getRow_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5780,12 +6088,12 @@ public class Hbase { return false; } - public void start(I iface, getRow_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRow_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRow(args.tableName, args.row, args.attributes,resultHandler); } } - public static class getRowWithColumns extends org.apache.thrift.AsyncProcessFunction> { + public static class getRowWithColumns extends org.apache.thrift.AsyncProcessFunction> { public getRowWithColumns() { super("getRowWithColumns"); } @@ -5794,41 +6102,49 @@ public class Hbase { return new getRowWithColumns_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRowWithColumns_result result = new getRowWithColumns_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5837,12 +6153,12 @@ public class Hbase { return false; } - public void start(I iface, getRowWithColumns_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRowWithColumns_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes,resultHandler); } } - public static class getRowTs extends org.apache.thrift.AsyncProcessFunction> { + public static class getRowTs extends org.apache.thrift.AsyncProcessFunction> { public getRowTs() { super("getRowTs"); } @@ -5851,41 +6167,49 @@ public class Hbase { return new getRowTs_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRowTs_result result = new getRowTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5894,12 +6218,12 @@ public class Hbase { return false; } - public void start(I iface, getRowTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRowTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRowTs(args.tableName, args.row, args.timestamp, args.attributes,resultHandler); } } - public static class getRowWithColumnsTs extends org.apache.thrift.AsyncProcessFunction> { + public static class getRowWithColumnsTs extends org.apache.thrift.AsyncProcessFunction> { public getRowWithColumnsTs() { super("getRowWithColumnsTs"); } @@ -5908,41 +6232,49 @@ public class Hbase { return new getRowWithColumnsTs_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRowWithColumnsTs_result result = new getRowWithColumnsTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5951,12 +6283,12 @@ public class Hbase { return false; } - public void start(I iface, getRowWithColumnsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRowWithColumnsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes,resultHandler); } } - public static class getRows extends org.apache.thrift.AsyncProcessFunction> { + public static class getRows extends org.apache.thrift.AsyncProcessFunction> { public getRows() { super("getRows"); } @@ -5965,41 +6297,49 @@ public class Hbase { return new getRows_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRows_result result = new getRows_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6008,12 +6348,12 @@ public class Hbase { return false; } - public void start(I iface, getRows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRows(args.tableName, args.rows, args.attributes,resultHandler); } } - public static class getRowsWithColumns extends org.apache.thrift.AsyncProcessFunction> { + public static class getRowsWithColumns extends org.apache.thrift.AsyncProcessFunction> { public getRowsWithColumns() { super("getRowsWithColumns"); } @@ -6022,41 +6362,49 @@ public class Hbase { return new getRowsWithColumns_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRowsWithColumns_result result = new getRowsWithColumns_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6065,12 +6413,12 @@ public class Hbase { return false; } - public void start(I iface, getRowsWithColumns_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRowsWithColumns_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes,resultHandler); } } - public static class getRowsTs extends org.apache.thrift.AsyncProcessFunction> { + public static class getRowsTs extends org.apache.thrift.AsyncProcessFunction> { public getRowsTs() { super("getRowsTs"); } @@ -6079,41 +6427,49 @@ public class Hbase { return new getRowsTs_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRowsTs_result result = new getRowsTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6122,12 +6478,12 @@ public class Hbase { return false; } - public void start(I iface, getRowsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRowsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes,resultHandler); } } - public static class getRowsWithColumnsTs extends org.apache.thrift.AsyncProcessFunction> { + public static class getRowsWithColumnsTs extends org.apache.thrift.AsyncProcessFunction> { public getRowsWithColumnsTs() { super("getRowsWithColumnsTs"); } @@ -6136,41 +6492,49 @@ public class Hbase { return new getRowsWithColumnsTs_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6179,7 +6543,7 @@ public class Hbase { return false; } - public void start(I iface, getRowsWithColumnsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRowsWithColumnsTs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes,resultHandler); } } @@ -6193,45 +6557,52 @@ public class Hbase { return new mutateRow_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6240,7 +6611,7 @@ public class Hbase { return false; } - public void start(I iface, mutateRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, mutateRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.mutateRow(args.tableName, args.row, args.mutations, args.attributes,resultHandler); } } @@ -6254,45 +6625,52 @@ public class Hbase { return new mutateRowTs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6301,7 +6679,7 @@ public class Hbase { return false; } - public void start(I iface, mutateRowTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, mutateRowTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes,resultHandler); } } @@ -6315,45 +6693,52 @@ public class Hbase { return new mutateRows_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6362,7 +6747,7 @@ public class Hbase { return false; } - public void start(I iface, mutateRows_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, mutateRows_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.mutateRows(args.tableName, args.rowBatches, args.attributes,resultHandler); } } @@ -6376,45 +6761,52 @@ public class Hbase { return new mutateRowsTs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6423,12 +6815,12 @@ public class Hbase { return false; } - public void start(I iface, mutateRowsTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, mutateRowsTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes,resultHandler); } } - public static class atomicIncrement extends org.apache.thrift.AsyncProcessFunction { + public static class atomicIncrement extends org.apache.thrift.AsyncProcessFunction { public atomicIncrement() { super("atomicIncrement"); } @@ -6437,47 +6829,54 @@ public class Hbase { return new atomicIncrement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Long o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6486,7 +6885,7 @@ public class Hbase { return false; } - public void start(I iface, atomicIncrement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, atomicIncrement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.atomicIncrement(args.tableName, args.row, args.column, args.value,resultHandler); } } @@ -6500,40 +6899,48 @@ public class Hbase { return new deleteAll_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteAll_result result = new deleteAll_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6542,7 +6949,7 @@ public class Hbase { return false; } - public void start(I iface, deleteAll_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteAll_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteAll(args.tableName, args.row, args.column, args.attributes,resultHandler); } } @@ -6556,40 +6963,48 @@ public class Hbase { return new deleteAllTs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteAllTs_result result = new deleteAllTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6598,7 +7013,7 @@ public class Hbase { return false; } - public void start(I iface, deleteAllTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteAllTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes,resultHandler); } } @@ -6612,40 +7027,48 @@ public class Hbase { return new deleteAllRow_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteAllRow_result result = new deleteAllRow_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6654,7 +7077,7 @@ public class Hbase { return false; } - public void start(I iface, deleteAllRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteAllRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteAllRow(args.tableName, args.row, args.attributes,resultHandler); } } @@ -6668,40 +7091,48 @@ public class Hbase { return new increment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; increment_result result = new increment_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6710,7 +7141,7 @@ public class Hbase { return false; } - public void start(I iface, increment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, increment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.increment(args.increment,resultHandler); } } @@ -6724,40 +7155,48 @@ public class Hbase { return new incrementRows_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; incrementRows_result result = new incrementRows_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6766,7 +7205,7 @@ public class Hbase { return false; } - public void start(I iface, incrementRows_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, incrementRows_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.incrementRows(args.increments,resultHandler); } } @@ -6780,40 +7219,48 @@ public class Hbase { return new deleteAllRowTs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteAllRowTs_result result = new deleteAllRowTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6822,12 +7269,12 @@ public class Hbase { return false; } - public void start(I iface, deleteAllRowTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteAllRowTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes,resultHandler); } } - public static class scannerOpenWithScan extends org.apache.thrift.AsyncProcessFunction { + public static class scannerOpenWithScan extends org.apache.thrift.AsyncProcessFunction { public scannerOpenWithScan() { super("scannerOpenWithScan"); } @@ -6836,42 +7283,50 @@ public class Hbase { return new scannerOpenWithScan_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; scannerOpenWithScan_result result = new scannerOpenWithScan_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6880,12 +7335,12 @@ public class Hbase { return false; } - public void start(I iface, scannerOpenWithScan_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, scannerOpenWithScan_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.scannerOpenWithScan(args.tableName, args.scan, args.attributes,resultHandler); } } - public static class scannerOpen extends org.apache.thrift.AsyncProcessFunction { + public static class scannerOpen extends org.apache.thrift.AsyncProcessFunction { public scannerOpen() { super("scannerOpen"); } @@ -6894,42 +7349,50 @@ public class Hbase { return new scannerOpen_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; scannerOpen_result result = new scannerOpen_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6938,12 +7401,12 @@ public class Hbase { return false; } - public void start(I iface, scannerOpen_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, scannerOpen_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes,resultHandler); } } - public static class scannerOpenWithStop extends org.apache.thrift.AsyncProcessFunction { + public static class scannerOpenWithStop extends org.apache.thrift.AsyncProcessFunction { public scannerOpenWithStop() { super("scannerOpenWithStop"); } @@ -6952,42 +7415,50 @@ public class Hbase { return new scannerOpenWithStop_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; scannerOpenWithStop_result result = new scannerOpenWithStop_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6996,12 +7467,12 @@ public class Hbase { return false; } - public void start(I iface, scannerOpenWithStop_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, scannerOpenWithStop_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes,resultHandler); } } - public static class scannerOpenWithPrefix extends org.apache.thrift.AsyncProcessFunction { + public static class scannerOpenWithPrefix extends org.apache.thrift.AsyncProcessFunction { public scannerOpenWithPrefix() { super("scannerOpenWithPrefix"); } @@ -7010,42 +7481,50 @@ public class Hbase { return new scannerOpenWithPrefix_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7054,12 +7533,12 @@ public class Hbase { return false; } - public void start(I iface, scannerOpenWithPrefix_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, scannerOpenWithPrefix_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes,resultHandler); } } - public static class scannerOpenTs extends org.apache.thrift.AsyncProcessFunction { + public static class scannerOpenTs extends org.apache.thrift.AsyncProcessFunction { public scannerOpenTs() { super("scannerOpenTs"); } @@ -7068,42 +7547,50 @@ public class Hbase { return new scannerOpenTs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; scannerOpenTs_result result = new scannerOpenTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7112,12 +7599,12 @@ public class Hbase { return false; } - public void start(I iface, scannerOpenTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, scannerOpenTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes,resultHandler); } } - public static class scannerOpenWithStopTs extends org.apache.thrift.AsyncProcessFunction { + public static class scannerOpenWithStopTs extends org.apache.thrift.AsyncProcessFunction { public scannerOpenWithStopTs() { super("scannerOpenWithStopTs"); } @@ -7126,42 +7613,50 @@ public class Hbase { return new scannerOpenWithStopTs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7170,12 +7665,12 @@ public class Hbase { return false; } - public void start(I iface, scannerOpenWithStopTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, scannerOpenWithStopTs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.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 static class scannerGet extends org.apache.thrift.AsyncProcessFunction> { public scannerGet() { super("scannerGet"); } @@ -7184,46 +7679,53 @@ public class Hbase { return new scannerGet_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7232,12 +7734,12 @@ public class Hbase { return false; } - public void start(I iface, scannerGet_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, scannerGet_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.scannerGet(args.id,resultHandler); } } - public static class scannerGetList extends org.apache.thrift.AsyncProcessFunction> { + public static class scannerGetList extends org.apache.thrift.AsyncProcessFunction> { public scannerGetList() { super("scannerGetList"); } @@ -7246,46 +7748,53 @@ public class Hbase { return new scannerGetList_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7294,7 +7803,7 @@ public class Hbase { return false; } - public void start(I iface, scannerGetList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, scannerGetList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.scannerGetList(args.id, args.nbRows,resultHandler); } } @@ -7308,45 +7817,52 @@ public class Hbase { return new scannerClose_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7355,12 +7871,12 @@ public class Hbase { return false; } - public void start(I iface, scannerClose_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, scannerClose_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.scannerClose(args.id,resultHandler); } } - public static class getRowOrBefore extends org.apache.thrift.AsyncProcessFunction> { + public static class getRowOrBefore extends org.apache.thrift.AsyncProcessFunction> { public getRowOrBefore() { super("getRowOrBefore"); } @@ -7369,41 +7885,49 @@ public class Hbase { return new getRowOrBefore_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getRowOrBefore_result result = new getRowOrBefore_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRowOrBefore_result result = new getRowOrBefore_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7412,7 +7936,7 @@ public class Hbase { return false; } - public void start(I iface, getRowOrBefore_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getRowOrBefore_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getRowOrBefore(args.tableName, args.row, args.family,resultHandler); } } @@ -7426,41 +7950,49 @@ public class Hbase { return new getRegionInfo_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRegionInfo_result result = new getRegionInfo_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7469,12 +8001,12 @@ public class Hbase { return false; } - public void start(I iface, getRegionInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getRegionInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getRegionInfo(args.row,resultHandler); } } - public static class append extends org.apache.thrift.AsyncProcessFunction> { + public static class append extends org.apache.thrift.AsyncProcessFunction> { public append() { super("append"); } @@ -7483,41 +8015,49 @@ public class Hbase { return new append_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; append_result result = new append_result(); if (e instanceof IOError) { - result.io = (IOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (IOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7526,12 +8066,12 @@ public class Hbase { return false; } - public void start(I iface, append_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, append_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.append(args.append,resultHandler); } } - public static class checkAndPut extends org.apache.thrift.AsyncProcessFunction { + public static class checkAndPut extends org.apache.thrift.AsyncProcessFunction { public checkAndPut() { super("checkAndPut"); } @@ -7540,47 +8080,54 @@ public class Hbase { return new checkAndPut_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7589,7 +8136,7 @@ public class Hbase { return false; } - public void start(I iface, checkAndPut_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, checkAndPut_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.checkAndPut(args.tableName, args.row, args.column, args.value, args.mput, args.attributes,resultHandler); } } @@ -7601,16 +8148,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new enableTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new enableTable_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new enableTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new enableTable_argsTupleSchemeFactory(); /** * name of the table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // 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 { @@ -7619,10 +8163,10 @@ public class Hbase { */ TABLE_NAME((short)1, "tableName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7630,6 +8174,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -7645,21 +8190,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7668,18 +8214,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap); } @@ -7687,7 +8233,7 @@ public class Hbase { } public enableTable_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -7698,7 +8244,7 @@ public class Hbase { */ public enableTable_args(enableTable_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } } @@ -7719,7 +8265,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -7727,11 +8273,11 @@ public class Hbase { * name of the table */ public enableTable_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public enableTable_args setTableName(ByteBuffer tableName) { + public enableTable_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -7751,43 +8297,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE_NAME: return isSetTableName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof enableTable_args) @@ -7798,6 +8349,8 @@ public class Hbase { public boolean equals(enableTable_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -7813,14 +8366,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -7831,7 +8383,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -7844,21 +8396,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("enableTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_args("); boolean first = true; sb.append("tableName:"); @@ -7885,7 +8438,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -7893,13 +8446,13 @@ public class Hbase { } } - private static class enableTable_argsStandardSchemeFactory implements SchemeFactory { + private static class enableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public enableTable_argsStandardScheme getScheme() { return new enableTable_argsStandardScheme(); } } - private static class enableTable_argsStandardScheme extends StandardScheme { + private static class enableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7945,18 +8498,18 @@ public class Hbase { } - private static class enableTable_argsTupleSchemeFactory implements SchemeFactory { + private static class enableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public enableTable_argsTupleScheme getScheme() { return new enableTable_argsTupleScheme(); } } - private static class enableTable_argsTupleScheme extends TupleScheme { + private static class enableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -7968,8 +8521,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -7977,6 +8530,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class enableTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -7984,22 +8540,19 @@ public class Hbase { 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 enableTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new enableTable_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new enableTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new enableTable_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8007,6 +8560,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -8022,21 +8576,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8045,18 +8600,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_result.class, metaDataMap); } @@ -8088,11 +8643,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public enableTable_result setIo(IOError io) { + public enableTable_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -8112,7 +8668,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -8125,30 +8681,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof enableTable_result) @@ -8159,6 +8716,8 @@ public class Hbase { public boolean equals(enableTable_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -8174,14 +8733,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8192,7 +8750,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -8205,21 +8763,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("enableTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_result("); boolean first = true; sb.append("io:"); @@ -8246,7 +8805,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -8254,13 +8813,13 @@ public class Hbase { } } - private static class enableTable_resultStandardSchemeFactory implements SchemeFactory { + private static class enableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public enableTable_resultStandardScheme getScheme() { return new enableTable_resultStandardScheme(); } } - private static class enableTable_resultStandardScheme extends StandardScheme { + private static class enableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8307,18 +8866,18 @@ public class Hbase { } - private static class enableTable_resultTupleSchemeFactory implements SchemeFactory { + private static class enableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public enableTable_resultTupleScheme getScheme() { return new enableTable_resultTupleScheme(); } } - private static class enableTable_resultTupleScheme extends TupleScheme { + private static class enableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -8330,8 +8889,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -8340,6 +8899,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class disableTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8347,16 +8909,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new disableTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new disableTable_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new disableTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new disableTable_argsTupleSchemeFactory(); /** * name of the table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // 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 { @@ -8365,10 +8924,10 @@ public class Hbase { */ TABLE_NAME((short)1, "tableName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8376,6 +8935,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -8391,21 +8951,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8414,18 +8975,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap); } @@ -8433,7 +8994,7 @@ public class Hbase { } public disableTable_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -8444,7 +9005,7 @@ public class Hbase { */ public disableTable_args(disableTable_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } } @@ -8465,7 +9026,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -8473,11 +9034,11 @@ public class Hbase { * name of the table */ public disableTable_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public disableTable_args setTableName(ByteBuffer tableName) { + public disableTable_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -8497,43 +9058,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE_NAME: return isSetTableName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof disableTable_args) @@ -8544,6 +9110,8 @@ public class Hbase { public boolean equals(disableTable_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -8559,14 +9127,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8577,7 +9144,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -8590,21 +9157,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("disableTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_args("); boolean first = true; sb.append("tableName:"); @@ -8631,7 +9199,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -8639,13 +9207,13 @@ public class Hbase { } } - private static class disableTable_argsStandardSchemeFactory implements SchemeFactory { + private static class disableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public disableTable_argsStandardScheme getScheme() { return new disableTable_argsStandardScheme(); } } - private static class disableTable_argsStandardScheme extends StandardScheme { + private static class disableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8691,18 +9259,18 @@ public class Hbase { } - private static class disableTable_argsTupleSchemeFactory implements SchemeFactory { + private static class disableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public disableTable_argsTupleScheme getScheme() { return new disableTable_argsTupleScheme(); } } - private static class disableTable_argsTupleScheme extends TupleScheme { + private static class disableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -8714,8 +9282,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -8723,6 +9291,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class disableTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8730,22 +9301,19 @@ public class Hbase { 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 disableTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new disableTable_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new disableTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new disableTable_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8753,6 +9321,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -8768,21 +9337,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8791,18 +9361,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_result.class, metaDataMap); } @@ -8834,11 +9404,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public disableTable_result setIo(IOError io) { + public disableTable_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -8858,7 +9429,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -8871,30 +9442,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof disableTable_result) @@ -8905,6 +9477,8 @@ public class Hbase { public boolean equals(disableTable_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -8920,14 +9494,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8938,7 +9511,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -8951,21 +9524,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("disableTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_result("); boolean first = true; sb.append("io:"); @@ -8992,7 +9566,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -9000,13 +9574,13 @@ public class Hbase { } } - private static class disableTable_resultStandardSchemeFactory implements SchemeFactory { + private static class disableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public disableTable_resultStandardScheme getScheme() { return new disableTable_resultStandardScheme(); } } - private static class disableTable_resultStandardScheme extends StandardScheme { + private static class disableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9053,18 +9627,18 @@ public class Hbase { } - private static class disableTable_resultTupleSchemeFactory implements SchemeFactory { + private static class disableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public disableTable_resultTupleScheme getScheme() { return new disableTable_resultTupleScheme(); } } - private static class disableTable_resultTupleScheme extends TupleScheme { + private static class disableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -9076,8 +9650,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -9086,6 +9660,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class isTableEnabled_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9093,16 +9670,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new isTableEnabled_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isTableEnabled_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableEnabled_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableEnabled_argsTupleSchemeFactory(); /** * name of the table to check */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // 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 { @@ -9111,10 +9685,10 @@ public class Hbase { */ TABLE_NAME((short)1, "tableName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9122,6 +9696,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -9137,21 +9712,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -9160,18 +9736,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_args.class, metaDataMap); } @@ -9179,7 +9755,7 @@ public class Hbase { } public isTableEnabled_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -9190,7 +9766,7 @@ public class Hbase { */ public isTableEnabled_args(isTableEnabled_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } } @@ -9211,7 +9787,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -9219,11 +9795,11 @@ public class Hbase { * name of the table to check */ public isTableEnabled_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public isTableEnabled_args setTableName(ByteBuffer tableName) { + public isTableEnabled_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -9243,43 +9819,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE_NAME: return isSetTableName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof isTableEnabled_args) @@ -9290,6 +9871,8 @@ public class Hbase { public boolean equals(isTableEnabled_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -9305,14 +9888,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -9323,7 +9905,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -9336,21 +9918,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("isTableEnabled_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_args("); boolean first = true; sb.append("tableName:"); @@ -9377,7 +9960,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -9385,13 +9968,13 @@ public class Hbase { } } - private static class isTableEnabled_argsStandardSchemeFactory implements SchemeFactory { + private static class isTableEnabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableEnabled_argsStandardScheme getScheme() { return new isTableEnabled_argsStandardScheme(); } } - private static class isTableEnabled_argsStandardScheme extends StandardScheme { + private static class isTableEnabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9437,18 +10020,18 @@ public class Hbase { } - private static class isTableEnabled_argsTupleSchemeFactory implements SchemeFactory { + private static class isTableEnabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableEnabled_argsTupleScheme getScheme() { return new isTableEnabled_argsTupleScheme(); } } - private static class isTableEnabled_argsTupleScheme extends TupleScheme { + private static class isTableEnabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -9460,8 +10043,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -9469,6 +10052,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class isTableEnabled_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9477,24 +10063,21 @@ public class Hbase { 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 isTableEnabled_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isTableEnabled_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableEnabled_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableEnabled_resultTupleSchemeFactory(); public boolean success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9502,6 +10085,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -9519,21 +10103,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -9542,7 +10127,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -9550,14 +10135,14 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_result.class, metaDataMap); } @@ -9607,23 +10192,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public isTableEnabled_result setIo(IOError io) { + public isTableEnabled_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -9643,13 +10229,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -9664,7 +10250,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -9673,13 +10260,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -9688,11 +10275,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof isTableEnabled_result) @@ -9703,6 +10290,8 @@ public class Hbase { public boolean equals(isTableEnabled_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -9727,19 +10316,15 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -9750,7 +10335,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -9760,7 +10345,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -9773,21 +10358,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("isTableEnabled_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_result("); boolean first = true; sb.append("success:"); @@ -9818,7 +10404,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -9828,13 +10414,13 @@ public class Hbase { } } - private static class isTableEnabled_resultStandardSchemeFactory implements SchemeFactory { + private static class isTableEnabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableEnabled_resultStandardScheme getScheme() { return new isTableEnabled_resultStandardScheme(); } } - private static class isTableEnabled_resultStandardScheme extends StandardScheme { + private static class isTableEnabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9894,18 +10480,18 @@ public class Hbase { } - private static class isTableEnabled_resultTupleSchemeFactory implements SchemeFactory { + private static class isTableEnabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableEnabled_resultTupleScheme getScheme() { return new isTableEnabled_resultTupleScheme(); } } - private static class isTableEnabled_resultTupleScheme extends TupleScheme { + private static class isTableEnabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -9923,8 +10509,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -9937,6 +10523,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9944,22 +10533,19 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new compact_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new compact_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new compact_argsTupleSchemeFactory(); - public ByteBuffer tableNameOrRegionName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableNameOrRegionName; // 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_NAME_OR_REGION_NAME((short)1, "tableNameOrRegionName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9967,6 +10553,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME_OR_REGION_NAME @@ -9982,21 +10569,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10005,18 +10593,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME_OR_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableNameOrRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_args.class, metaDataMap); } @@ -10024,7 +10612,7 @@ public class Hbase { } public compact_args( - ByteBuffer tableNameOrRegionName) + java.nio.ByteBuffer tableNameOrRegionName) { this(); this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); @@ -10035,7 +10623,7 @@ public class Hbase { */ public compact_args(compact_args other) { if (other.isSetTableNameOrRegionName()) { - this.tableNameOrRegionName = other.tableNameOrRegionName; + this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(other.tableNameOrRegionName); } } @@ -10053,16 +10641,16 @@ public class Hbase { return tableNameOrRegionName == null ? null : tableNameOrRegionName.array(); } - public ByteBuffer bufferForTableNameOrRegionName() { + public java.nio.ByteBuffer bufferForTableNameOrRegionName() { return org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); } public compact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) { - this.tableNameOrRegionName = tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableNameOrRegionName, tableNameOrRegionName.length)); + this.tableNameOrRegionName = tableNameOrRegionName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableNameOrRegionName.clone()); return this; } - public compact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) { + public compact_args setTableNameOrRegionName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableNameOrRegionName) { this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); return this; } @@ -10082,43 +10670,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME_OR_REGION_NAME: if (value == null) { unsetTableNameOrRegionName(); } else { - setTableNameOrRegionName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableNameOrRegionName((byte[])value); + } else { + setTableNameOrRegionName((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME_OR_REGION_NAME: return getTableNameOrRegionName(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE_NAME_OR_REGION_NAME: return isSetTableNameOrRegionName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof compact_args) @@ -10129,6 +10722,8 @@ public class Hbase { public boolean equals(compact_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableNameOrRegionName = true && this.isSetTableNameOrRegionName(); boolean that_present_tableNameOrRegionName = true && that.isSetTableNameOrRegionName(); @@ -10144,14 +10739,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName()); - list.add(present_tableNameOrRegionName); - if (present_tableNameOrRegionName) - list.add(tableNameOrRegionName); + hashCode = hashCode * 8191 + ((isSetTableNameOrRegionName()) ? 131071 : 524287); + if (isSetTableNameOrRegionName()) + hashCode = hashCode * 8191 + tableNameOrRegionName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10162,7 +10756,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(other.isSetTableNameOrRegionName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(other.isSetTableNameOrRegionName()); if (lastComparison != 0) { return lastComparison; } @@ -10175,21 +10769,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("compact_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("compact_args("); boolean first = true; sb.append("tableNameOrRegionName:"); @@ -10216,7 +10811,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10224,13 +10819,13 @@ public class Hbase { } } - private static class compact_argsStandardSchemeFactory implements SchemeFactory { + private static class compact_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public compact_argsStandardScheme getScheme() { return new compact_argsStandardScheme(); } } - private static class compact_argsStandardScheme extends StandardScheme { + private static class compact_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, compact_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -10276,18 +10871,18 @@ public class Hbase { } - private static class compact_argsTupleSchemeFactory implements SchemeFactory { + private static class compact_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public compact_argsTupleScheme getScheme() { return new compact_argsTupleScheme(); } } - private static class compact_argsTupleScheme extends TupleScheme { + private static class compact_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableNameOrRegionName()) { optionals.set(0); } @@ -10299,8 +10894,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tableNameOrRegionName = iprot.readBinary(); struct.setTableNameOrRegionNameIsSet(true); @@ -10308,6 +10903,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10315,22 +10913,19 @@ public class Hbase { 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 compact_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new compact_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new compact_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10338,6 +10933,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -10353,21 +10949,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10376,18 +10973,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_result.class, metaDataMap); } @@ -10419,11 +11016,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public compact_result setIo(IOError io) { + public compact_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -10443,7 +11041,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -10456,30 +11054,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof compact_result) @@ -10490,6 +11089,8 @@ public class Hbase { public boolean equals(compact_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -10505,14 +11106,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10523,7 +11123,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -10536,21 +11136,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("compact_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("compact_result("); boolean first = true; sb.append("io:"); @@ -10577,7 +11178,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10585,13 +11186,13 @@ public class Hbase { } } - private static class compact_resultStandardSchemeFactory implements SchemeFactory { + private static class compact_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public compact_resultStandardScheme getScheme() { return new compact_resultStandardScheme(); } } - private static class compact_resultStandardScheme extends StandardScheme { + private static class compact_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -10638,18 +11239,18 @@ public class Hbase { } - private static class compact_resultTupleSchemeFactory implements SchemeFactory { + private static class compact_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public compact_resultTupleScheme getScheme() { return new compact_resultTupleScheme(); } } - private static class compact_resultTupleScheme extends TupleScheme { + private static class compact_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -10661,8 +11262,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -10671,6 +11272,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class majorCompact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10678,22 +11282,19 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new majorCompact_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new majorCompact_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new majorCompact_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new majorCompact_argsTupleSchemeFactory(); - public ByteBuffer tableNameOrRegionName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableNameOrRegionName; // 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_NAME_OR_REGION_NAME((short)1, "tableNameOrRegionName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10701,6 +11302,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME_OR_REGION_NAME @@ -10716,21 +11318,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10739,18 +11342,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME_OR_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableNameOrRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(majorCompact_args.class, metaDataMap); } @@ -10758,7 +11361,7 @@ public class Hbase { } public majorCompact_args( - ByteBuffer tableNameOrRegionName) + java.nio.ByteBuffer tableNameOrRegionName) { this(); this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); @@ -10769,7 +11372,7 @@ public class Hbase { */ public majorCompact_args(majorCompact_args other) { if (other.isSetTableNameOrRegionName()) { - this.tableNameOrRegionName = other.tableNameOrRegionName; + this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(other.tableNameOrRegionName); } } @@ -10787,16 +11390,16 @@ public class Hbase { return tableNameOrRegionName == null ? null : tableNameOrRegionName.array(); } - public ByteBuffer bufferForTableNameOrRegionName() { + public java.nio.ByteBuffer bufferForTableNameOrRegionName() { return org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); } public majorCompact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) { - this.tableNameOrRegionName = tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableNameOrRegionName, tableNameOrRegionName.length)); + this.tableNameOrRegionName = tableNameOrRegionName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableNameOrRegionName.clone()); return this; } - public majorCompact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) { + public majorCompact_args setTableNameOrRegionName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableNameOrRegionName) { this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); return this; } @@ -10816,43 +11419,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME_OR_REGION_NAME: if (value == null) { unsetTableNameOrRegionName(); } else { - setTableNameOrRegionName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableNameOrRegionName((byte[])value); + } else { + setTableNameOrRegionName((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME_OR_REGION_NAME: return getTableNameOrRegionName(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE_NAME_OR_REGION_NAME: return isSetTableNameOrRegionName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof majorCompact_args) @@ -10863,6 +11471,8 @@ public class Hbase { public boolean equals(majorCompact_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableNameOrRegionName = true && this.isSetTableNameOrRegionName(); boolean that_present_tableNameOrRegionName = true && that.isSetTableNameOrRegionName(); @@ -10878,14 +11488,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName()); - list.add(present_tableNameOrRegionName); - if (present_tableNameOrRegionName) - list.add(tableNameOrRegionName); + hashCode = hashCode * 8191 + ((isSetTableNameOrRegionName()) ? 131071 : 524287); + if (isSetTableNameOrRegionName()) + hashCode = hashCode * 8191 + tableNameOrRegionName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10896,7 +11505,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(other.isSetTableNameOrRegionName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(other.isSetTableNameOrRegionName()); if (lastComparison != 0) { return lastComparison; } @@ -10909,21 +11518,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("majorCompact_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("majorCompact_args("); boolean first = true; sb.append("tableNameOrRegionName:"); @@ -10950,7 +11560,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10958,13 +11568,13 @@ public class Hbase { } } - private static class majorCompact_argsStandardSchemeFactory implements SchemeFactory { + private static class majorCompact_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public majorCompact_argsStandardScheme getScheme() { return new majorCompact_argsStandardScheme(); } } - private static class majorCompact_argsStandardScheme extends StandardScheme { + private static class majorCompact_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, majorCompact_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11010,18 +11620,18 @@ public class Hbase { } - private static class majorCompact_argsTupleSchemeFactory implements SchemeFactory { + private static class majorCompact_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public majorCompact_argsTupleScheme getScheme() { return new majorCompact_argsTupleScheme(); } } - private static class majorCompact_argsTupleScheme extends TupleScheme { + private static class majorCompact_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, majorCompact_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableNameOrRegionName()) { optionals.set(0); } @@ -11033,8 +11643,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, majorCompact_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tableNameOrRegionName = iprot.readBinary(); struct.setTableNameOrRegionNameIsSet(true); @@ -11042,6 +11652,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class majorCompact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11049,22 +11662,19 @@ public class Hbase { 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 majorCompact_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new majorCompact_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new majorCompact_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new majorCompact_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11072,6 +11682,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -11087,21 +11698,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11110,18 +11722,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(majorCompact_result.class, metaDataMap); } @@ -11153,11 +11765,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public majorCompact_result setIo(IOError io) { + public majorCompact_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -11177,7 +11790,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -11190,30 +11803,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof majorCompact_result) @@ -11224,6 +11838,8 @@ public class Hbase { public boolean equals(majorCompact_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -11239,14 +11855,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11257,7 +11872,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -11270,21 +11885,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("majorCompact_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("majorCompact_result("); boolean first = true; sb.append("io:"); @@ -11311,7 +11927,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11319,13 +11935,13 @@ public class Hbase { } } - private static class majorCompact_resultStandardSchemeFactory implements SchemeFactory { + private static class majorCompact_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public majorCompact_resultStandardScheme getScheme() { return new majorCompact_resultStandardScheme(); } } - private static class majorCompact_resultStandardScheme extends StandardScheme { + private static class majorCompact_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, majorCompact_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11372,18 +11988,18 @@ public class Hbase { } - private static class majorCompact_resultTupleSchemeFactory implements SchemeFactory { + private static class majorCompact_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public majorCompact_resultTupleScheme getScheme() { return new majorCompact_resultTupleScheme(); } } - private static class majorCompact_resultTupleScheme extends TupleScheme { + private static class majorCompact_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, majorCompact_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -11395,8 +12011,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, majorCompact_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -11405,27 +12021,27 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTableNames_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableNames_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableNames_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableNames_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11433,6 +12049,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -11446,21 +12063,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11469,14 +12087,14 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableNames_args.class, metaDataMap); } @@ -11497,30 +12115,31 @@ public class Hbase { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getTableNames_args) @@ -11531,15 +12150,17 @@ public class Hbase { public boolean equals(getTableNames_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -11553,21 +12174,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getTableNames_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableNames_args("); boolean first = true; sb.append(")"); @@ -11587,7 +12209,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11595,13 +12217,13 @@ public class Hbase { } } - private static class getTableNames_argsStandardSchemeFactory implements SchemeFactory { + private static class getTableNames_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNames_argsStandardScheme getScheme() { return new getTableNames_argsStandardScheme(); } } - private static class getTableNames_argsStandardScheme extends StandardScheme { + private static class getTableNames_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNames_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11634,25 +12256,28 @@ public class Hbase { } - private static class getTableNames_argsTupleSchemeFactory implements SchemeFactory { + private static class getTableNames_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNames_argsTupleScheme getScheme() { return new getTableNames_argsTupleScheme(); } } - private static class getTableNames_argsTupleScheme extends TupleScheme { + private static class getTableNames_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableNames_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableNames_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getTableNames_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11661,24 +12286,21 @@ public class Hbase { 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 getTableNames_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableNames_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableNames_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableNames_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11686,6 +12308,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -11703,21 +12326,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11726,21 +12350,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableNames_result.class, metaDataMap); } @@ -11748,7 +12372,7 @@ public class Hbase { } public getTableNames_result( - List success, + java.util.List success, IOError io) { this(); @@ -11761,9 +12385,9 @@ public class Hbase { */ public getTableNames_result(getTableNames_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (ByteBuffer other_element : other.success) { - __this__success.add(other_element); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); + for (java.nio.ByteBuffer other_element : other.success) { + __this__success.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.success = __this__success; } @@ -11786,22 +12410,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(ByteBuffer elem) { + public void addToSuccess(java.nio.ByteBuffer elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getTableNames_result setSuccess(List success) { + public getTableNames_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -11821,11 +12447,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getTableNames_result setIo(IOError io) { + public getTableNames_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -11845,13 +12472,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -11866,7 +12493,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -11875,13 +12503,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -11890,11 +12518,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getTableNames_result) @@ -11905,6 +12533,8 @@ public class Hbase { public boolean equals(getTableNames_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -11929,19 +12559,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11952,7 +12580,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -11962,7 +12590,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -11975,21 +12603,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getTableNames_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableNames_result("); boolean first = true; sb.append("success:"); @@ -12024,7 +12653,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12032,13 +12661,13 @@ public class Hbase { } } - private static class getTableNames_resultStandardSchemeFactory implements SchemeFactory { + private static class getTableNames_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNames_resultStandardScheme getScheme() { return new getTableNames_resultStandardScheme(); } } - private static class getTableNames_resultStandardScheme extends StandardScheme { + private static class getTableNames_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNames_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12054,8 +12683,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list50 = iprot.readListBegin(); - struct.success = new ArrayList(_list50.size); - ByteBuffer _elem51; + struct.success = new java.util.ArrayList(_list50.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem51; for (int _i52 = 0; _i52 < _list50.size; ++_i52) { _elem51 = iprot.readBinary(); @@ -12096,7 +12725,7 @@ public class Hbase { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (ByteBuffer _iter53 : struct.success) + for (java.nio.ByteBuffer _iter53 : struct.success) { oprot.writeBinary(_iter53); } @@ -12115,18 +12744,18 @@ public class Hbase { } - private static class getTableNames_resultTupleSchemeFactory implements SchemeFactory { + private static class getTableNames_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNames_resultTupleScheme getScheme() { return new getTableNames_resultTupleScheme(); } } - private static class getTableNames_resultTupleScheme extends TupleScheme { + private static class getTableNames_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableNames_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -12137,7 +12766,7 @@ public class Hbase { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ByteBuffer _iter54 : struct.success) + for (java.nio.ByteBuffer _iter54 : struct.success) { oprot.writeBinary(_iter54); } @@ -12150,13 +12779,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableNames_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - ByteBuffer _elem56; + struct.success = new java.util.ArrayList(_list55.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem56; for (int _i57 = 0; _i57 < _list55.size; ++_i57) { _elem56 = iprot.readBinary(); @@ -12173,6 +12802,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getColumnDescriptors_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12180,16 +12812,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getColumnDescriptors_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getColumnDescriptors_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getColumnDescriptors_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getColumnDescriptors_argsTupleSchemeFactory(); /** * table name */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // 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 { @@ -12198,10 +12827,10 @@ public class Hbase { */ TABLE_NAME((short)1, "tableName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12209,6 +12838,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -12224,21 +12854,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12247,18 +12878,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getColumnDescriptors_args.class, metaDataMap); } @@ -12266,7 +12897,7 @@ public class Hbase { } public getColumnDescriptors_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -12277,7 +12908,7 @@ public class Hbase { */ public getColumnDescriptors_args(getColumnDescriptors_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } } @@ -12298,7 +12929,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -12306,11 +12937,11 @@ public class Hbase { * table name */ public getColumnDescriptors_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getColumnDescriptors_args setTableName(ByteBuffer tableName) { + public getColumnDescriptors_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -12330,43 +12961,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE_NAME: return isSetTableName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getColumnDescriptors_args) @@ -12377,6 +13013,8 @@ public class Hbase { public boolean equals(getColumnDescriptors_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -12392,14 +13030,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12410,7 +13047,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -12423,21 +13060,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getColumnDescriptors_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getColumnDescriptors_args("); boolean first = true; sb.append("tableName:"); @@ -12464,7 +13102,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12472,13 +13110,13 @@ public class Hbase { } } - private static class getColumnDescriptors_argsStandardSchemeFactory implements SchemeFactory { + private static class getColumnDescriptors_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getColumnDescriptors_argsStandardScheme getScheme() { return new getColumnDescriptors_argsStandardScheme(); } } - private static class getColumnDescriptors_argsStandardScheme extends StandardScheme { + private static class getColumnDescriptors_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getColumnDescriptors_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12524,18 +13162,18 @@ public class Hbase { } - private static class getColumnDescriptors_argsTupleSchemeFactory implements SchemeFactory { + private static class getColumnDescriptors_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getColumnDescriptors_argsTupleScheme getScheme() { return new getColumnDescriptors_argsTupleScheme(); } } - private static class getColumnDescriptors_argsTupleScheme extends TupleScheme { + private static class getColumnDescriptors_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -12547,8 +13185,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -12556,6 +13194,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getColumnDescriptors_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12564,24 +13205,21 @@ public class Hbase { 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); 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 getColumnDescriptors_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getColumnDescriptors_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getColumnDescriptors_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getColumnDescriptors_resultTupleSchemeFactory(); - public Map success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.Map success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12589,6 +13227,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -12606,21 +13245,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12629,22 +13269,22 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDescriptor.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getColumnDescriptors_result.class, metaDataMap); } @@ -12652,7 +13292,7 @@ public class Hbase { } public getColumnDescriptors_result( - Map success, + java.util.Map success, IOError io) { this(); @@ -12665,13 +13305,13 @@ public class Hbase { */ public getColumnDescriptors_result(getColumnDescriptors_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success.size()); - for (Map.Entry other_element : other.success.entrySet()) { + java.util.Map __this__success = new java.util.HashMap(other.success.size()); + for (java.util.Map.Entry other_element : other.success.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); ColumnDescriptor other_element_value = other_element.getValue(); - ByteBuffer __this__success_copy_key = other_element_key; + java.nio.ByteBuffer __this__success_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); ColumnDescriptor __this__success_copy_value = new ColumnDescriptor(other_element_value); @@ -12698,18 +13338,19 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } - public void putToSuccess(ByteBuffer key, ColumnDescriptor val) { + public void putToSuccess(java.nio.ByteBuffer key, ColumnDescriptor val) { if (this.success == null) { - this.success = new HashMap(); + this.success = new java.util.HashMap(); } this.success.put(key, val); } - public Map getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getSuccess() { return this.success; } - public getColumnDescriptors_result setSuccess(Map success) { + public getColumnDescriptors_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.Map success) { this.success = success; return this; } @@ -12729,11 +13370,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getColumnDescriptors_result setIo(IOError io) { + public getColumnDescriptors_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -12753,13 +13395,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Map)value); + setSuccess((java.util.Map)value); } break; @@ -12774,7 +13416,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -12783,13 +13426,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -12798,11 +13441,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getColumnDescriptors_result) @@ -12813,6 +13456,8 @@ public class Hbase { public boolean equals(getColumnDescriptors_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -12837,19 +13482,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12860,7 +13503,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -12870,7 +13513,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -12883,21 +13526,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getColumnDescriptors_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getColumnDescriptors_result("); boolean first = true; sb.append("success:"); @@ -12932,7 +13576,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12940,13 +13584,13 @@ public class Hbase { } } - private static class getColumnDescriptors_resultStandardSchemeFactory implements SchemeFactory { + private static class getColumnDescriptors_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getColumnDescriptors_resultStandardScheme getScheme() { return new getColumnDescriptors_resultStandardScheme(); } } - private static class getColumnDescriptors_resultStandardScheme extends StandardScheme { + private static class getColumnDescriptors_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getColumnDescriptors_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12962,9 +13606,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map58.size); - ByteBuffer _key59; - ColumnDescriptor _val60; + struct.success = new java.util.HashMap(2*_map58.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key59; + @org.apache.thrift.annotation.Nullable ColumnDescriptor _val60; for (int _i61 = 0; _i61 < _map58.size; ++_i61) { _key59 = iprot.readBinary(); @@ -13007,7 +13651,7 @@ public class Hbase { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter62 : struct.success.entrySet()) + for (java.util.Map.Entry _iter62 : struct.success.entrySet()) { oprot.writeBinary(_iter62.getKey()); _iter62.getValue().write(oprot); @@ -13027,18 +13671,18 @@ public class Hbase { } - private static class getColumnDescriptors_resultTupleSchemeFactory implements SchemeFactory { + private static class getColumnDescriptors_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getColumnDescriptors_resultTupleScheme getScheme() { return new getColumnDescriptors_resultTupleScheme(); } } - private static class getColumnDescriptors_resultTupleScheme extends TupleScheme { + private static class getColumnDescriptors_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -13049,7 +13693,7 @@ public class Hbase { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter63 : struct.success.entrySet()) + for (java.util.Map.Entry _iter63 : struct.success.entrySet()) { oprot.writeBinary(_iter63.getKey()); _iter63.getValue().write(oprot); @@ -13063,14 +13707,14 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - ByteBuffer _key65; - ColumnDescriptor _val66; + struct.success = new java.util.HashMap(2*_map64.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key65; + @org.apache.thrift.annotation.Nullable ColumnDescriptor _val66; for (int _i67 = 0; _i67 < _map64.size; ++_i67) { _key65 = iprot.readBinary(); @@ -13089,6 +13733,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getTableRegions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13096,16 +13743,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTableRegions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableRegions_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableRegions_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableRegions_argsTupleSchemeFactory(); /** * table name */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // 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 { @@ -13114,10 +13758,10 @@ public class Hbase { */ TABLE_NAME((short)1, "tableName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -13125,6 +13769,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -13140,21 +13785,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -13163,18 +13809,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableRegions_args.class, metaDataMap); } @@ -13182,7 +13828,7 @@ public class Hbase { } public getTableRegions_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -13193,7 +13839,7 @@ public class Hbase { */ public getTableRegions_args(getTableRegions_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } } @@ -13214,7 +13860,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -13222,11 +13868,11 @@ public class Hbase { * table name */ public getTableRegions_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getTableRegions_args setTableName(ByteBuffer tableName) { + public getTableRegions_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -13246,43 +13892,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE_NAME: return isSetTableName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getTableRegions_args) @@ -13293,6 +13944,8 @@ public class Hbase { public boolean equals(getTableRegions_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -13308,14 +13961,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13326,7 +13978,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -13339,21 +13991,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getTableRegions_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableRegions_args("); boolean first = true; sb.append("tableName:"); @@ -13380,7 +14033,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13388,13 +14041,13 @@ public class Hbase { } } - private static class getTableRegions_argsStandardSchemeFactory implements SchemeFactory { + private static class getTableRegions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableRegions_argsStandardScheme getScheme() { return new getTableRegions_argsStandardScheme(); } } - private static class getTableRegions_argsStandardScheme extends StandardScheme { + private static class getTableRegions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableRegions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13440,18 +14093,18 @@ public class Hbase { } - private static class getTableRegions_argsTupleSchemeFactory implements SchemeFactory { + private static class getTableRegions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableRegions_argsTupleScheme getScheme() { return new getTableRegions_argsTupleScheme(); } } - private static class getTableRegions_argsTupleScheme extends TupleScheme { + private static class getTableRegions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableRegions_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -13463,8 +14116,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableRegions_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -13472,6 +14125,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getTableRegions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13480,24 +14136,21 @@ public class Hbase { 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 getTableRegions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableRegions_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableRegions_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableRegions_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -13505,6 +14158,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -13522,21 +14176,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -13545,21 +14200,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRegionInfo.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableRegions_result.class, metaDataMap); } @@ -13567,7 +14222,7 @@ public class Hbase { } public getTableRegions_result( - List success, + java.util.List success, IOError io) { this(); @@ -13580,7 +14235,7 @@ public class Hbase { */ public getTableRegions_result(getTableRegions_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRegionInfo other_element : other.success) { __this__success.add(new TRegionInfo(other_element)); } @@ -13605,22 +14260,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRegionInfo elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getTableRegions_result setSuccess(List success) { + public getTableRegions_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -13640,11 +14297,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getTableRegions_result setIo(IOError io) { + public getTableRegions_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -13664,13 +14322,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -13685,7 +14343,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -13694,13 +14353,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -13709,11 +14368,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getTableRegions_result) @@ -13724,6 +14383,8 @@ public class Hbase { public boolean equals(getTableRegions_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -13748,19 +14409,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13771,7 +14430,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -13781,7 +14440,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -13794,21 +14453,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getTableRegions_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableRegions_result("); boolean first = true; sb.append("success:"); @@ -13843,7 +14503,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13851,13 +14511,13 @@ public class Hbase { } } - private static class getTableRegions_resultStandardSchemeFactory implements SchemeFactory { + private static class getTableRegions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableRegions_resultStandardScheme getScheme() { return new getTableRegions_resultStandardScheme(); } } - private static class getTableRegions_resultStandardScheme extends StandardScheme { + private static class getTableRegions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableRegions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13873,8 +14533,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list68 = iprot.readListBegin(); - struct.success = new ArrayList(_list68.size); - TRegionInfo _elem69; + struct.success = new java.util.ArrayList(_list68.size); + @org.apache.thrift.annotation.Nullable TRegionInfo _elem69; for (int _i70 = 0; _i70 < _list68.size; ++_i70) { _elem69 = new TRegionInfo(); @@ -13935,18 +14595,18 @@ public class Hbase { } - private static class getTableRegions_resultTupleSchemeFactory implements SchemeFactory { + private static class getTableRegions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableRegions_resultTupleScheme getScheme() { return new getTableRegions_resultTupleScheme(); } } - private static class getTableRegions_resultTupleScheme extends TupleScheme { + private static class getTableRegions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableRegions_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -13970,13 +14630,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableRegions_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRegionInfo _elem74; + struct.success = new java.util.ArrayList(_list73.size); + @org.apache.thrift.annotation.Nullable TRegionInfo _elem74; for (int _i75 = 0; _i75 < _list73.size; ++_i75) { _elem74 = new TRegionInfo(); @@ -13994,6 +14654,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class createTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14002,20 +14665,17 @@ public class Hbase { 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); private static final org.apache.thrift.protocol.TField COLUMN_FAMILIES_FIELD_DESC = new org.apache.thrift.protocol.TField("columnFamilies", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new createTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createTable_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createTable_argsTupleSchemeFactory(); /** * name of table to create */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * list of column family descriptors */ - public List columnFamilies; // required + public @org.apache.thrift.annotation.Nullable java.util.List columnFamilies; // 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 { @@ -14028,10 +14688,10 @@ public class Hbase { */ COLUMN_FAMILIES((short)2, "columnFamilies"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14039,6 +14699,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -14056,21 +14717,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14079,21 +14741,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.COLUMN_FAMILIES, new org.apache.thrift.meta_data.FieldMetaData("columnFamilies", 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, ColumnDescriptor.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_args.class, metaDataMap); } @@ -14101,8 +14763,8 @@ public class Hbase { } public createTable_args( - ByteBuffer tableName, - List columnFamilies) + java.nio.ByteBuffer tableName, + java.util.List columnFamilies) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -14114,10 +14776,10 @@ public class Hbase { */ public createTable_args(createTable_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetColumnFamilies()) { - List __this__columnFamilies = new ArrayList(other.columnFamilies.size()); + java.util.List __this__columnFamilies = new java.util.ArrayList(other.columnFamilies.size()); for (ColumnDescriptor other_element : other.columnFamilies) { __this__columnFamilies.add(new ColumnDescriptor(other_element)); } @@ -14143,7 +14805,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -14151,11 +14813,11 @@ public class Hbase { * name of table to create */ public createTable_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public createTable_args setTableName(ByteBuffer tableName) { + public createTable_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -14179,13 +14841,14 @@ public class Hbase { return (this.columnFamilies == null) ? 0 : this.columnFamilies.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getColumnFamiliesIterator() { return (this.columnFamilies == null) ? null : this.columnFamilies.iterator(); } public void addToColumnFamilies(ColumnDescriptor elem) { if (this.columnFamilies == null) { - this.columnFamilies = new ArrayList(); + this.columnFamilies = new java.util.ArrayList(); } this.columnFamilies.add(elem); } @@ -14193,14 +14856,15 @@ public class Hbase { /** * list of column family descriptors */ - public List getColumnFamilies() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumnFamilies() { return this.columnFamilies; } /** * list of column family descriptors */ - public createTable_args setColumnFamilies(List columnFamilies) { + public createTable_args setColumnFamilies(@org.apache.thrift.annotation.Nullable java.util.List columnFamilies) { this.columnFamilies = columnFamilies; return this; } @@ -14220,13 +14884,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -14234,14 +14902,15 @@ public class Hbase { if (value == null) { unsetColumnFamilies(); } else { - setColumnFamilies((List)value); + setColumnFamilies((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -14250,13 +14919,13 @@ public class Hbase { return getColumnFamilies(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14265,11 +14934,11 @@ public class Hbase { case COLUMN_FAMILIES: return isSetColumnFamilies(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof createTable_args) @@ -14280,6 +14949,8 @@ public class Hbase { public boolean equals(createTable_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -14304,19 +14975,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_columnFamilies = true && (isSetColumnFamilies()); - list.add(present_columnFamilies); - if (present_columnFamilies) - list.add(columnFamilies); + hashCode = hashCode * 8191 + ((isSetColumnFamilies()) ? 131071 : 524287); + if (isSetColumnFamilies()) + hashCode = hashCode * 8191 + columnFamilies.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14327,7 +14996,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -14337,7 +15006,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnFamilies()).compareTo(other.isSetColumnFamilies()); + lastComparison = java.lang.Boolean.valueOf(isSetColumnFamilies()).compareTo(other.isSetColumnFamilies()); if (lastComparison != 0) { return lastComparison; } @@ -14350,21 +15019,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("createTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_args("); boolean first = true; sb.append("tableName:"); @@ -14399,7 +15069,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14407,13 +15077,13 @@ public class Hbase { } } - private static class createTable_argsStandardSchemeFactory implements SchemeFactory { + private static class createTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createTable_argsStandardScheme getScheme() { return new createTable_argsStandardScheme(); } } - private static class createTable_argsStandardScheme extends StandardScheme { + private static class createTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14437,8 +15107,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list76 = iprot.readListBegin(); - struct.columnFamilies = new ArrayList(_list76.size); - ColumnDescriptor _elem77; + struct.columnFamilies = new java.util.ArrayList(_list76.size); + @org.apache.thrift.annotation.Nullable ColumnDescriptor _elem77; for (int _i78 = 0; _i78 < _list76.size; ++_i78) { _elem77 = new ColumnDescriptor(); @@ -14490,18 +15160,18 @@ public class Hbase { } - private static class createTable_argsTupleSchemeFactory implements SchemeFactory { + private static class createTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createTable_argsTupleScheme getScheme() { return new createTable_argsTupleScheme(); } } - private static class createTable_argsTupleScheme extends TupleScheme { + private static class createTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -14525,8 +15195,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -14534,8 +15204,8 @@ public class Hbase { if (incoming.get(1)) { { 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); - ColumnDescriptor _elem82; + struct.columnFamilies = new java.util.ArrayList(_list81.size); + @org.apache.thrift.annotation.Nullable ColumnDescriptor _elem82; for (int _i83 = 0; _i83 < _list81.size; ++_i83) { _elem82 = new ColumnDescriptor(); @@ -14548,6 +15218,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class createTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14557,15 +15230,12 @@ public class Hbase { 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 org.apache.thrift.protocol.TField EXIST_FIELD_DESC = new org.apache.thrift.protocol.TField("exist", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new createTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createTable_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createTable_resultTupleSchemeFactory(); - public IOError io; // required - public IllegalArgument ia; // required - public AlreadyExists exist; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable AlreadyExists exist; // 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 { @@ -14573,10 +15243,10 @@ public class Hbase { IA((short)2, "ia"), EXIST((short)3, "exist"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14584,6 +15254,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -14603,21 +15274,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14626,22 +15298,22 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); tmpMap.put(_Fields.EXIST, new org.apache.thrift.meta_data.FieldMetaData("exist", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlreadyExists.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_result.class, metaDataMap); } @@ -14685,11 +15357,12 @@ public class Hbase { this.exist = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public createTable_result setIo(IOError io) { + public createTable_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -14709,11 +15382,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public createTable_result setIa(IllegalArgument ia) { + public createTable_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -14733,11 +15407,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public AlreadyExists getExist() { return this.exist; } - public createTable_result setExist(AlreadyExists exist) { + public createTable_result setExist(@org.apache.thrift.annotation.Nullable AlreadyExists exist) { this.exist = exist; return this; } @@ -14757,7 +15432,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -14786,7 +15461,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); @@ -14798,13 +15474,13 @@ public class Hbase { return getExist(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14815,11 +15491,11 @@ public class Hbase { case EXIST: return isSetExist(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof createTable_result) @@ -14830,6 +15506,8 @@ public class Hbase { public boolean equals(createTable_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -14863,24 +15541,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - boolean present_exist = true && (isSetExist()); - list.add(present_exist); - if (present_exist) - list.add(exist); + hashCode = hashCode * 8191 + ((isSetExist()) ? 131071 : 524287); + if (isSetExist()) + hashCode = hashCode * 8191 + exist.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14891,7 +15566,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -14901,7 +15576,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -14911,7 +15586,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExist()).compareTo(other.isSetExist()); + lastComparison = java.lang.Boolean.valueOf(isSetExist()).compareTo(other.isSetExist()); if (lastComparison != 0) { return lastComparison; } @@ -14924,21 +15599,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("createTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_result("); boolean first = true; sb.append("io:"); @@ -14981,7 +15657,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14989,13 +15665,13 @@ public class Hbase { } } - private static class createTable_resultStandardSchemeFactory implements SchemeFactory { + private static class createTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createTable_resultStandardScheme getScheme() { return new createTable_resultStandardScheme(); } } - private static class createTable_resultStandardScheme extends StandardScheme { + private static class createTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15070,18 +15746,18 @@ public class Hbase { } - private static class createTable_resultTupleSchemeFactory implements SchemeFactory { + private static class createTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createTable_resultTupleScheme getScheme() { return new createTable_resultTupleScheme(); } } - private static class createTable_resultTupleScheme extends TupleScheme { + private static class createTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -15105,8 +15781,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -15125,6 +15801,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15132,16 +15811,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteTable_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteTable_argsTupleSchemeFactory(); /** * name of table to delete */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // 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 { @@ -15150,10 +15826,10 @@ public class Hbase { */ TABLE_NAME((short)1, "tableName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15161,6 +15837,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -15176,21 +15853,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15199,18 +15877,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_args.class, metaDataMap); } @@ -15218,7 +15896,7 @@ public class Hbase { } public deleteTable_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -15229,7 +15907,7 @@ public class Hbase { */ public deleteTable_args(deleteTable_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } } @@ -15250,7 +15928,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -15258,11 +15936,11 @@ public class Hbase { * name of table to delete */ public deleteTable_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public deleteTable_args setTableName(ByteBuffer tableName) { + public deleteTable_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -15282,43 +15960,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE_NAME: return isSetTableName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteTable_args) @@ -15329,6 +16012,8 @@ public class Hbase { public boolean equals(deleteTable_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -15344,14 +16029,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15362,7 +16046,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -15375,21 +16059,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_args("); boolean first = true; sb.append("tableName:"); @@ -15416,7 +16101,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -15424,13 +16109,13 @@ public class Hbase { } } - private static class deleteTable_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteTable_argsStandardScheme getScheme() { return new deleteTable_argsStandardScheme(); } } - private static class deleteTable_argsStandardScheme extends StandardScheme { + private static class deleteTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15476,18 +16161,18 @@ public class Hbase { } - private static class deleteTable_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteTable_argsTupleScheme getScheme() { return new deleteTable_argsTupleScheme(); } } - private static class deleteTable_argsTupleScheme extends TupleScheme { + private static class deleteTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -15499,8 +16184,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -15508,6 +16193,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15515,22 +16203,19 @@ public class Hbase { 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 deleteTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteTable_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteTable_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15538,6 +16223,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -15553,21 +16239,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15576,18 +16263,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_result.class, metaDataMap); } @@ -15619,11 +16306,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public deleteTable_result setIo(IOError io) { + public deleteTable_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -15643,7 +16331,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -15656,30 +16344,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteTable_result) @@ -15690,6 +16379,8 @@ public class Hbase { public boolean equals(deleteTable_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -15705,14 +16396,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15723,7 +16413,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -15736,21 +16426,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_result("); boolean first = true; sb.append("io:"); @@ -15777,7 +16468,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -15785,13 +16476,13 @@ public class Hbase { } } - private static class deleteTable_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteTable_resultStandardScheme getScheme() { return new deleteTable_resultStandardScheme(); } } - private static class deleteTable_resultStandardScheme extends StandardScheme { + private static class deleteTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15838,18 +16529,18 @@ public class Hbase { } - private static class deleteTable_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteTable_resultTupleScheme getScheme() { return new deleteTable_resultTupleScheme(); } } - private static class deleteTable_resultTupleScheme extends TupleScheme { + private static class deleteTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -15861,8 +16552,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -15871,6 +16562,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class get_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15881,28 +16575,25 @@ public class Hbase { private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new get_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column name */ - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -15923,10 +16614,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15934,6 +16625,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -15955,21 +16647,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15978,15 +16671,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -15997,7 +16690,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); } @@ -16005,10 +16698,10 @@ public class Hbase { } public get_args( - ByteBuffer tableName, - ByteBuffer row, - ByteBuffer column, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.nio.ByteBuffer column, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -16022,24 +16715,24 @@ public class Hbase { */ public get_args(get_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumn()) { - this.column = other.column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -16067,7 +16760,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -16075,11 +16768,11 @@ public class Hbase { * name of table */ public get_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public get_args setTableName(ByteBuffer tableName) { + public get_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -16107,7 +16800,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -16115,11 +16808,11 @@ public class Hbase { * row key */ public get_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public get_args setRow(ByteBuffer row) { + public get_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -16147,7 +16840,7 @@ public class Hbase { return column == null ? null : column.array(); } - public ByteBuffer bufferForColumn() { + public java.nio.ByteBuffer bufferForColumn() { return org.apache.thrift.TBaseHelper.copyBinary(column); } @@ -16155,11 +16848,11 @@ public class Hbase { * column name */ public get_args setColumn(byte[] column) { - this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); + this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); return this; } - public get_args setColumn(ByteBuffer column) { + public get_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -16183,9 +16876,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -16193,14 +16886,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public get_args setAttributes(Map attributes) { + public get_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -16220,13 +16914,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -16234,7 +16932,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -16242,7 +16944,11 @@ public class Hbase { if (value == null) { unsetColumn(); } else { - setColumn((ByteBuffer)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((java.nio.ByteBuffer)value); + } } break; @@ -16250,14 +16956,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -16272,13 +16979,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -16291,11 +16998,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof get_args) @@ -16306,6 +17013,8 @@ public class Hbase { public boolean equals(get_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -16348,29 +17057,25 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16381,7 +17086,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -16391,7 +17096,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -16401,7 +17106,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -16411,7 +17116,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -16424,21 +17129,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("get_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("get_args("); boolean first = true; sb.append("tableName:"); @@ -16489,7 +17195,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -16497,13 +17203,13 @@ public class Hbase { } } - private static class get_argsStandardSchemeFactory implements SchemeFactory { + private static class get_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_argsStandardScheme getScheme() { return new get_argsStandardScheme(); } } - private static class get_argsStandardScheme extends StandardScheme { + private static class get_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, get_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16543,9 +17249,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map84.size); - ByteBuffer _key85; - ByteBuffer _val86; + struct.attributes = new java.util.HashMap(2*_map84.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key85; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val86; for (int _i87 = 0; _i87 < _map84.size; ++_i87) { _key85 = iprot.readBinary(); @@ -16593,7 +17299,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter88 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter88 : struct.attributes.entrySet()) { oprot.writeBinary(_iter88.getKey()); oprot.writeBinary(_iter88.getValue()); @@ -16608,18 +17314,18 @@ public class Hbase { } - private static class get_argsTupleSchemeFactory implements SchemeFactory { + private static class get_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_argsTupleScheme getScheme() { return new get_argsTupleScheme(); } } - private static class get_argsTupleScheme extends TupleScheme { + private static class get_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -16645,7 +17351,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter89 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter89 : struct.attributes.entrySet()) { oprot.writeBinary(_iter89.getKey()); oprot.writeBinary(_iter89.getValue()); @@ -16656,8 +17362,8 @@ public class Hbase { @Override 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(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -16673,9 +17379,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key91; - ByteBuffer _val92; + struct.attributes = new java.util.HashMap(2*_map90.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key91; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val92; for (int _i93 = 0; _i93 < _map90.size; ++_i93) { _key91 = iprot.readBinary(); @@ -16688,6 +17394,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class get_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16696,24 +17405,21 @@ public class Hbase { 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 get_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16721,6 +17427,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -16738,21 +17445,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16761,21 +17469,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TCell.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); } @@ -16783,7 +17491,7 @@ public class Hbase { } public get_result( - List success, + java.util.List success, IOError io) { this(); @@ -16796,7 +17504,7 @@ public class Hbase { */ public get_result(get_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -16821,22 +17529,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TCell elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public get_result setSuccess(List success) { + public get_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -16856,11 +17566,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public get_result setIo(IOError io) { + public get_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -16880,13 +17591,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -16901,7 +17612,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -16910,13 +17622,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -16925,11 +17637,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof get_result) @@ -16940,6 +17652,8 @@ public class Hbase { public boolean equals(get_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -16964,19 +17678,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16987,7 +17699,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -16997,7 +17709,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -17010,21 +17722,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("get_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("get_result("); boolean first = true; sb.append("success:"); @@ -17059,7 +17772,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -17067,13 +17780,13 @@ public class Hbase { } } - private static class get_resultStandardSchemeFactory implements SchemeFactory { + private static class get_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_resultStandardScheme getScheme() { return new get_resultStandardScheme(); } } - private static class get_resultStandardScheme extends StandardScheme { + private static class get_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, get_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17089,8 +17802,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list94 = iprot.readListBegin(); - struct.success = new ArrayList(_list94.size); - TCell _elem95; + struct.success = new java.util.ArrayList(_list94.size); + @org.apache.thrift.annotation.Nullable TCell _elem95; for (int _i96 = 0; _i96 < _list94.size; ++_i96) { _elem95 = new TCell(); @@ -17151,18 +17864,18 @@ public class Hbase { } - private static class get_resultTupleSchemeFactory implements SchemeFactory { + private static class get_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_resultTupleScheme getScheme() { return new get_resultTupleScheme(); } } - private static class get_resultTupleScheme extends TupleScheme { + private static class get_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -17186,13 +17899,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TCell _elem100; + struct.success = new java.util.ArrayList(_list99.size); + @org.apache.thrift.annotation.Nullable TCell _elem100; for (int _i101 = 0; _i101 < _list99.size; ++_i101) { _elem100 = new TCell(); @@ -17210,6 +17923,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getVer_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17221,24 +17937,21 @@ public class Hbase { private static final org.apache.thrift.protocol.TField NUM_VERSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numVersions", org.apache.thrift.protocol.TType.I32, (short)4); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getVer_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVer_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVer_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVer_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column name */ - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required /** * number of versions to retrieve */ @@ -17246,7 +17959,7 @@ public class Hbase { /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -17271,10 +17984,10 @@ public class Hbase { */ ATTRIBUTES((short)5, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -17282,6 +17995,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -17305,21 +18019,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -17328,7 +18043,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -17336,9 +18051,9 @@ public class Hbase { // isset id assignments private static final int __NUMVERSIONS_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -17351,7 +18066,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVer_args.class, metaDataMap); } @@ -17359,11 +18074,11 @@ public class Hbase { } public getVer_args( - ByteBuffer tableName, - ByteBuffer row, - ByteBuffer column, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.nio.ByteBuffer column, int numVersions, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -17380,25 +18095,25 @@ public class Hbase { public getVer_args(getVer_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumn()) { - this.column = other.column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } this.numVersions = other.numVersions; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -17428,7 +18143,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -17436,11 +18151,11 @@ public class Hbase { * name of table */ public getVer_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getVer_args setTableName(ByteBuffer tableName) { + public getVer_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -17468,7 +18183,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -17476,11 +18191,11 @@ public class Hbase { * row key */ public getVer_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getVer_args setRow(ByteBuffer row) { + public getVer_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -17508,7 +18223,7 @@ public class Hbase { return column == null ? null : column.array(); } - public ByteBuffer bufferForColumn() { + public java.nio.ByteBuffer bufferForColumn() { return org.apache.thrift.TBaseHelper.copyBinary(column); } @@ -17516,11 +18231,11 @@ public class Hbase { * column name */ public getVer_args setColumn(byte[] column) { - this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); + this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); return this; } - public getVer_args setColumn(ByteBuffer column) { + public getVer_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -17557,25 +18272,25 @@ public class Hbase { } public void unsetNumVersions() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID); } /** Returns true if field numVersions is set (has been assigned a value) and false otherwise */ public boolean isSetNumVersions() { - return EncodingUtils.testBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID); } public void setNumVersionsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -17583,14 +18298,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getVer_args setAttributes(Map attributes) { + public getVer_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -17610,13 +18326,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -17624,7 +18344,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -17632,7 +18356,11 @@ public class Hbase { if (value == null) { unsetColumn(); } else { - setColumn((ByteBuffer)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((java.nio.ByteBuffer)value); + } } break; @@ -17640,7 +18368,7 @@ public class Hbase { if (value == null) { unsetNumVersions(); } else { - setNumVersions((Integer)value); + setNumVersions((java.lang.Integer)value); } break; @@ -17648,14 +18376,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -17673,13 +18402,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -17694,11 +18423,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getVer_args) @@ -17709,6 +18438,8 @@ public class Hbase { public boolean equals(getVer_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -17760,34 +18491,27 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_numVersions = true; - list.add(present_numVersions); - if (present_numVersions) - list.add(numVersions); + hashCode = hashCode * 8191 + numVersions; - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -17798,7 +18522,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -17808,7 +18532,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -17818,7 +18542,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -17828,7 +18552,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(other.isSetNumVersions()); + lastComparison = java.lang.Boolean.valueOf(isSetNumVersions()).compareTo(other.isSetNumVersions()); if (lastComparison != 0) { return lastComparison; } @@ -17838,7 +18562,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -17851,21 +18575,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVer_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVer_args("); boolean first = true; sb.append("tableName:"); @@ -17920,7 +18645,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -17930,13 +18655,13 @@ public class Hbase { } } - private static class getVer_argsStandardSchemeFactory implements SchemeFactory { + private static class getVer_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVer_argsStandardScheme getScheme() { return new getVer_argsStandardScheme(); } } - private static class getVer_argsStandardScheme extends StandardScheme { + private static class getVer_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVer_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17984,9 +18709,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map102 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map102.size); - ByteBuffer _key103; - ByteBuffer _val104; + struct.attributes = new java.util.HashMap(2*_map102.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key103; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val104; for (int _i105 = 0; _i105 < _map102.size; ++_i105) { _key103 = iprot.readBinary(); @@ -18037,7 +18762,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter106 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter106 : struct.attributes.entrySet()) { oprot.writeBinary(_iter106.getKey()); oprot.writeBinary(_iter106.getValue()); @@ -18052,18 +18777,18 @@ public class Hbase { } - private static class getVer_argsTupleSchemeFactory implements SchemeFactory { + private static class getVer_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVer_argsTupleScheme getScheme() { return new getVer_argsTupleScheme(); } } - private static class getVer_argsTupleScheme extends TupleScheme { + private static class getVer_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getVer_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -18095,7 +18820,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter107 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter107 : struct.attributes.entrySet()) { oprot.writeBinary(_iter107.getKey()); oprot.writeBinary(_iter107.getValue()); @@ -18106,8 +18831,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVer_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -18127,9 +18852,9 @@ public class Hbase { if (incoming.get(4)) { { 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); - ByteBuffer _key109; - ByteBuffer _val110; + struct.attributes = new java.util.HashMap(2*_map108.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key109; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val110; for (int _i111 = 0; _i111 < _map108.size; ++_i111) { _key109 = iprot.readBinary(); @@ -18142,6 +18867,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getVer_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18150,24 +18878,21 @@ public class Hbase { 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 getVer_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVer_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVer_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVer_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18175,6 +18900,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -18192,21 +18918,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18215,21 +18942,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TCell.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVer_result.class, metaDataMap); } @@ -18237,7 +18964,7 @@ public class Hbase { } public getVer_result( - List success, + java.util.List success, IOError io) { this(); @@ -18250,7 +18977,7 @@ public class Hbase { */ public getVer_result(getVer_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -18275,22 +19002,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TCell elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getVer_result setSuccess(List success) { + public getVer_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -18310,11 +19039,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getVer_result setIo(IOError io) { + public getVer_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -18334,13 +19064,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -18355,7 +19085,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -18364,13 +19095,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -18379,11 +19110,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getVer_result) @@ -18394,6 +19125,8 @@ public class Hbase { public boolean equals(getVer_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -18418,19 +19151,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -18441,7 +19172,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -18451,7 +19182,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -18464,21 +19195,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVer_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVer_result("); boolean first = true; sb.append("success:"); @@ -18513,7 +19245,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -18521,13 +19253,13 @@ public class Hbase { } } - private static class getVer_resultStandardSchemeFactory implements SchemeFactory { + private static class getVer_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVer_resultStandardScheme getScheme() { return new getVer_resultStandardScheme(); } } - private static class getVer_resultStandardScheme extends StandardScheme { + private static class getVer_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVer_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18543,8 +19275,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(); - struct.success = new ArrayList(_list112.size); - TCell _elem113; + struct.success = new java.util.ArrayList(_list112.size); + @org.apache.thrift.annotation.Nullable TCell _elem113; for (int _i114 = 0; _i114 < _list112.size; ++_i114) { _elem113 = new TCell(); @@ -18605,18 +19337,18 @@ public class Hbase { } - private static class getVer_resultTupleSchemeFactory implements SchemeFactory { + private static class getVer_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVer_resultTupleScheme getScheme() { return new getVer_resultTupleScheme(); } } - private static class getVer_resultTupleScheme extends TupleScheme { + private static class getVer_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getVer_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -18640,13 +19372,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVer_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TCell _elem118; + struct.success = new java.util.ArrayList(_list117.size); + @org.apache.thrift.annotation.Nullable TCell _elem118; for (int _i119 = 0; _i119 < _list117.size; ++_i119) { _elem118 = new TCell(); @@ -18664,6 +19396,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getVerTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18676,24 +19411,21 @@ public class Hbase { private static final org.apache.thrift.protocol.TField NUM_VERSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numVersions", org.apache.thrift.protocol.TType.I32, (short)5); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)6); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getVerTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVerTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVerTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVerTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column name */ - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required /** * timestamp */ @@ -18705,7 +19437,7 @@ public class Hbase { /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -18734,10 +19466,10 @@ public class Hbase { */ ATTRIBUTES((short)6, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18745,6 +19477,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -18770,21 +19503,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18793,7 +19527,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -18802,9 +19536,9 @@ public class Hbase { private static final int __TIMESTAMP_ISSET_ID = 0; private static final int __NUMVERSIONS_ISSET_ID = 1; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -18819,7 +19553,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerTs_args.class, metaDataMap); } @@ -18827,12 +19561,12 @@ public class Hbase { } public getVerTs_args( - ByteBuffer tableName, - ByteBuffer row, - ByteBuffer column, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.nio.ByteBuffer column, long timestamp, int numVersions, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -18851,26 +19585,26 @@ public class Hbase { public getVerTs_args(getVerTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumn()) { - this.column = other.column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } this.timestamp = other.timestamp; this.numVersions = other.numVersions; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -18902,7 +19636,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -18910,11 +19644,11 @@ public class Hbase { * name of table */ public getVerTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getVerTs_args setTableName(ByteBuffer tableName) { + public getVerTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -18942,7 +19676,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -18950,11 +19684,11 @@ public class Hbase { * row key */ public getVerTs_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getVerTs_args setRow(ByteBuffer row) { + public getVerTs_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -18982,7 +19716,7 @@ public class Hbase { return column == null ? null : column.array(); } - public ByteBuffer bufferForColumn() { + public java.nio.ByteBuffer bufferForColumn() { return org.apache.thrift.TBaseHelper.copyBinary(column); } @@ -18990,11 +19724,11 @@ public class Hbase { * column name */ public getVerTs_args setColumn(byte[] column) { - this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); + this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); return this; } - public getVerTs_args setColumn(ByteBuffer column) { + public getVerTs_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -19031,16 +19765,16 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } /** @@ -19060,25 +19794,25 @@ public class Hbase { } public void unsetNumVersions() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID); } /** Returns true if field numVersions is set (has been assigned a value) and false otherwise */ public boolean isSetNumVersions() { - return EncodingUtils.testBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID); } public void setNumVersionsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -19086,14 +19820,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getVerTs_args setAttributes(Map attributes) { + public getVerTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -19113,13 +19848,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -19127,7 +19866,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -19135,7 +19878,11 @@ public class Hbase { if (value == null) { unsetColumn(); } else { - setColumn((ByteBuffer)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((java.nio.ByteBuffer)value); + } } break; @@ -19143,7 +19890,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -19151,7 +19898,7 @@ public class Hbase { if (value == null) { unsetNumVersions(); } else { - setNumVersions((Integer)value); + setNumVersions((java.lang.Integer)value); } break; @@ -19159,14 +19906,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -19187,13 +19935,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -19210,11 +19958,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getVerTs_args) @@ -19225,6 +19973,8 @@ public class Hbase { public boolean equals(getVerTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -19285,39 +20035,29 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_numVersions = true; - list.add(present_numVersions); - if (present_numVersions) - list.add(numVersions); + hashCode = hashCode * 8191 + numVersions; - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -19328,7 +20068,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -19338,7 +20078,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -19348,7 +20088,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -19358,7 +20098,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -19368,7 +20108,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(other.isSetNumVersions()); + lastComparison = java.lang.Boolean.valueOf(isSetNumVersions()).compareTo(other.isSetNumVersions()); if (lastComparison != 0) { return lastComparison; } @@ -19378,7 +20118,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -19391,21 +20131,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVerTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVerTs_args("); boolean first = true; sb.append("tableName:"); @@ -19464,7 +20205,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -19474,13 +20215,13 @@ public class Hbase { } } - private static class getVerTs_argsStandardSchemeFactory implements SchemeFactory { + private static class getVerTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVerTs_argsStandardScheme getScheme() { return new getVerTs_argsStandardScheme(); } } - private static class getVerTs_argsStandardScheme extends StandardScheme { + private static class getVerTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVerTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19536,9 +20277,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map120 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map120.size); - ByteBuffer _key121; - ByteBuffer _val122; + struct.attributes = new java.util.HashMap(2*_map120.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key121; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val122; for (int _i123 = 0; _i123 < _map120.size; ++_i123) { _key121 = iprot.readBinary(); @@ -19592,7 +20333,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter124 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter124 : struct.attributes.entrySet()) { oprot.writeBinary(_iter124.getKey()); oprot.writeBinary(_iter124.getValue()); @@ -19607,18 +20348,18 @@ public class Hbase { } - private static class getVerTs_argsTupleSchemeFactory implements SchemeFactory { + private static class getVerTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVerTs_argsTupleScheme getScheme() { return new getVerTs_argsTupleScheme(); } } - private static class getVerTs_argsTupleScheme extends TupleScheme { + private static class getVerTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getVerTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -19656,7 +20397,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter125 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter125 : struct.attributes.entrySet()) { oprot.writeBinary(_iter125.getKey()); oprot.writeBinary(_iter125.getValue()); @@ -19667,8 +20408,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVerTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -19692,9 +20433,9 @@ public class Hbase { if (incoming.get(5)) { { 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); - ByteBuffer _key127; - ByteBuffer _val128; + struct.attributes = new java.util.HashMap(2*_map126.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key127; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val128; for (int _i129 = 0; _i129 < _map126.size; ++_i129) { _key127 = iprot.readBinary(); @@ -19707,6 +20448,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getVerTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -19715,24 +20459,21 @@ public class Hbase { 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 getVerTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVerTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVerTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVerTs_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -19740,6 +20481,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -19757,21 +20499,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -19780,21 +20523,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TCell.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerTs_result.class, metaDataMap); } @@ -19802,7 +20545,7 @@ public class Hbase { } public getVerTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -19815,7 +20558,7 @@ public class Hbase { */ public getVerTs_result(getVerTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -19840,22 +20583,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TCell elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getVerTs_result setSuccess(List success) { + public getVerTs_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -19875,11 +20620,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getVerTs_result setIo(IOError io) { + public getVerTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -19899,13 +20645,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -19920,7 +20666,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -19929,13 +20676,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -19944,11 +20691,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getVerTs_result) @@ -19959,6 +20706,8 @@ public class Hbase { public boolean equals(getVerTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -19983,19 +20732,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -20006,7 +20753,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -20016,7 +20763,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -20029,21 +20776,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVerTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVerTs_result("); boolean first = true; sb.append("success:"); @@ -20078,7 +20826,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -20086,13 +20834,13 @@ public class Hbase { } } - private static class getVerTs_resultStandardSchemeFactory implements SchemeFactory { + private static class getVerTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVerTs_resultStandardScheme getScheme() { return new getVerTs_resultStandardScheme(); } } - private static class getVerTs_resultStandardScheme extends StandardScheme { + private static class getVerTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVerTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20108,8 +20856,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); - struct.success = new ArrayList(_list130.size); - TCell _elem131; + struct.success = new java.util.ArrayList(_list130.size); + @org.apache.thrift.annotation.Nullable TCell _elem131; for (int _i132 = 0; _i132 < _list130.size; ++_i132) { _elem131 = new TCell(); @@ -20170,18 +20918,18 @@ public class Hbase { } - private static class getVerTs_resultTupleSchemeFactory implements SchemeFactory { + private static class getVerTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVerTs_resultTupleScheme getScheme() { return new getVerTs_resultTupleScheme(); } } - private static class getVerTs_resultTupleScheme extends TupleScheme { + private static class getVerTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getVerTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -20205,13 +20953,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVerTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TCell _elem136; + struct.success = new java.util.ArrayList(_list135.size); + @org.apache.thrift.annotation.Nullable TCell _elem136; for (int _i137 = 0; _i137 < _list135.size; ++_i137) { _elem136 = new TCell(); @@ -20229,6 +20977,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20238,24 +20989,21 @@ public class Hbase { 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 ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRow_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRow_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRow_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRow_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -20272,10 +21020,10 @@ public class Hbase { */ ATTRIBUTES((short)3, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20283,6 +21031,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -20302,21 +21051,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20325,15 +21075,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -20342,7 +21092,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRow_args.class, metaDataMap); } @@ -20350,9 +21100,9 @@ public class Hbase { } public getRow_args( - ByteBuffer tableName, - ByteBuffer row, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -20365,21 +21115,21 @@ public class Hbase { */ public getRow_args(getRow_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -20406,7 +21156,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -20414,11 +21164,11 @@ public class Hbase { * name of table */ public getRow_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRow_args setTableName(ByteBuffer tableName) { + public getRow_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -20446,7 +21196,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -20454,11 +21204,11 @@ public class Hbase { * row key */ public getRow_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getRow_args setRow(ByteBuffer row) { + public getRow_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -20482,9 +21232,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -20492,14 +21242,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getRow_args setAttributes(Map attributes) { + public getRow_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -20519,13 +21270,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -20533,7 +21288,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -20541,14 +21300,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -20560,13 +21320,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -20577,11 +21337,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRow_args) @@ -20592,6 +21352,8 @@ public class Hbase { public boolean equals(getRow_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -20625,24 +21387,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -20653,7 +21412,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -20663,7 +21422,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -20673,7 +21432,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -20686,21 +21445,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRow_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRow_args("); boolean first = true; sb.append("tableName:"); @@ -20743,7 +21503,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -20751,13 +21511,13 @@ public class Hbase { } } - private static class getRow_argsStandardSchemeFactory implements SchemeFactory { + private static class getRow_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRow_argsStandardScheme getScheme() { return new getRow_argsStandardScheme(); } } - private static class getRow_argsStandardScheme extends StandardScheme { + private static class getRow_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRow_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20789,9 +21549,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map138.size); - ByteBuffer _key139; - ByteBuffer _val140; + struct.attributes = new java.util.HashMap(2*_map138.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key139; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val140; for (int _i141 = 0; _i141 < _map138.size; ++_i141) { _key139 = iprot.readBinary(); @@ -20834,7 +21594,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter142 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter142 : struct.attributes.entrySet()) { oprot.writeBinary(_iter142.getKey()); oprot.writeBinary(_iter142.getValue()); @@ -20849,18 +21609,18 @@ public class Hbase { } - private static class getRow_argsTupleSchemeFactory implements SchemeFactory { + private static class getRow_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRow_argsTupleScheme getScheme() { return new getRow_argsTupleScheme(); } } - private static class getRow_argsTupleScheme extends TupleScheme { + private static class getRow_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -20880,7 +21640,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter143 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter143 : struct.attributes.entrySet()) { oprot.writeBinary(_iter143.getKey()); oprot.writeBinary(_iter143.getValue()); @@ -20891,8 +21651,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -20904,9 +21664,9 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _key145; - ByteBuffer _val146; + struct.attributes = new java.util.HashMap(2*_map144.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key145; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val146; for (int _i147 = 0; _i147 < _map144.size; ++_i147) { _key145 = iprot.readBinary(); @@ -20919,6 +21679,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20927,24 +21690,21 @@ public class Hbase { 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 getRow_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRow_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRow_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRow_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20952,6 +21712,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -20969,21 +21730,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20992,21 +21754,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRow_result.class, metaDataMap); } @@ -21014,7 +21776,7 @@ public class Hbase { } public getRow_result( - List success, + java.util.List success, IOError io) { this(); @@ -21027,7 +21789,7 @@ public class Hbase { */ public getRow_result(getRow_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -21052,22 +21814,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRow_result setSuccess(List success) { + public getRow_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -21087,11 +21851,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRow_result setIo(IOError io) { + public getRow_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -21111,13 +21876,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -21132,7 +21897,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -21141,13 +21907,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21156,11 +21922,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRow_result) @@ -21171,6 +21937,8 @@ public class Hbase { public boolean equals(getRow_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -21195,19 +21963,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -21218,7 +21984,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -21228,7 +21994,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -21241,21 +22007,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRow_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRow_result("); boolean first = true; sb.append("success:"); @@ -21290,7 +22057,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -21298,13 +22065,13 @@ public class Hbase { } } - private static class getRow_resultStandardSchemeFactory implements SchemeFactory { + private static class getRow_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRow_resultStandardScheme getScheme() { return new getRow_resultStandardScheme(); } } - private static class getRow_resultStandardScheme extends StandardScheme { + private static class getRow_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRow_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21320,8 +22087,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); - struct.success = new ArrayList(_list148.size); - TRowResult _elem149; + struct.success = new java.util.ArrayList(_list148.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem149; for (int _i150 = 0; _i150 < _list148.size; ++_i150) { _elem149 = new TRowResult(); @@ -21382,18 +22149,18 @@ public class Hbase { } - private static class getRow_resultTupleSchemeFactory implements SchemeFactory { + private static class getRow_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRow_resultTupleScheme getScheme() { return new getRow_resultTupleScheme(); } } - private static class getRow_resultTupleScheme extends TupleScheme { + private static class getRow_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRow_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -21417,13 +22184,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRow_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRowResult _elem154; + struct.success = new java.util.ArrayList(_list153.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem154; for (int _i155 = 0; _i155 < _list153.size; ++_i155) { _elem154 = new TRowResult(); @@ -21441,6 +22208,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowWithColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21451,28 +22221,25 @@ public class Hbase { private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRowWithColumns_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowWithColumns_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowWithColumns_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowWithColumns_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * List of columns to return, null for all columns */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -21493,10 +22260,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21504,6 +22271,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -21525,21 +22293,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21548,15 +22317,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -21568,7 +22337,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumns_args.class, metaDataMap); } @@ -21576,10 +22345,10 @@ public class Hbase { } public getRowWithColumns_args( - ByteBuffer tableName, - ByteBuffer row, - List columns, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.util.List columns, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -21593,28 +22362,28 @@ public class Hbase { */ public getRowWithColumns_args(getRowWithColumns_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -21642,7 +22411,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -21650,11 +22419,11 @@ public class Hbase { * name of table */ public getRowWithColumns_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRowWithColumns_args setTableName(ByteBuffer tableName) { + public getRowWithColumns_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -21682,7 +22451,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -21690,11 +22459,11 @@ public class Hbase { * row key */ public getRowWithColumns_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getRowWithColumns_args setRow(ByteBuffer row) { + public getRowWithColumns_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -21718,13 +22487,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -21732,14 +22502,15 @@ public class Hbase { /** * List of columns to return, null for all columns */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } /** * List of columns to return, null for all columns */ - public getRowWithColumns_args setColumns(List columns) { + public getRowWithColumns_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -21763,9 +22534,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -21773,14 +22544,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getRowWithColumns_args setAttributes(Map attributes) { + public getRowWithColumns_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -21800,13 +22572,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -21814,7 +22590,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -21822,7 +22602,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -21830,14 +22610,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -21852,13 +22633,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21871,11 +22652,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowWithColumns_args) @@ -21886,6 +22667,8 @@ public class Hbase { public boolean equals(getRowWithColumns_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -21928,29 +22711,25 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -21961,7 +22740,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -21971,7 +22750,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -21981,7 +22760,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -21991,7 +22770,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -22004,21 +22783,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowWithColumns_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowWithColumns_args("); boolean first = true; sb.append("tableName:"); @@ -22069,7 +22849,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22077,13 +22857,13 @@ public class Hbase { } } - private static class getRowWithColumns_argsStandardSchemeFactory implements SchemeFactory { + private static class getRowWithColumns_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowWithColumns_argsStandardScheme getScheme() { return new getRowWithColumns_argsStandardScheme(); } } - private static class getRowWithColumns_argsStandardScheme extends StandardScheme { + private static class getRowWithColumns_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumns_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22115,8 +22895,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); - struct.columns = new ArrayList(_list156.size); - ByteBuffer _elem157; + struct.columns = new java.util.ArrayList(_list156.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem157; for (int _i158 = 0; _i158 < _list156.size; ++_i158) { _elem157 = iprot.readBinary(); @@ -22133,9 +22913,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map159 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map159.size); - ByteBuffer _key160; - ByteBuffer _val161; + struct.attributes = new java.util.HashMap(2*_map159.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key160; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val161; for (int _i162 = 0; _i162 < _map159.size; ++_i162) { _key160 = iprot.readBinary(); @@ -22178,7 +22958,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter163 : struct.columns) + for (java.nio.ByteBuffer _iter163 : struct.columns) { oprot.writeBinary(_iter163); } @@ -22190,7 +22970,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter164 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter164 : struct.attributes.entrySet()) { oprot.writeBinary(_iter164.getKey()); oprot.writeBinary(_iter164.getValue()); @@ -22205,18 +22985,18 @@ public class Hbase { } - private static class getRowWithColumns_argsTupleSchemeFactory implements SchemeFactory { + private static class getRowWithColumns_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowWithColumns_argsTupleScheme getScheme() { return new getRowWithColumns_argsTupleScheme(); } } - private static class getRowWithColumns_argsTupleScheme extends TupleScheme { + private static class getRowWithColumns_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -22239,7 +23019,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter165 : struct.columns) + for (java.nio.ByteBuffer _iter165 : struct.columns) { oprot.writeBinary(_iter165); } @@ -22248,7 +23028,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter166 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter166 : struct.attributes.entrySet()) { oprot.writeBinary(_iter166.getKey()); oprot.writeBinary(_iter166.getValue()); @@ -22259,8 +23039,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -22272,8 +23052,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _elem168; + struct.columns = new java.util.ArrayList(_list167.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem168; for (int _i169 = 0; _i169 < _list167.size; ++_i169) { _elem168 = iprot.readBinary(); @@ -22285,9 +23065,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key171; - ByteBuffer _val172; + struct.attributes = new java.util.HashMap(2*_map170.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key171; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val172; for (int _i173 = 0; _i173 < _map170.size; ++_i173) { _key171 = iprot.readBinary(); @@ -22300,6 +23080,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowWithColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22308,24 +23091,21 @@ public class Hbase { 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 getRowWithColumns_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowWithColumns_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowWithColumns_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowWithColumns_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22333,6 +23113,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -22350,21 +23131,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22373,21 +23155,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumns_result.class, metaDataMap); } @@ -22395,7 +23177,7 @@ public class Hbase { } public getRowWithColumns_result( - List success, + java.util.List success, IOError io) { this(); @@ -22408,7 +23190,7 @@ public class Hbase { */ public getRowWithColumns_result(getRowWithColumns_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -22433,22 +23215,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRowWithColumns_result setSuccess(List success) { + public getRowWithColumns_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -22468,11 +23252,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRowWithColumns_result setIo(IOError io) { + public getRowWithColumns_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -22492,13 +23277,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -22513,7 +23298,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -22522,13 +23308,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -22537,11 +23323,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowWithColumns_result) @@ -22552,6 +23338,8 @@ public class Hbase { public boolean equals(getRowWithColumns_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -22576,19 +23364,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -22599,7 +23385,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -22609,7 +23395,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -22622,21 +23408,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowWithColumns_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowWithColumns_result("); boolean first = true; sb.append("success:"); @@ -22671,7 +23458,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22679,13 +23466,13 @@ public class Hbase { } } - private static class getRowWithColumns_resultStandardSchemeFactory implements SchemeFactory { + private static class getRowWithColumns_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowWithColumns_resultStandardScheme getScheme() { return new getRowWithColumns_resultStandardScheme(); } } - private static class getRowWithColumns_resultStandardScheme extends StandardScheme { + private static class getRowWithColumns_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumns_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22701,8 +23488,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list174 = iprot.readListBegin(); - struct.success = new ArrayList(_list174.size); - TRowResult _elem175; + struct.success = new java.util.ArrayList(_list174.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem175; for (int _i176 = 0; _i176 < _list174.size; ++_i176) { _elem175 = new TRowResult(); @@ -22763,18 +23550,18 @@ public class Hbase { } - private static class getRowWithColumns_resultTupleSchemeFactory implements SchemeFactory { + private static class getRowWithColumns_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowWithColumns_resultTupleScheme getScheme() { return new getRowWithColumns_resultTupleScheme(); } } - private static class getRowWithColumns_resultTupleScheme extends TupleScheme { + private static class getRowWithColumns_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -22798,13 +23585,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRowResult _elem180; + struct.success = new java.util.ArrayList(_list179.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem180; for (int _i181 = 0; _i181 < _list179.size; ++_i181) { _elem180 = new TRowResult(); @@ -22822,6 +23609,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22832,20 +23622,17 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRowTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowTs_argsTupleSchemeFactory(); /** * name of the table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * timestamp */ @@ -22853,7 +23640,7 @@ public class Hbase { /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -22874,10 +23661,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22885,6 +23672,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -22906,21 +23694,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22929,7 +23718,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -22937,9 +23726,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -22950,7 +23739,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowTs_args.class, metaDataMap); } @@ -22958,10 +23747,10 @@ public class Hbase { } public getRowTs_args( - ByteBuffer tableName, - ByteBuffer row, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -22977,22 +23766,22 @@ public class Hbase { public getRowTs_args(getRowTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -23021,7 +23810,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -23029,11 +23818,11 @@ public class Hbase { * name of the table */ public getRowTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRowTs_args setTableName(ByteBuffer tableName) { + public getRowTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -23061,7 +23850,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -23069,11 +23858,11 @@ public class Hbase { * row key */ public getRowTs_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getRowTs_args setRow(ByteBuffer row) { + public getRowTs_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -23110,25 +23899,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -23136,14 +23925,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getRowTs_args setAttributes(Map attributes) { + public getRowTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -23163,13 +23953,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -23177,7 +23971,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -23185,7 +23983,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -23193,14 +23991,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -23215,13 +24014,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -23234,11 +24033,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowTs_args) @@ -23249,6 +24048,8 @@ public class Hbase { public boolean equals(getRowTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -23291,29 +24092,23 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -23324,7 +24119,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -23334,7 +24129,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -23344,7 +24139,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -23354,7 +24149,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -23367,21 +24162,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowTs_args("); boolean first = true; sb.append("tableName:"); @@ -23428,7 +24224,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -23438,13 +24234,13 @@ public class Hbase { } } - private static class getRowTs_argsStandardSchemeFactory implements SchemeFactory { + private static class getRowTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowTs_argsStandardScheme getScheme() { return new getRowTs_argsStandardScheme(); } } - private static class getRowTs_argsStandardScheme extends StandardScheme { + private static class getRowTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -23484,9 +24280,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map182 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map182.size); - ByteBuffer _key183; - ByteBuffer _val184; + struct.attributes = new java.util.HashMap(2*_map182.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key183; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val184; for (int _i185 = 0; _i185 < _map182.size; ++_i185) { _key183 = iprot.readBinary(); @@ -23532,7 +24328,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter186 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter186 : struct.attributes.entrySet()) { oprot.writeBinary(_iter186.getKey()); oprot.writeBinary(_iter186.getValue()); @@ -23547,18 +24343,18 @@ public class Hbase { } - private static class getRowTs_argsTupleSchemeFactory implements SchemeFactory { + private static class getRowTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowTs_argsTupleScheme getScheme() { return new getRowTs_argsTupleScheme(); } } - private static class getRowTs_argsTupleScheme extends TupleScheme { + private static class getRowTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -23584,7 +24380,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter187 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter187 : struct.attributes.entrySet()) { oprot.writeBinary(_iter187.getKey()); oprot.writeBinary(_iter187.getValue()); @@ -23595,8 +24391,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -23612,9 +24408,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key189; - ByteBuffer _val190; + struct.attributes = new java.util.HashMap(2*_map188.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key189; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val190; for (int _i191 = 0; _i191 < _map188.size; ++_i191) { _key189 = iprot.readBinary(); @@ -23627,6 +24423,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -23635,24 +24434,21 @@ public class Hbase { 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 getRowTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowTs_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23660,6 +24456,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -23677,21 +24474,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23700,21 +24498,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowTs_result.class, metaDataMap); } @@ -23722,7 +24520,7 @@ public class Hbase { } public getRowTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -23735,7 +24533,7 @@ public class Hbase { */ public getRowTs_result(getRowTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -23760,22 +24558,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRowTs_result setSuccess(List success) { + public getRowTs_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -23795,11 +24595,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRowTs_result setIo(IOError io) { + public getRowTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -23819,13 +24620,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -23840,7 +24641,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -23849,13 +24651,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -23864,11 +24666,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowTs_result) @@ -23879,6 +24681,8 @@ public class Hbase { public boolean equals(getRowTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -23903,19 +24707,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -23926,7 +24728,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -23936,7 +24738,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -23949,21 +24751,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowTs_result("); boolean first = true; sb.append("success:"); @@ -23998,7 +24801,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -24006,13 +24809,13 @@ public class Hbase { } } - private static class getRowTs_resultStandardSchemeFactory implements SchemeFactory { + private static class getRowTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowTs_resultStandardScheme getScheme() { return new getRowTs_resultStandardScheme(); } } - private static class getRowTs_resultStandardScheme extends StandardScheme { + private static class getRowTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24028,8 +24831,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(); - struct.success = new ArrayList(_list192.size); - TRowResult _elem193; + struct.success = new java.util.ArrayList(_list192.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem193; for (int _i194 = 0; _i194 < _list192.size; ++_i194) { _elem193 = new TRowResult(); @@ -24090,18 +24893,18 @@ public class Hbase { } - private static class getRowTs_resultTupleSchemeFactory implements SchemeFactory { + private static class getRowTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowTs_resultTupleScheme getScheme() { return new getRowTs_resultTupleScheme(); } } - private static class getRowTs_resultTupleScheme extends TupleScheme { + private static class getRowTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -24125,13 +24928,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRowResult _elem198; + struct.success = new java.util.ArrayList(_list197.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem198; for (int _i199 = 0; _i199 < _list197.size; ++_i199) { _elem198 = new TRowResult(); @@ -24149,6 +24952,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowWithColumnsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -24160,29 +24966,26 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRowWithColumnsTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowWithColumnsTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowWithColumnsTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowWithColumnsTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * List of columns to return, null for all columns */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required public long timestamp; // required /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -24204,10 +25007,10 @@ public class Hbase { */ ATTRIBUTES((short)5, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -24215,6 +25018,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -24238,21 +25042,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -24261,7 +25066,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -24269,9 +25074,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -24285,7 +25090,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumnsTs_args.class, metaDataMap); } @@ -24293,11 +25098,11 @@ public class Hbase { } public getRowWithColumnsTs_args( - ByteBuffer tableName, - ByteBuffer row, - List columns, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.util.List columns, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -24314,29 +25119,29 @@ public class Hbase { public getRowWithColumnsTs_args(getRowWithColumnsTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -24366,7 +25171,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -24374,11 +25179,11 @@ public class Hbase { * name of table */ public getRowWithColumnsTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRowWithColumnsTs_args setTableName(ByteBuffer tableName) { + public getRowWithColumnsTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -24406,7 +25211,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -24414,11 +25219,11 @@ public class Hbase { * row key */ public getRowWithColumnsTs_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getRowWithColumnsTs_args setRow(ByteBuffer row) { + public getRowWithColumnsTs_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -24442,13 +25247,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -24456,14 +25262,15 @@ public class Hbase { /** * List of columns to return, null for all columns */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } /** * List of columns to return, null for all columns */ - public getRowWithColumnsTs_args setColumns(List columns) { + public getRowWithColumnsTs_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -24494,25 +25301,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -24520,14 +25327,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getRowWithColumnsTs_args setAttributes(Map attributes) { + public getRowWithColumnsTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -24547,13 +25355,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -24561,7 +25373,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -24569,7 +25385,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -24577,7 +25393,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -24585,14 +25401,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -24610,13 +25427,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -24631,11 +25448,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowWithColumnsTs_args) @@ -24646,6 +25463,8 @@ public class Hbase { public boolean equals(getRowWithColumnsTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -24697,34 +25516,27 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -24735,7 +25547,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -24745,7 +25557,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -24755,7 +25567,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -24765,7 +25577,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -24775,7 +25587,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -24788,21 +25600,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowWithColumnsTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowWithColumnsTs_args("); boolean first = true; sb.append("tableName:"); @@ -24857,7 +25670,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -24867,13 +25680,13 @@ public class Hbase { } } - private static class getRowWithColumnsTs_argsStandardSchemeFactory implements SchemeFactory { + private static class getRowWithColumnsTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowWithColumnsTs_argsStandardScheme getScheme() { return new getRowWithColumnsTs_argsStandardScheme(); } } - private static class getRowWithColumnsTs_argsStandardScheme extends StandardScheme { + private static class getRowWithColumnsTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24905,8 +25718,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list200 = iprot.readListBegin(); - struct.columns = new ArrayList(_list200.size); - ByteBuffer _elem201; + struct.columns = new java.util.ArrayList(_list200.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem201; for (int _i202 = 0; _i202 < _list200.size; ++_i202) { _elem201 = iprot.readBinary(); @@ -24931,9 +25744,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map203 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map203.size); - ByteBuffer _key204; - ByteBuffer _val205; + struct.attributes = new java.util.HashMap(2*_map203.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key204; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val205; for (int _i206 = 0; _i206 < _map203.size; ++_i206) { _key204 = iprot.readBinary(); @@ -24976,7 +25789,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter207 : struct.columns) + for (java.nio.ByteBuffer _iter207 : struct.columns) { oprot.writeBinary(_iter207); } @@ -24991,7 +25804,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter208 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter208 : struct.attributes.entrySet()) { oprot.writeBinary(_iter208.getKey()); oprot.writeBinary(_iter208.getValue()); @@ -25006,18 +25819,18 @@ public class Hbase { } - private static class getRowWithColumnsTs_argsTupleSchemeFactory implements SchemeFactory { + private static class getRowWithColumnsTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowWithColumnsTs_argsTupleScheme getScheme() { return new getRowWithColumnsTs_argsTupleScheme(); } } - private static class getRowWithColumnsTs_argsTupleScheme extends TupleScheme { + private static class getRowWithColumnsTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -25043,7 +25856,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter209 : struct.columns) + for (java.nio.ByteBuffer _iter209 : struct.columns) { oprot.writeBinary(_iter209); } @@ -25055,7 +25868,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter210 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter210 : struct.attributes.entrySet()) { oprot.writeBinary(_iter210.getKey()); oprot.writeBinary(_iter210.getValue()); @@ -25066,8 +25879,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -25079,8 +25892,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _elem212; + struct.columns = new java.util.ArrayList(_list211.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem212; for (int _i213 = 0; _i213 < _list211.size; ++_i213) { _elem212 = iprot.readBinary(); @@ -25096,9 +25909,9 @@ public class Hbase { if (incoming.get(4)) { { 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); - ByteBuffer _key215; - ByteBuffer _val216; + struct.attributes = new java.util.HashMap(2*_map214.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key215; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val216; for (int _i217 = 0; _i217 < _map214.size; ++_i217) { _key215 = iprot.readBinary(); @@ -25111,6 +25924,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowWithColumnsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -25119,24 +25935,21 @@ public class Hbase { 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 getRowWithColumnsTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowWithColumnsTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowWithColumnsTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowWithColumnsTs_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -25144,6 +25957,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -25161,21 +25975,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -25184,21 +25999,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumnsTs_result.class, metaDataMap); } @@ -25206,7 +26021,7 @@ public class Hbase { } public getRowWithColumnsTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -25219,7 +26034,7 @@ public class Hbase { */ public getRowWithColumnsTs_result(getRowWithColumnsTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -25244,22 +26059,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRowWithColumnsTs_result setSuccess(List success) { + public getRowWithColumnsTs_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -25279,11 +26096,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRowWithColumnsTs_result setIo(IOError io) { + public getRowWithColumnsTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -25303,13 +26121,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -25324,7 +26142,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -25333,13 +26152,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -25348,11 +26167,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowWithColumnsTs_result) @@ -25363,6 +26182,8 @@ public class Hbase { public boolean equals(getRowWithColumnsTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -25387,19 +26208,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -25410,7 +26229,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -25420,7 +26239,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -25433,21 +26252,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowWithColumnsTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowWithColumnsTs_result("); boolean first = true; sb.append("success:"); @@ -25482,7 +26302,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -25490,13 +26310,13 @@ public class Hbase { } } - private static class getRowWithColumnsTs_resultStandardSchemeFactory implements SchemeFactory { + private static class getRowWithColumnsTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowWithColumnsTs_resultStandardScheme getScheme() { return new getRowWithColumnsTs_resultStandardScheme(); } } - private static class getRowWithColumnsTs_resultStandardScheme extends StandardScheme { + private static class getRowWithColumnsTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -25512,8 +26332,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list218 = iprot.readListBegin(); - struct.success = new ArrayList(_list218.size); - TRowResult _elem219; + struct.success = new java.util.ArrayList(_list218.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem219; for (int _i220 = 0; _i220 < _list218.size; ++_i220) { _elem219 = new TRowResult(); @@ -25574,18 +26394,18 @@ public class Hbase { } - private static class getRowWithColumnsTs_resultTupleSchemeFactory implements SchemeFactory { + private static class getRowWithColumnsTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowWithColumnsTs_resultTupleScheme getScheme() { return new getRowWithColumnsTs_resultTupleScheme(); } } - private static class getRowWithColumnsTs_resultTupleScheme extends TupleScheme { + private static class getRowWithColumnsTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -25609,13 +26429,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRowResult _elem224; + struct.success = new java.util.ArrayList(_list223.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem224; for (int _i225 = 0; _i225 < _list223.size; ++_i225) { _elem224 = new TRowResult(); @@ -25633,6 +26453,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -25642,24 +26465,21 @@ public class Hbase { private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRows_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRows_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRows_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRows_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row keys */ - public List rows; // required + public @org.apache.thrift.annotation.Nullable java.util.List rows; // required /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -25676,10 +26496,10 @@ public class Hbase { */ ATTRIBUTES((short)3, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -25687,6 +26507,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -25706,21 +26527,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -25729,15 +26551,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -25747,7 +26569,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRows_args.class, metaDataMap); } @@ -25755,9 +26577,9 @@ public class Hbase { } public getRows_args( - ByteBuffer tableName, - List rows, - Map attributes) + java.nio.ByteBuffer tableName, + java.util.List rows, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -25770,25 +26592,25 @@ public class Hbase { */ public getRows_args(getRows_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRows()) { - List __this__rows = new ArrayList(other.rows.size()); - for (ByteBuffer other_element : other.rows) { - __this__rows.add(other_element); + java.util.List __this__rows = new java.util.ArrayList(other.rows.size()); + for (java.nio.ByteBuffer other_element : other.rows) { + __this__rows.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.rows = __this__rows; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -25815,7 +26637,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -25823,11 +26645,11 @@ public class Hbase { * name of table */ public getRows_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRows_args setTableName(ByteBuffer tableName) { + public getRows_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -25851,13 +26673,14 @@ public class Hbase { return (this.rows == null) ? 0 : this.rows.size(); } - public java.util.Iterator getRowsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getRowsIterator() { return (this.rows == null) ? null : this.rows.iterator(); } - public void addToRows(ByteBuffer elem) { + public void addToRows(java.nio.ByteBuffer elem) { if (this.rows == null) { - this.rows = new ArrayList(); + this.rows = new java.util.ArrayList(); } this.rows.add(elem); } @@ -25865,14 +26688,15 @@ public class Hbase { /** * row keys */ - public List getRows() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRows() { return this.rows; } /** * row keys */ - public getRows_args setRows(List rows) { + public getRows_args setRows(@org.apache.thrift.annotation.Nullable java.util.List rows) { this.rows = rows; return this; } @@ -25896,9 +26720,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -25906,14 +26730,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getRows_args setAttributes(Map attributes) { + public getRows_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -25933,13 +26758,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -25947,7 +26776,7 @@ public class Hbase { if (value == null) { unsetRows(); } else { - setRows((List)value); + setRows((java.util.List)value); } break; @@ -25955,14 +26784,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -25974,13 +26804,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -25991,11 +26821,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRows_args) @@ -26006,6 +26836,8 @@ public class Hbase { public boolean equals(getRows_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -26039,24 +26871,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_rows = true && (isSetRows()); - list.add(present_rows); - if (present_rows) - list.add(rows); + hashCode = hashCode * 8191 + ((isSetRows()) ? 131071 : 524287); + if (isSetRows()) + hashCode = hashCode * 8191 + rows.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -26067,7 +26896,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -26077,7 +26906,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); + lastComparison = java.lang.Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); if (lastComparison != 0) { return lastComparison; } @@ -26087,7 +26916,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -26100,21 +26929,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRows_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRows_args("); boolean first = true; sb.append("tableName:"); @@ -26157,7 +26987,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -26165,13 +26995,13 @@ public class Hbase { } } - private static class getRows_argsStandardSchemeFactory implements SchemeFactory { + private static class getRows_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRows_argsStandardScheme getScheme() { return new getRows_argsStandardScheme(); } } - private static class getRows_argsStandardScheme extends StandardScheme { + private static class getRows_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRows_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -26195,8 +27025,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); - struct.rows = new ArrayList(_list226.size); - ByteBuffer _elem227; + struct.rows = new java.util.ArrayList(_list226.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem227; for (int _i228 = 0; _i228 < _list226.size; ++_i228) { _elem227 = iprot.readBinary(); @@ -26213,9 +27043,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map229 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map229.size); - ByteBuffer _key230; - ByteBuffer _val231; + struct.attributes = new java.util.HashMap(2*_map229.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key230; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val231; for (int _i232 = 0; _i232 < _map229.size; ++_i232) { _key230 = iprot.readBinary(); @@ -26253,7 +27083,7 @@ public class Hbase { oprot.writeFieldBegin(ROWS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size())); - for (ByteBuffer _iter233 : struct.rows) + for (java.nio.ByteBuffer _iter233 : struct.rows) { oprot.writeBinary(_iter233); } @@ -26265,7 +27095,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter234 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter234 : struct.attributes.entrySet()) { oprot.writeBinary(_iter234.getKey()); oprot.writeBinary(_iter234.getValue()); @@ -26280,18 +27110,18 @@ public class Hbase { } - private static class getRows_argsTupleSchemeFactory implements SchemeFactory { + private static class getRows_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRows_argsTupleScheme getScheme() { return new getRows_argsTupleScheme(); } } - private static class getRows_argsTupleScheme extends TupleScheme { + private static class getRows_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -26308,7 +27138,7 @@ public class Hbase { if (struct.isSetRows()) { { oprot.writeI32(struct.rows.size()); - for (ByteBuffer _iter235 : struct.rows) + for (java.nio.ByteBuffer _iter235 : struct.rows) { oprot.writeBinary(_iter235); } @@ -26317,7 +27147,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter236 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter236 : struct.attributes.entrySet()) { oprot.writeBinary(_iter236.getKey()); oprot.writeBinary(_iter236.getValue()); @@ -26328,8 +27158,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -26337,8 +27167,8 @@ public class Hbase { if (incoming.get(1)) { { 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); - ByteBuffer _elem238; + struct.rows = new java.util.ArrayList(_list237.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem238; for (int _i239 = 0; _i239 < _list237.size; ++_i239) { _elem238 = iprot.readBinary(); @@ -26350,9 +27180,9 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _key241; - ByteBuffer _val242; + struct.attributes = new java.util.HashMap(2*_map240.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key241; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val242; for (int _i243 = 0; _i243 < _map240.size; ++_i243) { _key241 = iprot.readBinary(); @@ -26365,6 +27195,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -26373,24 +27206,21 @@ public class Hbase { 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 getRows_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRows_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRows_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRows_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -26398,6 +27228,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -26415,21 +27246,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -26438,21 +27270,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRows_result.class, metaDataMap); } @@ -26460,7 +27292,7 @@ public class Hbase { } public getRows_result( - List success, + java.util.List success, IOError io) { this(); @@ -26473,7 +27305,7 @@ public class Hbase { */ public getRows_result(getRows_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -26498,22 +27330,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRows_result setSuccess(List success) { + public getRows_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -26533,11 +27367,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRows_result setIo(IOError io) { + public getRows_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -26557,13 +27392,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -26578,7 +27413,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -26587,13 +27423,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -26602,11 +27438,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRows_result) @@ -26617,6 +27453,8 @@ public class Hbase { public boolean equals(getRows_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -26641,19 +27479,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -26664,7 +27500,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -26674,7 +27510,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -26687,21 +27523,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRows_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRows_result("); boolean first = true; sb.append("success:"); @@ -26736,7 +27573,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -26744,13 +27581,13 @@ public class Hbase { } } - private static class getRows_resultStandardSchemeFactory implements SchemeFactory { + private static class getRows_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRows_resultStandardScheme getScheme() { return new getRows_resultStandardScheme(); } } - private static class getRows_resultStandardScheme extends StandardScheme { + private static class getRows_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRows_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -26766,8 +27603,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); - struct.success = new ArrayList(_list244.size); - TRowResult _elem245; + struct.success = new java.util.ArrayList(_list244.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem245; for (int _i246 = 0; _i246 < _list244.size; ++_i246) { _elem245 = new TRowResult(); @@ -26828,18 +27665,18 @@ public class Hbase { } - private static class getRows_resultTupleSchemeFactory implements SchemeFactory { + private static class getRows_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRows_resultTupleScheme getScheme() { return new getRows_resultTupleScheme(); } } - private static class getRows_resultTupleScheme extends TupleScheme { + private static class getRows_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRows_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -26863,13 +27700,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRows_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRowResult _elem250; + struct.success = new java.util.ArrayList(_list249.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem250; for (int _i251 = 0; _i251 < _list249.size; ++_i251) { _elem250 = new TRowResult(); @@ -26887,6 +27724,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowsWithColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -26897,28 +27737,25 @@ public class Hbase { private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRowsWithColumns_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowsWithColumns_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowsWithColumns_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowsWithColumns_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row keys */ - public List rows; // required + public @org.apache.thrift.annotation.Nullable java.util.List rows; // required /** * List of columns to return, null for all columns */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -26939,10 +27776,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -26950,6 +27787,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -26971,21 +27809,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -26994,15 +27833,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -27015,7 +27854,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumns_args.class, metaDataMap); } @@ -27023,10 +27862,10 @@ public class Hbase { } public getRowsWithColumns_args( - ByteBuffer tableName, - List rows, - List columns, - Map attributes) + java.nio.ByteBuffer tableName, + java.util.List rows, + java.util.List columns, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -27040,32 +27879,32 @@ public class Hbase { */ public getRowsWithColumns_args(getRowsWithColumns_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRows()) { - List __this__rows = new ArrayList(other.rows.size()); - for (ByteBuffer other_element : other.rows) { - __this__rows.add(other_element); + java.util.List __this__rows = new java.util.ArrayList(other.rows.size()); + for (java.nio.ByteBuffer other_element : other.rows) { + __this__rows.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.rows = __this__rows; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -27093,7 +27932,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -27101,11 +27940,11 @@ public class Hbase { * name of table */ public getRowsWithColumns_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRowsWithColumns_args setTableName(ByteBuffer tableName) { + public getRowsWithColumns_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -27129,13 +27968,14 @@ public class Hbase { return (this.rows == null) ? 0 : this.rows.size(); } - public java.util.Iterator getRowsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getRowsIterator() { return (this.rows == null) ? null : this.rows.iterator(); } - public void addToRows(ByteBuffer elem) { + public void addToRows(java.nio.ByteBuffer elem) { if (this.rows == null) { - this.rows = new ArrayList(); + this.rows = new java.util.ArrayList(); } this.rows.add(elem); } @@ -27143,14 +27983,15 @@ public class Hbase { /** * row keys */ - public List getRows() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRows() { return this.rows; } /** * row keys */ - public getRowsWithColumns_args setRows(List rows) { + public getRowsWithColumns_args setRows(@org.apache.thrift.annotation.Nullable java.util.List rows) { this.rows = rows; return this; } @@ -27174,13 +28015,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -27188,14 +28030,15 @@ public class Hbase { /** * List of columns to return, null for all columns */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } /** * List of columns to return, null for all columns */ - public getRowsWithColumns_args setColumns(List columns) { + public getRowsWithColumns_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -27219,9 +28062,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -27229,14 +28072,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getRowsWithColumns_args setAttributes(Map attributes) { + public getRowsWithColumns_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -27256,13 +28100,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -27270,7 +28118,7 @@ public class Hbase { if (value == null) { unsetRows(); } else { - setRows((List)value); + setRows((java.util.List)value); } break; @@ -27278,7 +28126,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -27286,14 +28134,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -27308,13 +28157,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -27327,11 +28176,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowsWithColumns_args) @@ -27342,6 +28191,8 @@ public class Hbase { public boolean equals(getRowsWithColumns_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -27384,29 +28235,25 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_rows = true && (isSetRows()); - list.add(present_rows); - if (present_rows) - list.add(rows); + hashCode = hashCode * 8191 + ((isSetRows()) ? 131071 : 524287); + if (isSetRows()) + hashCode = hashCode * 8191 + rows.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -27417,7 +28264,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -27427,7 +28274,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); + lastComparison = java.lang.Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); if (lastComparison != 0) { return lastComparison; } @@ -27437,7 +28284,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -27447,7 +28294,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -27460,21 +28307,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowsWithColumns_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowsWithColumns_args("); boolean first = true; sb.append("tableName:"); @@ -27525,7 +28373,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -27533,13 +28381,13 @@ public class Hbase { } } - private static class getRowsWithColumns_argsStandardSchemeFactory implements SchemeFactory { + private static class getRowsWithColumns_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsWithColumns_argsStandardScheme getScheme() { return new getRowsWithColumns_argsStandardScheme(); } } - private static class getRowsWithColumns_argsStandardScheme extends StandardScheme { + private static class getRowsWithColumns_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumns_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -27563,8 +28411,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list252 = iprot.readListBegin(); - struct.rows = new ArrayList(_list252.size); - ByteBuffer _elem253; + struct.rows = new java.util.ArrayList(_list252.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem253; for (int _i254 = 0; _i254 < _list252.size; ++_i254) { _elem253 = iprot.readBinary(); @@ -27581,8 +28429,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list255 = iprot.readListBegin(); - struct.columns = new ArrayList(_list255.size); - ByteBuffer _elem256; + struct.columns = new java.util.ArrayList(_list255.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem256; for (int _i257 = 0; _i257 < _list255.size; ++_i257) { _elem256 = iprot.readBinary(); @@ -27599,9 +28447,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map258.size); - ByteBuffer _key259; - ByteBuffer _val260; + struct.attributes = new java.util.HashMap(2*_map258.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key259; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val260; for (int _i261 = 0; _i261 < _map258.size; ++_i261) { _key259 = iprot.readBinary(); @@ -27639,7 +28487,7 @@ public class Hbase { oprot.writeFieldBegin(ROWS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size())); - for (ByteBuffer _iter262 : struct.rows) + for (java.nio.ByteBuffer _iter262 : struct.rows) { oprot.writeBinary(_iter262); } @@ -27651,7 +28499,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter263 : struct.columns) + for (java.nio.ByteBuffer _iter263 : struct.columns) { oprot.writeBinary(_iter263); } @@ -27663,7 +28511,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter264 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter264 : struct.attributes.entrySet()) { oprot.writeBinary(_iter264.getKey()); oprot.writeBinary(_iter264.getValue()); @@ -27678,18 +28526,18 @@ public class Hbase { } - private static class getRowsWithColumns_argsTupleSchemeFactory implements SchemeFactory { + private static class getRowsWithColumns_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsWithColumns_argsTupleScheme getScheme() { return new getRowsWithColumns_argsTupleScheme(); } } - private static class getRowsWithColumns_argsTupleScheme extends TupleScheme { + private static class getRowsWithColumns_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -27709,7 +28557,7 @@ public class Hbase { if (struct.isSetRows()) { { oprot.writeI32(struct.rows.size()); - for (ByteBuffer _iter265 : struct.rows) + for (java.nio.ByteBuffer _iter265 : struct.rows) { oprot.writeBinary(_iter265); } @@ -27718,7 +28566,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter266 : struct.columns) + for (java.nio.ByteBuffer _iter266 : struct.columns) { oprot.writeBinary(_iter266); } @@ -27727,7 +28575,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter267 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter267 : struct.attributes.entrySet()) { oprot.writeBinary(_iter267.getKey()); oprot.writeBinary(_iter267.getValue()); @@ -27738,8 +28586,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -27747,8 +28595,8 @@ public class Hbase { if (incoming.get(1)) { { 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); - ByteBuffer _elem269; + struct.rows = new java.util.ArrayList(_list268.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem269; for (int _i270 = 0; _i270 < _list268.size; ++_i270) { _elem269 = iprot.readBinary(); @@ -27760,8 +28608,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _elem272; + struct.columns = new java.util.ArrayList(_list271.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem272; for (int _i273 = 0; _i273 < _list271.size; ++_i273) { _elem272 = iprot.readBinary(); @@ -27773,9 +28621,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key275; - ByteBuffer _val276; + struct.attributes = new java.util.HashMap(2*_map274.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key275; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val276; for (int _i277 = 0; _i277 < _map274.size; ++_i277) { _key275 = iprot.readBinary(); @@ -27788,6 +28636,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowsWithColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -27796,24 +28647,21 @@ public class Hbase { 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 getRowsWithColumns_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowsWithColumns_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowsWithColumns_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowsWithColumns_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -27821,6 +28669,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -27838,21 +28687,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -27861,21 +28711,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumns_result.class, metaDataMap); } @@ -27883,7 +28733,7 @@ public class Hbase { } public getRowsWithColumns_result( - List success, + java.util.List success, IOError io) { this(); @@ -27896,7 +28746,7 @@ public class Hbase { */ public getRowsWithColumns_result(getRowsWithColumns_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -27921,22 +28771,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRowsWithColumns_result setSuccess(List success) { + public getRowsWithColumns_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -27956,11 +28808,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRowsWithColumns_result setIo(IOError io) { + public getRowsWithColumns_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -27980,13 +28833,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -28001,7 +28854,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -28010,13 +28864,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -28025,11 +28879,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowsWithColumns_result) @@ -28040,6 +28894,8 @@ public class Hbase { public boolean equals(getRowsWithColumns_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -28064,19 +28920,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -28087,7 +28941,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -28097,7 +28951,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -28110,21 +28964,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowsWithColumns_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowsWithColumns_result("); boolean first = true; sb.append("success:"); @@ -28159,7 +29014,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -28167,13 +29022,13 @@ public class Hbase { } } - private static class getRowsWithColumns_resultStandardSchemeFactory implements SchemeFactory { + private static class getRowsWithColumns_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsWithColumns_resultStandardScheme getScheme() { return new getRowsWithColumns_resultStandardScheme(); } } - private static class getRowsWithColumns_resultStandardScheme extends StandardScheme { + private static class getRowsWithColumns_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumns_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -28189,8 +29044,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(); - struct.success = new ArrayList(_list278.size); - TRowResult _elem279; + struct.success = new java.util.ArrayList(_list278.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem279; for (int _i280 = 0; _i280 < _list278.size; ++_i280) { _elem279 = new TRowResult(); @@ -28251,18 +29106,18 @@ public class Hbase { } - private static class getRowsWithColumns_resultTupleSchemeFactory implements SchemeFactory { + private static class getRowsWithColumns_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsWithColumns_resultTupleScheme getScheme() { return new getRowsWithColumns_resultTupleScheme(); } } - private static class getRowsWithColumns_resultTupleScheme extends TupleScheme { + private static class getRowsWithColumns_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -28286,13 +29141,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRowResult _elem284; + struct.success = new java.util.ArrayList(_list283.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem284; for (int _i285 = 0; _i285 < _list283.size; ++_i285) { _elem284 = new TRowResult(); @@ -28310,6 +29165,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -28320,20 +29178,17 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRowsTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowsTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowsTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowsTs_argsTupleSchemeFactory(); /** * name of the table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row keys */ - public List rows; // required + public @org.apache.thrift.annotation.Nullable java.util.List rows; // required /** * timestamp */ @@ -28341,7 +29196,7 @@ public class Hbase { /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -28362,10 +29217,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -28373,6 +29228,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -28394,21 +29250,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -28417,7 +29274,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -28425,9 +29282,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -28439,7 +29296,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsTs_args.class, metaDataMap); } @@ -28447,10 +29304,10 @@ public class Hbase { } public getRowsTs_args( - ByteBuffer tableName, - List rows, + java.nio.ByteBuffer tableName, + java.util.List rows, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -28466,26 +29323,26 @@ public class Hbase { public getRowsTs_args(getRowsTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRows()) { - List __this__rows = new ArrayList(other.rows.size()); - for (ByteBuffer other_element : other.rows) { - __this__rows.add(other_element); + java.util.List __this__rows = new java.util.ArrayList(other.rows.size()); + for (java.nio.ByteBuffer other_element : other.rows) { + __this__rows.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.rows = __this__rows; } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -28514,7 +29371,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -28522,11 +29379,11 @@ public class Hbase { * name of the table */ public getRowsTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRowsTs_args setTableName(ByteBuffer tableName) { + public getRowsTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -28550,13 +29407,14 @@ public class Hbase { return (this.rows == null) ? 0 : this.rows.size(); } - public java.util.Iterator getRowsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getRowsIterator() { return (this.rows == null) ? null : this.rows.iterator(); } - public void addToRows(ByteBuffer elem) { + public void addToRows(java.nio.ByteBuffer elem) { if (this.rows == null) { - this.rows = new ArrayList(); + this.rows = new java.util.ArrayList(); } this.rows.add(elem); } @@ -28564,14 +29422,15 @@ public class Hbase { /** * row keys */ - public List getRows() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRows() { return this.rows; } /** * row keys */ - public getRowsTs_args setRows(List rows) { + public getRowsTs_args setRows(@org.apache.thrift.annotation.Nullable java.util.List rows) { this.rows = rows; return this; } @@ -28608,25 +29467,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -28634,14 +29493,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getRowsTs_args setAttributes(Map attributes) { + public getRowsTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -28661,13 +29521,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -28675,7 +29539,7 @@ public class Hbase { if (value == null) { unsetRows(); } else { - setRows((List)value); + setRows((java.util.List)value); } break; @@ -28683,7 +29547,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -28691,14 +29555,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -28713,13 +29578,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -28732,11 +29597,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowsTs_args) @@ -28747,6 +29612,8 @@ public class Hbase { public boolean equals(getRowsTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -28789,29 +29656,23 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_rows = true && (isSetRows()); - list.add(present_rows); - if (present_rows) - list.add(rows); + hashCode = hashCode * 8191 + ((isSetRows()) ? 131071 : 524287); + if (isSetRows()) + hashCode = hashCode * 8191 + rows.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -28822,7 +29683,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -28832,7 +29693,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); + lastComparison = java.lang.Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); if (lastComparison != 0) { return lastComparison; } @@ -28842,7 +29703,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -28852,7 +29713,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -28865,21 +29726,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowsTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowsTs_args("); boolean first = true; sb.append("tableName:"); @@ -28926,7 +29788,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -28936,13 +29798,13 @@ public class Hbase { } } - private static class getRowsTs_argsStandardSchemeFactory implements SchemeFactory { + private static class getRowsTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsTs_argsStandardScheme getScheme() { return new getRowsTs_argsStandardScheme(); } } - private static class getRowsTs_argsStandardScheme extends StandardScheme { + private static class getRowsTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -28966,8 +29828,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list286 = iprot.readListBegin(); - struct.rows = new ArrayList(_list286.size); - ByteBuffer _elem287; + struct.rows = new java.util.ArrayList(_list286.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem287; for (int _i288 = 0; _i288 < _list286.size; ++_i288) { _elem287 = iprot.readBinary(); @@ -28992,9 +29854,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map289 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map289.size); - ByteBuffer _key290; - ByteBuffer _val291; + struct.attributes = new java.util.HashMap(2*_map289.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key290; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val291; for (int _i292 = 0; _i292 < _map289.size; ++_i292) { _key290 = iprot.readBinary(); @@ -29032,7 +29894,7 @@ public class Hbase { oprot.writeFieldBegin(ROWS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size())); - for (ByteBuffer _iter293 : struct.rows) + for (java.nio.ByteBuffer _iter293 : struct.rows) { oprot.writeBinary(_iter293); } @@ -29047,7 +29909,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter294 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter294 : struct.attributes.entrySet()) { oprot.writeBinary(_iter294.getKey()); oprot.writeBinary(_iter294.getValue()); @@ -29062,18 +29924,18 @@ public class Hbase { } - private static class getRowsTs_argsTupleSchemeFactory implements SchemeFactory { + private static class getRowsTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsTs_argsTupleScheme getScheme() { return new getRowsTs_argsTupleScheme(); } } - private static class getRowsTs_argsTupleScheme extends TupleScheme { + private static class getRowsTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowsTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -29093,7 +29955,7 @@ public class Hbase { if (struct.isSetRows()) { { oprot.writeI32(struct.rows.size()); - for (ByteBuffer _iter295 : struct.rows) + for (java.nio.ByteBuffer _iter295 : struct.rows) { oprot.writeBinary(_iter295); } @@ -29105,7 +29967,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter296 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter296 : struct.attributes.entrySet()) { oprot.writeBinary(_iter296.getKey()); oprot.writeBinary(_iter296.getValue()); @@ -29116,8 +29978,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowsTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -29125,8 +29987,8 @@ public class Hbase { if (incoming.get(1)) { { 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); - ByteBuffer _elem298; + struct.rows = new java.util.ArrayList(_list297.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem298; for (int _i299 = 0; _i299 < _list297.size; ++_i299) { _elem298 = iprot.readBinary(); @@ -29142,9 +30004,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key301; - ByteBuffer _val302; + struct.attributes = new java.util.HashMap(2*_map300.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key301; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val302; for (int _i303 = 0; _i303 < _map300.size; ++_i303) { _key301 = iprot.readBinary(); @@ -29157,6 +30019,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -29165,24 +30030,21 @@ public class Hbase { 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 getRowsTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowsTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowsTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowsTs_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -29190,6 +30052,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -29207,21 +30070,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -29230,21 +30094,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsTs_result.class, metaDataMap); } @@ -29252,7 +30116,7 @@ public class Hbase { } public getRowsTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -29265,7 +30129,7 @@ public class Hbase { */ public getRowsTs_result(getRowsTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -29290,22 +30154,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRowsTs_result setSuccess(List success) { + public getRowsTs_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -29325,11 +30191,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRowsTs_result setIo(IOError io) { + public getRowsTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -29349,13 +30216,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -29370,7 +30237,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -29379,13 +30247,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -29394,11 +30262,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowsTs_result) @@ -29409,6 +30277,8 @@ public class Hbase { public boolean equals(getRowsTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -29433,19 +30303,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -29456,7 +30324,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -29466,7 +30334,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -29479,21 +30347,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowsTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowsTs_result("); boolean first = true; sb.append("success:"); @@ -29528,7 +30397,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -29536,13 +30405,13 @@ public class Hbase { } } - private static class getRowsTs_resultStandardSchemeFactory implements SchemeFactory { + private static class getRowsTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsTs_resultStandardScheme getScheme() { return new getRowsTs_resultStandardScheme(); } } - private static class getRowsTs_resultStandardScheme extends StandardScheme { + private static class getRowsTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -29558,8 +30427,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list304 = iprot.readListBegin(); - struct.success = new ArrayList(_list304.size); - TRowResult _elem305; + struct.success = new java.util.ArrayList(_list304.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem305; for (int _i306 = 0; _i306 < _list304.size; ++_i306) { _elem305 = new TRowResult(); @@ -29620,18 +30489,18 @@ public class Hbase { } - private static class getRowsTs_resultTupleSchemeFactory implements SchemeFactory { + private static class getRowsTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsTs_resultTupleScheme getScheme() { return new getRowsTs_resultTupleScheme(); } } - private static class getRowsTs_resultTupleScheme extends TupleScheme { + private static class getRowsTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowsTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -29655,13 +30524,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowsTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRowResult _elem310; + struct.success = new java.util.ArrayList(_list309.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem310; for (int _i311 = 0; _i311 < _list309.size; ++_i311) { _elem310 = new TRowResult(); @@ -29679,6 +30548,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowsWithColumnsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -29690,29 +30562,26 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRowsWithColumnsTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowsWithColumnsTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowsWithColumnsTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowsWithColumnsTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row keys */ - public List rows; // required + public @org.apache.thrift.annotation.Nullable java.util.List rows; // required /** * List of columns to return, null for all columns */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required public long timestamp; // required /** * Get attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -29734,10 +30603,10 @@ public class Hbase { */ ATTRIBUTES((short)5, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -29745,6 +30614,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -29768,21 +30638,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -29791,7 +30662,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -29799,9 +30670,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -29816,7 +30687,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumnsTs_args.class, metaDataMap); } @@ -29824,11 +30695,11 @@ public class Hbase { } public getRowsWithColumnsTs_args( - ByteBuffer tableName, - List rows, - List columns, + java.nio.ByteBuffer tableName, + java.util.List rows, + java.util.List columns, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -29845,33 +30716,33 @@ public class Hbase { public getRowsWithColumnsTs_args(getRowsWithColumnsTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRows()) { - List __this__rows = new ArrayList(other.rows.size()); - for (ByteBuffer other_element : other.rows) { - __this__rows.add(other_element); + java.util.List __this__rows = new java.util.ArrayList(other.rows.size()); + for (java.nio.ByteBuffer other_element : other.rows) { + __this__rows.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.rows = __this__rows; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -29901,7 +30772,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -29909,11 +30780,11 @@ public class Hbase { * name of table */ public getRowsWithColumnsTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRowsWithColumnsTs_args setTableName(ByteBuffer tableName) { + public getRowsWithColumnsTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -29937,13 +30808,14 @@ public class Hbase { return (this.rows == null) ? 0 : this.rows.size(); } - public java.util.Iterator getRowsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getRowsIterator() { return (this.rows == null) ? null : this.rows.iterator(); } - public void addToRows(ByteBuffer elem) { + public void addToRows(java.nio.ByteBuffer elem) { if (this.rows == null) { - this.rows = new ArrayList(); + this.rows = new java.util.ArrayList(); } this.rows.add(elem); } @@ -29951,14 +30823,15 @@ public class Hbase { /** * row keys */ - public List getRows() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRows() { return this.rows; } /** * row keys */ - public getRowsWithColumnsTs_args setRows(List rows) { + public getRowsWithColumnsTs_args setRows(@org.apache.thrift.annotation.Nullable java.util.List rows) { this.rows = rows; return this; } @@ -29982,13 +30855,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -29996,14 +30870,15 @@ public class Hbase { /** * List of columns to return, null for all columns */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } /** * List of columns to return, null for all columns */ - public getRowsWithColumnsTs_args setColumns(List columns) { + public getRowsWithColumnsTs_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -30034,25 +30909,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -30060,14 +30935,15 @@ public class Hbase { /** * Get attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Get attributes */ - public getRowsWithColumnsTs_args setAttributes(Map attributes) { + public getRowsWithColumnsTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -30087,13 +30963,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -30101,7 +30981,7 @@ public class Hbase { if (value == null) { unsetRows(); } else { - setRows((List)value); + setRows((java.util.List)value); } break; @@ -30109,7 +30989,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -30117,7 +30997,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -30125,14 +31005,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -30150,13 +31031,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -30171,11 +31052,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowsWithColumnsTs_args) @@ -30186,6 +31067,8 @@ public class Hbase { public boolean equals(getRowsWithColumnsTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -30237,34 +31120,27 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_rows = true && (isSetRows()); - list.add(present_rows); - if (present_rows) - list.add(rows); + hashCode = hashCode * 8191 + ((isSetRows()) ? 131071 : 524287); + if (isSetRows()) + hashCode = hashCode * 8191 + rows.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -30275,7 +31151,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -30285,7 +31161,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); + lastComparison = java.lang.Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); if (lastComparison != 0) { return lastComparison; } @@ -30295,7 +31171,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -30305,7 +31181,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -30315,7 +31191,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -30328,21 +31204,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowsWithColumnsTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowsWithColumnsTs_args("); boolean first = true; sb.append("tableName:"); @@ -30397,7 +31274,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -30407,13 +31284,13 @@ public class Hbase { } } - private static class getRowsWithColumnsTs_argsStandardSchemeFactory implements SchemeFactory { + private static class getRowsWithColumnsTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsWithColumnsTs_argsStandardScheme getScheme() { return new getRowsWithColumnsTs_argsStandardScheme(); } } - private static class getRowsWithColumnsTs_argsStandardScheme extends StandardScheme { + private static class getRowsWithColumnsTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -30437,8 +31314,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list312 = iprot.readListBegin(); - struct.rows = new ArrayList(_list312.size); - ByteBuffer _elem313; + struct.rows = new java.util.ArrayList(_list312.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem313; for (int _i314 = 0; _i314 < _list312.size; ++_i314) { _elem313 = iprot.readBinary(); @@ -30455,8 +31332,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list315 = iprot.readListBegin(); - struct.columns = new ArrayList(_list315.size); - ByteBuffer _elem316; + struct.columns = new java.util.ArrayList(_list315.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem316; for (int _i317 = 0; _i317 < _list315.size; ++_i317) { _elem316 = iprot.readBinary(); @@ -30481,9 +31358,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map318 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map318.size); - ByteBuffer _key319; - ByteBuffer _val320; + struct.attributes = new java.util.HashMap(2*_map318.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key319; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val320; for (int _i321 = 0; _i321 < _map318.size; ++_i321) { _key319 = iprot.readBinary(); @@ -30521,7 +31398,7 @@ public class Hbase { oprot.writeFieldBegin(ROWS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size())); - for (ByteBuffer _iter322 : struct.rows) + for (java.nio.ByteBuffer _iter322 : struct.rows) { oprot.writeBinary(_iter322); } @@ -30533,7 +31410,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter323 : struct.columns) + for (java.nio.ByteBuffer _iter323 : struct.columns) { oprot.writeBinary(_iter323); } @@ -30548,7 +31425,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter324 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter324 : struct.attributes.entrySet()) { oprot.writeBinary(_iter324.getKey()); oprot.writeBinary(_iter324.getValue()); @@ -30563,18 +31440,18 @@ public class Hbase { } - private static class getRowsWithColumnsTs_argsTupleSchemeFactory implements SchemeFactory { + private static class getRowsWithColumnsTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsWithColumnsTs_argsTupleScheme getScheme() { return new getRowsWithColumnsTs_argsTupleScheme(); } } - private static class getRowsWithColumnsTs_argsTupleScheme extends TupleScheme { + private static class getRowsWithColumnsTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -30597,7 +31474,7 @@ public class Hbase { if (struct.isSetRows()) { { oprot.writeI32(struct.rows.size()); - for (ByteBuffer _iter325 : struct.rows) + for (java.nio.ByteBuffer _iter325 : struct.rows) { oprot.writeBinary(_iter325); } @@ -30606,7 +31483,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter326 : struct.columns) + for (java.nio.ByteBuffer _iter326 : struct.columns) { oprot.writeBinary(_iter326); } @@ -30618,7 +31495,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter327 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter327 : struct.attributes.entrySet()) { oprot.writeBinary(_iter327.getKey()); oprot.writeBinary(_iter327.getValue()); @@ -30629,8 +31506,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -30638,8 +31515,8 @@ public class Hbase { if (incoming.get(1)) { { 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); - ByteBuffer _elem329; + struct.rows = new java.util.ArrayList(_list328.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem329; for (int _i330 = 0; _i330 < _list328.size; ++_i330) { _elem329 = iprot.readBinary(); @@ -30651,8 +31528,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _elem332; + struct.columns = new java.util.ArrayList(_list331.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem332; for (int _i333 = 0; _i333 < _list331.size; ++_i333) { _elem332 = iprot.readBinary(); @@ -30668,9 +31545,9 @@ public class Hbase { if (incoming.get(4)) { { 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); - ByteBuffer _key335; - ByteBuffer _val336; + struct.attributes = new java.util.HashMap(2*_map334.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key335; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val336; for (int _i337 = 0; _i337 < _map334.size; ++_i337) { _key335 = iprot.readBinary(); @@ -30683,6 +31560,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowsWithColumnsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -30691,24 +31571,21 @@ public class Hbase { 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 getRowsWithColumnsTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowsWithColumnsTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowsWithColumnsTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowsWithColumnsTs_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -30716,6 +31593,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -30733,21 +31611,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -30756,21 +31635,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumnsTs_result.class, metaDataMap); } @@ -30778,7 +31657,7 @@ public class Hbase { } public getRowsWithColumnsTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -30791,7 +31670,7 @@ public class Hbase { */ public getRowsWithColumnsTs_result(getRowsWithColumnsTs_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -30816,22 +31695,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRowsWithColumnsTs_result setSuccess(List success) { + public getRowsWithColumnsTs_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -30851,11 +31732,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRowsWithColumnsTs_result setIo(IOError io) { + public getRowsWithColumnsTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -30875,13 +31757,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -30896,7 +31778,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -30905,13 +31788,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -30920,11 +31803,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowsWithColumnsTs_result) @@ -30935,6 +31818,8 @@ public class Hbase { public boolean equals(getRowsWithColumnsTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -30959,19 +31844,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -30982,7 +31865,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -30992,7 +31875,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -31005,21 +31888,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowsWithColumnsTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowsWithColumnsTs_result("); boolean first = true; sb.append("success:"); @@ -31054,7 +31938,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -31062,13 +31946,13 @@ public class Hbase { } } - private static class getRowsWithColumnsTs_resultStandardSchemeFactory implements SchemeFactory { + private static class getRowsWithColumnsTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsWithColumnsTs_resultStandardScheme getScheme() { return new getRowsWithColumnsTs_resultStandardScheme(); } } - private static class getRowsWithColumnsTs_resultStandardScheme extends StandardScheme { + private static class getRowsWithColumnsTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -31084,8 +31968,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); - struct.success = new ArrayList(_list338.size); - TRowResult _elem339; + struct.success = new java.util.ArrayList(_list338.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem339; for (int _i340 = 0; _i340 < _list338.size; ++_i340) { _elem339 = new TRowResult(); @@ -31146,18 +32030,18 @@ public class Hbase { } - private static class getRowsWithColumnsTs_resultTupleSchemeFactory implements SchemeFactory { + private static class getRowsWithColumnsTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowsWithColumnsTs_resultTupleScheme getScheme() { return new getRowsWithColumnsTs_resultTupleScheme(); } } - private static class getRowsWithColumnsTs_resultTupleScheme extends TupleScheme { + private static class getRowsWithColumnsTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -31181,13 +32065,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TRowResult _elem344; + struct.success = new java.util.ArrayList(_list343.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem344; for (int _i345 = 0; _i345 < _list343.size; ++_i345) { _elem344 = new TRowResult(); @@ -31205,6 +32089,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -31215,28 +32102,25 @@ public class Hbase { private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new mutateRow_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRow_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRow_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRow_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * list of mutation commands */ - public List mutations; // required + public @org.apache.thrift.annotation.Nullable java.util.List mutations; // required /** * Mutation attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -31257,10 +32141,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -31268,6 +32152,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -31289,21 +32174,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -31312,15 +32198,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -31332,7 +32218,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_args.class, metaDataMap); } @@ -31340,10 +32226,10 @@ public class Hbase { } public mutateRow_args( - ByteBuffer tableName, - ByteBuffer row, - List mutations, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.util.List mutations, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -31357,28 +32243,28 @@ public class Hbase { */ public mutateRow_args(mutateRow_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetMutations()) { - List __this__mutations = new ArrayList(other.mutations.size()); + java.util.List __this__mutations = new java.util.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(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -31406,7 +32292,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -31414,11 +32300,11 @@ public class Hbase { * name of table */ public mutateRow_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public mutateRow_args setTableName(ByteBuffer tableName) { + public mutateRow_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -31446,7 +32332,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -31454,11 +32340,11 @@ public class Hbase { * row key */ public mutateRow_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public mutateRow_args setRow(ByteBuffer row) { + public mutateRow_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -31482,13 +32368,14 @@ public class Hbase { return (this.mutations == null) ? 0 : this.mutations.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getMutationsIterator() { return (this.mutations == null) ? null : this.mutations.iterator(); } public void addToMutations(Mutation elem) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new java.util.ArrayList(); } this.mutations.add(elem); } @@ -31496,14 +32383,15 @@ public class Hbase { /** * list of mutation commands */ - public List getMutations() { + @org.apache.thrift.annotation.Nullable + public java.util.List getMutations() { return this.mutations; } /** * list of mutation commands */ - public mutateRow_args setMutations(List mutations) { + public mutateRow_args setMutations(@org.apache.thrift.annotation.Nullable java.util.List mutations) { this.mutations = mutations; return this; } @@ -31527,9 +32415,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -31537,14 +32425,15 @@ public class Hbase { /** * Mutation attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Mutation attributes */ - public mutateRow_args setAttributes(Map attributes) { + public mutateRow_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -31564,13 +32453,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -31578,7 +32471,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -31586,7 +32483,7 @@ public class Hbase { if (value == null) { unsetMutations(); } else { - setMutations((List)value); + setMutations((java.util.List)value); } break; @@ -31594,14 +32491,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -31616,13 +32514,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -31635,11 +32533,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRow_args) @@ -31650,6 +32548,8 @@ public class Hbase { public boolean equals(mutateRow_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -31692,29 +32592,25 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_mutations = true && (isSetMutations()); - list.add(present_mutations); - if (present_mutations) - list.add(mutations); + hashCode = hashCode * 8191 + ((isSetMutations()) ? 131071 : 524287); + if (isSetMutations()) + hashCode = hashCode * 8191 + mutations.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -31725,7 +32621,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -31735,7 +32631,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -31745,7 +32641,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMutations()).compareTo(other.isSetMutations()); + lastComparison = java.lang.Boolean.valueOf(isSetMutations()).compareTo(other.isSetMutations()); if (lastComparison != 0) { return lastComparison; } @@ -31755,7 +32651,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -31768,21 +32664,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRow_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRow_args("); boolean first = true; sb.append("tableName:"); @@ -31833,7 +32730,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -31841,13 +32738,13 @@ public class Hbase { } } - private static class mutateRow_argsStandardSchemeFactory implements SchemeFactory { + private static class mutateRow_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_argsStandardScheme getScheme() { return new mutateRow_argsStandardScheme(); } } - private static class mutateRow_argsStandardScheme extends StandardScheme { + private static class mutateRow_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -31879,8 +32776,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); - struct.mutations = new ArrayList(_list346.size); - Mutation _elem347; + struct.mutations = new java.util.ArrayList(_list346.size); + @org.apache.thrift.annotation.Nullable Mutation _elem347; for (int _i348 = 0; _i348 < _list346.size; ++_i348) { _elem347 = new Mutation(); @@ -31898,9 +32795,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map349 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map349.size); - ByteBuffer _key350; - ByteBuffer _val351; + struct.attributes = new java.util.HashMap(2*_map349.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key350; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val351; for (int _i352 = 0; _i352 < _map349.size; ++_i352) { _key350 = iprot.readBinary(); @@ -31955,7 +32852,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter354 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter354 : struct.attributes.entrySet()) { oprot.writeBinary(_iter354.getKey()); oprot.writeBinary(_iter354.getValue()); @@ -31970,18 +32867,18 @@ public class Hbase { } - private static class mutateRow_argsTupleSchemeFactory implements SchemeFactory { + private static class mutateRow_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_argsTupleScheme getScheme() { return new mutateRow_argsTupleScheme(); } } - private static class mutateRow_argsTupleScheme extends TupleScheme { + private static class mutateRow_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -32013,7 +32910,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter356 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter356 : struct.attributes.entrySet()) { oprot.writeBinary(_iter356.getKey()); oprot.writeBinary(_iter356.getValue()); @@ -32024,8 +32921,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -32037,8 +32934,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - Mutation _elem358; + struct.mutations = new java.util.ArrayList(_list357.size); + @org.apache.thrift.annotation.Nullable Mutation _elem358; for (int _i359 = 0; _i359 < _list357.size; ++_i359) { _elem358 = new Mutation(); @@ -32051,9 +32948,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key361; - ByteBuffer _val362; + struct.attributes = new java.util.HashMap(2*_map360.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key361; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val362; for (int _i363 = 0; _i363 < _map360.size; ++_i363) { _key361 = iprot.readBinary(); @@ -32066,6 +32963,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -32074,24 +32974,21 @@ public class Hbase { 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 mutateRow_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRow_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRow_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRow_resultTupleSchemeFactory(); - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -32099,6 +32996,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -32116,21 +33014,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -32139,20 +33038,20 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_result.class, metaDataMap); } @@ -32190,11 +33089,12 @@ public class Hbase { this.ia = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public mutateRow_result setIo(IOError io) { + public mutateRow_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -32214,11 +33114,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public mutateRow_result setIa(IllegalArgument ia) { + public mutateRow_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -32238,7 +33139,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -32259,7 +33160,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); @@ -32268,13 +33170,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -32283,11 +33185,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRow_result) @@ -32298,6 +33200,8 @@ public class Hbase { public boolean equals(mutateRow_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -32322,19 +33226,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -32345,7 +33247,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -32355,7 +33257,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -32368,21 +33270,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRow_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRow_result("); boolean first = true; sb.append("io:"); @@ -32417,7 +33320,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -32425,13 +33328,13 @@ public class Hbase { } } - private static class mutateRow_resultStandardSchemeFactory implements SchemeFactory { + private static class mutateRow_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_resultStandardScheme getScheme() { return new mutateRow_resultStandardScheme(); } } - private static class mutateRow_resultStandardScheme extends StandardScheme { + private static class mutateRow_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -32492,18 +33395,18 @@ public class Hbase { } - private static class mutateRow_resultTupleSchemeFactory implements SchemeFactory { + private static class mutateRow_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_resultTupleScheme getScheme() { return new mutateRow_resultTupleScheme(); } } - private static class mutateRow_resultTupleScheme extends TupleScheme { + private static class mutateRow_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -32521,8 +33424,8 @@ public class Hbase { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -32536,6 +33439,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -32547,24 +33453,21 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new mutateRowTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRowTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRowTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRowTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * list of mutation commands */ - public List mutations; // required + public @org.apache.thrift.annotation.Nullable java.util.List mutations; // required /** * timestamp */ @@ -32572,7 +33475,7 @@ public class Hbase { /** * Mutation attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -32597,10 +33500,10 @@ public class Hbase { */ ATTRIBUTES((short)5, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -32608,6 +33511,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -32631,21 +33535,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -32654,7 +33559,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -32662,9 +33567,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -32678,7 +33583,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowTs_args.class, metaDataMap); } @@ -32686,11 +33591,11 @@ public class Hbase { } public mutateRowTs_args( - ByteBuffer tableName, - ByteBuffer row, - List mutations, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.util.List mutations, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -32707,13 +33612,13 @@ public class Hbase { public mutateRowTs_args(mutateRowTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetMutations()) { - List __this__mutations = new ArrayList(other.mutations.size()); + java.util.List __this__mutations = new java.util.ArrayList(other.mutations.size()); for (Mutation other_element : other.mutations) { __this__mutations.add(new Mutation(other_element)); } @@ -32721,15 +33626,15 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -32759,7 +33664,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -32767,11 +33672,11 @@ public class Hbase { * name of table */ public mutateRowTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public mutateRowTs_args setTableName(ByteBuffer tableName) { + public mutateRowTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -32799,7 +33704,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -32807,11 +33712,11 @@ public class Hbase { * row key */ public mutateRowTs_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public mutateRowTs_args setRow(ByteBuffer row) { + public mutateRowTs_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -32835,13 +33740,14 @@ public class Hbase { return (this.mutations == null) ? 0 : this.mutations.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getMutationsIterator() { return (this.mutations == null) ? null : this.mutations.iterator(); } public void addToMutations(Mutation elem) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new java.util.ArrayList(); } this.mutations.add(elem); } @@ -32849,14 +33755,15 @@ public class Hbase { /** * list of mutation commands */ - public List getMutations() { + @org.apache.thrift.annotation.Nullable + public java.util.List getMutations() { return this.mutations; } /** * list of mutation commands */ - public mutateRowTs_args setMutations(List mutations) { + public mutateRowTs_args setMutations(@org.apache.thrift.annotation.Nullable java.util.List mutations) { this.mutations = mutations; return this; } @@ -32893,25 +33800,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -32919,14 +33826,15 @@ public class Hbase { /** * Mutation attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Mutation attributes */ - public mutateRowTs_args setAttributes(Map attributes) { + public mutateRowTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -32946,13 +33854,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -32960,7 +33872,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -32968,7 +33884,7 @@ public class Hbase { if (value == null) { unsetMutations(); } else { - setMutations((List)value); + setMutations((java.util.List)value); } break; @@ -32976,7 +33892,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -32984,14 +33900,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -33009,13 +33926,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -33030,11 +33947,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRowTs_args) @@ -33045,6 +33962,8 @@ public class Hbase { public boolean equals(mutateRowTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -33096,34 +34015,27 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_mutations = true && (isSetMutations()); - list.add(present_mutations); - if (present_mutations) - list.add(mutations); + hashCode = hashCode * 8191 + ((isSetMutations()) ? 131071 : 524287); + if (isSetMutations()) + hashCode = hashCode * 8191 + mutations.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -33134,7 +34046,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -33144,7 +34056,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -33154,7 +34066,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMutations()).compareTo(other.isSetMutations()); + lastComparison = java.lang.Boolean.valueOf(isSetMutations()).compareTo(other.isSetMutations()); if (lastComparison != 0) { return lastComparison; } @@ -33164,7 +34076,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -33174,7 +34086,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -33187,21 +34099,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRowTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRowTs_args("); boolean first = true; sb.append("tableName:"); @@ -33256,7 +34169,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -33266,13 +34179,13 @@ public class Hbase { } } - private static class mutateRowTs_argsStandardSchemeFactory implements SchemeFactory { + private static class mutateRowTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRowTs_argsStandardScheme getScheme() { return new mutateRowTs_argsStandardScheme(); } } - private static class mutateRowTs_argsStandardScheme extends StandardScheme { + private static class mutateRowTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -33304,8 +34217,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list364 = iprot.readListBegin(); - struct.mutations = new ArrayList(_list364.size); - Mutation _elem365; + struct.mutations = new java.util.ArrayList(_list364.size); + @org.apache.thrift.annotation.Nullable Mutation _elem365; for (int _i366 = 0; _i366 < _list364.size; ++_i366) { _elem365 = new Mutation(); @@ -33331,9 +34244,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map367 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map367.size); - ByteBuffer _key368; - ByteBuffer _val369; + struct.attributes = new java.util.HashMap(2*_map367.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key368; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val369; for (int _i370 = 0; _i370 < _map367.size; ++_i370) { _key368 = iprot.readBinary(); @@ -33391,7 +34304,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter372 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter372 : struct.attributes.entrySet()) { oprot.writeBinary(_iter372.getKey()); oprot.writeBinary(_iter372.getValue()); @@ -33406,18 +34319,18 @@ public class Hbase { } - private static class mutateRowTs_argsTupleSchemeFactory implements SchemeFactory { + private static class mutateRowTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRowTs_argsTupleScheme getScheme() { return new mutateRowTs_argsTupleScheme(); } } - private static class mutateRowTs_argsTupleScheme extends TupleScheme { + private static class mutateRowTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -33455,7 +34368,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter374 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter374 : struct.attributes.entrySet()) { oprot.writeBinary(_iter374.getKey()); oprot.writeBinary(_iter374.getValue()); @@ -33466,8 +34379,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -33479,8 +34392,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - Mutation _elem376; + struct.mutations = new java.util.ArrayList(_list375.size); + @org.apache.thrift.annotation.Nullable Mutation _elem376; for (int _i377 = 0; _i377 < _list375.size; ++_i377) { _elem376 = new Mutation(); @@ -33497,9 +34410,9 @@ public class Hbase { if (incoming.get(4)) { { 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); - ByteBuffer _key379; - ByteBuffer _val380; + struct.attributes = new java.util.HashMap(2*_map378.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key379; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val380; for (int _i381 = 0; _i381 < _map378.size; ++_i381) { _key379 = iprot.readBinary(); @@ -33512,6 +34425,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -33520,24 +34436,21 @@ public class Hbase { 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 mutateRowTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRowTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRowTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRowTs_resultTupleSchemeFactory(); - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -33545,6 +34458,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -33562,21 +34476,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -33585,20 +34500,20 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowTs_result.class, metaDataMap); } @@ -33636,11 +34551,12 @@ public class Hbase { this.ia = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public mutateRowTs_result setIo(IOError io) { + public mutateRowTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -33660,11 +34576,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public mutateRowTs_result setIa(IllegalArgument ia) { + public mutateRowTs_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -33684,7 +34601,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -33705,7 +34622,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); @@ -33714,13 +34632,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -33729,11 +34647,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRowTs_result) @@ -33744,6 +34662,8 @@ public class Hbase { public boolean equals(mutateRowTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -33768,19 +34688,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -33791,7 +34709,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -33801,7 +34719,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -33814,21 +34732,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRowTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRowTs_result("); boolean first = true; sb.append("io:"); @@ -33863,7 +34782,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -33871,13 +34790,13 @@ public class Hbase { } } - private static class mutateRowTs_resultStandardSchemeFactory implements SchemeFactory { + private static class mutateRowTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRowTs_resultStandardScheme getScheme() { return new mutateRowTs_resultStandardScheme(); } } - private static class mutateRowTs_resultStandardScheme extends StandardScheme { + private static class mutateRowTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -33938,18 +34857,18 @@ public class Hbase { } - private static class mutateRowTs_resultTupleSchemeFactory implements SchemeFactory { + private static class mutateRowTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRowTs_resultTupleScheme getScheme() { return new mutateRowTs_resultTupleScheme(); } } - private static class mutateRowTs_resultTupleScheme extends TupleScheme { + private static class mutateRowTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -33967,8 +34886,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -33982,6 +34901,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -33991,24 +34913,21 @@ public class Hbase { private static final org.apache.thrift.protocol.TField ROW_BATCHES_FIELD_DESC = new org.apache.thrift.protocol.TField("rowBatches", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new mutateRows_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRows_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRows_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRows_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * list of row batches */ - public List rowBatches; // required + public @org.apache.thrift.annotation.Nullable java.util.List rowBatches; // required /** * Mutation attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -34025,10 +34944,10 @@ public class Hbase { */ ATTRIBUTES((short)3, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -34036,6 +34955,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -34055,21 +34975,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -34078,15 +34999,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW_BATCHES, new org.apache.thrift.meta_data.FieldMetaData("rowBatches", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -34096,7 +35017,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRows_args.class, metaDataMap); } @@ -34104,9 +35025,9 @@ public class Hbase { } public mutateRows_args( - ByteBuffer tableName, - List rowBatches, - Map attributes) + java.nio.ByteBuffer tableName, + java.util.List rowBatches, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -34119,25 +35040,25 @@ public class Hbase { */ public mutateRows_args(mutateRows_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRowBatches()) { - List __this__rowBatches = new ArrayList(other.rowBatches.size()); + java.util.List __this__rowBatches = new java.util.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(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -34164,7 +35085,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -34172,11 +35093,11 @@ public class Hbase { * name of table */ public mutateRows_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public mutateRows_args setTableName(ByteBuffer tableName) { + public mutateRows_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -34200,13 +35121,14 @@ public class Hbase { return (this.rowBatches == null) ? 0 : this.rowBatches.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getRowBatchesIterator() { return (this.rowBatches == null) ? null : this.rowBatches.iterator(); } public void addToRowBatches(BatchMutation elem) { if (this.rowBatches == null) { - this.rowBatches = new ArrayList(); + this.rowBatches = new java.util.ArrayList(); } this.rowBatches.add(elem); } @@ -34214,14 +35136,15 @@ public class Hbase { /** * list of row batches */ - public List getRowBatches() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRowBatches() { return this.rowBatches; } /** * list of row batches */ - public mutateRows_args setRowBatches(List rowBatches) { + public mutateRows_args setRowBatches(@org.apache.thrift.annotation.Nullable java.util.List rowBatches) { this.rowBatches = rowBatches; return this; } @@ -34245,9 +35168,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -34255,14 +35178,15 @@ public class Hbase { /** * Mutation attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Mutation attributes */ - public mutateRows_args setAttributes(Map attributes) { + public mutateRows_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -34282,13 +35206,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -34296,7 +35224,7 @@ public class Hbase { if (value == null) { unsetRowBatches(); } else { - setRowBatches((List)value); + setRowBatches((java.util.List)value); } break; @@ -34304,14 +35232,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -34323,13 +35252,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -34340,11 +35269,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRows_args) @@ -34355,6 +35284,8 @@ public class Hbase { public boolean equals(mutateRows_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -34388,24 +35319,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_rowBatches = true && (isSetRowBatches()); - list.add(present_rowBatches); - if (present_rowBatches) - list.add(rowBatches); + hashCode = hashCode * 8191 + ((isSetRowBatches()) ? 131071 : 524287); + if (isSetRowBatches()) + hashCode = hashCode * 8191 + rowBatches.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -34416,7 +35344,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -34426,7 +35354,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(other.isSetRowBatches()); + lastComparison = java.lang.Boolean.valueOf(isSetRowBatches()).compareTo(other.isSetRowBatches()); if (lastComparison != 0) { return lastComparison; } @@ -34436,7 +35364,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -34449,21 +35377,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRows_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRows_args("); boolean first = true; sb.append("tableName:"); @@ -34506,7 +35435,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -34514,13 +35443,13 @@ public class Hbase { } } - private static class mutateRows_argsStandardSchemeFactory implements SchemeFactory { + private static class mutateRows_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRows_argsStandardScheme getScheme() { return new mutateRows_argsStandardScheme(); } } - private static class mutateRows_argsStandardScheme extends StandardScheme { + private static class mutateRows_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRows_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -34544,8 +35473,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list382 = iprot.readListBegin(); - struct.rowBatches = new ArrayList(_list382.size); - BatchMutation _elem383; + struct.rowBatches = new java.util.ArrayList(_list382.size); + @org.apache.thrift.annotation.Nullable BatchMutation _elem383; for (int _i384 = 0; _i384 < _list382.size; ++_i384) { _elem383 = new BatchMutation(); @@ -34563,9 +35492,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map385 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map385.size); - ByteBuffer _key386; - ByteBuffer _val387; + struct.attributes = new java.util.HashMap(2*_map385.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key386; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val387; for (int _i388 = 0; _i388 < _map385.size; ++_i388) { _key386 = iprot.readBinary(); @@ -34615,7 +35544,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter390 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter390 : struct.attributes.entrySet()) { oprot.writeBinary(_iter390.getKey()); oprot.writeBinary(_iter390.getValue()); @@ -34630,18 +35559,18 @@ public class Hbase { } - private static class mutateRows_argsTupleSchemeFactory implements SchemeFactory { + private static class mutateRows_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRows_argsTupleScheme getScheme() { return new mutateRows_argsTupleScheme(); } } - private static class mutateRows_argsTupleScheme extends TupleScheme { + private static class mutateRows_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -34667,7 +35596,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter392 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter392 : struct.attributes.entrySet()) { oprot.writeBinary(_iter392.getKey()); oprot.writeBinary(_iter392.getValue()); @@ -34678,8 +35607,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -34687,8 +35616,8 @@ public class Hbase { if (incoming.get(1)) { { 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); - BatchMutation _elem394; + struct.rowBatches = new java.util.ArrayList(_list393.size); + @org.apache.thrift.annotation.Nullable BatchMutation _elem394; for (int _i395 = 0; _i395 < _list393.size; ++_i395) { _elem394 = new BatchMutation(); @@ -34701,9 +35630,9 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _key397; - ByteBuffer _val398; + struct.attributes = new java.util.HashMap(2*_map396.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key397; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val398; for (int _i399 = 0; _i399 < _map396.size; ++_i399) { _key397 = iprot.readBinary(); @@ -34716,6 +35645,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -34724,24 +35656,21 @@ public class Hbase { 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 mutateRows_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRows_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRows_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRows_resultTupleSchemeFactory(); - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -34749,6 +35678,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -34766,21 +35696,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -34789,20 +35720,20 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRows_result.class, metaDataMap); } @@ -34840,11 +35771,12 @@ public class Hbase { this.ia = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public mutateRows_result setIo(IOError io) { + public mutateRows_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -34864,11 +35796,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public mutateRows_result setIa(IllegalArgument ia) { + public mutateRows_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -34888,7 +35821,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -34909,7 +35842,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); @@ -34918,13 +35852,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -34933,11 +35867,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRows_result) @@ -34948,6 +35882,8 @@ public class Hbase { public boolean equals(mutateRows_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -34972,19 +35908,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -34995,7 +35929,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -35005,7 +35939,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -35018,21 +35952,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRows_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRows_result("); boolean first = true; sb.append("io:"); @@ -35067,7 +36002,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -35075,13 +36010,13 @@ public class Hbase { } } - private static class mutateRows_resultStandardSchemeFactory implements SchemeFactory { + private static class mutateRows_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRows_resultStandardScheme getScheme() { return new mutateRows_resultStandardScheme(); } } - private static class mutateRows_resultStandardScheme extends StandardScheme { + private static class mutateRows_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRows_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -35142,18 +36077,18 @@ public class Hbase { } - private static class mutateRows_resultTupleSchemeFactory implements SchemeFactory { + private static class mutateRows_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRows_resultTupleScheme getScheme() { return new mutateRows_resultTupleScheme(); } } - private static class mutateRows_resultTupleScheme extends TupleScheme { + private static class mutateRows_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRows_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -35171,8 +36106,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRows_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -35186,6 +36121,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRowsTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -35196,20 +36134,17 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new mutateRowsTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRowsTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRowsTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRowsTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * list of row batches */ - public List rowBatches; // required + public @org.apache.thrift.annotation.Nullable java.util.List rowBatches; // required /** * timestamp */ @@ -35217,7 +36152,7 @@ public class Hbase { /** * Mutation attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -35238,10 +36173,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -35249,6 +36184,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -35270,21 +36206,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -35293,7 +36230,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -35301,9 +36238,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW_BATCHES, new org.apache.thrift.meta_data.FieldMetaData("rowBatches", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -35315,7 +36252,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowsTs_args.class, metaDataMap); } @@ -35323,10 +36260,10 @@ public class Hbase { } public mutateRowsTs_args( - ByteBuffer tableName, - List rowBatches, + java.nio.ByteBuffer tableName, + java.util.List rowBatches, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -35342,10 +36279,10 @@ public class Hbase { public mutateRowsTs_args(mutateRowsTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRowBatches()) { - List __this__rowBatches = new ArrayList(other.rowBatches.size()); + java.util.List __this__rowBatches = new java.util.ArrayList(other.rowBatches.size()); for (BatchMutation other_element : other.rowBatches) { __this__rowBatches.add(new BatchMutation(other_element)); } @@ -35353,15 +36290,15 @@ public class Hbase { } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -35390,7 +36327,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -35398,11 +36335,11 @@ public class Hbase { * name of table */ public mutateRowsTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public mutateRowsTs_args setTableName(ByteBuffer tableName) { + public mutateRowsTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -35426,13 +36363,14 @@ public class Hbase { return (this.rowBatches == null) ? 0 : this.rowBatches.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getRowBatchesIterator() { return (this.rowBatches == null) ? null : this.rowBatches.iterator(); } public void addToRowBatches(BatchMutation elem) { if (this.rowBatches == null) { - this.rowBatches = new ArrayList(); + this.rowBatches = new java.util.ArrayList(); } this.rowBatches.add(elem); } @@ -35440,14 +36378,15 @@ public class Hbase { /** * list of row batches */ - public List getRowBatches() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRowBatches() { return this.rowBatches; } /** * list of row batches */ - public mutateRowsTs_args setRowBatches(List rowBatches) { + public mutateRowsTs_args setRowBatches(@org.apache.thrift.annotation.Nullable java.util.List rowBatches) { this.rowBatches = rowBatches; return this; } @@ -35484,25 +36423,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -35510,14 +36449,15 @@ public class Hbase { /** * Mutation attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Mutation attributes */ - public mutateRowsTs_args setAttributes(Map attributes) { + public mutateRowsTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -35537,13 +36477,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -35551,7 +36495,7 @@ public class Hbase { if (value == null) { unsetRowBatches(); } else { - setRowBatches((List)value); + setRowBatches((java.util.List)value); } break; @@ -35559,7 +36503,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -35567,14 +36511,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -35589,13 +36534,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -35608,11 +36553,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRowsTs_args) @@ -35623,6 +36568,8 @@ public class Hbase { public boolean equals(mutateRowsTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -35665,29 +36612,23 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_rowBatches = true && (isSetRowBatches()); - list.add(present_rowBatches); - if (present_rowBatches) - list.add(rowBatches); + hashCode = hashCode * 8191 + ((isSetRowBatches()) ? 131071 : 524287); + if (isSetRowBatches()) + hashCode = hashCode * 8191 + rowBatches.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -35698,7 +36639,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -35708,7 +36649,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(other.isSetRowBatches()); + lastComparison = java.lang.Boolean.valueOf(isSetRowBatches()).compareTo(other.isSetRowBatches()); if (lastComparison != 0) { return lastComparison; } @@ -35718,7 +36659,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -35728,7 +36669,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -35741,21 +36682,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRowsTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRowsTs_args("); boolean first = true; sb.append("tableName:"); @@ -35802,7 +36744,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -35812,13 +36754,13 @@ public class Hbase { } } - private static class mutateRowsTs_argsStandardSchemeFactory implements SchemeFactory { + private static class mutateRowsTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRowsTs_argsStandardScheme getScheme() { return new mutateRowsTs_argsStandardScheme(); } } - private static class mutateRowsTs_argsStandardScheme extends StandardScheme { + private static class mutateRowsTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowsTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -35842,8 +36784,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list400 = iprot.readListBegin(); - struct.rowBatches = new ArrayList(_list400.size); - BatchMutation _elem401; + struct.rowBatches = new java.util.ArrayList(_list400.size); + @org.apache.thrift.annotation.Nullable BatchMutation _elem401; for (int _i402 = 0; _i402 < _list400.size; ++_i402) { _elem401 = new BatchMutation(); @@ -35869,9 +36811,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map403 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map403.size); - ByteBuffer _key404; - ByteBuffer _val405; + struct.attributes = new java.util.HashMap(2*_map403.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key404; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val405; for (int _i406 = 0; _i406 < _map403.size; ++_i406) { _key404 = iprot.readBinary(); @@ -35924,7 +36866,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter408 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter408 : struct.attributes.entrySet()) { oprot.writeBinary(_iter408.getKey()); oprot.writeBinary(_iter408.getValue()); @@ -35939,18 +36881,18 @@ public class Hbase { } - private static class mutateRowsTs_argsTupleSchemeFactory implements SchemeFactory { + private static class mutateRowsTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRowsTs_argsTupleScheme getScheme() { return new mutateRowsTs_argsTupleScheme(); } } - private static class mutateRowsTs_argsTupleScheme extends TupleScheme { + private static class mutateRowsTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -35982,7 +36924,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter410 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter410 : struct.attributes.entrySet()) { oprot.writeBinary(_iter410.getKey()); oprot.writeBinary(_iter410.getValue()); @@ -35993,8 +36935,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -36002,8 +36944,8 @@ public class Hbase { if (incoming.get(1)) { { 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); - BatchMutation _elem412; + struct.rowBatches = new java.util.ArrayList(_list411.size); + @org.apache.thrift.annotation.Nullable BatchMutation _elem412; for (int _i413 = 0; _i413 < _list411.size; ++_i413) { _elem412 = new BatchMutation(); @@ -36020,9 +36962,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key415; - ByteBuffer _val416; + struct.attributes = new java.util.HashMap(2*_map414.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key415; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val416; for (int _i417 = 0; _i417 < _map414.size; ++_i417) { _key415 = iprot.readBinary(); @@ -36035,6 +36977,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRowsTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -36043,24 +36988,21 @@ public class Hbase { 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 mutateRowsTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRowsTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRowsTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRowsTs_resultTupleSchemeFactory(); - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -36068,6 +37010,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -36085,21 +37028,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -36108,20 +37052,20 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowsTs_result.class, metaDataMap); } @@ -36159,11 +37103,12 @@ public class Hbase { this.ia = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public mutateRowsTs_result setIo(IOError io) { + public mutateRowsTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -36183,11 +37128,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public mutateRowsTs_result setIa(IllegalArgument ia) { + public mutateRowsTs_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -36207,7 +37153,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -36228,7 +37174,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); @@ -36237,13 +37184,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -36252,11 +37199,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRowsTs_result) @@ -36267,6 +37214,8 @@ public class Hbase { public boolean equals(mutateRowsTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -36291,19 +37240,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -36314,7 +37261,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -36324,7 +37271,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -36337,21 +37284,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRowsTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRowsTs_result("); boolean first = true; sb.append("io:"); @@ -36386,7 +37334,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -36394,13 +37342,13 @@ public class Hbase { } } - private static class mutateRowsTs_resultStandardSchemeFactory implements SchemeFactory { + private static class mutateRowsTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRowsTs_resultStandardScheme getScheme() { return new mutateRowsTs_resultStandardScheme(); } } - private static class mutateRowsTs_resultStandardScheme extends StandardScheme { + private static class mutateRowsTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowsTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -36461,18 +37409,18 @@ public class Hbase { } - private static class mutateRowsTs_resultTupleSchemeFactory implements SchemeFactory { + private static class mutateRowsTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRowsTs_resultTupleScheme getScheme() { return new mutateRowsTs_resultTupleScheme(); } } - private static class mutateRowsTs_resultTupleScheme extends TupleScheme { + private static class mutateRowsTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -36490,8 +37438,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -36505,6 +37453,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class atomicIncrement_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -36515,24 +37466,21 @@ public class Hbase { private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I64, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new atomicIncrement_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new atomicIncrement_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new atomicIncrement_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new atomicIncrement_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row to increment */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * name of column */ - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required /** * amount to increment by */ @@ -36557,10 +37505,10 @@ public class Hbase { */ VALUE((short)4, "value"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -36568,6 +37516,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -36589,21 +37538,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -36612,7 +37562,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -36620,9 +37570,9 @@ public class Hbase { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -36631,7 +37581,7 @@ public class Hbase { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 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.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(atomicIncrement_args.class, metaDataMap); } @@ -36639,9 +37589,9 @@ public class Hbase { } public atomicIncrement_args( - ByteBuffer tableName, - ByteBuffer row, - ByteBuffer column, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.nio.ByteBuffer column, long value) { this(); @@ -36658,13 +37608,13 @@ public class Hbase { public atomicIncrement_args(atomicIncrement_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumn()) { - this.column = other.column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } this.value = other.value; } @@ -36690,7 +37640,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -36698,11 +37648,11 @@ public class Hbase { * name of table */ public atomicIncrement_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public atomicIncrement_args setTableName(ByteBuffer tableName) { + public atomicIncrement_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -36730,7 +37680,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -36738,11 +37688,11 @@ public class Hbase { * row to increment */ public atomicIncrement_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public atomicIncrement_args setRow(ByteBuffer row) { + public atomicIncrement_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -36770,7 +37720,7 @@ public class Hbase { return column == null ? null : column.array(); } - public ByteBuffer bufferForColumn() { + public java.nio.ByteBuffer bufferForColumn() { return org.apache.thrift.TBaseHelper.copyBinary(column); } @@ -36778,11 +37728,11 @@ public class Hbase { * name of column */ public atomicIncrement_args setColumn(byte[] column) { - this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); + this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); return this; } - public atomicIncrement_args setColumn(ByteBuffer column) { + public atomicIncrement_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -36819,25 +37769,29 @@ public class Hbase { } public void unsetValue() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VALUE_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __VALUE_ISSET_ID); } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { - return EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID); } public void setValueIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -36845,7 +37799,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -36853,7 +37811,11 @@ public class Hbase { if (value == null) { unsetColumn(); } else { - setColumn((ByteBuffer)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((java.nio.ByteBuffer)value); + } } break; @@ -36861,14 +37823,15 @@ public class Hbase { if (value == null) { unsetValue(); } else { - setValue((Long)value); + setValue((java.lang.Long)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -36883,13 +37846,13 @@ public class Hbase { return getValue(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -36902,11 +37865,11 @@ public class Hbase { case VALUE: return isSetValue(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof atomicIncrement_args) @@ -36917,6 +37880,8 @@ public class Hbase { public boolean equals(atomicIncrement_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -36959,29 +37924,23 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_value = true; - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(value); - return list.hashCode(); + return hashCode; } @Override @@ -36992,7 +37951,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -37002,7 +37961,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -37012,7 +37971,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -37022,7 +37981,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -37035,21 +37994,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("atomicIncrement_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("atomicIncrement_args("); boolean first = true; sb.append("tableName:"); @@ -37096,7 +38056,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -37106,13 +38066,13 @@ public class Hbase { } } - private static class atomicIncrement_argsStandardSchemeFactory implements SchemeFactory { + private static class atomicIncrement_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public atomicIncrement_argsStandardScheme getScheme() { return new atomicIncrement_argsStandardScheme(); } } - private static class atomicIncrement_argsStandardScheme extends StandardScheme { + private static class atomicIncrement_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, atomicIncrement_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -37195,18 +38155,18 @@ public class Hbase { } - private static class atomicIncrement_argsTupleSchemeFactory implements SchemeFactory { + private static class atomicIncrement_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public atomicIncrement_argsTupleScheme getScheme() { return new atomicIncrement_argsTupleScheme(); } } - private static class atomicIncrement_argsTupleScheme extends TupleScheme { + private static class atomicIncrement_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -37236,8 +38196,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -37257,6 +38217,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class atomicIncrement_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -37266,15 +38229,12 @@ public class Hbase { 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 atomicIncrement_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new atomicIncrement_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new atomicIncrement_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new atomicIncrement_resultTupleSchemeFactory(); public long success; // required - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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 { @@ -37282,10 +38242,10 @@ public class Hbase { IO((short)1, "io"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -37293,6 +38253,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -37312,21 +38273,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -37335,7 +38297,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -37343,16 +38305,16 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.I64))); 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, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(atomicIncrement_result.class, metaDataMap); } @@ -37408,23 +38370,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public atomicIncrement_result setIo(IOError io) { + public atomicIncrement_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -37444,11 +38407,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public atomicIncrement_result setIa(IllegalArgument ia) { + public atomicIncrement_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -37468,13 +38432,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Long)value); + setSuccess((java.lang.Long)value); } break; @@ -37497,7 +38461,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -37509,13 +38474,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -37526,11 +38491,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof atomicIncrement_result) @@ -37541,6 +38506,8 @@ public class Hbase { public boolean equals(atomicIncrement_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -37574,24 +38541,19 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(success); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -37602,7 +38564,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -37612,7 +38574,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -37622,7 +38584,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -37635,21 +38597,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("atomicIncrement_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("atomicIncrement_result("); boolean first = true; sb.append("success:"); @@ -37688,7 +38651,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -37698,13 +38661,13 @@ public class Hbase { } } - private static class atomicIncrement_resultStandardSchemeFactory implements SchemeFactory { + private static class atomicIncrement_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public atomicIncrement_resultStandardScheme getScheme() { return new atomicIncrement_resultStandardScheme(); } } - private static class atomicIncrement_resultStandardScheme extends StandardScheme { + private static class atomicIncrement_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, atomicIncrement_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -37778,18 +38741,18 @@ public class Hbase { } - private static class atomicIncrement_resultTupleSchemeFactory implements SchemeFactory { + private static class atomicIncrement_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public atomicIncrement_resultTupleScheme getScheme() { return new atomicIncrement_resultTupleScheme(); } } - private static class atomicIncrement_resultTupleScheme extends TupleScheme { + private static class atomicIncrement_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -37813,8 +38776,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); @@ -37832,6 +38795,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -37842,28 +38808,25 @@ public class Hbase { private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteAll_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAll_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteAll_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteAll_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * Row to update */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * name of column whose value is to be deleted */ - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required /** * Delete attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -37884,10 +38847,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -37895,6 +38858,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -37916,21 +38880,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -37939,15 +38904,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -37958,7 +38923,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAll_args.class, metaDataMap); } @@ -37966,10 +38931,10 @@ public class Hbase { } public deleteAll_args( - ByteBuffer tableName, - ByteBuffer row, - ByteBuffer column, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.nio.ByteBuffer column, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -37983,24 +38948,24 @@ public class Hbase { */ public deleteAll_args(deleteAll_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumn()) { - this.column = other.column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -38028,7 +38993,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -38036,11 +39001,11 @@ public class Hbase { * name of table */ public deleteAll_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public deleteAll_args setTableName(ByteBuffer tableName) { + public deleteAll_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -38068,7 +39033,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -38076,11 +39041,11 @@ public class Hbase { * Row to update */ public deleteAll_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public deleteAll_args setRow(ByteBuffer row) { + public deleteAll_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -38108,7 +39073,7 @@ public class Hbase { return column == null ? null : column.array(); } - public ByteBuffer bufferForColumn() { + public java.nio.ByteBuffer bufferForColumn() { return org.apache.thrift.TBaseHelper.copyBinary(column); } @@ -38116,11 +39081,11 @@ public class Hbase { * name of column whose value is to be deleted */ public deleteAll_args setColumn(byte[] column) { - this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); + this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); return this; } - public deleteAll_args setColumn(ByteBuffer column) { + public deleteAll_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -38144,9 +39109,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -38154,14 +39119,15 @@ public class Hbase { /** * Delete attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Delete attributes */ - public deleteAll_args setAttributes(Map attributes) { + public deleteAll_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -38181,13 +39147,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -38195,7 +39165,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -38203,7 +39177,11 @@ public class Hbase { if (value == null) { unsetColumn(); } else { - setColumn((ByteBuffer)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((java.nio.ByteBuffer)value); + } } break; @@ -38211,14 +39189,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -38233,13 +39212,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -38252,11 +39231,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteAll_args) @@ -38267,6 +39246,8 @@ public class Hbase { public boolean equals(deleteAll_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -38309,29 +39290,25 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -38342,7 +39319,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -38352,7 +39329,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -38362,7 +39339,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -38372,7 +39349,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -38385,21 +39362,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteAll_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteAll_args("); boolean first = true; sb.append("tableName:"); @@ -38450,7 +39428,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -38458,13 +39436,13 @@ public class Hbase { } } - private static class deleteAll_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteAll_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAll_argsStandardScheme getScheme() { return new deleteAll_argsStandardScheme(); } } - private static class deleteAll_argsStandardScheme extends StandardScheme { + private static class deleteAll_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAll_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -38504,9 +39482,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map418 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map418.size); - ByteBuffer _key419; - ByteBuffer _val420; + struct.attributes = new java.util.HashMap(2*_map418.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key419; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val420; for (int _i421 = 0; _i421 < _map418.size; ++_i421) { _key419 = iprot.readBinary(); @@ -38554,7 +39532,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter422 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter422 : struct.attributes.entrySet()) { oprot.writeBinary(_iter422.getKey()); oprot.writeBinary(_iter422.getValue()); @@ -38569,18 +39547,18 @@ public class Hbase { } - private static class deleteAll_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteAll_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAll_argsTupleScheme getScheme() { return new deleteAll_argsTupleScheme(); } } - private static class deleteAll_argsTupleScheme extends TupleScheme { + private static class deleteAll_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteAll_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -38606,7 +39584,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter423 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter423 : struct.attributes.entrySet()) { oprot.writeBinary(_iter423.getKey()); oprot.writeBinary(_iter423.getValue()); @@ -38617,8 +39595,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteAll_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -38634,9 +39612,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key425; - ByteBuffer _val426; + struct.attributes = new java.util.HashMap(2*_map424.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key425; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val426; for (int _i427 = 0; _i427 < _map424.size; ++_i427) { _key425 = iprot.readBinary(); @@ -38649,6 +39627,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -38656,22 +39637,19 @@ public class Hbase { 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 deleteAll_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAll_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteAll_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteAll_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -38679,6 +39657,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -38694,21 +39673,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -38717,18 +39697,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAll_result.class, metaDataMap); } @@ -38760,11 +39740,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public deleteAll_result setIo(IOError io) { + public deleteAll_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -38784,7 +39765,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -38797,30 +39778,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteAll_result) @@ -38831,6 +39813,8 @@ public class Hbase { public boolean equals(deleteAll_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -38846,14 +39830,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -38864,7 +39847,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -38877,21 +39860,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteAll_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteAll_result("); boolean first = true; sb.append("io:"); @@ -38918,7 +39902,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -38926,13 +39910,13 @@ public class Hbase { } } - private static class deleteAll_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteAll_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAll_resultStandardScheme getScheme() { return new deleteAll_resultStandardScheme(); } } - private static class deleteAll_resultStandardScheme extends StandardScheme { + private static class deleteAll_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAll_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -38979,18 +39963,18 @@ public class Hbase { } - private static class deleteAll_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteAll_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAll_resultTupleScheme getScheme() { return new deleteAll_resultTupleScheme(); } } - private static class deleteAll_resultTupleScheme extends TupleScheme { + private static class deleteAll_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteAll_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -39002,8 +39986,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteAll_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -39012,6 +39996,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteAllTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -39023,24 +40010,21 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteAllTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteAllTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteAllTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * Row to update */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * name of column whose value is to be deleted */ - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required /** * timestamp */ @@ -39048,7 +40032,7 @@ public class Hbase { /** * Delete attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -39073,10 +40057,10 @@ public class Hbase { */ ATTRIBUTES((short)5, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -39084,6 +40068,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -39107,21 +40092,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -39130,7 +40116,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -39138,9 +40124,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -39153,7 +40139,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllTs_args.class, metaDataMap); } @@ -39161,11 +40147,11 @@ public class Hbase { } public deleteAllTs_args( - ByteBuffer tableName, - ByteBuffer row, - ByteBuffer column, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.nio.ByteBuffer column, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -39182,25 +40168,25 @@ public class Hbase { public deleteAllTs_args(deleteAllTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumn()) { - this.column = other.column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -39230,7 +40216,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -39238,11 +40224,11 @@ public class Hbase { * name of table */ public deleteAllTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public deleteAllTs_args setTableName(ByteBuffer tableName) { + public deleteAllTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -39270,7 +40256,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -39278,11 +40264,11 @@ public class Hbase { * Row to update */ public deleteAllTs_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public deleteAllTs_args setRow(ByteBuffer row) { + public deleteAllTs_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -39310,7 +40296,7 @@ public class Hbase { return column == null ? null : column.array(); } - public ByteBuffer bufferForColumn() { + public java.nio.ByteBuffer bufferForColumn() { return org.apache.thrift.TBaseHelper.copyBinary(column); } @@ -39318,11 +40304,11 @@ public class Hbase { * name of column whose value is to be deleted */ public deleteAllTs_args setColumn(byte[] column) { - this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); + this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); return this; } - public deleteAllTs_args setColumn(ByteBuffer column) { + public deleteAllTs_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -39359,25 +40345,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -39385,14 +40371,15 @@ public class Hbase { /** * Delete attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Delete attributes */ - public deleteAllTs_args setAttributes(Map attributes) { + public deleteAllTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -39412,13 +40399,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -39426,7 +40417,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -39434,7 +40429,11 @@ public class Hbase { if (value == null) { unsetColumn(); } else { - setColumn((ByteBuffer)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((java.nio.ByteBuffer)value); + } } break; @@ -39442,7 +40441,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -39450,14 +40449,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -39475,13 +40475,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -39496,11 +40496,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteAllTs_args) @@ -39511,6 +40511,8 @@ public class Hbase { public boolean equals(deleteAllTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -39562,34 +40564,27 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -39600,7 +40595,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -39610,7 +40605,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -39620,7 +40615,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -39630,7 +40625,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -39640,7 +40635,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -39653,21 +40648,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteAllTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteAllTs_args("); boolean first = true; sb.append("tableName:"); @@ -39722,7 +40718,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -39732,13 +40728,13 @@ public class Hbase { } } - private static class deleteAllTs_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteAllTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllTs_argsStandardScheme getScheme() { return new deleteAllTs_argsStandardScheme(); } } - private static class deleteAllTs_argsStandardScheme extends StandardScheme { + private static class deleteAllTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -39786,9 +40782,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map428 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map428.size); - ByteBuffer _key429; - ByteBuffer _val430; + struct.attributes = new java.util.HashMap(2*_map428.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key429; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val430; for (int _i431 = 0; _i431 < _map428.size; ++_i431) { _key429 = iprot.readBinary(); @@ -39839,7 +40835,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter432 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter432 : struct.attributes.entrySet()) { oprot.writeBinary(_iter432.getKey()); oprot.writeBinary(_iter432.getValue()); @@ -39854,18 +40850,18 @@ public class Hbase { } - private static class deleteAllTs_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteAllTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllTs_argsTupleScheme getScheme() { return new deleteAllTs_argsTupleScheme(); } } - private static class deleteAllTs_argsTupleScheme extends TupleScheme { + private static class deleteAllTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -39897,7 +40893,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter433 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter433 : struct.attributes.entrySet()) { oprot.writeBinary(_iter433.getKey()); oprot.writeBinary(_iter433.getValue()); @@ -39908,8 +40904,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -39929,9 +40925,9 @@ public class Hbase { if (incoming.get(4)) { { 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); - ByteBuffer _key435; - ByteBuffer _val436; + struct.attributes = new java.util.HashMap(2*_map434.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key435; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val436; for (int _i437 = 0; _i437 < _map434.size; ++_i437) { _key435 = iprot.readBinary(); @@ -39944,6 +40940,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteAllTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -39951,22 +40950,19 @@ public class Hbase { 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 deleteAllTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteAllTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteAllTs_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -39974,6 +40970,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -39989,21 +40986,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -40012,18 +41010,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllTs_result.class, metaDataMap); } @@ -40055,11 +41053,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public deleteAllTs_result setIo(IOError io) { + public deleteAllTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -40079,7 +41078,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -40092,30 +41091,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteAllTs_result) @@ -40126,6 +41126,8 @@ public class Hbase { public boolean equals(deleteAllTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -40141,14 +41143,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -40159,7 +41160,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -40172,21 +41173,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteAllTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteAllTs_result("); boolean first = true; sb.append("io:"); @@ -40213,7 +41215,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -40221,13 +41223,13 @@ public class Hbase { } } - private static class deleteAllTs_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteAllTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllTs_resultStandardScheme getScheme() { return new deleteAllTs_resultStandardScheme(); } } - private static class deleteAllTs_resultStandardScheme extends StandardScheme { + private static class deleteAllTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -40274,18 +41276,18 @@ public class Hbase { } - private static class deleteAllTs_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteAllTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllTs_resultTupleScheme getScheme() { return new deleteAllTs_resultTupleScheme(); } } - private static class deleteAllTs_resultTupleScheme extends TupleScheme { + private static class deleteAllTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -40297,8 +41299,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -40307,6 +41309,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteAllRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -40316,24 +41321,21 @@ public class Hbase { 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 ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteAllRow_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllRow_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteAllRow_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteAllRow_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * key of the row to be completely deleted. */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * Delete attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -40350,10 +41352,10 @@ public class Hbase { */ ATTRIBUTES((short)3, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -40361,6 +41363,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -40380,21 +41383,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -40403,15 +41407,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -40420,7 +41424,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRow_args.class, metaDataMap); } @@ -40428,9 +41432,9 @@ public class Hbase { } public deleteAllRow_args( - ByteBuffer tableName, - ByteBuffer row, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -40443,21 +41447,21 @@ public class Hbase { */ public deleteAllRow_args(deleteAllRow_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -40484,7 +41488,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -40492,11 +41496,11 @@ public class Hbase { * name of table */ public deleteAllRow_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public deleteAllRow_args setTableName(ByteBuffer tableName) { + public deleteAllRow_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -40524,7 +41528,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -40532,11 +41536,11 @@ public class Hbase { * key of the row to be completely deleted. */ public deleteAllRow_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public deleteAllRow_args setRow(ByteBuffer row) { + public deleteAllRow_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -40560,9 +41564,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -40570,14 +41574,15 @@ public class Hbase { /** * Delete attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Delete attributes */ - public deleteAllRow_args setAttributes(Map attributes) { + public deleteAllRow_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -40597,13 +41602,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -40611,7 +41620,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -40619,14 +41632,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -40638,13 +41652,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -40655,11 +41669,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteAllRow_args) @@ -40670,6 +41684,8 @@ public class Hbase { public boolean equals(deleteAllRow_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -40703,24 +41719,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -40731,7 +41744,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -40741,7 +41754,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -40751,7 +41764,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -40764,21 +41777,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteAllRow_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteAllRow_args("); boolean first = true; sb.append("tableName:"); @@ -40821,7 +41835,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -40829,13 +41843,13 @@ public class Hbase { } } - private static class deleteAllRow_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteAllRow_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllRow_argsStandardScheme getScheme() { return new deleteAllRow_argsStandardScheme(); } } - private static class deleteAllRow_argsStandardScheme extends StandardScheme { + private static class deleteAllRow_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRow_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -40867,9 +41881,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map438 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map438.size); - ByteBuffer _key439; - ByteBuffer _val440; + struct.attributes = new java.util.HashMap(2*_map438.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key439; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val440; for (int _i441 = 0; _i441 < _map438.size; ++_i441) { _key439 = iprot.readBinary(); @@ -40912,7 +41926,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter442 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter442 : struct.attributes.entrySet()) { oprot.writeBinary(_iter442.getKey()); oprot.writeBinary(_iter442.getValue()); @@ -40927,18 +41941,18 @@ public class Hbase { } - private static class deleteAllRow_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteAllRow_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllRow_argsTupleScheme getScheme() { return new deleteAllRow_argsTupleScheme(); } } - private static class deleteAllRow_argsTupleScheme extends TupleScheme { + private static class deleteAllRow_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -40958,7 +41972,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter443 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter443 : struct.attributes.entrySet()) { oprot.writeBinary(_iter443.getKey()); oprot.writeBinary(_iter443.getValue()); @@ -40969,8 +41983,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -40982,9 +41996,9 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _key445; - ByteBuffer _val446; + struct.attributes = new java.util.HashMap(2*_map444.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key445; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val446; for (int _i447 = 0; _i447 < _map444.size; ++_i447) { _key445 = iprot.readBinary(); @@ -40997,6 +42011,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteAllRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -41004,22 +42021,19 @@ public class Hbase { 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 deleteAllRow_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllRow_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteAllRow_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteAllRow_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -41027,6 +42041,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -41042,21 +42057,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -41065,18 +42081,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRow_result.class, metaDataMap); } @@ -41108,11 +42124,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public deleteAllRow_result setIo(IOError io) { + public deleteAllRow_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -41132,7 +42149,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -41145,30 +42162,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteAllRow_result) @@ -41179,6 +42197,8 @@ public class Hbase { public boolean equals(deleteAllRow_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -41194,14 +42214,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -41212,7 +42231,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -41225,21 +42244,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteAllRow_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteAllRow_result("); boolean first = true; sb.append("io:"); @@ -41266,7 +42286,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -41274,13 +42294,13 @@ public class Hbase { } } - private static class deleteAllRow_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteAllRow_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllRow_resultStandardScheme getScheme() { return new deleteAllRow_resultStandardScheme(); } } - private static class deleteAllRow_resultStandardScheme extends StandardScheme { + private static class deleteAllRow_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRow_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -41327,18 +42347,18 @@ public class Hbase { } - private static class deleteAllRow_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteAllRow_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllRow_resultTupleScheme getScheme() { return new deleteAllRow_resultTupleScheme(); } } - private static class deleteAllRow_resultTupleScheme extends TupleScheme { + private static class deleteAllRow_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -41350,8 +42370,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -41360,6 +42380,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class increment_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -41367,16 +42390,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new increment_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new increment_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new increment_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new increment_argsTupleSchemeFactory(); /** * The single increment to apply */ - public TIncrement increment; // required + public @org.apache.thrift.annotation.Nullable TIncrement increment; // 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 { @@ -41385,10 +42405,10 @@ public class Hbase { */ INCREMENT((short)1, "increment"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -41396,6 +42416,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // INCREMENT @@ -41411,21 +42432,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -41434,18 +42456,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.INCREMENT, new org.apache.thrift.meta_data.FieldMetaData("increment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_args.class, metaDataMap); } @@ -41480,6 +42502,7 @@ public class Hbase { /** * The single increment to apply */ + @org.apache.thrift.annotation.Nullable public TIncrement getIncrement() { return this.increment; } @@ -41487,7 +42510,7 @@ public class Hbase { /** * The single increment to apply */ - public increment_args setIncrement(TIncrement increment) { + public increment_args setIncrement(@org.apache.thrift.annotation.Nullable TIncrement increment) { this.increment = increment; return this; } @@ -41507,7 +42530,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case INCREMENT: if (value == null) { @@ -41520,30 +42543,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case INCREMENT: return getIncrement(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case INCREMENT: return isSetIncrement(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof increment_args) @@ -41554,6 +42578,8 @@ public class Hbase { public boolean equals(increment_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_increment = true && this.isSetIncrement(); boolean that_present_increment = true && that.isSetIncrement(); @@ -41569,14 +42595,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_increment = true && (isSetIncrement()); - list.add(present_increment); - if (present_increment) - list.add(increment); + hashCode = hashCode * 8191 + ((isSetIncrement()) ? 131071 : 524287); + if (isSetIncrement()) + hashCode = hashCode * 8191 + increment.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -41587,7 +42612,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIncrement()).compareTo(other.isSetIncrement()); + lastComparison = java.lang.Boolean.valueOf(isSetIncrement()).compareTo(other.isSetIncrement()); if (lastComparison != 0) { return lastComparison; } @@ -41600,21 +42625,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("increment_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("increment_args("); boolean first = true; sb.append("increment:"); @@ -41644,7 +42670,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -41652,13 +42678,13 @@ public class Hbase { } } - private static class increment_argsStandardSchemeFactory implements SchemeFactory { + private static class increment_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_argsStandardScheme getScheme() { return new increment_argsStandardScheme(); } } - private static class increment_argsStandardScheme extends StandardScheme { + private static class increment_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, increment_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -41705,18 +42731,18 @@ public class Hbase { } - private static class increment_argsTupleSchemeFactory implements SchemeFactory { + private static class increment_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_argsTupleScheme getScheme() { return new increment_argsTupleScheme(); } } - private static class increment_argsTupleScheme extends TupleScheme { + private static class increment_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIncrement()) { optionals.set(0); } @@ -41728,8 +42754,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.increment = new TIncrement(); struct.increment.read(iprot); @@ -41738,6 +42764,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class increment_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -41745,22 +42774,19 @@ public class Hbase { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new increment_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new increment_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -41768,6 +42794,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -41783,21 +42810,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -41806,18 +42834,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_result.class, metaDataMap); } @@ -41849,11 +42877,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public increment_result setIo(IOError io) { + public increment_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -41873,7 +42902,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -41886,30 +42915,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof increment_result) @@ -41920,6 +42950,8 @@ public class Hbase { public boolean equals(increment_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -41935,14 +42967,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -41953,7 +42984,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -41966,21 +42997,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("increment_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("increment_result("); boolean first = true; sb.append("io:"); @@ -42007,7 +43039,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -42015,13 +43047,13 @@ public class Hbase { } } - private static class increment_resultStandardSchemeFactory implements SchemeFactory { + private static class increment_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_resultStandardScheme getScheme() { return new increment_resultStandardScheme(); } } - private static class increment_resultStandardScheme extends StandardScheme { + private static class increment_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, increment_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -42068,18 +43100,18 @@ public class Hbase { } - private static class increment_resultTupleSchemeFactory implements SchemeFactory { + private static class increment_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_resultTupleScheme getScheme() { return new increment_resultTupleScheme(); } } - private static class increment_resultTupleScheme extends TupleScheme { + private static class increment_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -42091,8 +43123,8 @@ public class Hbase { @Override 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(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -42101,6 +43133,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class incrementRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -42108,16 +43143,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new incrementRows_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new incrementRows_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new incrementRows_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new incrementRows_argsTupleSchemeFactory(); /** * The list of increments */ - public List increments; // required + public @org.apache.thrift.annotation.Nullable java.util.List increments; // 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 { @@ -42126,10 +43158,10 @@ public class Hbase { */ INCREMENTS((short)1, "increments"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -42137,6 +43169,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // INCREMENTS @@ -42152,21 +43185,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -42175,19 +43209,19 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.INCREMENTS, new org.apache.thrift.meta_data.FieldMetaData("increments", 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, TIncrement.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(incrementRows_args.class, metaDataMap); } @@ -42195,7 +43229,7 @@ public class Hbase { } public incrementRows_args( - List increments) + java.util.List increments) { this(); this.increments = increments; @@ -42206,7 +43240,7 @@ public class Hbase { */ public incrementRows_args(incrementRows_args other) { if (other.isSetIncrements()) { - List __this__increments = new ArrayList(other.increments.size()); + java.util.List __this__increments = new java.util.ArrayList(other.increments.size()); for (TIncrement other_element : other.increments) { __this__increments.add(new TIncrement(other_element)); } @@ -42227,13 +43261,14 @@ public class Hbase { return (this.increments == null) ? 0 : this.increments.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getIncrementsIterator() { return (this.increments == null) ? null : this.increments.iterator(); } public void addToIncrements(TIncrement elem) { if (this.increments == null) { - this.increments = new ArrayList(); + this.increments = new java.util.ArrayList(); } this.increments.add(elem); } @@ -42241,14 +43276,15 @@ public class Hbase { /** * The list of increments */ - public List getIncrements() { + @org.apache.thrift.annotation.Nullable + public java.util.List getIncrements() { return this.increments; } /** * The list of increments */ - public incrementRows_args setIncrements(List increments) { + public incrementRows_args setIncrements(@org.apache.thrift.annotation.Nullable java.util.List increments) { this.increments = increments; return this; } @@ -42268,43 +43304,44 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case INCREMENTS: if (value == null) { unsetIncrements(); } else { - setIncrements((List)value); + setIncrements((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case INCREMENTS: return getIncrements(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case INCREMENTS: return isSetIncrements(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof incrementRows_args) @@ -42315,6 +43352,8 @@ public class Hbase { public boolean equals(incrementRows_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_increments = true && this.isSetIncrements(); boolean that_present_increments = true && that.isSetIncrements(); @@ -42330,14 +43369,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_increments = true && (isSetIncrements()); - list.add(present_increments); - if (present_increments) - list.add(increments); + hashCode = hashCode * 8191 + ((isSetIncrements()) ? 131071 : 524287); + if (isSetIncrements()) + hashCode = hashCode * 8191 + increments.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -42348,7 +43386,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIncrements()).compareTo(other.isSetIncrements()); + lastComparison = java.lang.Boolean.valueOf(isSetIncrements()).compareTo(other.isSetIncrements()); if (lastComparison != 0) { return lastComparison; } @@ -42361,21 +43399,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("incrementRows_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("incrementRows_args("); boolean first = true; sb.append("increments:"); @@ -42402,7 +43441,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -42410,13 +43449,13 @@ public class Hbase { } } - private static class incrementRows_argsStandardSchemeFactory implements SchemeFactory { + private static class incrementRows_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public incrementRows_argsStandardScheme getScheme() { return new incrementRows_argsStandardScheme(); } } - private static class incrementRows_argsStandardScheme extends StandardScheme { + private static class incrementRows_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, incrementRows_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -42432,8 +43471,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list448 = iprot.readListBegin(); - struct.increments = new ArrayList(_list448.size); - TIncrement _elem449; + struct.increments = new java.util.ArrayList(_list448.size); + @org.apache.thrift.annotation.Nullable TIncrement _elem449; for (int _i450 = 0; _i450 < _list448.size; ++_i450) { _elem449 = new TIncrement(); @@ -42480,18 +43519,18 @@ public class Hbase { } - private static class incrementRows_argsTupleSchemeFactory implements SchemeFactory { + private static class incrementRows_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public incrementRows_argsTupleScheme getScheme() { return new incrementRows_argsTupleScheme(); } } - private static class incrementRows_argsTupleScheme extends TupleScheme { + private static class incrementRows_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, incrementRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIncrements()) { optionals.set(0); } @@ -42509,13 +43548,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, incrementRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { 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); - TIncrement _elem454; + struct.increments = new java.util.ArrayList(_list453.size); + @org.apache.thrift.annotation.Nullable TIncrement _elem454; for (int _i455 = 0; _i455 < _list453.size; ++_i455) { _elem454 = new TIncrement(); @@ -42528,6 +43567,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class incrementRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -42535,22 +43577,19 @@ public class Hbase { 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 incrementRows_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new incrementRows_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new incrementRows_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new incrementRows_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -42558,6 +43597,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -42573,21 +43613,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -42596,18 +43637,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(incrementRows_result.class, metaDataMap); } @@ -42639,11 +43680,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public incrementRows_result setIo(IOError io) { + public incrementRows_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -42663,7 +43705,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -42676,30 +43718,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof incrementRows_result) @@ -42710,6 +43753,8 @@ public class Hbase { public boolean equals(incrementRows_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -42725,14 +43770,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -42743,7 +43787,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -42756,21 +43800,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("incrementRows_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("incrementRows_result("); boolean first = true; sb.append("io:"); @@ -42797,7 +43842,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -42805,13 +43850,13 @@ public class Hbase { } } - private static class incrementRows_resultStandardSchemeFactory implements SchemeFactory { + private static class incrementRows_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public incrementRows_resultStandardScheme getScheme() { return new incrementRows_resultStandardScheme(); } } - private static class incrementRows_resultStandardScheme extends StandardScheme { + private static class incrementRows_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, incrementRows_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -42858,18 +43903,18 @@ public class Hbase { } - private static class incrementRows_resultTupleSchemeFactory implements SchemeFactory { + private static class incrementRows_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public incrementRows_resultTupleScheme getScheme() { return new incrementRows_resultTupleScheme(); } } - private static class incrementRows_resultTupleScheme extends TupleScheme { + private static class incrementRows_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, incrementRows_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -42881,8 +43926,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, incrementRows_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -42891,6 +43936,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteAllRowTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -42901,20 +43949,17 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteAllRowTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllRowTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteAllRowTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteAllRowTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * key of the row to be completely deleted. */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * timestamp */ @@ -42922,7 +43967,7 @@ public class Hbase { /** * Delete attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -42943,10 +43988,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -42954,6 +43999,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -42975,21 +44021,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -42998,7 +44045,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -43006,9 +44053,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -43019,7 +44066,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRowTs_args.class, metaDataMap); } @@ -43027,10 +44074,10 @@ public class Hbase { } public deleteAllRowTs_args( - ByteBuffer tableName, - ByteBuffer row, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -43046,22 +44093,22 @@ public class Hbase { public deleteAllRowTs_args(deleteAllRowTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -43090,7 +44137,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -43098,11 +44145,11 @@ public class Hbase { * name of table */ public deleteAllRowTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public deleteAllRowTs_args setTableName(ByteBuffer tableName) { + public deleteAllRowTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -43130,7 +44177,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -43138,11 +44185,11 @@ public class Hbase { * key of the row to be completely deleted. */ public deleteAllRowTs_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public deleteAllRowTs_args setRow(ByteBuffer row) { + public deleteAllRowTs_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -43179,25 +44226,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -43205,14 +44252,15 @@ public class Hbase { /** * Delete attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Delete attributes */ - public deleteAllRowTs_args setAttributes(Map attributes) { + public deleteAllRowTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -43232,13 +44280,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -43246,7 +44298,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -43254,7 +44310,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -43262,14 +44318,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -43284,13 +44341,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -43303,11 +44360,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteAllRowTs_args) @@ -43318,6 +44375,8 @@ public class Hbase { public boolean equals(deleteAllRowTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -43360,29 +44419,23 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -43393,7 +44446,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -43403,7 +44456,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -43413,7 +44466,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -43423,7 +44476,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -43436,21 +44489,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteAllRowTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteAllRowTs_args("); boolean first = true; sb.append("tableName:"); @@ -43497,7 +44551,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -43507,13 +44561,13 @@ public class Hbase { } } - private static class deleteAllRowTs_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteAllRowTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllRowTs_argsStandardScheme getScheme() { return new deleteAllRowTs_argsStandardScheme(); } } - private static class deleteAllRowTs_argsStandardScheme extends StandardScheme { + private static class deleteAllRowTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRowTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -43553,9 +44607,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map456 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map456.size); - ByteBuffer _key457; - ByteBuffer _val458; + struct.attributes = new java.util.HashMap(2*_map456.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key457; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val458; for (int _i459 = 0; _i459 < _map456.size; ++_i459) { _key457 = iprot.readBinary(); @@ -43601,7 +44655,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter460 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter460 : struct.attributes.entrySet()) { oprot.writeBinary(_iter460.getKey()); oprot.writeBinary(_iter460.getValue()); @@ -43616,18 +44670,18 @@ public class Hbase { } - private static class deleteAllRowTs_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteAllRowTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllRowTs_argsTupleScheme getScheme() { return new deleteAllRowTs_argsTupleScheme(); } } - private static class deleteAllRowTs_argsTupleScheme extends TupleScheme { + private static class deleteAllRowTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -43653,7 +44707,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter461 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter461 : struct.attributes.entrySet()) { oprot.writeBinary(_iter461.getKey()); oprot.writeBinary(_iter461.getValue()); @@ -43664,8 +44718,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -43681,9 +44735,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key463; - ByteBuffer _val464; + struct.attributes = new java.util.HashMap(2*_map462.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key463; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val464; for (int _i465 = 0; _i465 < _map462.size; ++_i465) { _key463 = iprot.readBinary(); @@ -43696,6 +44750,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteAllRowTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -43703,22 +44760,19 @@ public class Hbase { 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 deleteAllRowTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteAllRowTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteAllRowTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteAllRowTs_resultTupleSchemeFactory(); - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -43726,6 +44780,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -43741,21 +44796,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -43764,18 +44820,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRowTs_result.class, metaDataMap); } @@ -43807,11 +44863,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public deleteAllRowTs_result setIo(IOError io) { + public deleteAllRowTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -43831,7 +44888,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -43844,30 +44901,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteAllRowTs_result) @@ -43878,6 +44936,8 @@ public class Hbase { public boolean equals(deleteAllRowTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -43893,14 +44953,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -43911,7 +44970,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -43924,21 +44983,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteAllRowTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteAllRowTs_result("); boolean first = true; sb.append("io:"); @@ -43965,7 +45025,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -43973,13 +45033,13 @@ public class Hbase { } } - private static class deleteAllRowTs_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteAllRowTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllRowTs_resultStandardScheme getScheme() { return new deleteAllRowTs_resultStandardScheme(); } } - private static class deleteAllRowTs_resultStandardScheme extends StandardScheme { + private static class deleteAllRowTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRowTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -44026,18 +45086,18 @@ public class Hbase { } - private static class deleteAllRowTs_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteAllRowTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteAllRowTs_resultTupleScheme getScheme() { return new deleteAllRowTs_resultTupleScheme(); } } - private static class deleteAllRowTs_resultTupleScheme extends TupleScheme { + private static class deleteAllRowTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -44049,8 +45109,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -44059,6 +45119,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenWithScan_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -44068,24 +45131,21 @@ public class Hbase { private static final org.apache.thrift.protocol.TField SCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("scan", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerOpenWithScan_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenWithScan_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenWithScan_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenWithScan_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * Scan instance */ - public TScan scan; // required + public @org.apache.thrift.annotation.Nullable TScan scan; // required /** * Scan attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -44102,10 +45162,10 @@ public class Hbase { */ ATTRIBUTES((short)3, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -44113,6 +45173,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -44132,21 +45193,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -44155,15 +45217,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.SCAN, new org.apache.thrift.meta_data.FieldMetaData("scan", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -44172,7 +45234,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithScan_args.class, metaDataMap); } @@ -44180,9 +45242,9 @@ public class Hbase { } public scannerOpenWithScan_args( - ByteBuffer tableName, + java.nio.ByteBuffer tableName, TScan scan, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -44195,21 +45257,21 @@ public class Hbase { */ public scannerOpenWithScan_args(scannerOpenWithScan_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetScan()) { this.scan = new TScan(other.scan); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -44236,7 +45298,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -44244,11 +45306,11 @@ public class Hbase { * name of table */ public scannerOpenWithScan_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public scannerOpenWithScan_args setTableName(ByteBuffer tableName) { + public scannerOpenWithScan_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -44271,6 +45333,7 @@ public class Hbase { /** * Scan instance */ + @org.apache.thrift.annotation.Nullable public TScan getScan() { return this.scan; } @@ -44278,7 +45341,7 @@ public class Hbase { /** * Scan instance */ - public scannerOpenWithScan_args setScan(TScan scan) { + public scannerOpenWithScan_args setScan(@org.apache.thrift.annotation.Nullable TScan scan) { this.scan = scan; return this; } @@ -44302,9 +45365,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -44312,14 +45375,15 @@ public class Hbase { /** * Scan attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Scan attributes */ - public scannerOpenWithScan_args setAttributes(Map attributes) { + public scannerOpenWithScan_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -44339,13 +45403,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -44361,14 +45429,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -44380,13 +45449,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -44397,11 +45466,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenWithScan_args) @@ -44412,6 +45481,8 @@ public class Hbase { public boolean equals(scannerOpenWithScan_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -44445,24 +45516,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_scan = true && (isSetScan()); - list.add(present_scan); - if (present_scan) - list.add(scan); + hashCode = hashCode * 8191 + ((isSetScan()) ? 131071 : 524287); + if (isSetScan()) + hashCode = hashCode * 8191 + scan.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -44473,7 +45541,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -44483,7 +45551,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetScan()).compareTo(other.isSetScan()); + lastComparison = java.lang.Boolean.valueOf(isSetScan()).compareTo(other.isSetScan()); if (lastComparison != 0) { return lastComparison; } @@ -44493,7 +45561,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -44506,21 +45574,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenWithScan_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenWithScan_args("); boolean first = true; sb.append("tableName:"); @@ -44566,7 +45635,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -44574,13 +45643,13 @@ public class Hbase { } } - private static class scannerOpenWithScan_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenWithScan_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithScan_argsStandardScheme getScheme() { return new scannerOpenWithScan_argsStandardScheme(); } } - private static class scannerOpenWithScan_argsStandardScheme extends StandardScheme { + private static class scannerOpenWithScan_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -44613,9 +45682,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map466 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map466.size); - ByteBuffer _key467; - ByteBuffer _val468; + struct.attributes = new java.util.HashMap(2*_map466.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key467; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val468; for (int _i469 = 0; _i469 < _map466.size; ++_i469) { _key467 = iprot.readBinary(); @@ -44658,7 +45727,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter470 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter470 : struct.attributes.entrySet()) { oprot.writeBinary(_iter470.getKey()); oprot.writeBinary(_iter470.getValue()); @@ -44673,18 +45742,18 @@ public class Hbase { } - private static class scannerOpenWithScan_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenWithScan_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithScan_argsTupleScheme getScheme() { return new scannerOpenWithScan_argsTupleScheme(); } } - private static class scannerOpenWithScan_argsTupleScheme extends TupleScheme { + private static class scannerOpenWithScan_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -44704,7 +45773,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter471 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter471 : struct.attributes.entrySet()) { oprot.writeBinary(_iter471.getKey()); oprot.writeBinary(_iter471.getValue()); @@ -44715,8 +45784,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -44729,9 +45798,9 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _key473; - ByteBuffer _val474; + struct.attributes = new java.util.HashMap(2*_map472.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key473; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val474; for (int _i475 = 0; _i475 < _map472.size; ++_i475) { _key473 = iprot.readBinary(); @@ -44744,6 +45813,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenWithScan_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -44752,24 +45824,21 @@ public class Hbase { 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 scannerOpenWithScan_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenWithScan_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenWithScan_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenWithScan_resultTupleSchemeFactory(); public int success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -44777,6 +45846,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -44794,21 +45864,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -44817,7 +45888,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -44825,14 +45896,14 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "ScannerID"))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithScan_result.class, metaDataMap); } @@ -44882,23 +45953,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerOpenWithScan_result setIo(IOError io) { + public scannerOpenWithScan_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -44918,13 +45990,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -44939,7 +46011,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -44948,13 +46021,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -44963,11 +46036,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenWithScan_result) @@ -44978,6 +46051,8 @@ public class Hbase { public boolean equals(scannerOpenWithScan_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -45002,19 +46077,15 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -45025,7 +46096,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -45035,7 +46106,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -45048,21 +46119,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenWithScan_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenWithScan_result("); boolean first = true; sb.append("success:"); @@ -45093,7 +46165,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -45103,13 +46175,13 @@ public class Hbase { } } - private static class scannerOpenWithScan_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenWithScan_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithScan_resultStandardScheme getScheme() { return new scannerOpenWithScan_resultStandardScheme(); } } - private static class scannerOpenWithScan_resultStandardScheme extends StandardScheme { + private static class scannerOpenWithScan_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -45169,18 +46241,18 @@ public class Hbase { } - private static class scannerOpenWithScan_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenWithScan_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithScan_resultTupleScheme getScheme() { return new scannerOpenWithScan_resultTupleScheme(); } } - private static class scannerOpenWithScan_resultTupleScheme extends TupleScheme { + private static class scannerOpenWithScan_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -45198,8 +46270,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -45212,6 +46284,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpen_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -45222,31 +46297,28 @@ public class Hbase { private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerOpen_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpen_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpen_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpen_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * Starting row in table to scan. * Send "" (empty string) to start at the first row. */ - public ByteBuffer startRow; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow; // required /** * columns to scan. If column name is a column family, all * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required /** * Scan attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -45270,10 +46342,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -45281,6 +46353,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -45302,21 +46375,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -45325,15 +46399,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -45345,7 +46419,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpen_args.class, metaDataMap); } @@ -45353,10 +46427,10 @@ public class Hbase { } public scannerOpen_args( - ByteBuffer tableName, - ByteBuffer startRow, - List columns, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer startRow, + java.util.List columns, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -45370,28 +46444,28 @@ public class Hbase { */ public scannerOpen_args(scannerOpen_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetStartRow()) { - this.startRow = other.startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(other.startRow); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -45419,7 +46493,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -45427,11 +46501,11 @@ public class Hbase { * name of table */ public scannerOpen_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public scannerOpen_args setTableName(ByteBuffer tableName) { + public scannerOpen_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -45460,7 +46534,7 @@ public class Hbase { return startRow == null ? null : startRow.array(); } - public ByteBuffer bufferForStartRow() { + public java.nio.ByteBuffer bufferForStartRow() { return org.apache.thrift.TBaseHelper.copyBinary(startRow); } @@ -45469,11 +46543,11 @@ public class Hbase { * Send "" (empty string) to start at the first row. */ public scannerOpen_args setStartRow(byte[] startRow) { - this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); + this.startRow = startRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(startRow.clone()); return this; } - public scannerOpen_args setStartRow(ByteBuffer startRow) { + public scannerOpen_args setStartRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow) { this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -45497,13 +46571,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -45513,7 +46588,8 @@ public class Hbase { * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } @@ -45522,7 +46598,7 @@ public class Hbase { * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public scannerOpen_args setColumns(List columns) { + public scannerOpen_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -45546,9 +46622,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -45556,14 +46632,15 @@ public class Hbase { /** * Scan attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Scan attributes */ - public scannerOpen_args setAttributes(Map attributes) { + public scannerOpen_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -45583,13 +46660,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -45597,7 +46678,11 @@ public class Hbase { if (value == null) { unsetStartRow(); } else { - setStartRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStartRow((byte[])value); + } else { + setStartRow((java.nio.ByteBuffer)value); + } } break; @@ -45605,7 +46690,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -45613,14 +46698,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -45635,13 +46721,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -45654,11 +46740,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpen_args) @@ -45669,6 +46755,8 @@ public class Hbase { public boolean equals(scannerOpen_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -45711,29 +46799,25 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_startRow = true && (isSetStartRow()); - list.add(present_startRow); - if (present_startRow) - list.add(startRow); + hashCode = hashCode * 8191 + ((isSetStartRow()) ? 131071 : 524287); + if (isSetStartRow()) + hashCode = hashCode * 8191 + startRow.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -45744,7 +46828,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -45754,7 +46838,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } @@ -45764,7 +46848,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -45774,7 +46858,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -45787,21 +46871,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpen_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpen_args("); boolean first = true; sb.append("tableName:"); @@ -45852,7 +46937,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -45860,13 +46945,13 @@ public class Hbase { } } - private static class scannerOpen_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerOpen_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpen_argsStandardScheme getScheme() { return new scannerOpen_argsStandardScheme(); } } - private static class scannerOpen_argsStandardScheme extends StandardScheme { + private static class scannerOpen_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpen_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -45898,8 +46983,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); - struct.columns = new ArrayList(_list476.size); - ByteBuffer _elem477; + struct.columns = new java.util.ArrayList(_list476.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem477; for (int _i478 = 0; _i478 < _list476.size; ++_i478) { _elem477 = iprot.readBinary(); @@ -45916,9 +47001,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map479 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map479.size); - ByteBuffer _key480; - ByteBuffer _val481; + struct.attributes = new java.util.HashMap(2*_map479.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key480; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val481; for (int _i482 = 0; _i482 < _map479.size; ++_i482) { _key480 = iprot.readBinary(); @@ -45961,7 +47046,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter483 : struct.columns) + for (java.nio.ByteBuffer _iter483 : struct.columns) { oprot.writeBinary(_iter483); } @@ -45973,7 +47058,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter484 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter484 : struct.attributes.entrySet()) { oprot.writeBinary(_iter484.getKey()); oprot.writeBinary(_iter484.getValue()); @@ -45988,18 +47073,18 @@ public class Hbase { } - private static class scannerOpen_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerOpen_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpen_argsTupleScheme getScheme() { return new scannerOpen_argsTupleScheme(); } } - private static class scannerOpen_argsTupleScheme extends TupleScheme { + private static class scannerOpen_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpen_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -46022,7 +47107,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter485 : struct.columns) + for (java.nio.ByteBuffer _iter485 : struct.columns) { oprot.writeBinary(_iter485); } @@ -46031,7 +47116,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter486 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter486 : struct.attributes.entrySet()) { oprot.writeBinary(_iter486.getKey()); oprot.writeBinary(_iter486.getValue()); @@ -46042,8 +47127,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpen_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -46055,8 +47140,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _elem488; + struct.columns = new java.util.ArrayList(_list487.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem488; for (int _i489 = 0; _i489 < _list487.size; ++_i489) { _elem488 = iprot.readBinary(); @@ -46068,9 +47153,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key491; - ByteBuffer _val492; + struct.attributes = new java.util.HashMap(2*_map490.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key491; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val492; for (int _i493 = 0; _i493 < _map490.size; ++_i493) { _key491 = iprot.readBinary(); @@ -46083,6 +47168,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpen_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -46091,24 +47179,21 @@ public class Hbase { 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 scannerOpen_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpen_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpen_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpen_resultTupleSchemeFactory(); public int success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -46116,6 +47201,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -46133,21 +47219,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -46156,7 +47243,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -46164,14 +47251,14 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "ScannerID"))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpen_result.class, metaDataMap); } @@ -46221,23 +47308,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerOpen_result setIo(IOError io) { + public scannerOpen_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -46257,13 +47345,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -46278,7 +47366,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -46287,13 +47376,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -46302,11 +47391,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpen_result) @@ -46317,6 +47406,8 @@ public class Hbase { public boolean equals(scannerOpen_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -46341,19 +47432,15 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -46364,7 +47451,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -46374,7 +47461,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -46387,21 +47474,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpen_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpen_result("); boolean first = true; sb.append("success:"); @@ -46432,7 +47520,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -46442,13 +47530,13 @@ public class Hbase { } } - private static class scannerOpen_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerOpen_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpen_resultStandardScheme getScheme() { return new scannerOpen_resultStandardScheme(); } } - private static class scannerOpen_resultStandardScheme extends StandardScheme { + private static class scannerOpen_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpen_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -46508,18 +47596,18 @@ public class Hbase { } - private static class scannerOpen_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerOpen_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpen_resultTupleScheme getScheme() { return new scannerOpen_resultTupleScheme(); } } - private static class scannerOpen_resultTupleScheme extends TupleScheme { + private static class scannerOpen_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpen_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -46537,8 +47625,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpen_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -46551,6 +47639,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenWithStop_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -46562,36 +47653,33 @@ public class Hbase { private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)4); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerOpenWithStop_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenWithStop_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenWithStop_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenWithStop_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * Starting row in table to scan. * Send "" (empty string) to start at the first row. */ - public ByteBuffer startRow; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow; // required /** * row to stop scanning on. This row is *not* included in the * scanner's results */ - public ByteBuffer stopRow; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer stopRow; // required /** * columns to scan. If column name is a column family, all * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required /** * Scan attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -46620,10 +47708,10 @@ public class Hbase { */ ATTRIBUTES((short)5, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -46631,6 +47719,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -46654,21 +47743,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -46677,15 +47767,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -46699,7 +47789,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStop_args.class, metaDataMap); } @@ -46707,11 +47797,11 @@ public class Hbase { } public scannerOpenWithStop_args( - ByteBuffer tableName, - ByteBuffer startRow, - ByteBuffer stopRow, - List columns, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer startRow, + java.nio.ByteBuffer stopRow, + java.util.List columns, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -46726,31 +47816,31 @@ public class Hbase { */ public scannerOpenWithStop_args(scannerOpenWithStop_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetStartRow()) { - this.startRow = other.startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(other.startRow); } if (other.isSetStopRow()) { - this.stopRow = other.stopRow; + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(other.stopRow); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -46779,7 +47869,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -46787,11 +47877,11 @@ public class Hbase { * name of table */ public scannerOpenWithStop_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public scannerOpenWithStop_args setTableName(ByteBuffer tableName) { + public scannerOpenWithStop_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -46820,7 +47910,7 @@ public class Hbase { return startRow == null ? null : startRow.array(); } - public ByteBuffer bufferForStartRow() { + public java.nio.ByteBuffer bufferForStartRow() { return org.apache.thrift.TBaseHelper.copyBinary(startRow); } @@ -46829,11 +47919,11 @@ public class Hbase { * Send "" (empty string) to start at the first row. */ public scannerOpenWithStop_args setStartRow(byte[] startRow) { - this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); + this.startRow = startRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(startRow.clone()); return this; } - public scannerOpenWithStop_args setStartRow(ByteBuffer startRow) { + public scannerOpenWithStop_args setStartRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow) { this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -46862,7 +47952,7 @@ public class Hbase { return stopRow == null ? null : stopRow.array(); } - public ByteBuffer bufferForStopRow() { + public java.nio.ByteBuffer bufferForStopRow() { return org.apache.thrift.TBaseHelper.copyBinary(stopRow); } @@ -46871,11 +47961,11 @@ public class Hbase { * scanner's results */ public scannerOpenWithStop_args setStopRow(byte[] stopRow) { - this.stopRow = stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(stopRow, stopRow.length)); + this.stopRow = stopRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(stopRow.clone()); return this; } - public scannerOpenWithStop_args setStopRow(ByteBuffer stopRow) { + public scannerOpenWithStop_args setStopRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer stopRow) { this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); return this; } @@ -46899,13 +47989,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -46915,7 +48006,8 @@ public class Hbase { * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } @@ -46924,7 +48016,7 @@ public class Hbase { * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public scannerOpenWithStop_args setColumns(List columns) { + public scannerOpenWithStop_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -46948,9 +48040,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -46958,14 +48050,15 @@ public class Hbase { /** * Scan attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Scan attributes */ - public scannerOpenWithStop_args setAttributes(Map attributes) { + public scannerOpenWithStop_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -46985,13 +48078,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -46999,7 +48096,11 @@ public class Hbase { if (value == null) { unsetStartRow(); } else { - setStartRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStartRow((byte[])value); + } else { + setStartRow((java.nio.ByteBuffer)value); + } } break; @@ -47007,7 +48108,11 @@ public class Hbase { if (value == null) { unsetStopRow(); } else { - setStopRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStopRow((byte[])value); + } else { + setStopRow((java.nio.ByteBuffer)value); + } } break; @@ -47015,7 +48120,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -47023,14 +48128,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -47048,13 +48154,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -47069,11 +48175,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenWithStop_args) @@ -47084,6 +48190,8 @@ public class Hbase { public boolean equals(scannerOpenWithStop_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -47135,34 +48243,29 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_startRow = true && (isSetStartRow()); - list.add(present_startRow); - if (present_startRow) - list.add(startRow); + hashCode = hashCode * 8191 + ((isSetStartRow()) ? 131071 : 524287); + if (isSetStartRow()) + hashCode = hashCode * 8191 + startRow.hashCode(); - boolean present_stopRow = true && (isSetStopRow()); - list.add(present_stopRow); - if (present_stopRow) - list.add(stopRow); + hashCode = hashCode * 8191 + ((isSetStopRow()) ? 131071 : 524287); + if (isSetStopRow()) + hashCode = hashCode * 8191 + stopRow.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -47173,7 +48276,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -47183,7 +48286,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } @@ -47193,7 +48296,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); if (lastComparison != 0) { return lastComparison; } @@ -47203,7 +48306,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -47213,7 +48316,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -47226,21 +48329,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenWithStop_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenWithStop_args("); boolean first = true; sb.append("tableName:"); @@ -47299,7 +48403,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -47307,13 +48411,13 @@ public class Hbase { } } - private static class scannerOpenWithStop_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenWithStop_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithStop_argsStandardScheme getScheme() { return new scannerOpenWithStop_argsStandardScheme(); } } - private static class scannerOpenWithStop_argsStandardScheme extends StandardScheme { + private static class scannerOpenWithStop_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -47353,8 +48457,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list494 = iprot.readListBegin(); - struct.columns = new ArrayList(_list494.size); - ByteBuffer _elem495; + struct.columns = new java.util.ArrayList(_list494.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem495; for (int _i496 = 0; _i496 < _list494.size; ++_i496) { _elem495 = iprot.readBinary(); @@ -47371,9 +48475,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map497 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map497.size); - ByteBuffer _key498; - ByteBuffer _val499; + struct.attributes = new java.util.HashMap(2*_map497.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key498; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val499; for (int _i500 = 0; _i500 < _map497.size; ++_i500) { _key498 = iprot.readBinary(); @@ -47421,7 +48525,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter501 : struct.columns) + for (java.nio.ByteBuffer _iter501 : struct.columns) { oprot.writeBinary(_iter501); } @@ -47433,7 +48537,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter502 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter502 : struct.attributes.entrySet()) { oprot.writeBinary(_iter502.getKey()); oprot.writeBinary(_iter502.getValue()); @@ -47448,18 +48552,18 @@ public class Hbase { } - private static class scannerOpenWithStop_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenWithStop_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithStop_argsTupleScheme getScheme() { return new scannerOpenWithStop_argsTupleScheme(); } } - private static class scannerOpenWithStop_argsTupleScheme extends TupleScheme { + private static class scannerOpenWithStop_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -47488,7 +48592,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter503 : struct.columns) + for (java.nio.ByteBuffer _iter503 : struct.columns) { oprot.writeBinary(_iter503); } @@ -47497,7 +48601,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter504 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter504 : struct.attributes.entrySet()) { oprot.writeBinary(_iter504.getKey()); oprot.writeBinary(_iter504.getValue()); @@ -47508,8 +48612,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -47525,8 +48629,8 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _elem506; + struct.columns = new java.util.ArrayList(_list505.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem506; for (int _i507 = 0; _i507 < _list505.size; ++_i507) { _elem506 = iprot.readBinary(); @@ -47538,9 +48642,9 @@ public class Hbase { if (incoming.get(4)) { { 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); - ByteBuffer _key509; - ByteBuffer _val510; + struct.attributes = new java.util.HashMap(2*_map508.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key509; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val510; for (int _i511 = 0; _i511 < _map508.size; ++_i511) { _key509 = iprot.readBinary(); @@ -47553,6 +48657,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenWithStop_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -47561,24 +48668,21 @@ public class Hbase { 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 scannerOpenWithStop_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenWithStop_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenWithStop_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenWithStop_resultTupleSchemeFactory(); public int success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -47586,6 +48690,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -47603,21 +48708,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -47626,7 +48732,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -47634,14 +48740,14 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "ScannerID"))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStop_result.class, metaDataMap); } @@ -47691,23 +48797,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerOpenWithStop_result setIo(IOError io) { + public scannerOpenWithStop_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -47727,13 +48834,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -47748,7 +48855,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -47757,13 +48865,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -47772,11 +48880,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenWithStop_result) @@ -47787,6 +48895,8 @@ public class Hbase { public boolean equals(scannerOpenWithStop_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -47811,19 +48921,15 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -47834,7 +48940,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -47844,7 +48950,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -47857,21 +48963,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenWithStop_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenWithStop_result("); boolean first = true; sb.append("success:"); @@ -47902,7 +49009,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -47912,13 +49019,13 @@ public class Hbase { } } - private static class scannerOpenWithStop_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenWithStop_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithStop_resultStandardScheme getScheme() { return new scannerOpenWithStop_resultStandardScheme(); } } - private static class scannerOpenWithStop_resultStandardScheme extends StandardScheme { + private static class scannerOpenWithStop_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -47978,18 +49085,18 @@ public class Hbase { } - private static class scannerOpenWithStop_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenWithStop_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithStop_resultTupleScheme getScheme() { return new scannerOpenWithStop_resultTupleScheme(); } } - private static class scannerOpenWithStop_resultTupleScheme extends TupleScheme { + private static class scannerOpenWithStop_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -48007,8 +49114,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -48021,6 +49128,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenWithPrefix_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -48031,28 +49141,25 @@ public class Hbase { private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerOpenWithPrefix_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenWithPrefix_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenWithPrefix_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenWithPrefix_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * the prefix (and thus start row) of the keys you want */ - public ByteBuffer startAndPrefix; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startAndPrefix; // required /** * the columns you want returned */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required /** * Scan attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -48073,10 +49180,10 @@ public class Hbase { */ ATTRIBUTES((short)4, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -48084,6 +49191,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -48105,21 +49213,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -48128,15 +49237,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.START_AND_PREFIX, new org.apache.thrift.meta_data.FieldMetaData("startAndPrefix", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -48148,7 +49257,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithPrefix_args.class, metaDataMap); } @@ -48156,10 +49265,10 @@ public class Hbase { } public scannerOpenWithPrefix_args( - ByteBuffer tableName, - ByteBuffer startAndPrefix, - List columns, - Map attributes) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer startAndPrefix, + java.util.List columns, + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -48173,28 +49282,28 @@ public class Hbase { */ public scannerOpenWithPrefix_args(scannerOpenWithPrefix_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetStartAndPrefix()) { - this.startAndPrefix = other.startAndPrefix; + this.startAndPrefix = org.apache.thrift.TBaseHelper.copyBinary(other.startAndPrefix); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -48222,7 +49331,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -48230,11 +49339,11 @@ public class Hbase { * name of table */ public scannerOpenWithPrefix_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public scannerOpenWithPrefix_args setTableName(ByteBuffer tableName) { + public scannerOpenWithPrefix_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -48262,7 +49371,7 @@ public class Hbase { return startAndPrefix == null ? null : startAndPrefix.array(); } - public ByteBuffer bufferForStartAndPrefix() { + public java.nio.ByteBuffer bufferForStartAndPrefix() { return org.apache.thrift.TBaseHelper.copyBinary(startAndPrefix); } @@ -48270,11 +49379,11 @@ public class Hbase { * the prefix (and thus start row) of the keys you want */ public scannerOpenWithPrefix_args setStartAndPrefix(byte[] startAndPrefix) { - this.startAndPrefix = startAndPrefix == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startAndPrefix, startAndPrefix.length)); + this.startAndPrefix = startAndPrefix == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(startAndPrefix.clone()); return this; } - public scannerOpenWithPrefix_args setStartAndPrefix(ByteBuffer startAndPrefix) { + public scannerOpenWithPrefix_args setStartAndPrefix(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startAndPrefix) { this.startAndPrefix = org.apache.thrift.TBaseHelper.copyBinary(startAndPrefix); return this; } @@ -48298,13 +49407,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -48312,14 +49422,15 @@ public class Hbase { /** * the columns you want returned */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } /** * the columns you want returned */ - public scannerOpenWithPrefix_args setColumns(List columns) { + public scannerOpenWithPrefix_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -48343,9 +49454,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -48353,14 +49464,15 @@ public class Hbase { /** * Scan attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Scan attributes */ - public scannerOpenWithPrefix_args setAttributes(Map attributes) { + public scannerOpenWithPrefix_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -48380,13 +49492,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -48394,7 +49510,11 @@ public class Hbase { if (value == null) { unsetStartAndPrefix(); } else { - setStartAndPrefix((ByteBuffer)value); + if (value instanceof byte[]) { + setStartAndPrefix((byte[])value); + } else { + setStartAndPrefix((java.nio.ByteBuffer)value); + } } break; @@ -48402,7 +49522,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -48410,14 +49530,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -48432,13 +49553,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -48451,11 +49572,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenWithPrefix_args) @@ -48466,6 +49587,8 @@ public class Hbase { public boolean equals(scannerOpenWithPrefix_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -48508,29 +49631,25 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_startAndPrefix = true && (isSetStartAndPrefix()); - list.add(present_startAndPrefix); - if (present_startAndPrefix) - list.add(startAndPrefix); + hashCode = hashCode * 8191 + ((isSetStartAndPrefix()) ? 131071 : 524287); + if (isSetStartAndPrefix()) + hashCode = hashCode * 8191 + startAndPrefix.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -48541,7 +49660,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -48551,7 +49670,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartAndPrefix()).compareTo(other.isSetStartAndPrefix()); + lastComparison = java.lang.Boolean.valueOf(isSetStartAndPrefix()).compareTo(other.isSetStartAndPrefix()); if (lastComparison != 0) { return lastComparison; } @@ -48561,7 +49680,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -48571,7 +49690,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -48584,21 +49703,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenWithPrefix_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenWithPrefix_args("); boolean first = true; sb.append("tableName:"); @@ -48649,7 +49769,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -48657,13 +49777,13 @@ public class Hbase { } } - private static class scannerOpenWithPrefix_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenWithPrefix_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithPrefix_argsStandardScheme getScheme() { return new scannerOpenWithPrefix_argsStandardScheme(); } } - private static class scannerOpenWithPrefix_argsStandardScheme extends StandardScheme { + private static class scannerOpenWithPrefix_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -48695,8 +49815,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list512 = iprot.readListBegin(); - struct.columns = new ArrayList(_list512.size); - ByteBuffer _elem513; + struct.columns = new java.util.ArrayList(_list512.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem513; for (int _i514 = 0; _i514 < _list512.size; ++_i514) { _elem513 = iprot.readBinary(); @@ -48713,9 +49833,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map515 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map515.size); - ByteBuffer _key516; - ByteBuffer _val517; + struct.attributes = new java.util.HashMap(2*_map515.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key516; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val517; for (int _i518 = 0; _i518 < _map515.size; ++_i518) { _key516 = iprot.readBinary(); @@ -48758,7 +49878,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter519 : struct.columns) + for (java.nio.ByteBuffer _iter519 : struct.columns) { oprot.writeBinary(_iter519); } @@ -48770,7 +49890,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter520 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter520 : struct.attributes.entrySet()) { oprot.writeBinary(_iter520.getKey()); oprot.writeBinary(_iter520.getValue()); @@ -48785,18 +49905,18 @@ public class Hbase { } - private static class scannerOpenWithPrefix_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenWithPrefix_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithPrefix_argsTupleScheme getScheme() { return new scannerOpenWithPrefix_argsTupleScheme(); } } - private static class scannerOpenWithPrefix_argsTupleScheme extends TupleScheme { + private static class scannerOpenWithPrefix_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -48819,7 +49939,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter521 : struct.columns) + for (java.nio.ByteBuffer _iter521 : struct.columns) { oprot.writeBinary(_iter521); } @@ -48828,7 +49948,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter522 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter522 : struct.attributes.entrySet()) { oprot.writeBinary(_iter522.getKey()); oprot.writeBinary(_iter522.getValue()); @@ -48839,8 +49959,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -48852,8 +49972,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _elem524; + struct.columns = new java.util.ArrayList(_list523.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem524; for (int _i525 = 0; _i525 < _list523.size; ++_i525) { _elem524 = iprot.readBinary(); @@ -48865,9 +49985,9 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _key527; - ByteBuffer _val528; + struct.attributes = new java.util.HashMap(2*_map526.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key527; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val528; for (int _i529 = 0; _i529 < _map526.size; ++_i529) { _key527 = iprot.readBinary(); @@ -48880,6 +50000,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenWithPrefix_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -48888,24 +50011,21 @@ public class Hbase { 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 scannerOpenWithPrefix_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenWithPrefix_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenWithPrefix_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenWithPrefix_resultTupleSchemeFactory(); public int success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -48913,6 +50033,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -48930,21 +50051,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -48953,7 +50075,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -48961,14 +50083,14 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "ScannerID"))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithPrefix_result.class, metaDataMap); } @@ -49018,23 +50140,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerOpenWithPrefix_result setIo(IOError io) { + public scannerOpenWithPrefix_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -49054,13 +50177,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -49075,7 +50198,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -49084,13 +50208,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -49099,11 +50223,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenWithPrefix_result) @@ -49114,6 +50238,8 @@ public class Hbase { public boolean equals(scannerOpenWithPrefix_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -49138,19 +50264,15 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -49161,7 +50283,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -49171,7 +50293,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -49184,21 +50306,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenWithPrefix_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenWithPrefix_result("); boolean first = true; sb.append("success:"); @@ -49229,7 +50352,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -49239,13 +50362,13 @@ public class Hbase { } } - private static class scannerOpenWithPrefix_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenWithPrefix_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithPrefix_resultStandardScheme getScheme() { return new scannerOpenWithPrefix_resultStandardScheme(); } } - private static class scannerOpenWithPrefix_resultStandardScheme extends StandardScheme { + private static class scannerOpenWithPrefix_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -49305,18 +50428,18 @@ public class Hbase { } - private static class scannerOpenWithPrefix_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenWithPrefix_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithPrefix_resultTupleScheme getScheme() { return new scannerOpenWithPrefix_resultTupleScheme(); } } - private static class scannerOpenWithPrefix_resultTupleScheme extends TupleScheme { + private static class scannerOpenWithPrefix_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -49334,8 +50457,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -49348,6 +50471,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -49359,27 +50485,24 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerOpenTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * Starting row in table to scan. * Send "" (empty string) to start at the first row. */ - public ByteBuffer startRow; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow; // required /** * columns to scan. If column name is a column family, all * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required /** * timestamp */ @@ -49387,7 +50510,7 @@ public class Hbase { /** * Scan attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -49415,10 +50538,10 @@ public class Hbase { */ ATTRIBUTES((short)5, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -49426,6 +50549,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -49449,21 +50573,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -49472,7 +50597,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -49480,9 +50605,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -49496,7 +50621,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenTs_args.class, metaDataMap); } @@ -49504,11 +50629,11 @@ public class Hbase { } public scannerOpenTs_args( - ByteBuffer tableName, - ByteBuffer startRow, - List columns, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer startRow, + java.util.List columns, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -49525,29 +50650,29 @@ public class Hbase { public scannerOpenTs_args(scannerOpenTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetStartRow()) { - this.startRow = other.startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(other.startRow); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -49577,7 +50702,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -49585,11 +50710,11 @@ public class Hbase { * name of table */ public scannerOpenTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public scannerOpenTs_args setTableName(ByteBuffer tableName) { + public scannerOpenTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -49618,7 +50743,7 @@ public class Hbase { return startRow == null ? null : startRow.array(); } - public ByteBuffer bufferForStartRow() { + public java.nio.ByteBuffer bufferForStartRow() { return org.apache.thrift.TBaseHelper.copyBinary(startRow); } @@ -49627,11 +50752,11 @@ public class Hbase { * Send "" (empty string) to start at the first row. */ public scannerOpenTs_args setStartRow(byte[] startRow) { - this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); + this.startRow = startRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(startRow.clone()); return this; } - public scannerOpenTs_args setStartRow(ByteBuffer startRow) { + public scannerOpenTs_args setStartRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow) { this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -49655,13 +50780,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -49671,7 +50797,8 @@ public class Hbase { * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } @@ -49680,7 +50807,7 @@ public class Hbase { * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public scannerOpenTs_args setColumns(List columns) { + public scannerOpenTs_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -49717,25 +50844,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -49743,14 +50870,15 @@ public class Hbase { /** * Scan attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Scan attributes */ - public scannerOpenTs_args setAttributes(Map attributes) { + public scannerOpenTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -49770,13 +50898,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -49784,7 +50916,11 @@ public class Hbase { if (value == null) { unsetStartRow(); } else { - setStartRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStartRow((byte[])value); + } else { + setStartRow((java.nio.ByteBuffer)value); + } } break; @@ -49792,7 +50928,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -49800,7 +50936,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -49808,14 +50944,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -49833,13 +50970,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -49854,11 +50991,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenTs_args) @@ -49869,6 +51006,8 @@ public class Hbase { public boolean equals(scannerOpenTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -49920,34 +51059,27 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_startRow = true && (isSetStartRow()); - list.add(present_startRow); - if (present_startRow) - list.add(startRow); + hashCode = hashCode * 8191 + ((isSetStartRow()) ? 131071 : 524287); + if (isSetStartRow()) + hashCode = hashCode * 8191 + startRow.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -49958,7 +51090,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -49968,7 +51100,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } @@ -49978,7 +51110,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -49988,7 +51120,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -49998,7 +51130,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -50011,21 +51143,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenTs_args("); boolean first = true; sb.append("tableName:"); @@ -50080,7 +51213,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -50090,13 +51223,13 @@ public class Hbase { } } - private static class scannerOpenTs_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenTs_argsStandardScheme getScheme() { return new scannerOpenTs_argsStandardScheme(); } } - private static class scannerOpenTs_argsStandardScheme extends StandardScheme { + private static class scannerOpenTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -50128,8 +51261,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list530 = iprot.readListBegin(); - struct.columns = new ArrayList(_list530.size); - ByteBuffer _elem531; + struct.columns = new java.util.ArrayList(_list530.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem531; for (int _i532 = 0; _i532 < _list530.size; ++_i532) { _elem531 = iprot.readBinary(); @@ -50154,9 +51287,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map533 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map533.size); - ByteBuffer _key534; - ByteBuffer _val535; + struct.attributes = new java.util.HashMap(2*_map533.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key534; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val535; for (int _i536 = 0; _i536 < _map533.size; ++_i536) { _key534 = iprot.readBinary(); @@ -50199,7 +51332,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter537 : struct.columns) + for (java.nio.ByteBuffer _iter537 : struct.columns) { oprot.writeBinary(_iter537); } @@ -50214,7 +51347,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter538 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter538 : struct.attributes.entrySet()) { oprot.writeBinary(_iter538.getKey()); oprot.writeBinary(_iter538.getValue()); @@ -50229,18 +51362,18 @@ public class Hbase { } - private static class scannerOpenTs_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenTs_argsTupleScheme getScheme() { return new scannerOpenTs_argsTupleScheme(); } } - private static class scannerOpenTs_argsTupleScheme extends TupleScheme { + private static class scannerOpenTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -50266,7 +51399,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter539 : struct.columns) + for (java.nio.ByteBuffer _iter539 : struct.columns) { oprot.writeBinary(_iter539); } @@ -50278,7 +51411,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter540 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter540 : struct.attributes.entrySet()) { oprot.writeBinary(_iter540.getKey()); oprot.writeBinary(_iter540.getValue()); @@ -50289,8 +51422,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -50302,8 +51435,8 @@ public class Hbase { if (incoming.get(2)) { { 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); - ByteBuffer _elem542; + struct.columns = new java.util.ArrayList(_list541.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem542; for (int _i543 = 0; _i543 < _list541.size; ++_i543) { _elem542 = iprot.readBinary(); @@ -50319,9 +51452,9 @@ public class Hbase { if (incoming.get(4)) { { 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); - ByteBuffer _key545; - ByteBuffer _val546; + struct.attributes = new java.util.HashMap(2*_map544.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key545; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val546; for (int _i547 = 0; _i547 < _map544.size; ++_i547) { _key545 = iprot.readBinary(); @@ -50334,6 +51467,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -50342,24 +51478,21 @@ public class Hbase { 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 scannerOpenTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenTs_resultTupleSchemeFactory(); public int success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -50367,6 +51500,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -50384,21 +51518,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -50407,7 +51542,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -50415,14 +51550,14 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "ScannerID"))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenTs_result.class, metaDataMap); } @@ -50472,23 +51607,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerOpenTs_result setIo(IOError io) { + public scannerOpenTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -50508,13 +51644,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -50529,7 +51665,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -50538,13 +51675,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -50553,11 +51690,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenTs_result) @@ -50568,6 +51705,8 @@ public class Hbase { public boolean equals(scannerOpenTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -50592,19 +51731,15 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -50615,7 +51750,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -50625,7 +51760,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -50638,21 +51773,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenTs_result("); boolean first = true; sb.append("success:"); @@ -50683,7 +51819,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -50693,13 +51829,13 @@ public class Hbase { } } - private static class scannerOpenTs_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenTs_resultStandardScheme getScheme() { return new scannerOpenTs_resultStandardScheme(); } } - private static class scannerOpenTs_resultStandardScheme extends StandardScheme { + private static class scannerOpenTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -50759,18 +51895,18 @@ public class Hbase { } - private static class scannerOpenTs_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenTs_resultTupleScheme getScheme() { return new scannerOpenTs_resultTupleScheme(); } } - private static class scannerOpenTs_resultTupleScheme extends TupleScheme { + private static class scannerOpenTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -50788,8 +51924,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -50802,6 +51938,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenWithStopTs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -50814,32 +51953,29 @@ public class Hbase { private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)6); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerOpenWithStopTs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenWithStopTs_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenWithStopTs_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenWithStopTs_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * Starting row in table to scan. * Send "" (empty string) to start at the first row. */ - public ByteBuffer startRow; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow; // required /** * row to stop scanning on. This row is *not* included in the * scanner's results */ - public ByteBuffer stopRow; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer stopRow; // required /** * columns to scan. If column name is a column family, all * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required /** * timestamp */ @@ -50847,7 +51983,7 @@ public class Hbase { /** * Scan attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -50880,10 +52016,10 @@ public class Hbase { */ ATTRIBUTES((short)6, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -50891,6 +52027,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -50916,21 +52053,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -50939,7 +52077,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -50947,9 +52085,9 @@ public class Hbase { // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -50965,7 +52103,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStopTs_args.class, metaDataMap); } @@ -50973,12 +52111,12 @@ public class Hbase { } public scannerOpenWithStopTs_args( - ByteBuffer tableName, - ByteBuffer startRow, - ByteBuffer stopRow, - List columns, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer startRow, + java.nio.ByteBuffer stopRow, + java.util.List columns, long timestamp, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -50996,32 +52134,32 @@ public class Hbase { public scannerOpenWithStopTs_args(scannerOpenWithStopTs_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetStartRow()) { - this.startRow = other.startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(other.startRow); } if (other.isSetStopRow()) { - this.stopRow = other.stopRow; + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(other.stopRow); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -51052,7 +52190,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -51060,11 +52198,11 @@ public class Hbase { * name of table */ public scannerOpenWithStopTs_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public scannerOpenWithStopTs_args setTableName(ByteBuffer tableName) { + public scannerOpenWithStopTs_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -51093,7 +52231,7 @@ public class Hbase { return startRow == null ? null : startRow.array(); } - public ByteBuffer bufferForStartRow() { + public java.nio.ByteBuffer bufferForStartRow() { return org.apache.thrift.TBaseHelper.copyBinary(startRow); } @@ -51102,11 +52240,11 @@ public class Hbase { * Send "" (empty string) to start at the first row. */ public scannerOpenWithStopTs_args setStartRow(byte[] startRow) { - this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); + this.startRow = startRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(startRow.clone()); return this; } - public scannerOpenWithStopTs_args setStartRow(ByteBuffer startRow) { + public scannerOpenWithStopTs_args setStartRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow) { this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -51135,7 +52273,7 @@ public class Hbase { return stopRow == null ? null : stopRow.array(); } - public ByteBuffer bufferForStopRow() { + public java.nio.ByteBuffer bufferForStopRow() { return org.apache.thrift.TBaseHelper.copyBinary(stopRow); } @@ -51144,11 +52282,11 @@ public class Hbase { * scanner's results */ public scannerOpenWithStopTs_args setStopRow(byte[] stopRow) { - this.stopRow = stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(stopRow, stopRow.length)); + this.stopRow = stopRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(stopRow.clone()); return this; } - public scannerOpenWithStopTs_args setStopRow(ByteBuffer stopRow) { + public scannerOpenWithStopTs_args setStopRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer stopRow) { this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); return this; } @@ -51172,13 +52310,14 @@ public class Hbase { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } @@ -51188,7 +52327,8 @@ public class Hbase { * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } @@ -51197,7 +52337,7 @@ public class Hbase { * columns of the specified column family are returned. It's also possible * to pass a regex in the column qualifier. */ - public scannerOpenWithStopTs_args setColumns(List columns) { + public scannerOpenWithStopTs_args setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -51234,25 +52374,25 @@ public class Hbase { } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -51260,14 +52400,15 @@ public class Hbase { /** * Scan attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Scan attributes */ - public scannerOpenWithStopTs_args setAttributes(Map attributes) { + public scannerOpenWithStopTs_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -51287,13 +52428,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -51301,7 +52446,11 @@ public class Hbase { if (value == null) { unsetStartRow(); } else { - setStartRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStartRow((byte[])value); + } else { + setStartRow((java.nio.ByteBuffer)value); + } } break; @@ -51309,7 +52458,11 @@ public class Hbase { if (value == null) { unsetStopRow(); } else { - setStopRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStopRow((byte[])value); + } else { + setStopRow((java.nio.ByteBuffer)value); + } } break; @@ -51317,7 +52470,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -51325,7 +52478,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -51333,14 +52486,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -51361,13 +52515,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -51384,11 +52538,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenWithStopTs_args) @@ -51399,6 +52553,8 @@ public class Hbase { public boolean equals(scannerOpenWithStopTs_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -51459,39 +52615,31 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_startRow = true && (isSetStartRow()); - list.add(present_startRow); - if (present_startRow) - list.add(startRow); + hashCode = hashCode * 8191 + ((isSetStartRow()) ? 131071 : 524287); + if (isSetStartRow()) + hashCode = hashCode * 8191 + startRow.hashCode(); - boolean present_stopRow = true && (isSetStopRow()); - list.add(present_stopRow); - if (present_stopRow) - list.add(stopRow); + hashCode = hashCode * 8191 + ((isSetStopRow()) ? 131071 : 524287); + if (isSetStopRow()) + hashCode = hashCode * 8191 + stopRow.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -51502,7 +52650,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -51512,7 +52660,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } @@ -51522,7 +52670,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); if (lastComparison != 0) { return lastComparison; } @@ -51532,7 +52680,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -51542,7 +52690,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -51552,7 +52700,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -51565,21 +52713,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenWithStopTs_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenWithStopTs_args("); boolean first = true; sb.append("tableName:"); @@ -51642,7 +52791,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -51652,13 +52801,13 @@ public class Hbase { } } - private static class scannerOpenWithStopTs_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenWithStopTs_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithStopTs_argsStandardScheme getScheme() { return new scannerOpenWithStopTs_argsStandardScheme(); } } - private static class scannerOpenWithStopTs_argsStandardScheme extends StandardScheme { + private static class scannerOpenWithStopTs_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -51698,8 +52847,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list548 = iprot.readListBegin(); - struct.columns = new ArrayList(_list548.size); - ByteBuffer _elem549; + struct.columns = new java.util.ArrayList(_list548.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem549; for (int _i550 = 0; _i550 < _list548.size; ++_i550) { _elem549 = iprot.readBinary(); @@ -51724,9 +52873,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map551 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map551.size); - ByteBuffer _key552; - ByteBuffer _val553; + struct.attributes = new java.util.HashMap(2*_map551.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key552; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val553; for (int _i554 = 0; _i554 < _map551.size; ++_i554) { _key552 = iprot.readBinary(); @@ -51774,7 +52923,7 @@ public class Hbase { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter555 : struct.columns) + for (java.nio.ByteBuffer _iter555 : struct.columns) { oprot.writeBinary(_iter555); } @@ -51789,7 +52938,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter556 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter556 : struct.attributes.entrySet()) { oprot.writeBinary(_iter556.getKey()); oprot.writeBinary(_iter556.getValue()); @@ -51804,18 +52953,18 @@ public class Hbase { } - private static class scannerOpenWithStopTs_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenWithStopTs_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithStopTs_argsTupleScheme getScheme() { return new scannerOpenWithStopTs_argsTupleScheme(); } } - private static class scannerOpenWithStopTs_argsTupleScheme extends TupleScheme { + private static class scannerOpenWithStopTs_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -51847,7 +52996,7 @@ public class Hbase { if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter557 : struct.columns) + for (java.nio.ByteBuffer _iter557 : struct.columns) { oprot.writeBinary(_iter557); } @@ -51859,7 +53008,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter558 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter558 : struct.attributes.entrySet()) { oprot.writeBinary(_iter558.getKey()); oprot.writeBinary(_iter558.getValue()); @@ -51870,8 +53019,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -51887,8 +53036,8 @@ public class Hbase { if (incoming.get(3)) { { 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); - ByteBuffer _elem560; + struct.columns = new java.util.ArrayList(_list559.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem560; for (int _i561 = 0; _i561 < _list559.size; ++_i561) { _elem560 = iprot.readBinary(); @@ -51904,9 +53053,9 @@ public class Hbase { if (incoming.get(5)) { { 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); - ByteBuffer _key563; - ByteBuffer _val564; + struct.attributes = new java.util.HashMap(2*_map562.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key563; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val564; for (int _i565 = 0; _i565 < _map562.size; ++_i565) { _key563 = iprot.readBinary(); @@ -51919,6 +53068,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerOpenWithStopTs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -51927,24 +53079,21 @@ public class Hbase { 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 scannerOpenWithStopTs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerOpenWithStopTs_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerOpenWithStopTs_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerOpenWithStopTs_resultTupleSchemeFactory(); public int success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -51952,6 +53101,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -51969,21 +53119,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -51992,7 +53143,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -52000,14 +53151,14 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "ScannerID"))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStopTs_result.class, metaDataMap); } @@ -52057,23 +53208,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerOpenWithStopTs_result setIo(IOError io) { + public scannerOpenWithStopTs_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -52093,13 +53245,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -52114,7 +53266,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -52123,13 +53276,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -52138,11 +53291,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerOpenWithStopTs_result) @@ -52153,6 +53306,8 @@ public class Hbase { public boolean equals(scannerOpenWithStopTs_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -52177,19 +53332,15 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -52200,7 +53351,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -52210,7 +53361,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -52223,21 +53374,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerOpenWithStopTs_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerOpenWithStopTs_result("); boolean first = true; sb.append("success:"); @@ -52268,7 +53420,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -52278,13 +53430,13 @@ public class Hbase { } } - private static class scannerOpenWithStopTs_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerOpenWithStopTs_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithStopTs_resultStandardScheme getScheme() { return new scannerOpenWithStopTs_resultStandardScheme(); } } - private static class scannerOpenWithStopTs_resultStandardScheme extends StandardScheme { + private static class scannerOpenWithStopTs_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -52344,18 +53496,18 @@ public class Hbase { } - private static class scannerOpenWithStopTs_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerOpenWithStopTs_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerOpenWithStopTs_resultTupleScheme getScheme() { return new scannerOpenWithStopTs_resultTupleScheme(); } } - private static class scannerOpenWithStopTs_resultTupleScheme extends TupleScheme { + private static class scannerOpenWithStopTs_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -52373,8 +53525,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -52387,6 +53539,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerGet_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -52394,11 +53549,8 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerGet_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerGet_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerGet_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerGet_argsTupleSchemeFactory(); /** * id of a scanner returned by scannerOpen @@ -52412,10 +53564,10 @@ public class Hbase { */ ID((short)1, "id"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -52423,6 +53575,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ID @@ -52438,21 +53591,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -52461,7 +53615,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -52469,12 +53623,12 @@ public class Hbase { // isset id assignments private static final int __ID_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGet_args.class, metaDataMap); } @@ -52524,55 +53678,56 @@ public class Hbase { } public void unsetId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); } /** Returns true if field id is set (has been assigned a value) and false otherwise */ public boolean isSetId() { - return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); } public void setIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case ID: if (value == null) { unsetId(); } else { - setId((Integer)value); + setId((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ID: return getId(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case ID: return isSetId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerGet_args) @@ -52583,6 +53738,8 @@ public class Hbase { public boolean equals(scannerGet_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_id = true; boolean that_present_id = true; @@ -52598,14 +53755,11 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_id = true; - list.add(present_id); - if (present_id) - list.add(id); + hashCode = hashCode * 8191 + id; - return list.hashCode(); + return hashCode; } @Override @@ -52616,7 +53770,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + lastComparison = java.lang.Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } @@ -52629,21 +53783,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerGet_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerGet_args("); boolean first = true; sb.append("id:"); @@ -52666,7 +53821,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -52676,13 +53831,13 @@ public class Hbase { } } - private static class scannerGet_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerGet_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerGet_argsStandardScheme getScheme() { return new scannerGet_argsStandardScheme(); } } - private static class scannerGet_argsStandardScheme extends StandardScheme { + private static class scannerGet_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGet_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -52726,18 +53881,18 @@ public class Hbase { } - private static class scannerGet_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerGet_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerGet_argsTupleScheme getScheme() { return new scannerGet_argsTupleScheme(); } } - private static class scannerGet_argsTupleScheme extends TupleScheme { + private static class scannerGet_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerGet_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetId()) { optionals.set(0); } @@ -52749,8 +53904,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerGet_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.id = iprot.readI32(); struct.setIdIsSet(true); @@ -52758,6 +53913,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerGet_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -52767,15 +53925,12 @@ public class Hbase { 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 scannerGet_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerGet_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerGet_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerGet_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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 { @@ -52783,10 +53938,10 @@ public class Hbase { IO((short)1, "io"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -52794,6 +53949,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -52813,21 +53969,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -52836,23 +53993,23 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGet_result.class, metaDataMap); } @@ -52860,7 +54017,7 @@ public class Hbase { } public scannerGet_result( - List success, + java.util.List success, IOError io, IllegalArgument ia) { @@ -52875,7 +54032,7 @@ public class Hbase { */ public scannerGet_result(scannerGet_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -52904,22 +54061,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public scannerGet_result setSuccess(List success) { + public scannerGet_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -52939,11 +54098,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerGet_result setIo(IOError io) { + public scannerGet_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -52963,11 +54123,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public scannerGet_result setIa(IllegalArgument ia) { + public scannerGet_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -52987,13 +54148,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -53016,7 +54177,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -53028,13 +54190,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -53045,11 +54207,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerGet_result) @@ -53060,6 +54222,8 @@ public class Hbase { public boolean equals(scannerGet_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -53093,24 +54257,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -53121,7 +54282,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -53131,7 +54292,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -53141,7 +54302,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -53154,21 +54315,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerGet_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerGet_result("); boolean first = true; sb.append("success:"); @@ -53211,7 +54373,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -53219,13 +54381,13 @@ public class Hbase { } } - private static class scannerGet_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerGet_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerGet_resultStandardScheme getScheme() { return new scannerGet_resultStandardScheme(); } } - private static class scannerGet_resultStandardScheme extends StandardScheme { + private static class scannerGet_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGet_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -53241,8 +54403,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); - struct.success = new ArrayList(_list566.size); - TRowResult _elem567; + struct.success = new java.util.ArrayList(_list566.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem567; for (int _i568 = 0; _i568 < _list566.size; ++_i568) { _elem567 = new TRowResult(); @@ -53317,18 +54479,18 @@ public class Hbase { } - private static class scannerGet_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerGet_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerGet_resultTupleScheme getScheme() { return new scannerGet_resultTupleScheme(); } } - private static class scannerGet_resultTupleScheme extends TupleScheme { + private static class scannerGet_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerGet_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -53358,13 +54520,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerGet_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { 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); - TRowResult _elem572; + struct.success = new java.util.ArrayList(_list571.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem572; for (int _i573 = 0; _i573 < _list571.size; ++_i573) { _elem572 = new TRowResult(); @@ -53387,6 +54549,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerGetList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -53395,11 +54560,8 @@ public class Hbase { 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); private static final org.apache.thrift.protocol.TField NB_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("nbRows", org.apache.thrift.protocol.TType.I32, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerGetList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerGetList_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerGetList_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerGetList_argsTupleSchemeFactory(); /** * id of a scanner returned by scannerOpen @@ -53421,10 +54583,10 @@ public class Hbase { */ NB_ROWS((short)2, "nbRows"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -53432,6 +54594,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ID @@ -53449,21 +54612,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -53472,7 +54636,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -53481,14 +54645,14 @@ public class Hbase { private static final int __ID_ISSET_ID = 0; private static final int __NBROWS_ISSET_ID = 1; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); tmpMap.put(_Fields.NB_ROWS, new org.apache.thrift.meta_data.FieldMetaData("nbRows", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGetList_args.class, metaDataMap); } @@ -53544,16 +54708,16 @@ public class Hbase { } public void unsetId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); } /** Returns true if field id is set (has been assigned a value) and false otherwise */ public boolean isSetId() { - return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); } public void setIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); } /** @@ -53573,25 +54737,25 @@ public class Hbase { } public void unsetNbRows() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NBROWS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __NBROWS_ISSET_ID); } /** Returns true if field nbRows is set (has been assigned a value) and false otherwise */ public boolean isSetNbRows() { - return EncodingUtils.testBit(__isset_bitfield, __NBROWS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NBROWS_ISSET_ID); } public void setNbRowsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NBROWS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __NBROWS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case ID: if (value == null) { unsetId(); } else { - setId((Integer)value); + setId((java.lang.Integer)value); } break; @@ -53599,14 +54763,15 @@ public class Hbase { if (value == null) { unsetNbRows(); } else { - setNbRows((Integer)value); + setNbRows((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ID: return getId(); @@ -53615,13 +54780,13 @@ public class Hbase { return getNbRows(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -53630,11 +54795,11 @@ public class Hbase { case NB_ROWS: return isSetNbRows(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerGetList_args) @@ -53645,6 +54810,8 @@ public class Hbase { public boolean equals(scannerGetList_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_id = true; boolean that_present_id = true; @@ -53669,19 +54836,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_id = true; - list.add(present_id); - if (present_id) - list.add(id); + hashCode = hashCode * 8191 + id; - boolean present_nbRows = true; - list.add(present_nbRows); - if (present_nbRows) - list.add(nbRows); + hashCode = hashCode * 8191 + nbRows; - return list.hashCode(); + return hashCode; } @Override @@ -53692,7 +54853,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + lastComparison = java.lang.Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } @@ -53702,7 +54863,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNbRows()).compareTo(other.isSetNbRows()); + lastComparison = java.lang.Boolean.valueOf(isSetNbRows()).compareTo(other.isSetNbRows()); if (lastComparison != 0) { return lastComparison; } @@ -53715,21 +54876,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerGetList_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerGetList_args("); boolean first = true; sb.append("id:"); @@ -53756,7 +54918,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -53766,13 +54928,13 @@ public class Hbase { } } - private static class scannerGetList_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerGetList_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerGetList_argsStandardScheme getScheme() { return new scannerGetList_argsStandardScheme(); } } - private static class scannerGetList_argsStandardScheme extends StandardScheme { + private static class scannerGetList_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGetList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -53827,18 +54989,18 @@ public class Hbase { } - private static class scannerGetList_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerGetList_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerGetList_argsTupleScheme getScheme() { return new scannerGetList_argsTupleScheme(); } } - private static class scannerGetList_argsTupleScheme extends TupleScheme { + private static class scannerGetList_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerGetList_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetId()) { optionals.set(0); } @@ -53856,8 +55018,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerGetList_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.id = iprot.readI32(); struct.setIdIsSet(true); @@ -53869,6 +55031,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerGetList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -53878,15 +55043,12 @@ public class Hbase { 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 scannerGetList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerGetList_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerGetList_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerGetList_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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 { @@ -53894,10 +55056,10 @@ public class Hbase { IO((short)1, "io"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -53905,6 +55067,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -53924,21 +55087,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -53947,23 +55111,23 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRowResult.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, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGetList_result.class, metaDataMap); } @@ -53971,7 +55135,7 @@ public class Hbase { } public scannerGetList_result( - List success, + java.util.List success, IOError io, IllegalArgument ia) { @@ -53986,7 +55150,7 @@ public class Hbase { */ public scannerGetList_result(scannerGetList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TRowResult other_element : other.success) { __this__success.add(new TRowResult(other_element)); } @@ -54015,22 +55179,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TRowResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public scannerGetList_result setSuccess(List success) { + public scannerGetList_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -54050,11 +55216,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerGetList_result setIo(IOError io) { + public scannerGetList_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -54074,11 +55241,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public scannerGetList_result setIa(IllegalArgument ia) { + public scannerGetList_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -54098,13 +55266,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -54127,7 +55295,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -54139,13 +55308,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -54156,11 +55325,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerGetList_result) @@ -54171,6 +55340,8 @@ public class Hbase { public boolean equals(scannerGetList_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -54204,24 +55375,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -54232,7 +55400,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -54242,7 +55410,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -54252,7 +55420,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -54265,21 +55433,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerGetList_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerGetList_result("); boolean first = true; sb.append("success:"); @@ -54322,7 +55491,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -54330,13 +55499,13 @@ public class Hbase { } } - private static class scannerGetList_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerGetList_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerGetList_resultStandardScheme getScheme() { return new scannerGetList_resultStandardScheme(); } } - private static class scannerGetList_resultStandardScheme extends StandardScheme { + private static class scannerGetList_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGetList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -54352,8 +55521,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); - struct.success = new ArrayList(_list574.size); - TRowResult _elem575; + struct.success = new java.util.ArrayList(_list574.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem575; for (int _i576 = 0; _i576 < _list574.size; ++_i576) { _elem575 = new TRowResult(); @@ -54428,18 +55597,18 @@ public class Hbase { } - private static class scannerGetList_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerGetList_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerGetList_resultTupleScheme getScheme() { return new scannerGetList_resultTupleScheme(); } } - private static class scannerGetList_resultTupleScheme extends TupleScheme { + private static class scannerGetList_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerGetList_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -54469,13 +55638,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerGetList_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { 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); - TRowResult _elem580; + struct.success = new java.util.ArrayList(_list579.size); + @org.apache.thrift.annotation.Nullable TRowResult _elem580; for (int _i581 = 0; _i581 < _list579.size; ++_i581) { _elem580 = new TRowResult(); @@ -54498,6 +55667,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerClose_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -54505,11 +55677,8 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new scannerClose_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerClose_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerClose_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerClose_argsTupleSchemeFactory(); /** * id of a scanner returned by scannerOpen @@ -54523,10 +55692,10 @@ public class Hbase { */ ID((short)1, "id"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -54534,6 +55703,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ID @@ -54549,21 +55719,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -54572,7 +55743,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -54580,12 +55751,12 @@ public class Hbase { // isset id assignments private static final int __ID_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerClose_args.class, metaDataMap); } @@ -54635,55 +55806,56 @@ public class Hbase { } public void unsetId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); } /** Returns true if field id is set (has been assigned a value) and false otherwise */ public boolean isSetId() { - return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); } public void setIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case ID: if (value == null) { unsetId(); } else { - setId((Integer)value); + setId((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ID: return getId(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case ID: return isSetId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerClose_args) @@ -54694,6 +55866,8 @@ public class Hbase { public boolean equals(scannerClose_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_id = true; boolean that_present_id = true; @@ -54709,14 +55883,11 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_id = true; - list.add(present_id); - if (present_id) - list.add(id); + hashCode = hashCode * 8191 + id; - return list.hashCode(); + return hashCode; } @Override @@ -54727,7 +55898,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + lastComparison = java.lang.Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } @@ -54740,21 +55911,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerClose_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerClose_args("); boolean first = true; sb.append("id:"); @@ -54777,7 +55949,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -54787,13 +55959,13 @@ public class Hbase { } } - private static class scannerClose_argsStandardSchemeFactory implements SchemeFactory { + private static class scannerClose_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerClose_argsStandardScheme getScheme() { return new scannerClose_argsStandardScheme(); } } - private static class scannerClose_argsStandardScheme extends StandardScheme { + private static class scannerClose_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerClose_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -54837,18 +56009,18 @@ public class Hbase { } - private static class scannerClose_argsTupleSchemeFactory implements SchemeFactory { + private static class scannerClose_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerClose_argsTupleScheme getScheme() { return new scannerClose_argsTupleScheme(); } } - private static class scannerClose_argsTupleScheme extends TupleScheme { + private static class scannerClose_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerClose_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetId()) { optionals.set(0); } @@ -54860,8 +56032,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerClose_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.id = iprot.readI32(); struct.setIdIsSet(true); @@ -54869,6 +56041,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class scannerClose_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -54877,24 +56052,21 @@ public class Hbase { 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 scannerClose_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new scannerClose_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new scannerClose_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new scannerClose_resultTupleSchemeFactory(); - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -54902,6 +56074,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -54919,21 +56092,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -54942,20 +56116,20 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerClose_result.class, metaDataMap); } @@ -54993,11 +56167,12 @@ public class Hbase { this.ia = null; } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public scannerClose_result setIo(IOError io) { + public scannerClose_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -55017,11 +56192,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public scannerClose_result setIa(IllegalArgument ia) { + public scannerClose_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -55041,7 +56217,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -55062,7 +56238,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); @@ -55071,13 +56248,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -55086,11 +56263,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof scannerClose_result) @@ -55101,6 +56278,8 @@ public class Hbase { public boolean equals(scannerClose_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -55125,19 +56304,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -55148,7 +56325,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -55158,7 +56335,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -55171,21 +56348,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("scannerClose_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("scannerClose_result("); boolean first = true; sb.append("io:"); @@ -55220,7 +56398,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -55228,13 +56406,13 @@ public class Hbase { } } - private static class scannerClose_resultStandardSchemeFactory implements SchemeFactory { + private static class scannerClose_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerClose_resultStandardScheme getScheme() { return new scannerClose_resultStandardScheme(); } } - private static class scannerClose_resultStandardScheme extends StandardScheme { + private static class scannerClose_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, scannerClose_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -55295,18 +56473,18 @@ public class Hbase { } - private static class scannerClose_resultTupleSchemeFactory implements SchemeFactory { + private static class scannerClose_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public scannerClose_resultTupleScheme getScheme() { return new scannerClose_resultTupleScheme(); } } - private static class scannerClose_resultTupleScheme extends TupleScheme { + private static class scannerClose_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, scannerClose_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -55324,8 +56502,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, scannerClose_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.io = new IOError(); struct.io.read(iprot); @@ -55339,6 +56517,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowOrBefore_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -55348,24 +56529,21 @@ public class Hbase { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRowOrBefore_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowOrBefore_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowOrBefore_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowOrBefore_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column name */ - public ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // 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 { @@ -55382,10 +56560,10 @@ public class Hbase { */ FAMILY((short)3, "family"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -55393,6 +56571,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -55412,21 +56591,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -55435,22 +56615,22 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowOrBefore_args.class, metaDataMap); } @@ -55458,9 +56638,9 @@ public class Hbase { } public getRowOrBefore_args( - ByteBuffer tableName, - ByteBuffer row, - ByteBuffer family) + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.nio.ByteBuffer family) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -55473,13 +56653,13 @@ public class Hbase { */ public getRowOrBefore_args(getRowOrBefore_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetFamily()) { - this.family = other.family; + this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); } } @@ -55502,7 +56682,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -55510,11 +56690,11 @@ public class Hbase { * name of table */ public getRowOrBefore_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public getRowOrBefore_args setTableName(ByteBuffer tableName) { + public getRowOrBefore_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -55542,7 +56722,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -55550,11 +56730,11 @@ public class Hbase { * row key */ public getRowOrBefore_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getRowOrBefore_args setRow(ByteBuffer row) { + public getRowOrBefore_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -55582,7 +56762,7 @@ public class Hbase { return family == null ? null : family.array(); } - public ByteBuffer bufferForFamily() { + public java.nio.ByteBuffer bufferForFamily() { return org.apache.thrift.TBaseHelper.copyBinary(family); } @@ -55590,11 +56770,11 @@ public class Hbase { * column name */ public getRowOrBefore_args setFamily(byte[] family) { - this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + this.family = family == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(family.clone()); return this; } - public getRowOrBefore_args setFamily(ByteBuffer family) { + public getRowOrBefore_args setFamily(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family) { this.family = org.apache.thrift.TBaseHelper.copyBinary(family); return this; } @@ -55614,13 +56794,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -55628,7 +56812,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -55636,14 +56824,19 @@ public class Hbase { if (value == null) { unsetFamily(); } else { - setFamily((ByteBuffer)value); + if (value instanceof byte[]) { + setFamily((byte[])value); + } else { + setFamily((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -55655,13 +56848,13 @@ public class Hbase { return getFamily(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -55672,11 +56865,11 @@ public class Hbase { case FAMILY: return isSetFamily(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowOrBefore_args) @@ -55687,6 +56880,8 @@ public class Hbase { public boolean equals(getRowOrBefore_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -55720,24 +56915,21 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -55748,7 +56940,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -55758,7 +56950,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -55768,7 +56960,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + lastComparison = java.lang.Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } @@ -55781,21 +56973,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowOrBefore_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowOrBefore_args("); boolean first = true; sb.append("tableName:"); @@ -55838,7 +57031,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -55846,13 +57039,13 @@ public class Hbase { } } - private static class getRowOrBefore_argsStandardSchemeFactory implements SchemeFactory { + private static class getRowOrBefore_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowOrBefore_argsStandardScheme getScheme() { return new getRowOrBefore_argsStandardScheme(); } } - private static class getRowOrBefore_argsStandardScheme extends StandardScheme { + private static class getRowOrBefore_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowOrBefore_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -55924,18 +57117,18 @@ public class Hbase { } - private static class getRowOrBefore_argsTupleSchemeFactory implements SchemeFactory { + private static class getRowOrBefore_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowOrBefore_argsTupleScheme getScheme() { return new getRowOrBefore_argsTupleScheme(); } } - private static class getRowOrBefore_argsTupleScheme extends TupleScheme { + private static class getRowOrBefore_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -55959,8 +57152,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -55976,6 +57169,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRowOrBefore_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -55984,24 +57180,21 @@ public class Hbase { 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 getRowOrBefore_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRowOrBefore_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRowOrBefore_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRowOrBefore_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -56009,6 +57202,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -56026,21 +57220,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -56049,21 +57244,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TCell.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowOrBefore_result.class, metaDataMap); } @@ -56071,7 +57266,7 @@ public class Hbase { } public getRowOrBefore_result( - List success, + java.util.List success, IOError io) { this(); @@ -56084,7 +57279,7 @@ public class Hbase { */ public getRowOrBefore_result(getRowOrBefore_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -56109,22 +57304,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TCell elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getRowOrBefore_result setSuccess(List success) { + public getRowOrBefore_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -56144,11 +57341,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRowOrBefore_result setIo(IOError io) { + public getRowOrBefore_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -56168,13 +57366,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -56189,7 +57387,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -56198,13 +57397,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -56213,11 +57412,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRowOrBefore_result) @@ -56228,6 +57427,8 @@ public class Hbase { public boolean equals(getRowOrBefore_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -56252,19 +57453,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -56275,7 +57474,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -56285,7 +57484,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -56298,21 +57497,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRowOrBefore_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRowOrBefore_result("); boolean first = true; sb.append("success:"); @@ -56347,7 +57547,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -56355,13 +57555,13 @@ public class Hbase { } } - private static class getRowOrBefore_resultStandardSchemeFactory implements SchemeFactory { + private static class getRowOrBefore_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowOrBefore_resultStandardScheme getScheme() { return new getRowOrBefore_resultStandardScheme(); } } - private static class getRowOrBefore_resultStandardScheme extends StandardScheme { + private static class getRowOrBefore_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRowOrBefore_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -56377,8 +57577,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); - struct.success = new ArrayList(_list582.size); - TCell _elem583; + struct.success = new java.util.ArrayList(_list582.size); + @org.apache.thrift.annotation.Nullable TCell _elem583; for (int _i584 = 0; _i584 < _list582.size; ++_i584) { _elem583 = new TCell(); @@ -56439,18 +57639,18 @@ public class Hbase { } - private static class getRowOrBefore_resultTupleSchemeFactory implements SchemeFactory { + private static class getRowOrBefore_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRowOrBefore_resultTupleScheme getScheme() { return new getRowOrBefore_resultTupleScheme(); } } - private static class getRowOrBefore_resultTupleScheme extends TupleScheme { + private static class getRowOrBefore_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -56474,13 +57674,13 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { 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); - TCell _elem588; + struct.success = new java.util.ArrayList(_list587.size); + @org.apache.thrift.annotation.Nullable TCell _elem588; for (int _i589 = 0; _i589 < _list587.size; ++_i589) { _elem588 = new TCell(); @@ -56498,6 +57698,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRegionInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -56505,16 +57708,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRegionInfo_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRegionInfo_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRegionInfo_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRegionInfo_argsTupleSchemeFactory(); /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // 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 { @@ -56523,10 +57723,10 @@ public class Hbase { */ ROW((short)1, "row"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -56534,6 +57734,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ROW @@ -56549,21 +57750,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -56572,18 +57774,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionInfo_args.class, metaDataMap); } @@ -56591,7 +57793,7 @@ public class Hbase { } public getRegionInfo_args( - ByteBuffer row) + java.nio.ByteBuffer row) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -56602,7 +57804,7 @@ public class Hbase { */ public getRegionInfo_args(getRegionInfo_args other) { if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } } @@ -56623,7 +57825,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -56631,11 +57833,11 @@ public class Hbase { * row key */ public getRegionInfo_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getRegionInfo_args setRow(ByteBuffer row) { + public getRegionInfo_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -56655,43 +57857,48 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case ROW: if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case ROW: return isSetRow(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRegionInfo_args) @@ -56702,6 +57909,8 @@ public class Hbase { public boolean equals(getRegionInfo_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); @@ -56717,14 +57926,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -56735,7 +57943,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -56748,21 +57956,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRegionInfo_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRegionInfo_args("); boolean first = true; sb.append("row:"); @@ -56789,7 +57998,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -56797,13 +58006,13 @@ public class Hbase { } } - private static class getRegionInfo_argsStandardSchemeFactory implements SchemeFactory { + private static class getRegionInfo_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionInfo_argsStandardScheme getScheme() { return new getRegionInfo_argsStandardScheme(); } } - private static class getRegionInfo_argsStandardScheme extends StandardScheme { + private static class getRegionInfo_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionInfo_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -56849,18 +58058,18 @@ public class Hbase { } - private static class getRegionInfo_argsTupleSchemeFactory implements SchemeFactory { + private static class getRegionInfo_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionInfo_argsTupleScheme getScheme() { return new getRegionInfo_argsTupleScheme(); } } - private static class getRegionInfo_argsTupleScheme extends TupleScheme { + private static class getRegionInfo_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetRow()) { optionals.set(0); } @@ -56872,8 +58081,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.row = iprot.readBinary(); struct.setRowIsSet(true); @@ -56881,6 +58090,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRegionInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -56889,24 +58101,21 @@ public class Hbase { 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 getRegionInfo_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRegionInfo_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRegionInfo_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRegionInfo_resultTupleSchemeFactory(); - public TRegionInfo success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable TRegionInfo success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -56914,6 +58123,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -56931,21 +58141,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -56954,20 +58165,20 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TRegionInfo.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionInfo_result.class, metaDataMap); } @@ -57005,11 +58216,12 @@ public class Hbase { this.io = null; } + @org.apache.thrift.annotation.Nullable public TRegionInfo getSuccess() { return this.success; } - public getRegionInfo_result setSuccess(TRegionInfo success) { + public getRegionInfo_result setSuccess(@org.apache.thrift.annotation.Nullable TRegionInfo success) { this.success = success; return this; } @@ -57029,11 +58241,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public getRegionInfo_result setIo(IOError io) { + public getRegionInfo_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -57053,7 +58266,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -57074,7 +58287,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -57083,13 +58297,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -57098,11 +58312,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRegionInfo_result) @@ -57113,6 +58327,8 @@ public class Hbase { public boolean equals(getRegionInfo_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -57137,19 +58353,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -57160,7 +58374,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -57170,7 +58384,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -57183,21 +58397,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRegionInfo_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRegionInfo_result("); boolean first = true; sb.append("success:"); @@ -57235,7 +58450,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -57243,13 +58458,13 @@ public class Hbase { } } - private static class getRegionInfo_resultStandardSchemeFactory implements SchemeFactory { + private static class getRegionInfo_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionInfo_resultStandardScheme getScheme() { return new getRegionInfo_resultStandardScheme(); } } - private static class getRegionInfo_resultStandardScheme extends StandardScheme { + private static class getRegionInfo_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionInfo_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -57310,18 +58525,18 @@ public class Hbase { } - private static class getRegionInfo_resultTupleSchemeFactory implements SchemeFactory { + private static class getRegionInfo_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionInfo_resultTupleScheme getScheme() { return new getRegionInfo_resultTupleScheme(); } } - private static class getRegionInfo_resultTupleScheme extends TupleScheme { + private static class getRegionInfo_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -57339,8 +58554,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TRegionInfo(); struct.success.read(iprot); @@ -57354,6 +58569,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class append_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -57361,16 +58579,13 @@ public class Hbase { 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new append_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new append_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new append_argsTupleSchemeFactory(); /** * The single append operation to apply */ - public TAppend append; // required + public @org.apache.thrift.annotation.Nullable TAppend append; // 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 { @@ -57379,10 +58594,10 @@ public class Hbase { */ APPEND((short)1, "append"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -57390,6 +58605,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // APPEND @@ -57405,21 +58621,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -57428,18 +58645,18 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.APPEND, new org.apache.thrift.meta_data.FieldMetaData("append", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAppend.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_args.class, metaDataMap); } @@ -57474,6 +58691,7 @@ public class Hbase { /** * The single append operation to apply */ + @org.apache.thrift.annotation.Nullable public TAppend getAppend() { return this.append; } @@ -57481,7 +58699,7 @@ public class Hbase { /** * The single append operation to apply */ - public append_args setAppend(TAppend append) { + public append_args setAppend(@org.apache.thrift.annotation.Nullable TAppend append) { this.append = append; return this; } @@ -57501,7 +58719,7 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case APPEND: if (value == null) { @@ -57514,30 +58732,31 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case APPEND: return getAppend(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case APPEND: return isSetAppend(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof append_args) @@ -57548,6 +58767,8 @@ public class Hbase { public boolean equals(append_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_append = true && this.isSetAppend(); boolean that_present_append = true && that.isSetAppend(); @@ -57563,14 +58784,13 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_append = true && (isSetAppend()); - list.add(present_append); - if (present_append) - list.add(append); + hashCode = hashCode * 8191 + ((isSetAppend()) ? 131071 : 524287); + if (isSetAppend()) + hashCode = hashCode * 8191 + append.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -57581,7 +58801,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAppend()).compareTo(other.isSetAppend()); + lastComparison = java.lang.Boolean.valueOf(isSetAppend()).compareTo(other.isSetAppend()); if (lastComparison != 0) { return lastComparison; } @@ -57594,21 +58814,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("append_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("append_args("); boolean first = true; sb.append("append:"); @@ -57638,7 +58859,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -57646,13 +58867,13 @@ public class Hbase { } } - private static class append_argsStandardSchemeFactory implements SchemeFactory { + private static class append_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_argsStandardScheme getScheme() { return new append_argsStandardScheme(); } } - private static class append_argsStandardScheme extends StandardScheme { + private static class append_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, append_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -57699,18 +58920,18 @@ public class Hbase { } - private static class append_argsTupleSchemeFactory implements SchemeFactory { + private static class append_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_argsTupleScheme getScheme() { return new append_argsTupleScheme(); } } - private static class append_argsTupleScheme extends TupleScheme { + private static class append_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAppend()) { optionals.set(0); } @@ -57722,8 +58943,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.append = new TAppend(); struct.append.read(iprot); @@ -57732,6 +58953,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class append_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -57740,24 +58964,21 @@ public class Hbase { 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 append_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new append_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new append_resultTupleSchemeFactory(); - public List success; // required - public IOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable IOError 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -57765,6 +58986,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -57782,21 +59004,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -57805,21 +59028,21 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TCell.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_result.class, metaDataMap); } @@ -57827,7 +59050,7 @@ public class Hbase { } public append_result( - List success, + java.util.List success, IOError io) { this(); @@ -57840,7 +59063,7 @@ public class Hbase { */ public append_result(append_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TCell other_element : other.success) { __this__success.add(new TCell(other_element)); } @@ -57865,22 +59088,24 @@ public class Hbase { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TCell elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public append_result setSuccess(List success) { + public append_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -57900,11 +59125,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public append_result setIo(IOError io) { + public append_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -57924,13 +59150,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -57945,7 +59171,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -57954,13 +59181,13 @@ public class Hbase { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -57969,11 +59196,11 @@ public class Hbase { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof append_result) @@ -57984,6 +59211,8 @@ public class Hbase { public boolean equals(append_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -58008,19 +59237,17 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -58031,7 +59258,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -58041,7 +59268,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -58054,21 +59281,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("append_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("append_result("); boolean first = true; sb.append("success:"); @@ -58103,7 +59331,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -58111,13 +59339,13 @@ public class Hbase { } } - private static class append_resultStandardSchemeFactory implements SchemeFactory { + private static class append_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_resultStandardScheme getScheme() { return new append_resultStandardScheme(); } } - private static class append_resultStandardScheme extends StandardScheme { + private static class append_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, append_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -58133,8 +59361,8 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); - struct.success = new ArrayList(_list590.size); - TCell _elem591; + struct.success = new java.util.ArrayList(_list590.size); + @org.apache.thrift.annotation.Nullable TCell _elem591; for (int _i592 = 0; _i592 < _list590.size; ++_i592) { _elem591 = new TCell(); @@ -58195,18 +59423,18 @@ public class Hbase { } - private static class append_resultTupleSchemeFactory implements SchemeFactory { + private static class append_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_resultTupleScheme getScheme() { return new append_resultTupleScheme(); } } - private static class append_resultTupleScheme extends TupleScheme { + private static class append_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -58230,13 +59458,13 @@ public class Hbase { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list595.size); - TCell _elem596; + struct.success = new java.util.ArrayList(_list595.size); + @org.apache.thrift.annotation.Nullable TCell _elem596; for (int _i597 = 0; _i597 < _list595.size; ++_i597) { _elem596 = new TCell(); @@ -58254,6 +59482,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndPut_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -58266,38 +59497,35 @@ public class Hbase { private static final org.apache.thrift.protocol.TField MPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("mput", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)7); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new checkAndPut_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndPut_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndPut_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndPut_argsTupleSchemeFactory(); /** * name of table */ - public ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required /** * row key */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column name */ - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required /** * the expected value for the column parameter, if not * provided the check is for the non-existence of the * column in question */ - public ByteBuffer value; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required /** * mutation for the put */ - public Mutation mput; // required + public @org.apache.thrift.annotation.Nullable Mutation mput; // required /** * Mutation attributes */ - public Map attributes; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // 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 { @@ -58328,10 +59556,10 @@ public class Hbase { */ ATTRIBUTES((short)7, "attributes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -58339,6 +59567,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME @@ -58364,21 +59593,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -58387,15 +59617,15 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -58410,7 +59640,7 @@ public class Hbase { new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_args.class, metaDataMap); } @@ -58418,12 +59648,12 @@ public class Hbase { } public checkAndPut_args( - ByteBuffer tableName, - ByteBuffer row, - ByteBuffer column, - ByteBuffer value, + java.nio.ByteBuffer tableName, + java.nio.ByteBuffer row, + java.nio.ByteBuffer column, + java.nio.ByteBuffer value, Mutation mput, - Map attributes) + java.util.Map attributes) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -58439,30 +59669,30 @@ public class Hbase { */ public checkAndPut_args(checkAndPut_args other) { if (other.isSetTableName()) { - this.tableName = other.tableName; + this.tableName = org.apache.thrift.TBaseHelper.copyBinary(other.tableName); } if (other.isSetRow()) { - this.row = other.row; + this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumn()) { - this.column = other.column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } if (other.isSetValue()) { - this.value = other.value; + this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); } if (other.isSetMput()) { this.mput = new Mutation(other.mput); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes.size()); - for (Map.Entry other_element : other.attributes.entrySet()) { + java.util.Map __this__attributes = new java.util.HashMap(other.attributes.size()); + for (java.util.Map.Entry other_element : other.attributes.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); - ByteBuffer other_element_value = other_element.getValue(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_value = other_element.getValue(); - ByteBuffer __this__attributes_copy_key = other_element_key; + java.nio.ByteBuffer __this__attributes_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); - ByteBuffer __this__attributes_copy_value = other_element_value; + java.nio.ByteBuffer __this__attributes_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); } @@ -58492,7 +59722,7 @@ public class Hbase { return tableName == null ? null : tableName.array(); } - public ByteBuffer bufferForTableName() { + public java.nio.ByteBuffer bufferForTableName() { return org.apache.thrift.TBaseHelper.copyBinary(tableName); } @@ -58500,11 +59730,11 @@ public class Hbase { * name of table */ public checkAndPut_args setTableName(byte[] tableName) { - this.tableName = tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(tableName, tableName.length)); + this.tableName = tableName == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(tableName.clone()); return this; } - public checkAndPut_args setTableName(ByteBuffer tableName) { + public checkAndPut_args setTableName(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName) { this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); return this; } @@ -58532,7 +59762,7 @@ public class Hbase { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -58540,11 +59770,11 @@ public class Hbase { * row key */ public checkAndPut_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public checkAndPut_args setRow(ByteBuffer row) { + public checkAndPut_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -58572,7 +59802,7 @@ public class Hbase { return column == null ? null : column.array(); } - public ByteBuffer bufferForColumn() { + public java.nio.ByteBuffer bufferForColumn() { return org.apache.thrift.TBaseHelper.copyBinary(column); } @@ -58580,11 +59810,11 @@ public class Hbase { * column name */ public checkAndPut_args setColumn(byte[] column) { - this.column = column == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(column, column.length)); + this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); return this; } - public checkAndPut_args setColumn(ByteBuffer column) { + public checkAndPut_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -58614,7 +59844,7 @@ public class Hbase { return value == null ? null : value.array(); } - public ByteBuffer bufferForValue() { + public java.nio.ByteBuffer bufferForValue() { return org.apache.thrift.TBaseHelper.copyBinary(value); } @@ -58624,11 +59854,11 @@ public class Hbase { * column in question */ public checkAndPut_args setValue(byte[] value) { - this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone()); return this; } - public checkAndPut_args setValue(ByteBuffer value) { + public checkAndPut_args setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) { this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -58651,6 +59881,7 @@ public class Hbase { /** * mutation for the put */ + @org.apache.thrift.annotation.Nullable public Mutation getMput() { return this.mput; } @@ -58658,7 +59889,7 @@ public class Hbase { /** * mutation for the put */ - public checkAndPut_args setMput(Mutation mput) { + public checkAndPut_args setMput(@org.apache.thrift.annotation.Nullable Mutation mput) { this.mput = mput; return this; } @@ -58682,9 +59913,9 @@ public class Hbase { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } @@ -58692,14 +59923,15 @@ public class Hbase { /** * Mutation attributes */ - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } /** * Mutation attributes */ - public checkAndPut_args setAttributes(Map attributes) { + public checkAndPut_args setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -58719,13 +59951,17 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: if (value == null) { unsetTableName(); } else { - setTableName((ByteBuffer)value); + if (value instanceof byte[]) { + setTableName((byte[])value); + } else { + setTableName((java.nio.ByteBuffer)value); + } } break; @@ -58733,7 +59969,11 @@ public class Hbase { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -58741,7 +59981,11 @@ public class Hbase { if (value == null) { unsetColumn(); } else { - setColumn((ByteBuffer)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((java.nio.ByteBuffer)value); + } } break; @@ -58749,7 +59993,11 @@ public class Hbase { if (value == null) { unsetValue(); } else { - setValue((ByteBuffer)value); + if (value instanceof byte[]) { + setValue((byte[])value); + } else { + setValue((java.nio.ByteBuffer)value); + } } break; @@ -58765,14 +60013,15 @@ public class Hbase { if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE_NAME: return getTableName(); @@ -58793,13 +60042,13 @@ public class Hbase { return getAttributes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -58816,11 +60065,11 @@ public class Hbase { case ATTRIBUTES: return isSetAttributes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndPut_args) @@ -58831,6 +60080,8 @@ public class Hbase { public boolean equals(checkAndPut_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); @@ -58891,39 +60142,33 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_mput = true && (isSetMput()); - list.add(present_mput); - if (present_mput) - list.add(mput); + hashCode = hashCode * 8191 + ((isSetMput()) ? 131071 : 524287); + if (isSetMput()) + hashCode = hashCode * 8191 + mput.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -58934,7 +60179,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -58944,7 +60189,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -58954,7 +60199,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -58964,7 +60209,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -58974,7 +60219,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMput()).compareTo(other.isSetMput()); + lastComparison = java.lang.Boolean.valueOf(isSetMput()).compareTo(other.isSetMput()); if (lastComparison != 0) { return lastComparison; } @@ -58984,7 +60229,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -58997,21 +60242,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndPut_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndPut_args("); boolean first = true; sb.append("tableName:"); @@ -59081,7 +60327,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -59089,13 +60335,13 @@ public class Hbase { } } - private static class checkAndPut_argsStandardSchemeFactory implements SchemeFactory { + private static class checkAndPut_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_argsStandardScheme getScheme() { return new checkAndPut_argsStandardScheme(); } } - private static class checkAndPut_argsStandardScheme extends StandardScheme { + private static class checkAndPut_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -59152,9 +60398,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map598 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map598.size); - ByteBuffer _key599; - ByteBuffer _val600; + struct.attributes = new java.util.HashMap(2*_map598.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key599; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val600; for (int _i601 = 0; _i601 < _map598.size; ++_i601) { _key599 = iprot.readBinary(); @@ -59212,7 +60458,7 @@ public class Hbase { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter602 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter602 : struct.attributes.entrySet()) { oprot.writeBinary(_iter602.getKey()); oprot.writeBinary(_iter602.getValue()); @@ -59227,18 +60473,18 @@ public class Hbase { } - private static class checkAndPut_argsTupleSchemeFactory implements SchemeFactory { + private static class checkAndPut_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_argsTupleScheme getScheme() { return new checkAndPut_argsTupleScheme(); } } - private static class checkAndPut_argsTupleScheme extends TupleScheme { + private static class checkAndPut_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableName()) { optionals.set(0); } @@ -59276,7 +60522,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter603 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter603 : struct.attributes.entrySet()) { oprot.writeBinary(_iter603.getKey()); oprot.writeBinary(_iter603.getValue()); @@ -59287,8 +60533,8 @@ public class Hbase { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.tableName = iprot.readBinary(); struct.setTableNameIsSet(true); @@ -59313,9 +60559,9 @@ public class Hbase { if (incoming.get(5)) { { org.apache.thrift.protocol.TMap _map604 = 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*_map604.size); - ByteBuffer _key605; - ByteBuffer _val606; + struct.attributes = new java.util.HashMap(2*_map604.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key605; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val606; for (int _i607 = 0; _i607 < _map604.size; ++_i607) { _key605 = iprot.readBinary(); @@ -59328,6 +60574,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndPut_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -59337,15 +60586,12 @@ public class Hbase { 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 checkAndPut_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndPut_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndPut_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndPut_resultTupleSchemeFactory(); public boolean success; // required - public IOError io; // required - public IllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable IOError io; // required + public @org.apache.thrift.annotation.Nullable IllegalArgument 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 { @@ -59353,10 +60599,10 @@ public class Hbase { IO((short)1, "io"), IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -59364,6 +60610,7 @@ public class Hbase { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -59383,21 +60630,22 @@ public class Hbase { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -59406,7 +60654,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -59414,16 +60662,16 @@ public class Hbase { // 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_result.class, metaDataMap); } @@ -59479,23 +60727,24 @@ public class Hbase { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public IOError getIo() { return this.io; } - public checkAndPut_result setIo(IOError io) { + public checkAndPut_result setIo(@org.apache.thrift.annotation.Nullable IOError io) { this.io = io; return this; } @@ -59515,11 +60764,12 @@ public class Hbase { } } + @org.apache.thrift.annotation.Nullable public IllegalArgument getIa() { return this.ia; } - public checkAndPut_result setIa(IllegalArgument ia) { + public checkAndPut_result setIa(@org.apache.thrift.annotation.Nullable IllegalArgument ia) { this.ia = ia; return this; } @@ -59539,13 +60789,13 @@ public class Hbase { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -59568,7 +60818,8 @@ public class Hbase { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -59580,13 +60831,13 @@ public class Hbase { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -59597,11 +60848,11 @@ public class Hbase { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndPut_result) @@ -59612,6 +60863,8 @@ public class Hbase { public boolean equals(checkAndPut_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -59645,24 +60898,19 @@ public class Hbase { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -59673,7 +60921,7 @@ public class Hbase { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -59683,7 +60931,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -59693,7 +60941,7 @@ public class Hbase { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -59706,21 +60954,22 @@ public class Hbase { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndPut_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndPut_result("); boolean first = true; sb.append("success:"); @@ -59759,7 +61008,7 @@ public class Hbase { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -59769,13 +61018,13 @@ public class Hbase { } } - private static class checkAndPut_resultStandardSchemeFactory implements SchemeFactory { + private static class checkAndPut_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_resultStandardScheme getScheme() { return new checkAndPut_resultStandardScheme(); } } - private static class checkAndPut_resultStandardScheme extends StandardScheme { + private static class checkAndPut_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -59849,18 +61098,18 @@ public class Hbase { } - private static class checkAndPut_resultTupleSchemeFactory implements SchemeFactory { + private static class checkAndPut_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_resultTupleScheme getScheme() { return new checkAndPut_resultTupleScheme(); } } - private static class checkAndPut_resultTupleScheme extends TupleScheme { + private static class checkAndPut_resultTupleScheme extends org.apache.thrift.scheme.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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -59884,8 +61133,8 @@ public class Hbase { @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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -59903,6 +61152,9 @@ public class Hbase { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } } 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 7e23f3c..6966e87 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,66 +1,36 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * 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. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") -public class IOError extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") +public class IOError extends org.apache.thrift.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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new IOErrorStandardSchemeFactory()); - schemes.put(TupleScheme.class, new IOErrorTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new IOErrorStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new IOErrorTupleSchemeFactory(); - public String message; // required + public @org.apache.thrift.annotation.Nullable java.lang.String message; // 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 { MESSAGE((short)1, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -68,6 +38,7 @@ public class IOError extends TException implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(IOError.class, metaDataMap); } @@ -125,7 +97,7 @@ public class IOError extends TException implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -253,7 +228,7 @@ public class IOError extends TException implements org.apache.thrift.TBase { + private static class IOErrorStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, IOError struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -367,18 +343,18 @@ public class IOError extends TException implements org.apache.thrift.TBase { + private static class IOErrorTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, IOError struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetMessage()) { optionals.set(0); } @@ -390,8 +366,8 @@ public class IOError extends TException implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 87d0069..969da0b 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,65 +1,35 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * An IllegalArgument exception indicates an illegal or invalid * argument was passed into a procedure. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") -public class IllegalArgument extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") +public class IllegalArgument extends org.apache.thrift.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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new IllegalArgumentStandardSchemeFactory()); - schemes.put(TupleScheme.class, new IllegalArgumentTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new IllegalArgumentStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new IllegalArgumentTupleSchemeFactory(); - public String message; // required + public @org.apache.thrift.annotation.Nullable java.lang.String message; // 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 { MESSAGE((short)1, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -67,6 +37,7 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // MESSAGE @@ -82,21 +53,22 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -105,18 +77,18 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(IllegalArgument.class, metaDataMap); } @@ -124,7 +96,7 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa } public IllegalArgument( - String message) + java.lang.String message) { this(); this.message = message; @@ -148,11 +120,12 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa this.message = null; } - public String getMessage() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMessage() { return this.message; } - public IllegalArgument setMessage(String message) { + public IllegalArgument setMessage(@org.apache.thrift.annotation.Nullable java.lang.String message) { this.message = message; return this; } @@ -172,43 +145,44 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case MESSAGE: if (value == null) { unsetMessage(); } else { - setMessage((String)value); + setMessage((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case MESSAGE: return getMessage(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case MESSAGE: return isSetMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof IllegalArgument) @@ -219,6 +193,8 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa public boolean equals(IllegalArgument that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); @@ -234,14 +210,13 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -252,7 +227,7 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = java.lang.Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } @@ -265,21 +240,22 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("IllegalArgument("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("IllegalArgument("); boolean first = true; sb.append("message:"); @@ -306,7 +282,7 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -314,13 +290,13 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa } } - private static class IllegalArgumentStandardSchemeFactory implements SchemeFactory { + private static class IllegalArgumentStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public IllegalArgumentStandardScheme getScheme() { return new IllegalArgumentStandardScheme(); } } - private static class IllegalArgumentStandardScheme extends StandardScheme { + private static class IllegalArgumentStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, IllegalArgument struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -366,18 +342,18 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa } - private static class IllegalArgumentTupleSchemeFactory implements SchemeFactory { + private static class IllegalArgumentTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public IllegalArgumentTupleScheme getScheme() { return new IllegalArgumentTupleScheme(); } } - private static class IllegalArgumentTupleScheme extends TupleScheme { + private static class IllegalArgumentTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, IllegalArgument struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetMessage()) { optionals.set(0); } @@ -389,8 +365,8 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa @Override public void read(org.apache.thrift.protocol.TProtocol prot, IllegalArgument struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); @@ -398,5 +374,8 @@ public class IllegalArgument extends TException implements org.apache.thrift.TBa } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 5a31df1..c3e9e60 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,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A Mutation object is used to either update or delete a column-value. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -46,15 +19,12 @@ public class Mutation implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new MutationStandardSchemeFactory()); - schemes.put(TupleScheme.class, new MutationTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new MutationStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new MutationTupleSchemeFactory(); public boolean isDelete; // required - public ByteBuffer column; // required - public ByteBuffer value; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required public boolean writeToWAL; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -64,10 +34,10 @@ public class Mutation implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -75,6 +45,7 @@ public class Mutation implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IS_DELETE, new org.apache.thrift.meta_data.FieldMetaData("isDelete", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -139,7 +111,7 @@ public class Mutation implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_isDelete = true; - list.add(present_isDelete); - if (present_isDelete) - list.add(isDelete); + hashCode = hashCode * 8191 + ((isDelete) ? 131071 : 524287); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_writeToWAL = true; - list.add(present_writeToWAL); - if (present_writeToWAL) - list.add(writeToWAL); + hashCode = hashCode * 8191 + ((writeToWAL) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -469,7 +444,7 @@ public class Mutation implements org.apache.thrift.TBase { + private static class MutationStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, Mutation struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -666,18 +642,18 @@ public class Mutation implements org.apache.thrift.TBase { + private static class MutationTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, Mutation struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIsDelete()) { optionals.set(0); } @@ -707,8 +683,8 @@ public class Mutation implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 ef12a1e..69b1133 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,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * An Append object is used to specify the parameters for performing the append operation. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -46,16 +19,13 @@ public class TAppend implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TAppendStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TAppendTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TAppendStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TAppendTupleSchemeFactory(); - public ByteBuffer table; // required - public ByteBuffer row; // required - public List columns; // required - public List values; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.List values; // 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 { @@ -64,10 +34,10 @@ public class TAppend implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -75,6 +45,7 @@ public class TAppend implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -138,7 +110,7 @@ public class TAppend implements org.apache.thrift.TBase columns, - List values) + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, + java.util.List columns, + java.util.List values) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -163,22 +135,22 @@ public class TAppend implements org.apache.thrift.TBase __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } if (other.isSetValues()) { - List __this__values = new ArrayList(other.values.size()); - for (ByteBuffer other_element : other.values) { - __this__values.add(other_element); + java.util.List __this__values = new java.util.ArrayList(other.values.size()); + for (java.nio.ByteBuffer other_element : other.values) { + __this__values.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.values = __this__values; } @@ -201,16 +173,16 @@ public class TAppend implements org.apache.thrift.TBase getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TAppend setColumns(List columns) { + public TAppend setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -307,22 +281,24 @@ public class TAppend implements org.apache.thrift.TBase getValuesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } - public void addToValues(ByteBuffer elem) { + public void addToValues(java.nio.ByteBuffer elem) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new java.util.ArrayList(); } this.values.add(elem); } - public List getValues() { + @org.apache.thrift.annotation.Nullable + public java.util.List getValues() { return this.values; } - public TAppend setValues(List values) { + public TAppend setValues(@org.apache.thrift.annotation.Nullable java.util.List values) { this.values = values; return this; } @@ -342,13 +318,17 @@ public class TAppend implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -372,14 +356,15 @@ public class TAppend implements org.apache.thrift.TBase)value); + setValues((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -394,13 +379,13 @@ public class TAppend implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_values = true && (isSetValues()); - list.add(present_values); - if (present_values) - list.add(values); + hashCode = hashCode * 8191 + ((isSetValues()) ? 131071 : 524287); + if (isSetValues()) + hashCode = hashCode * 8191 + values.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -503,7 +486,7 @@ public class TAppend implements org.apache.thrift.TBase { + private static class TAppendStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TAppend struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -657,8 +641,8 @@ public class TAppend implements org.apache.thrift.TBase(_list34.size); - ByteBuffer _elem35; + struct.columns = new java.util.ArrayList(_list34.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem35; for (int _i36 = 0; _i36 < _list34.size; ++_i36) { _elem35 = iprot.readBinary(); @@ -675,8 +659,8 @@ public class TAppend implements org.apache.thrift.TBase(_list37.size); - ByteBuffer _elem38; + struct.values = new java.util.ArrayList(_list37.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem38; for (int _i39 = 0; _i39 < _list37.size; ++_i39) { _elem38 = iprot.readBinary(); @@ -718,7 +702,7 @@ public class TAppend implements org.apache.thrift.TBase { + private static class TAppendTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TAppend struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTable()) { optionals.set(0); } @@ -778,7 +762,7 @@ public class TAppend implements org.apache.thrift.TBase(_list44.size); - ByteBuffer _elem45; + struct.columns = new java.util.ArrayList(_list44.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem45; for (int _i46 = 0; _i46 < _list44.size; ++_i46) { _elem45 = iprot.readBinary(); @@ -823,8 +807,8 @@ public class TAppend implements org.apache.thrift.TBase(_list47.size); - ByteBuffer _elem48; + struct.values = new java.util.ArrayList(_list47.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem48; for (int _i49 = 0; _i49 < _list47.size; ++_i49) { _elem48 = iprot.readBinary(); @@ -836,5 +820,8 @@ public class TAppend implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 2483e7a..0206a42 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,59 +1,29 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * 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. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TCellStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TCellTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TCellStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TCellTupleSchemeFactory(); - public ByteBuffer value; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required public long timestamp; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -61,10 +31,10 @@ public class TCell implements org.apache.thrift.TBase, jav VALUE((short)1, "value"), TIMESTAMP((short)2, "timestamp"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -72,6 +42,7 @@ public class TCell implements org.apache.thrift.TBase, jav /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // VALUE @@ -89,21 +60,22 @@ public class TCell implements org.apache.thrift.TBase, jav */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -112,7 +84,7 @@ public class TCell implements org.apache.thrift.TBase, jav return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -120,14 +92,14 @@ public class TCell implements org.apache.thrift.TBase, jav // isset id assignments private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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 , "Bytes"))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCell.class, metaDataMap); } @@ -135,7 +107,7 @@ public class TCell implements org.apache.thrift.TBase, jav } public TCell( - ByteBuffer value, + java.nio.ByteBuffer value, long timestamp) { this(); @@ -150,7 +122,7 @@ public class TCell implements org.apache.thrift.TBase, jav public TCell(TCell other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetValue()) { - this.value = other.value; + this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); } this.timestamp = other.timestamp; } @@ -171,16 +143,16 @@ public class TCell implements org.apache.thrift.TBase, jav return value == null ? null : value.array(); } - public ByteBuffer bufferForValue() { + public java.nio.ByteBuffer bufferForValue() { return org.apache.thrift.TBaseHelper.copyBinary(value); } public TCell setValue(byte[] value) { - this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone()); return this; } - public TCell setValue(ByteBuffer value) { + public TCell setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) { this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -211,25 +183,29 @@ public class TCell implements org.apache.thrift.TBase, jav } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case VALUE: if (value == null) { unsetValue(); } else { - setValue((ByteBuffer)value); + if (value instanceof byte[]) { + setValue((byte[])value); + } else { + setValue((java.nio.ByteBuffer)value); + } } break; @@ -237,14 +213,15 @@ public class TCell implements org.apache.thrift.TBase, jav if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case VALUE: return getValue(); @@ -253,13 +230,13 @@ public class TCell implements org.apache.thrift.TBase, jav return getTimestamp(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -268,11 +245,11 @@ public class TCell implements org.apache.thrift.TBase, jav case TIMESTAMP: return isSetTimestamp(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TCell) @@ -283,6 +260,8 @@ public class TCell implements org.apache.thrift.TBase, jav public boolean equals(TCell that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); @@ -307,19 +286,15 @@ public class TCell implements org.apache.thrift.TBase, jav @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_timestamp = true; - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - return list.hashCode(); + return hashCode; } @Override @@ -330,7 +305,7 @@ public class TCell implements org.apache.thrift.TBase, jav int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -340,7 +315,7 @@ public class TCell implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -353,21 +328,22 @@ public class TCell implements org.apache.thrift.TBase, jav return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TCell("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TCell("); boolean first = true; sb.append("value:"); @@ -398,7 +374,7 @@ public class TCell implements org.apache.thrift.TBase, jav } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -408,13 +384,13 @@ public class TCell implements org.apache.thrift.TBase, jav } } - private static class TCellStandardSchemeFactory implements SchemeFactory { + private static class TCellStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TCellStandardScheme getScheme() { return new TCellStandardScheme(); } } - private static class TCellStandardScheme extends StandardScheme { + private static class TCellStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TCell struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -471,18 +447,18 @@ public class TCell implements org.apache.thrift.TBase, jav } - private static class TCellTupleSchemeFactory implements SchemeFactory { + private static class TCellTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TCellTupleScheme getScheme() { return new TCellTupleScheme(); } } - private static class TCellTupleScheme extends TupleScheme { + private static class TCellTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TCell struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -500,8 +476,8 @@ public class TCell implements org.apache.thrift.TBase, jav @Override public void read(org.apache.thrift.protocol.TProtocol prot, TCell struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.value = iprot.readBinary(); struct.setValueIsSet(true); @@ -513,5 +489,8 @@ public class TCell implements org.apache.thrift.TBase, jav } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 96866ac..ee281a5 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,67 +1,37 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Holds column name and the cell. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); private static final org.apache.thrift.protocol.TField CELL_FIELD_DESC = new org.apache.thrift.protocol.TField("cell", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TColumnStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TColumnTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TColumnStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TColumnTupleSchemeFactory(); - public ByteBuffer columnName; // required - public TCell cell; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer columnName; // required + public @org.apache.thrift.annotation.Nullable TCell cell; // 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 { COLUMN_NAME((short)1, "columnName"), CELL((short)2, "cell"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class TColumn implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.COLUMN_NAME, new org.apache.thrift.meta_data.FieldMetaData("columnName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.CELL, new org.apache.thrift.meta_data.FieldMetaData("cell", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumn.class, metaDataMap); } @@ -130,7 +102,7 @@ public class TColumn implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_columnName = true && (isSetColumnName()); - list.add(present_columnName); - if (present_columnName) - list.add(columnName); + hashCode = hashCode * 8191 + ((isSetColumnName()) ? 131071 : 524287); + if (isSetColumnName()) + hashCode = hashCode * 8191 + columnName.hashCode(); - boolean present_cell = true && (isSetCell()); - list.add(present_cell); - if (present_cell) - list.add(cell); + hashCode = hashCode * 8191 + ((isSetCell()) ? 131071 : 524287); + if (isSetCell()) + hashCode = hashCode * 8191 + cell.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -325,7 +303,7 @@ public class TColumn implements org.apache.thrift.TBase { + private static class TColumnStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TColumn struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -474,18 +453,18 @@ public class TColumn implements org.apache.thrift.TBase { + private static class TColumnTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetColumnName()) { optionals.set(0); } @@ -503,8 +482,8 @@ public class TColumn implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 c4ca1b3..ba6b890 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,44 +1,17 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * For increments that are not incrementColumnValue * equivalents. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -47,15 +20,12 @@ public class TIncrement implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TIncrementStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TIncrementTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TIncrementStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TIncrementTupleSchemeFactory(); - public ByteBuffer table; // required - public ByteBuffer row; // required - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required public long ammount; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -65,10 +35,10 @@ public class TIncrement implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -76,6 +46,7 @@ public class TIncrement implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -139,7 +111,7 @@ public class TIncrement implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_column = true && (isSetColumn()); - list.add(present_column); - if (present_column) - list.add(column); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); - boolean present_ammount = true; - list.add(present_ammount); - if (present_ammount) - list.add(ammount); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(ammount); - return list.hashCode(); + return hashCode; } @Override @@ -476,7 +457,7 @@ public class TIncrement implements org.apache.thrift.TBase { + private static class TIncrementStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TIncrement struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -679,18 +661,18 @@ public class TIncrement implements org.apache.thrift.TBase { + private static class TIncrementTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TIncrement struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTable()) { optionals.set(0); } @@ -720,8 +702,8 @@ public class TIncrement implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 446af8e..d62166b 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,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A TRegionInfo contains information about an HTable region. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -49,18 +22,15 @@ public class TRegionInfo implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TRegionInfoStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TRegionInfoTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TRegionInfoStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TRegionInfoTupleSchemeFactory(); - public ByteBuffer startKey; // required - public ByteBuffer endKey; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startKey; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer endKey; // required public long id; // required - public ByteBuffer name; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer name; // required public byte version; // required - public ByteBuffer serverName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer serverName; // required public int port; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -73,10 +43,10 @@ public class TRegionInfo implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -84,6 +54,7 @@ public class TRegionInfo implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.START_KEY, new org.apache.thrift.meta_data.FieldMetaData("startKey", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.END_KEY, new org.apache.thrift.meta_data.FieldMetaData("endKey", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -161,7 +133,7 @@ public class TRegionInfo implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_startKey = true && (isSetStartKey()); - list.add(present_startKey); - if (present_startKey) - list.add(startKey); + hashCode = hashCode * 8191 + ((isSetStartKey()) ? 131071 : 524287); + if (isSetStartKey()) + hashCode = hashCode * 8191 + startKey.hashCode(); - boolean present_endKey = true && (isSetEndKey()); - list.add(present_endKey); - if (present_endKey) - list.add(endKey); + hashCode = hashCode * 8191 + ((isSetEndKey()) ? 131071 : 524287); + if (isSetEndKey()) + hashCode = hashCode * 8191 + endKey.hashCode(); - boolean present_id = true; - list.add(present_id); - if (present_id) - list.add(id); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(id); - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); + hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); + if (isSetName()) + hashCode = hashCode * 8191 + name.hashCode(); - boolean present_version = true; - list.add(present_version); - if (present_version) - list.add(version); + hashCode = hashCode * 8191 + (int) (version); - boolean present_serverName = true && (isSetServerName()); - list.add(present_serverName); - if (present_serverName) - list.add(serverName); + hashCode = hashCode * 8191 + ((isSetServerName()) ? 131071 : 524287); + if (isSetServerName()) + hashCode = hashCode * 8191 + serverName.hashCode(); - boolean present_port = true; - list.add(present_port); - if (present_port) - list.add(port); + hashCode = hashCode * 8191 + port; - return list.hashCode(); + return hashCode; } @Override @@ -677,7 +655,7 @@ public class TRegionInfo implements org.apache.thrift.TBase { + private static class TRegionInfoStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TRegionInfo struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -961,18 +940,18 @@ public class TRegionInfo implements org.apache.thrift.TBase { + private static class TRegionInfoTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TRegionInfo struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetStartKey()) { optionals.set(0); } @@ -1020,8 +999,8 @@ public class TRegionInfo implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 2d3b3c7..75689c7 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,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Holds row name and then a map of columns to cells. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -45,15 +18,12 @@ public class TRowResult implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TRowResultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TRowResultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TRowResultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TRowResultTupleSchemeFactory(); - public ByteBuffer row; // required - public Map columns; // optional - public List sortedColumns; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.Map columns; // optional + public @org.apache.thrift.annotation.Nullable java.util.List sortedColumns; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -61,10 +31,10 @@ public class TRowResult implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -72,6 +42,7 @@ public class TRowResult implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -133,7 +105,7 @@ public class TRowResult implements org.apache.thrift.TBase __this__columns = new HashMap(other.columns.size()); - for (Map.Entry other_element : other.columns.entrySet()) { + java.util.Map __this__columns = new java.util.HashMap(other.columns.size()); + for (java.util.Map.Entry other_element : other.columns.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); TCell other_element_value = other_element.getValue(); - ByteBuffer __this__columns_copy_key = other_element_key; + java.nio.ByteBuffer __this__columns_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); TCell __this__columns_copy_value = new TCell(other_element_value); @@ -170,7 +142,7 @@ public class TRowResult implements org.apache.thrift.TBase __this__sortedColumns = new ArrayList(other.sortedColumns.size()); + java.util.List __this__sortedColumns = new java.util.ArrayList(other.sortedColumns.size()); for (TColumn other_element : other.sortedColumns) { __this__sortedColumns.add(new TColumn(other_element)); } @@ -194,16 +166,16 @@ public class TRowResult implements org.apache.thrift.TBase(); + this.columns = new java.util.HashMap(); } this.columns.put(key, val); } - public Map getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getColumns() { return this.columns; } - public TRowResult setColumns(Map columns) { + public TRowResult setColumns(@org.apache.thrift.annotation.Nullable java.util.Map columns) { this.columns = columns; return this; } @@ -262,22 +235,24 @@ public class TRowResult implements org.apache.thrift.TBase getSortedColumnsIterator() { return (this.sortedColumns == null) ? null : this.sortedColumns.iterator(); } public void addToSortedColumns(TColumn elem) { if (this.sortedColumns == null) { - this.sortedColumns = new ArrayList(); + this.sortedColumns = new java.util.ArrayList(); } this.sortedColumns.add(elem); } - public List getSortedColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSortedColumns() { return this.sortedColumns; } - public TRowResult setSortedColumns(List sortedColumns) { + public TRowResult setSortedColumns(@org.apache.thrift.annotation.Nullable java.util.List sortedColumns) { this.sortedColumns = sortedColumns; return this; } @@ -297,13 +272,17 @@ public class TRowResult implements org.apache.thrift.TBase)value); + setColumns((java.util.Map)value); } break; @@ -319,14 +298,15 @@ public class TRowResult implements org.apache.thrift.TBase)value); + setSortedColumns((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -338,13 +318,13 @@ public class TRowResult implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_sortedColumns = true && (isSetSortedColumns()); - list.add(present_sortedColumns); - if (present_sortedColumns) - list.add(sortedColumns); + hashCode = hashCode * 8191 + ((isSetSortedColumns()) ? 131071 : 524287); + if (isSetSortedColumns()) + hashCode = hashCode * 8191 + sortedColumns.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -431,7 +410,7 @@ public class TRowResult implements org.apache.thrift.TBase { + private static class TRowResultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TRowResult struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -563,9 +543,9 @@ public class TRowResult implements org.apache.thrift.TBase(2*_map8.size); - ByteBuffer _key9; - TCell _val10; + struct.columns = new java.util.HashMap(2*_map8.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key9; + @org.apache.thrift.annotation.Nullable TCell _val10; for (int _i11 = 0; _i11 < _map8.size; ++_i11) { _key9 = iprot.readBinary(); @@ -584,8 +564,8 @@ public class TRowResult implements org.apache.thrift.TBase(_list12.size); - TColumn _elem13; + struct.sortedColumns = new java.util.ArrayList(_list12.size); + @org.apache.thrift.annotation.Nullable TColumn _elem13; for (int _i14 = 0; _i14 < _list12.size; ++_i14) { _elem13 = new TColumn(); @@ -624,7 +604,7 @@ public class TRowResult implements org.apache.thrift.TBase _iter15 : struct.columns.entrySet()) + for (java.util.Map.Entry _iter15 : struct.columns.entrySet()) { oprot.writeBinary(_iter15.getKey()); _iter15.getValue().write(oprot); @@ -654,18 +634,18 @@ public class TRowResult implements org.apache.thrift.TBase { + private static class TRowResultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TRowResult struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetRow()) { optionals.set(0); } @@ -682,7 +662,7 @@ public class TRowResult implements org.apache.thrift.TBase _iter17 : struct.columns.entrySet()) + for (java.util.Map.Entry _iter17 : struct.columns.entrySet()) { oprot.writeBinary(_iter17.getKey()); _iter17.getValue().write(oprot); @@ -702,8 +682,8 @@ public class TRowResult implements org.apache.thrift.TBase(2*_map19.size); - ByteBuffer _key20; - TCell _val21; + struct.columns = new java.util.HashMap(2*_map19.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key20; + @org.apache.thrift.annotation.Nullable TCell _val21; for (int _i22 = 0; _i22 < _map19.size; ++_i22) { _key20 = iprot.readBinary(); @@ -727,8 +707,8 @@ public class TRowResult implements org.apache.thrift.TBase(_list23.size); - TColumn _elem24; + struct.sortedColumns = new java.util.ArrayList(_list23.size); + @org.apache.thrift.annotation.Nullable TColumn _elem24; for (int _i25 = 0; _i25 < _list23.size; ++_i25) { _elem24 = new TColumn(); @@ -741,5 +721,8 @@ public class TRowResult implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 39bccf6..85561f8 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,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A Scan object is used to specify scanner parameters when opening a scanner. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -52,18 +25,15 @@ public class TScan implements org.apache.thrift.TBase, jav private static final org.apache.thrift.protocol.TField REVERSED_FIELD_DESC = new org.apache.thrift.protocol.TField("reversed", org.apache.thrift.protocol.TType.BOOL, (short)9); private static final org.apache.thrift.protocol.TField CACHE_BLOCKS_FIELD_DESC = new org.apache.thrift.protocol.TField("cacheBlocks", org.apache.thrift.protocol.TType.BOOL, (short)10); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TScanStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TScanTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TScanStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TScanTupleSchemeFactory(); - public ByteBuffer startRow; // optional - public ByteBuffer stopRow; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer stopRow; // optional public long timestamp; // optional - public List columns; // optional + public @org.apache.thrift.annotation.Nullable java.util.List columns; // optional public int caching; // optional - public ByteBuffer filterString; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterString; // optional public int batchSize; // optional public boolean sortColumns; // optional public boolean reversed; // optional @@ -82,10 +52,10 @@ public class TScan implements org.apache.thrift.TBase, jav REVERSED((short)9, "reversed"), CACHE_BLOCKS((short)10, "cacheBlocks"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -93,6 +63,7 @@ public class TScan implements org.apache.thrift.TBase, jav /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // START_ROW @@ -126,21 +97,22 @@ public class TScan implements org.apache.thrift.TBase, jav */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -149,7 +121,7 @@ public class TScan implements org.apache.thrift.TBase, jav return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -163,9 +135,9 @@ public class TScan implements org.apache.thrift.TBase, jav private static final int __CACHEBLOCKS_ISSET_ID = 5; private byte __isset_bitfield = 0; 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,_Fields.CACHE_BLOCKS}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -187,7 +159,7 @@ public class TScan implements org.apache.thrift.TBase, jav new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.CACHE_BLOCKS, new org.apache.thrift.meta_data.FieldMetaData("cacheBlocks", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TScan.class, metaDataMap); } @@ -200,22 +172,22 @@ public class TScan implements org.apache.thrift.TBase, jav public TScan(TScan other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetStartRow()) { - this.startRow = other.startRow; + this.startRow = org.apache.thrift.TBaseHelper.copyBinary(other.startRow); } if (other.isSetStopRow()) { - this.stopRow = other.stopRow; + this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(other.stopRow); } this.timestamp = other.timestamp; if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); - for (ByteBuffer other_element : other.columns) { - __this__columns.add(other_element); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); + for (java.nio.ByteBuffer other_element : other.columns) { + __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } this.caching = other.caching; if (other.isSetFilterString()) { - this.filterString = other.filterString; + this.filterString = org.apache.thrift.TBaseHelper.copyBinary(other.filterString); } this.batchSize = other.batchSize; this.sortColumns = other.sortColumns; @@ -252,16 +224,16 @@ public class TScan implements org.apache.thrift.TBase, jav return startRow == null ? null : startRow.array(); } - public ByteBuffer bufferForStartRow() { + public java.nio.ByteBuffer bufferForStartRow() { return org.apache.thrift.TBaseHelper.copyBinary(startRow); } public TScan setStartRow(byte[] startRow) { - this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); + this.startRow = startRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(startRow.clone()); return this; } - public TScan setStartRow(ByteBuffer startRow) { + public TScan setStartRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow) { this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -286,16 +258,16 @@ public class TScan implements org.apache.thrift.TBase, jav return stopRow == null ? null : stopRow.array(); } - public ByteBuffer bufferForStopRow() { + public java.nio.ByteBuffer bufferForStopRow() { return org.apache.thrift.TBaseHelper.copyBinary(stopRow); } public TScan setStopRow(byte[] stopRow) { - this.stopRow = stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(stopRow, stopRow.length)); + this.stopRow = stopRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(stopRow.clone()); return this; } - public TScan setStopRow(ByteBuffer stopRow) { + public TScan setStopRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer stopRow) { this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); return this; } @@ -326,38 +298,40 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getColumnsSize() { return (this.columns == null) ? 0 : this.columns.size(); } - public java.util.Iterator getColumnsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } - public void addToColumns(ByteBuffer elem) { + public void addToColumns(java.nio.ByteBuffer elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TScan setColumns(List columns) { + public TScan setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -388,16 +362,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetCaching() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CACHING_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CACHING_ISSET_ID); } /** Returns true if field caching is set (has been assigned a value) and false otherwise */ public boolean isSetCaching() { - return EncodingUtils.testBit(__isset_bitfield, __CACHING_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CACHING_ISSET_ID); } public void setCachingIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CACHING_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CACHING_ISSET_ID, value); } public byte[] getFilterString() { @@ -405,16 +379,16 @@ public class TScan implements org.apache.thrift.TBase, jav return filterString == null ? null : filterString.array(); } - public ByteBuffer bufferForFilterString() { + public java.nio.ByteBuffer bufferForFilterString() { return org.apache.thrift.TBaseHelper.copyBinary(filterString); } public TScan setFilterString(byte[] filterString) { - this.filterString = filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterString, filterString.length)); + this.filterString = filterString == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(filterString.clone()); return this; } - public TScan setFilterString(ByteBuffer filterString) { + public TScan setFilterString(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterString) { this.filterString = org.apache.thrift.TBaseHelper.copyBinary(filterString); return this; } @@ -445,16 +419,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetBatchSize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __BATCHSIZE_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __BATCHSIZE_ISSET_ID); } /** Returns true if field batchSize is set (has been assigned a value) and false otherwise */ public boolean isSetBatchSize() { - return EncodingUtils.testBit(__isset_bitfield, __BATCHSIZE_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __BATCHSIZE_ISSET_ID); } public void setBatchSizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __BATCHSIZE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __BATCHSIZE_ISSET_ID, value); } public boolean isSortColumns() { @@ -468,16 +442,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetSortColumns() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SORTCOLUMNS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SORTCOLUMNS_ISSET_ID); } /** Returns true if field sortColumns is set (has been assigned a value) and false otherwise */ public boolean isSetSortColumns() { - return EncodingUtils.testBit(__isset_bitfield, __SORTCOLUMNS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SORTCOLUMNS_ISSET_ID); } public void setSortColumnsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SORTCOLUMNS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SORTCOLUMNS_ISSET_ID, value); } public boolean isReversed() { @@ -491,16 +465,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetReversed() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __REVERSED_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __REVERSED_ISSET_ID); } /** Returns true if field reversed is set (has been assigned a value) and false otherwise */ public boolean isSetReversed() { - return EncodingUtils.testBit(__isset_bitfield, __REVERSED_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __REVERSED_ISSET_ID); } public void setReversedIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REVERSED_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __REVERSED_ISSET_ID, value); } public boolean isCacheBlocks() { @@ -514,25 +488,29 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetCacheBlocks() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID); } /** Returns true if field cacheBlocks is set (has been assigned a value) and false otherwise */ public boolean isSetCacheBlocks() { - return EncodingUtils.testBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID); } public void setCacheBlocksIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case START_ROW: if (value == null) { unsetStartRow(); } else { - setStartRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStartRow((byte[])value); + } else { + setStartRow((java.nio.ByteBuffer)value); + } } break; @@ -540,7 +518,11 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetStopRow(); } else { - setStopRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStopRow((byte[])value); + } else { + setStopRow((java.nio.ByteBuffer)value); + } } break; @@ -548,7 +530,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -556,7 +538,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -564,7 +546,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetCaching(); } else { - setCaching((Integer)value); + setCaching((java.lang.Integer)value); } break; @@ -572,7 +554,11 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetFilterString(); } else { - setFilterString((ByteBuffer)value); + if (value instanceof byte[]) { + setFilterString((byte[])value); + } else { + setFilterString((java.nio.ByteBuffer)value); + } } break; @@ -580,7 +566,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetBatchSize(); } else { - setBatchSize((Integer)value); + setBatchSize((java.lang.Integer)value); } break; @@ -588,7 +574,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetSortColumns(); } else { - setSortColumns((Boolean)value); + setSortColumns((java.lang.Boolean)value); } break; @@ -596,7 +582,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetReversed(); } else { - setReversed((Boolean)value); + setReversed((java.lang.Boolean)value); } break; @@ -604,14 +590,15 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetCacheBlocks(); } else { - setCacheBlocks((Boolean)value); + setCacheBlocks((java.lang.Boolean)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case START_ROW: return getStartRow(); @@ -644,13 +631,13 @@ public class TScan implements org.apache.thrift.TBase, jav return isCacheBlocks(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -675,11 +662,11 @@ public class TScan implements org.apache.thrift.TBase, jav case CACHE_BLOCKS: return isSetCacheBlocks(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TScan) @@ -690,6 +677,8 @@ public class TScan implements org.apache.thrift.TBase, jav public boolean equals(TScan that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_startRow = true && this.isSetStartRow(); boolean that_present_startRow = true && that.isSetStartRow(); @@ -786,59 +775,49 @@ public class TScan implements org.apache.thrift.TBase, jav @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_startRow = true && (isSetStartRow()); - list.add(present_startRow); - if (present_startRow) - list.add(startRow); + hashCode = hashCode * 8191 + ((isSetStartRow()) ? 131071 : 524287); + if (isSetStartRow()) + hashCode = hashCode * 8191 + startRow.hashCode(); - boolean present_stopRow = true && (isSetStopRow()); - list.add(present_stopRow); - if (present_stopRow) - list.add(stopRow); + hashCode = hashCode * 8191 + ((isSetStopRow()) ? 131071 : 524287); + if (isSetStopRow()) + hashCode = hashCode * 8191 + stopRow.hashCode(); - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_caching = true && (isSetCaching()); - list.add(present_caching); - if (present_caching) - list.add(caching); + hashCode = hashCode * 8191 + ((isSetCaching()) ? 131071 : 524287); + if (isSetCaching()) + hashCode = hashCode * 8191 + caching; - boolean present_filterString = true && (isSetFilterString()); - list.add(present_filterString); - if (present_filterString) - list.add(filterString); + hashCode = hashCode * 8191 + ((isSetFilterString()) ? 131071 : 524287); + if (isSetFilterString()) + hashCode = hashCode * 8191 + filterString.hashCode(); - boolean present_batchSize = true && (isSetBatchSize()); - list.add(present_batchSize); - if (present_batchSize) - list.add(batchSize); + hashCode = hashCode * 8191 + ((isSetBatchSize()) ? 131071 : 524287); + if (isSetBatchSize()) + hashCode = hashCode * 8191 + batchSize; - boolean present_sortColumns = true && (isSetSortColumns()); - list.add(present_sortColumns); - if (present_sortColumns) - list.add(sortColumns); + hashCode = hashCode * 8191 + ((isSetSortColumns()) ? 131071 : 524287); + if (isSetSortColumns()) + hashCode = hashCode * 8191 + ((sortColumns) ? 131071 : 524287); - boolean present_reversed = true && (isSetReversed()); - list.add(present_reversed); - if (present_reversed) - list.add(reversed); + hashCode = hashCode * 8191 + ((isSetReversed()) ? 131071 : 524287); + if (isSetReversed()) + hashCode = hashCode * 8191 + ((reversed) ? 131071 : 524287); - boolean present_cacheBlocks = true && (isSetCacheBlocks()); - list.add(present_cacheBlocks); - if (present_cacheBlocks) - list.add(cacheBlocks); + hashCode = hashCode * 8191 + ((isSetCacheBlocks()) ? 131071 : 524287); + if (isSetCacheBlocks()) + hashCode = hashCode * 8191 + ((cacheBlocks) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -849,7 +828,7 @@ public class TScan implements org.apache.thrift.TBase, jav int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } @@ -859,7 +838,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); if (lastComparison != 0) { return lastComparison; } @@ -869,7 +848,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -879,7 +858,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -889,7 +868,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCaching()).compareTo(other.isSetCaching()); + lastComparison = java.lang.Boolean.valueOf(isSetCaching()).compareTo(other.isSetCaching()); if (lastComparison != 0) { return lastComparison; } @@ -899,7 +878,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); + lastComparison = java.lang.Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); if (lastComparison != 0) { return lastComparison; } @@ -909,7 +888,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBatchSize()).compareTo(other.isSetBatchSize()); + lastComparison = java.lang.Boolean.valueOf(isSetBatchSize()).compareTo(other.isSetBatchSize()); if (lastComparison != 0) { return lastComparison; } @@ -919,7 +898,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSortColumns()).compareTo(other.isSetSortColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetSortColumns()).compareTo(other.isSetSortColumns()); if (lastComparison != 0) { return lastComparison; } @@ -929,7 +908,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReversed()).compareTo(other.isSetReversed()); + lastComparison = java.lang.Boolean.valueOf(isSetReversed()).compareTo(other.isSetReversed()); if (lastComparison != 0) { return lastComparison; } @@ -939,7 +918,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCacheBlocks()).compareTo(other.isSetCacheBlocks()); + lastComparison = java.lang.Boolean.valueOf(isSetCacheBlocks()).compareTo(other.isSetCacheBlocks()); if (lastComparison != 0) { return lastComparison; } @@ -952,21 +931,22 @@ public class TScan implements org.apache.thrift.TBase, jav return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TScan("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TScan("); boolean first = true; if (isSetStartRow()) { @@ -1061,7 +1041,7 @@ public class TScan implements org.apache.thrift.TBase, jav } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -1071,13 +1051,13 @@ public class TScan implements org.apache.thrift.TBase, jav } } - private static class TScanStandardSchemeFactory implements SchemeFactory { + private static class TScanStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TScanStandardScheme getScheme() { return new TScanStandardScheme(); } } - private static class TScanStandardScheme extends StandardScheme { + private static class TScanStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TScan struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1117,8 +1097,8 @@ public class TScan implements org.apache.thrift.TBase, jav if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list26 = iprot.readListBegin(); - struct.columns = new ArrayList(_list26.size); - ByteBuffer _elem27; + struct.columns = new java.util.ArrayList(_list26.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem27; for (int _i28 = 0; _i28 < _list26.size; ++_i28) { _elem27 = iprot.readBinary(); @@ -1218,7 +1198,7 @@ public class TScan implements org.apache.thrift.TBase, jav oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); - for (ByteBuffer _iter29 : struct.columns) + for (java.nio.ByteBuffer _iter29 : struct.columns) { oprot.writeBinary(_iter29); } @@ -1265,18 +1245,18 @@ public class TScan implements org.apache.thrift.TBase, jav } - private static class TScanTupleSchemeFactory implements SchemeFactory { + private static class TScanTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TScanTupleScheme getScheme() { return new TScanTupleScheme(); } } - private static class TScanTupleScheme extends TupleScheme { + private static class TScanTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TScan struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetStartRow()) { optionals.set(0); } @@ -1320,7 +1300,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (struct.isSetColumns()) { { oprot.writeI32(struct.columns.size()); - for (ByteBuffer _iter30 : struct.columns) + for (java.nio.ByteBuffer _iter30 : struct.columns) { oprot.writeBinary(_iter30); } @@ -1348,8 +1328,8 @@ public class TScan implements org.apache.thrift.TBase, jav @Override public void read(org.apache.thrift.protocol.TProtocol prot, TScan struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(10); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(10); if (incoming.get(0)) { struct.startRow = iprot.readBinary(); struct.setStartRowIsSet(true); @@ -1365,8 +1345,8 @@ public class TScan implements org.apache.thrift.TBase, jav if (incoming.get(3)) { { 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); - ByteBuffer _elem32; + struct.columns = new java.util.ArrayList(_list31.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem32; for (int _i33 = 0; _i33 < _list31.size; ++_i33) { _elem32 = iprot.readBinary(); @@ -1402,5 +1382,8 @@ public class TScan implements org.apache.thrift.TBase, jav } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 b1bad09..a78baa1 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,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -44,21 +17,18 @@ public class TAppend implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TAppendStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TAppendTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TAppendStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TAppendTupleSchemeFactory(); - public ByteBuffer row; // required - public List columns; // required - public Map attributes; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional /** * * @see TDurability */ - public TDurability durability; // optional - public TCellVisibility cellVisibility; // optional + public @org.apache.thrift.annotation.Nullable TDurability durability; // optional + public @org.apache.thrift.annotation.Nullable TCellVisibility cellVisibility; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -72,10 +42,10 @@ public class TAppend implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -83,6 +53,7 @@ public class TAppend implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -152,7 +124,7 @@ public class TAppend implements org.apache.thrift.TBase columns) + java.nio.ByteBuffer row, + java.util.List columns) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -176,14 +148,14 @@ public class TAppend implements org.apache.thrift.TBase __this__columns = new ArrayList(other.columns.size()); + java.util.List __this__columns = new java.util.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(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -212,16 +184,16 @@ public class TAppend implements org.apache.thrift.TBase getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumnValue elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TAppend setColumns(List columns) { + public TAppend setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -284,18 +258,19 @@ public class TAppend implements org.apache.thrift.TBase(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TAppend setAttributes(Map attributes) { + public TAppend setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -319,6 +294,7 @@ public class TAppend implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -393,7 +374,7 @@ public class TAppend implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -416,7 +397,8 @@ public class TAppend implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - boolean present_durability = true && (isSetDurability()); - list.add(present_durability); - if (present_durability) - list.add(durability.getValue()); + hashCode = hashCode * 8191 + ((isSetDurability()) ? 131071 : 524287); + if (isSetDurability()) + hashCode = hashCode * 8191 + durability.getValue(); - boolean present_cellVisibility = true && (isSetCellVisibility()); - list.add(present_cellVisibility); - if (present_cellVisibility) - list.add(cellVisibility); + hashCode = hashCode * 8191 + ((isSetCellVisibility()) ? 131071 : 524287); + if (isSetCellVisibility()) + hashCode = hashCode * 8191 + cellVisibility.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -559,7 +538,7 @@ public class TAppend implements org.apache.thrift.TBase { + private static class TAppendStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TAppend struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -738,8 +718,8 @@ public class TAppend implements org.apache.thrift.TBase(_list88.size); - TColumnValue _elem89; + struct.columns = new java.util.ArrayList(_list88.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem89; for (int _i90 = 0; _i90 < _list88.size; ++_i90) { _elem89 = new TColumnValue(); @@ -757,9 +737,9 @@ public class TAppend implements org.apache.thrift.TBase(2*_map91.size); - ByteBuffer _key92; - ByteBuffer _val93; + struct.attributes = new java.util.HashMap(2*_map91.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key92; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val93; for (int _i94 = 0; _i94 < _map91.size; ++_i94) { _key92 = iprot.readBinary(); @@ -827,7 +807,7 @@ public class TAppend implements org.apache.thrift.TBase _iter96 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter96 : struct.attributes.entrySet()) { oprot.writeBinary(_iter96.getKey()); oprot.writeBinary(_iter96.getValue()); @@ -857,17 +837,17 @@ public class TAppend implements org.apache.thrift.TBase { + private static class TAppendTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TAppend struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.columns.size()); @@ -876,7 +856,7 @@ public class TAppend implements org.apache.thrift.TBase _iter98 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter98 : struct.attributes.entrySet()) { oprot.writeBinary(_iter98.getKey()); oprot.writeBinary(_iter98.getValue()); @@ -907,13 +887,13 @@ public class TAppend implements org.apache.thrift.TBase(_list99.size); - TColumnValue _elem100; + struct.columns = new java.util.ArrayList(_list99.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem100; for (int _i101 = 0; _i101 < _list99.size; ++_i101) { _elem100 = new TColumnValue(); @@ -922,13 +902,13 @@ public class TAppend implements org.apache.thrift.TBase(2*_map102.size); - ByteBuffer _key103; - ByteBuffer _val104; + struct.attributes = new java.util.HashMap(2*_map102.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key103; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val104; for (int _i105 = 0; _i105 < _map102.size; ++_i105) { _key103 = iprot.readBinary(); @@ -950,5 +930,8 @@ public class TAppend implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 c8c6d66..750e193 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,61 +1,31 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TAuthorizationStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TAuthorizationTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TAuthorizationStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TAuthorizationTupleSchemeFactory(); - public List labels; // optional + public @org.apache.thrift.annotation.Nullable java.util.List labels; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { LABELS((short)1, "labels"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class TAuthorization implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LABELS, new org.apache.thrift.meta_data.FieldMetaData("labels", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TAuthorization.class, metaDataMap); } @@ -126,7 +98,7 @@ public class TAuthorization implements org.apache.thrift.TBase __this__labels = new ArrayList(other.labels); + java.util.List __this__labels = new java.util.ArrayList(other.labels); this.labels = __this__labels; } } @@ -144,22 +116,24 @@ public class TAuthorization implements org.apache.thrift.TBase getLabelsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getLabelsIterator() { return (this.labels == null) ? null : this.labels.iterator(); } - public void addToLabels(String elem) { + public void addToLabels(java.lang.String elem) { if (this.labels == null) { - this.labels = new ArrayList(); + this.labels = new java.util.ArrayList(); } this.labels.add(elem); } - public List getLabels() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLabels() { return this.labels; } - public TAuthorization setLabels(List labels) { + public TAuthorization setLabels(@org.apache.thrift.annotation.Nullable java.util.List labels) { this.labels = labels; return this; } @@ -179,43 +153,44 @@ public class TAuthorization implements org.apache.thrift.TBase)value); + setLabels((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LABELS: return getLabels(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case LABELS: return isSetLabels(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TAuthorization) @@ -226,6 +201,8 @@ public class TAuthorization implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_labels = true && (isSetLabels()); - list.add(present_labels); - if (present_labels) - list.add(labels); + hashCode = hashCode * 8191 + ((isSetLabels()) ? 131071 : 524287); + if (isSetLabels()) + hashCode = hashCode * 8191 + labels.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -259,7 +235,7 @@ public class TAuthorization implements org.apache.thrift.TBase { + private static class TAuthorizationStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TAuthorization struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -345,8 +322,8 @@ public class TAuthorization implements org.apache.thrift.TBase(_list8.size); - String _elem9; + struct.labels = new java.util.ArrayList(_list8.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem9; for (int _i10 = 0; _i10 < _list8.size; ++_i10) { _elem9 = iprot.readString(); @@ -379,7 +356,7 @@ public class TAuthorization implements org.apache.thrift.TBase { + private static class TAuthorizationTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TAuthorization struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLabels()) { optionals.set(0); } @@ -413,7 +390,7 @@ public class TAuthorization implements org.apache.thrift.TBase(_list13.size); - String _elem14; + struct.labels = new java.util.ArrayList(_list13.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem14; for (int _i15 = 0; _i15 < _list13.size; ++_i15) { _elem14 = iprot.readString(); @@ -441,5 +418,8 @@ public class TAuthorization implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 a4f0800..e6cde06 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,61 +1,31 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TCellVisibilityStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TCellVisibilityTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TCellVisibilityStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TCellVisibilityTupleSchemeFactory(); - public String expression; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String expression; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EXPRESSION((short)1, "expression"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class TCellVisibility implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EXPRESSION, new org.apache.thrift.meta_data.FieldMetaData("expression", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCellVisibility.class, metaDataMap); } @@ -138,11 +110,12 @@ public class TCellVisibility implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_expression = true && (isSetExpression()); - list.add(present_expression); - if (present_expression) - list.add(expression); + hashCode = hashCode * 8191 + ((isSetExpression()) ? 131071 : 524287); + if (isSetExpression()) + hashCode = hashCode * 8191 + expression.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -242,7 +217,7 @@ public class TCellVisibility implements org.apache.thrift.TBase { + private static class TCellVisibilityStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TCellVisibility struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -360,18 +336,18 @@ public class TCellVisibility implements org.apache.thrift.TBase { + private static class TCellVisibilityTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TCellVisibility struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetExpression()) { optionals.set(0); } @@ -383,8 +359,8 @@ public class TCellVisibility implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 a73e86e..604a4b5 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,45 +1,18 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Addresses a single cell or multiple cells * in a HBase table by column family and optionally * a column qualifier and timestamp */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -47,14 +20,11 @@ public class TColumn implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TColumnStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TColumnTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TColumnStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TColumnTupleSchemeFactory(); - public ByteBuffer family; // required - public ByteBuffer qualifier; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // optional public long timestamp; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -63,10 +33,10 @@ public class TColumn implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -74,6 +44,7 @@ public class TColumn implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 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.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumn.class, metaDataMap); } @@ -142,7 +114,7 @@ public class TColumn implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - return list.hashCode(); + return hashCode; } @Override @@ -399,7 +379,7 @@ public class TColumn implements org.apache.thrift.TBase { + private static class TColumnStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TColumn struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -582,19 +563,19 @@ public class TColumn implements org.apache.thrift.TBase { + private static class TColumnTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.family); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetQualifier()) { optionals.set(0); } @@ -612,10 +593,10 @@ public class TColumn implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 91ee4a2..a0ceecf 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,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Represents a single cell and the amount to increment it by */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -45,14 +18,11 @@ public class TColumnIncrement implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TColumnIncrementStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TColumnIncrementTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TColumnIncrementStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TColumnIncrementTupleSchemeFactory(); - public ByteBuffer family; // required - public ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // required public long amount; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -61,10 +31,10 @@ public class TColumnIncrement implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -72,6 +42,7 @@ public class TColumnIncrement implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 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.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumnIncrement.class, metaDataMap); } @@ -142,8 +114,8 @@ public class TColumnIncrement implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_amount = true && (isSetAmount()); - list.add(present_amount); - if (present_amount) - list.add(amount); + hashCode = hashCode * 8191 + ((isSetAmount()) ? 131071 : 524287); + if (isSetAmount()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(amount); - return list.hashCode(); + return hashCode; } @Override @@ -401,7 +381,7 @@ public class TColumnIncrement implements org.apache.thrift.TBase { + private static class TColumnIncrementStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TColumnIncrement struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -583,20 +564,20 @@ public class TColumnIncrement implements org.apache.thrift.TBase { + private static class TColumnIncrementTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAmount()) { optionals.set(0); } @@ -608,12 +589,12 @@ public class TColumnIncrement implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 8285f0e..4a766de 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,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Represents a single cell and its value. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -47,17 +20,14 @@ public class TColumnValue implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TColumnValueStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TColumnValueTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TColumnValueStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TColumnValueTupleSchemeFactory(); - public ByteBuffer family; // required - public ByteBuffer qualifier; // required - public ByteBuffer value; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required public long timestamp; // optional - public ByteBuffer tags; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tags; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -67,10 +37,10 @@ public class TColumnValue implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -78,6 +48,7 @@ public class TColumnValue implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 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, @@ -146,7 +118,7 @@ public class TColumnValue implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_tags = true && (isSetTags()); - list.add(present_tags); - if (present_tags) - list.add(tags); + hashCode = hashCode * 8191 + ((isSetTags()) ? 131071 : 524287); + if (isSetTags()) + hashCode = hashCode * 8191 + tags.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -545,7 +531,7 @@ public class TColumnValue implements org.apache.thrift.TBase { + private static class TColumnValueStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TColumnValue struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -796,21 +783,21 @@ public class TColumnValue implements org.apache.thrift.TBase { + private static class TColumnValueTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumnValue struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); oprot.writeBinary(struct.value); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } @@ -828,14 +815,14 @@ public class TColumnValue implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 index efbba09..0aef123 100644 --- 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 @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ 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. */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") public enum TCompareOp implements org.apache.thrift.TEnum { LESS(0), LESS_OR_EQUAL(1), @@ -41,6 +38,7 @@ public enum TCompareOp implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static TCompareOp findByValue(int value) { switch (value) { case 0: 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 d64f079..8168a74 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,39 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Used to perform Delete operations on a single row. * @@ -60,7 +33,7 @@ import org.slf4j.LoggerFactory; * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -71,26 +44,23 @@ public class TDelete implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TDeleteStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TDeleteTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TDeleteStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TDeleteTupleSchemeFactory(); - public ByteBuffer row; // required - public List columns; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // optional public long timestamp; // optional /** * * @see TDeleteType */ - public TDeleteType deleteType; // optional - public Map attributes; // optional + public @org.apache.thrift.annotation.Nullable TDeleteType deleteType; // optional + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional /** * * @see TDurability */ - public TDurability durability; // optional + public @org.apache.thrift.annotation.Nullable TDurability durability; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -109,10 +79,10 @@ public class TDelete implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -120,6 +90,7 @@ public class TDelete implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -195,7 +167,7 @@ public class TDelete implements org.apache.thrift.TBase __this__columns = new ArrayList(other.columns.size()); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -231,7 +203,7 @@ public class TDelete implements org.apache.thrift.TBase __this__attributes = new HashMap(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -260,16 +232,16 @@ public class TDelete implements org.apache.thrift.TBase getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumn elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TDelete setColumns(List columns) { + public TDelete setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -339,22 +313,23 @@ public class TDelete implements org.apache.thrift.TBase(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TDelete setAttributes(Map attributes) { + public TDelete setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -422,6 +398,7 @@ public class TDelete implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -472,7 +453,7 @@ public class TDelete implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -503,7 +484,8 @@ public class TDelete implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); - - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); - - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); - - boolean present_deleteType = true && (isSetDeleteType()); - list.add(present_deleteType); - if (present_deleteType) - list.add(deleteType.getValue()); - - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); - - boolean present_durability = true && (isSetDurability()); - list.add(present_durability); - if (present_durability) - list.add(durability.getValue()); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); + + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); + + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); + + hashCode = hashCode * 8191 + ((isSetDeleteType()) ? 131071 : 524287); + if (isSetDeleteType()) + hashCode = hashCode * 8191 + deleteType.getValue(); + + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDurability()) ? 131071 : 524287); + if (isSetDurability()) + hashCode = hashCode * 8191 + durability.getValue(); + + return hashCode; } @Override @@ -665,7 +643,7 @@ public class TDelete implements org.apache.thrift.TBase { + private static class TDeleteStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TDelete struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -858,8 +837,8 @@ public class TDelete implements org.apache.thrift.TBase(_list52.size); - TColumn _elem53; + struct.columns = new java.util.ArrayList(_list52.size); + @org.apache.thrift.annotation.Nullable TColumn _elem53; for (int _i54 = 0; _i54 < _list52.size; ++_i54) { _elem53 = new TColumn(); @@ -893,9 +872,9 @@ public class TDelete implements org.apache.thrift.TBase(2*_map55.size); - ByteBuffer _key56; - ByteBuffer _val57; + struct.attributes = new java.util.HashMap(2*_map55.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key56; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val57; for (int _i58 = 0; _i58 < _map55.size; ++_i58) { _key56 = iprot.readBinary(); @@ -968,7 +947,7 @@ public class TDelete implements org.apache.thrift.TBase _iter60 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter60 : struct.attributes.entrySet()) { oprot.writeBinary(_iter60.getKey()); oprot.writeBinary(_iter60.getValue()); @@ -991,19 +970,19 @@ public class TDelete implements org.apache.thrift.TBase { + private static class TDeleteTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TDelete struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetColumns()) { optionals.set(0); } @@ -1038,7 +1017,7 @@ public class TDelete implements org.apache.thrift.TBase _iter62 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter62 : struct.attributes.entrySet()) { oprot.writeBinary(_iter62.getKey()); oprot.writeBinary(_iter62.getValue()); @@ -1052,15 +1031,15 @@ public class TDelete implements org.apache.thrift.TBase(_list63.size); - TColumn _elem64; + struct.columns = new java.util.ArrayList(_list63.size); + @org.apache.thrift.annotation.Nullable TColumn _elem64; for (int _i65 = 0; _i65 < _list63.size; ++_i65) { _elem64 = new TColumn(); @@ -1081,9 +1060,9 @@ public class TDelete implements org.apache.thrift.TBase(2*_map66.size); - ByteBuffer _key67; - ByteBuffer _val68; + struct.attributes = new java.util.HashMap(2*_map66.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key67; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val68; for (int _i69 = 0; _i69 < _map66.size; ++_i69) { _key67 = iprot.readBinary(); @@ -1100,5 +1079,8 @@ public class TDelete implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 5d47508..f64d885 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.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,15 +7,12 @@ package org.apache.hadoop.hbase.thrift2.generated; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - /** * Specify type of delete: * - DELETE_COLUMN means exactly one version will be removed, * - DELETE_COLUMNS means previous versions will also be removed. */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") public enum TDeleteType implements org.apache.thrift.TEnum { DELETE_COLUMN(0), DELETE_COLUMNS(1); @@ -37,6 +34,7 @@ public enum TDeleteType implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static TDeleteType findByValue(int value) { switch (value) { case 0: 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 c1144f3..be8acf8 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.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,6 @@ package org.apache.hadoop.hbase.thrift2.generated; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - /** * Specify Durability: * - SKIP_WAL means do not write the Mutation to the WAL. @@ -18,6 +14,7 @@ import org.apache.thrift.TEnum; * - SYNC_WAL means write the Mutation to the WAL synchronously, * - FSYNC_WAL means Write the Mutation to the WAL synchronously and force the entries to disk. */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") public enum TDurability implements org.apache.thrift.TEnum { SKIP_WAL(1), ASYNC_WAL(2), @@ -41,6 +38,7 @@ public enum TDurability implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static TDurability findByValue(int value) { switch (value) { case 1: 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 a1141b2..48596a5 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,39 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Used to perform Get operations on a single row. * @@ -47,7 +20,7 @@ import org.slf4j.LoggerFactory; * If you specify a time range and a timestamp the range is ignored. * Timestamps on TColumns are ignored. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -60,20 +33,17 @@ public class TGet implements org.apache.thrift.TBase, java.i private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)7); private static final org.apache.thrift.protocol.TField AUTHORIZATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("authorizations", org.apache.thrift.protocol.TType.STRUCT, (short)8); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TGetStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TGetTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TGetStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TGetTupleSchemeFactory(); - public ByteBuffer row; // required - public List columns; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // optional public long timestamp; // optional - public TTimeRange timeRange; // optional + public @org.apache.thrift.annotation.Nullable TTimeRange timeRange; // optional public int maxVersions; // optional - public ByteBuffer filterString; // optional - public Map attributes; // optional - public TAuthorization authorizations; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterString; // optional + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional + public @org.apache.thrift.annotation.Nullable TAuthorization authorizations; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -86,10 +56,10 @@ public class TGet implements org.apache.thrift.TBase, java.i ATTRIBUTES((short)7, "attributes"), AUTHORIZATIONS((short)8, "authorizations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -97,6 +67,7 @@ public class TGet implements org.apache.thrift.TBase, java.i /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ROW @@ -126,21 +97,22 @@ public class TGet implements org.apache.thrift.TBase, java.i */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -149,7 +121,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -159,9 +131,9 @@ public class TGet implements org.apache.thrift.TBase, java.i private static final int __MAXVERSIONS_ISSET_ID = 1; private byte __isset_bitfield = 0; 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -181,7 +153,7 @@ public class TGet implements org.apache.thrift.TBase, java.i new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))); tmpMap.put(_Fields.AUTHORIZATIONS, new org.apache.thrift.meta_data.FieldMetaData("authorizations", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorization.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TGet.class, metaDataMap); } @@ -189,7 +161,7 @@ public class TGet implements org.apache.thrift.TBase, java.i } public TGet( - ByteBuffer row) + java.nio.ByteBuffer row) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -204,7 +176,7 @@ public class TGet implements org.apache.thrift.TBase, java.i this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -219,7 +191,7 @@ public class TGet implements org.apache.thrift.TBase, java.i this.filterString = org.apache.thrift.TBaseHelper.copyBinary(other.filterString); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetAuthorizations()) { @@ -250,16 +222,16 @@ public class TGet implements org.apache.thrift.TBase, java.i return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } public TGet setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public TGet setRow(ByteBuffer row) { + public TGet setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -283,22 +255,24 @@ public class TGet implements org.apache.thrift.TBase, java.i return (this.columns == null) ? 0 : this.columns.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumn elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TGet setColumns(List columns) { + public TGet setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -329,23 +303,24 @@ public class TGet implements org.apache.thrift.TBase, java.i } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TTimeRange getTimeRange() { return this.timeRange; } - public TGet setTimeRange(TTimeRange timeRange) { + public TGet setTimeRange(@org.apache.thrift.annotation.Nullable TTimeRange timeRange) { this.timeRange = timeRange; return this; } @@ -376,16 +351,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } public void unsetMaxVersions() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); } /** Returns true if field maxVersions is set (has been assigned a value) and false otherwise */ public boolean isSetMaxVersions() { - return EncodingUtils.testBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); } public void setMaxVersionsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID, value); } public byte[] getFilterString() { @@ -393,16 +368,16 @@ public class TGet implements org.apache.thrift.TBase, java.i return filterString == null ? null : filterString.array(); } - public ByteBuffer bufferForFilterString() { + public java.nio.ByteBuffer bufferForFilterString() { return org.apache.thrift.TBaseHelper.copyBinary(filterString); } public TGet setFilterString(byte[] filterString) { - this.filterString = filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterString, filterString.length)); + this.filterString = filterString == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(filterString.clone()); return this; } - public TGet setFilterString(ByteBuffer filterString) { + public TGet setFilterString(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterString) { this.filterString = org.apache.thrift.TBaseHelper.copyBinary(filterString); return this; } @@ -426,18 +401,19 @@ public class TGet implements org.apache.thrift.TBase, java.i return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TGet setAttributes(Map attributes) { + public TGet setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -457,11 +433,12 @@ public class TGet implements org.apache.thrift.TBase, java.i } } + @org.apache.thrift.annotation.Nullable public TAuthorization getAuthorizations() { return this.authorizations; } - public TGet setAuthorizations(TAuthorization authorizations) { + public TGet setAuthorizations(@org.apache.thrift.annotation.Nullable TAuthorization authorizations) { this.authorizations = authorizations; return this; } @@ -481,13 +458,17 @@ public class TGet implements org.apache.thrift.TBase, java.i } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case ROW: if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -495,7 +476,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -503,7 +484,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -519,7 +500,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetMaxVersions(); } else { - setMaxVersions((Integer)value); + setMaxVersions((java.lang.Integer)value); } break; @@ -527,7 +508,11 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetFilterString(); } else { - setFilterString((ByteBuffer)value); + if (value instanceof byte[]) { + setFilterString((byte[])value); + } else { + setFilterString((java.nio.ByteBuffer)value); + } } break; @@ -535,7 +520,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; @@ -550,7 +535,8 @@ public class TGet implements org.apache.thrift.TBase, java.i } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -577,13 +563,13 @@ public class TGet implements org.apache.thrift.TBase, java.i return getAuthorizations(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -604,11 +590,11 @@ public class TGet implements org.apache.thrift.TBase, java.i case AUTHORIZATIONS: return isSetAuthorizations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TGet) @@ -619,6 +605,8 @@ public class TGet implements org.apache.thrift.TBase, java.i public boolean equals(TGet that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); @@ -697,49 +685,41 @@ public class TGet implements org.apache.thrift.TBase, java.i @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_timeRange = true && (isSetTimeRange()); - list.add(present_timeRange); - if (present_timeRange) - list.add(timeRange); + hashCode = hashCode * 8191 + ((isSetTimeRange()) ? 131071 : 524287); + if (isSetTimeRange()) + hashCode = hashCode * 8191 + timeRange.hashCode(); - boolean present_maxVersions = true && (isSetMaxVersions()); - list.add(present_maxVersions); - if (present_maxVersions) - list.add(maxVersions); + hashCode = hashCode * 8191 + ((isSetMaxVersions()) ? 131071 : 524287); + if (isSetMaxVersions()) + hashCode = hashCode * 8191 + maxVersions; - boolean present_filterString = true && (isSetFilterString()); - list.add(present_filterString); - if (present_filterString) - list.add(filterString); + hashCode = hashCode * 8191 + ((isSetFilterString()) ? 131071 : 524287); + if (isSetFilterString()) + hashCode = hashCode * 8191 + filterString.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - boolean present_authorizations = true && (isSetAuthorizations()); - list.add(present_authorizations); - if (present_authorizations) - list.add(authorizations); + hashCode = hashCode * 8191 + ((isSetAuthorizations()) ? 131071 : 524287); + if (isSetAuthorizations()) + hashCode = hashCode * 8191 + authorizations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -750,7 +730,7 @@ public class TGet implements org.apache.thrift.TBase, java.i int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -760,7 +740,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -770,7 +750,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -780,7 +760,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimeRange()).compareTo(other.isSetTimeRange()); + lastComparison = java.lang.Boolean.valueOf(isSetTimeRange()).compareTo(other.isSetTimeRange()); if (lastComparison != 0) { return lastComparison; } @@ -790,7 +770,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); + lastComparison = java.lang.Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); if (lastComparison != 0) { return lastComparison; } @@ -800,7 +780,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); + lastComparison = java.lang.Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); if (lastComparison != 0) { return lastComparison; } @@ -810,7 +790,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -820,7 +800,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthorizations()).compareTo(other.isSetAuthorizations()); + lastComparison = java.lang.Boolean.valueOf(isSetAuthorizations()).compareTo(other.isSetAuthorizations()); if (lastComparison != 0) { return lastComparison; } @@ -833,21 +813,22 @@ public class TGet implements org.apache.thrift.TBase, java.i return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TGet("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TGet("); boolean first = true; sb.append("row:"); @@ -945,7 +926,7 @@ public class TGet implements org.apache.thrift.TBase, java.i } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -955,13 +936,13 @@ public class TGet implements org.apache.thrift.TBase, java.i } } - private static class TGetStandardSchemeFactory implements SchemeFactory { + private static class TGetStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TGetStandardScheme getScheme() { return new TGetStandardScheme(); } } - private static class TGetStandardScheme extends StandardScheme { + private static class TGetStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TGet struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -985,8 +966,8 @@ public class TGet implements org.apache.thrift.TBase, java.i if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); - struct.columns = new ArrayList(_list16.size); - TColumn _elem17; + struct.columns = new java.util.ArrayList(_list16.size); + @org.apache.thrift.annotation.Nullable TColumn _elem17; for (int _i18 = 0; _i18 < _list16.size; ++_i18) { _elem17 = new TColumn(); @@ -1037,9 +1018,9 @@ public class TGet implements org.apache.thrift.TBase, java.i if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map19 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map19.size); - ByteBuffer _key20; - ByteBuffer _val21; + struct.attributes = new java.util.HashMap(2*_map19.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key20; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val21; for (int _i22 = 0; _i22 < _map19.size; ++_i22) { _key20 = iprot.readBinary(); @@ -1125,7 +1106,7 @@ public class TGet implements org.apache.thrift.TBase, java.i oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter24 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter24 : struct.attributes.entrySet()) { oprot.writeBinary(_iter24.getKey()); oprot.writeBinary(_iter24.getValue()); @@ -1148,19 +1129,19 @@ public class TGet implements org.apache.thrift.TBase, java.i } - private static class TGetTupleSchemeFactory implements SchemeFactory { + private static class TGetTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TGetTupleScheme getScheme() { return new TGetTupleScheme(); } } - private static class TGetTupleScheme extends TupleScheme { + private static class TGetTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TGet struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetColumns()) { optionals.set(0); } @@ -1207,7 +1188,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter26 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter26 : struct.attributes.entrySet()) { oprot.writeBinary(_iter26.getKey()); oprot.writeBinary(_iter26.getValue()); @@ -1221,15 +1202,15 @@ public class TGet implements org.apache.thrift.TBase, java.i @Override public void read(org.apache.thrift.protocol.TProtocol prot, TGet struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); - BitSet incoming = iprot.readBitSet(7); + java.util.BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { { 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); - TColumn _elem28; + struct.columns = new java.util.ArrayList(_list27.size); + @org.apache.thrift.annotation.Nullable TColumn _elem28; for (int _i29 = 0; _i29 < _list27.size; ++_i29) { _elem28 = new TColumn(); @@ -1259,9 +1240,9 @@ public class TGet implements org.apache.thrift.TBase, java.i if (incoming.get(5)) { { 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); - ByteBuffer _key31; - ByteBuffer _val32; + struct.attributes = new java.util.HashMap(2*_map30.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key31; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val32; for (int _i33 = 0; _i33 < _map30.size; ++_i33) { _key31 = iprot.readBinary(); @@ -1279,5 +1260,8 @@ public class TGet implements org.apache.thrift.TBase, java.i } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 75ca93d..1791f2f 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,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") public class THBaseService { public interface Iface { @@ -48,19 +21,19 @@ public class THBaseService { * * @param tget the TGet to check for */ - public boolean exists(ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException; + public boolean exists(java.nio.ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException; /** * Test for the existence of columns in the table, as specified by the TGets. - * + * * This will return an array of booleans. Each value will be true if the related Get matches * one or more keys, false if not. - * + * * @param table the table to check on - * + * * @param tgets a list of TGets to check for */ - public List existsAll(ByteBuffer table, List tgets) throws TIOError, org.apache.thrift.TException; + public java.util.List existsAll(java.nio.ByteBuffer table, java.util.List tgets) throws TIOError, org.apache.thrift.TException; /** * Method for getting data from a row. @@ -74,7 +47,7 @@ public class THBaseService { * * @param tget the TGet to fetch */ - public TResult get(ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException; + public TResult get(java.nio.ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException; /** * Method for getting multiple rows. @@ -91,7 +64,7 @@ public class THBaseService { * will have the Results at corresponding positions * or null if there was an error */ - public List getMultiple(ByteBuffer table, List tgets) throws TIOError, org.apache.thrift.TException; + public java.util.List getMultiple(java.nio.ByteBuffer table, java.util.List tgets) throws TIOError, org.apache.thrift.TException; /** * Commit a TPut to a table. @@ -100,7 +73,7 @@ public class THBaseService { * * @param tput the TPut to put */ - public void put(ByteBuffer table, TPut tput) throws TIOError, org.apache.thrift.TException; + public void put(java.nio.ByteBuffer table, TPut tput) throws TIOError, org.apache.thrift.TException; /** * Atomically checks if a row/family/qualifier value matches the expected @@ -122,7 +95,7 @@ public class THBaseService { * * @param tput the TPut to put if the check succeeds */ - public boolean checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput) throws TIOError, org.apache.thrift.TException; + public boolean checkAndPut(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TPut tput) throws TIOError, org.apache.thrift.TException; /** * Commit a List of Puts to the table. @@ -131,7 +104,7 @@ public class THBaseService { * * @param tputs a list of TPuts to commit */ - public void putMultiple(ByteBuffer table, List tputs) throws TIOError, org.apache.thrift.TException; + public void putMultiple(java.nio.ByteBuffer table, java.util.List tputs) throws TIOError, org.apache.thrift.TException; /** * Deletes as specified by the TDelete. @@ -143,7 +116,7 @@ public class THBaseService { * * @param tdelete the TDelete to delete */ - public void deleteSingle(ByteBuffer table, TDelete tdelete) throws TIOError, org.apache.thrift.TException; + public void deleteSingle(java.nio.ByteBuffer table, TDelete tdelete) throws TIOError, org.apache.thrift.TException; /** * Bulk commit a List of TDeletes to the table. @@ -156,7 +129,7 @@ public class THBaseService { * * @param tdeletes list of TDeletes to delete */ - public List deleteMultiple(ByteBuffer table, List tdeletes) throws TIOError, org.apache.thrift.TException; + public java.util.List deleteMultiple(java.nio.ByteBuffer table, java.util.List tdeletes) throws TIOError, org.apache.thrift.TException; /** * Atomically checks if a row/family/qualifier value matches the expected @@ -178,11 +151,11 @@ public class THBaseService { * * @param tdelete the TDelete to execute if the check succeeds */ - public boolean checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete) throws TIOError, org.apache.thrift.TException; + public boolean checkAndDelete(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TDelete tdelete) throws TIOError, org.apache.thrift.TException; - public TResult increment(ByteBuffer table, TIncrement tincrement) throws TIOError, org.apache.thrift.TException; + public TResult increment(java.nio.ByteBuffer table, TIncrement tincrement) throws TIOError, org.apache.thrift.TException; - public TResult append(ByteBuffer table, TAppend tappend) throws TIOError, org.apache.thrift.TException; + public TResult append(java.nio.ByteBuffer table, TAppend tappend) throws TIOError, org.apache.thrift.TException; /** * Get a Scanner for the provided TScan object. @@ -193,7 +166,7 @@ public class THBaseService { * * @param tscan the scan object to get a Scanner for */ - public int openScanner(ByteBuffer table, TScan tscan) throws TIOError, org.apache.thrift.TException; + public int openScanner(java.nio.ByteBuffer table, TScan tscan) throws TIOError, org.apache.thrift.TException; /** * Grabs multiple rows from a Scanner. @@ -204,7 +177,7 @@ public class THBaseService { * * @param numRows number of rows to return */ - public List getScannerRows(int scannerId, int numRows) throws TIOError, TIllegalArgument, org.apache.thrift.TException; + public java.util.List getScannerRows(int scannerId, int numRows) throws TIOError, TIllegalArgument, org.apache.thrift.TException; /** * Closes the scanner. Should be called to free server side resources timely. @@ -222,7 +195,7 @@ public class THBaseService { * * @param trowMutations mutations to apply */ - public void mutateRow(ByteBuffer table, TRowMutations trowMutations) throws TIOError, org.apache.thrift.TException; + public void mutateRow(java.nio.ByteBuffer table, TRowMutations trowMutations) throws TIOError, org.apache.thrift.TException; /** * Get results for the provided TScan object. @@ -236,7 +209,7 @@ public class THBaseService { * * @param numRows number of rows to return */ - public List getScannerResults(ByteBuffer table, TScan tscan, int numRows) throws TIOError, org.apache.thrift.TException; + public java.util.List getScannerResults(java.nio.ByteBuffer table, TScan tscan, int numRows) throws TIOError, org.apache.thrift.TException; /** * Given a table and a row get the location of the region that @@ -249,7 +222,7 @@ public class THBaseService { * @param row * @param reload */ - public THRegionLocation getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload) throws TIOError, org.apache.thrift.TException; + public THRegionLocation getRegionLocation(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload) throws TIOError, org.apache.thrift.TException; /** * Get all of the region locations for a given table. @@ -257,7 +230,7 @@ public class THBaseService { * * @param table */ - public List getAllRegionLocations(ByteBuffer table) throws TIOError, org.apache.thrift.TException; + public java.util.List getAllRegionLocations(java.nio.ByteBuffer table) throws TIOError, org.apache.thrift.TException; /** * Atomically checks if a row/family/qualifier value matches the expected @@ -280,51 +253,51 @@ public class THBaseService { * * @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 boolean checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.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(java.nio.ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void existsAll(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void existsAll(java.nio.ByteBuffer table, java.util.List tgets, 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(java.nio.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(java.nio.ByteBuffer table, java.util.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(java.nio.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(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.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(java.nio.ByteBuffer table, java.util.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(java.nio.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(java.nio.ByteBuffer table, java.util.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(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.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(java.nio.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(java.nio.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(java.nio.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(java.nio.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(java.nio.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(java.nio.ByteBuffer table, java.nio.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(java.nio.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; + public void checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -348,13 +321,13 @@ public class THBaseService { super(iprot, oprot); } - public boolean exists(ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException + public boolean exists(java.nio.ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException { send_exists(table, tget); return recv_exists(); } - public void send_exists(ByteBuffer table, TGet tget) throws org.apache.thrift.TException + public void send_exists(java.nio.ByteBuffer table, TGet tget) throws org.apache.thrift.TException { exists_args args = new exists_args(); args.setTable(table); @@ -375,13 +348,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "exists failed: unknown result"); } - public List existsAll(ByteBuffer table, List tgets) throws TIOError, org.apache.thrift.TException + public java.util.List existsAll(java.nio.ByteBuffer table, java.util.List tgets) throws TIOError, org.apache.thrift.TException { send_existsAll(table, tgets); return recv_existsAll(); } - public void send_existsAll(ByteBuffer table, List tgets) throws org.apache.thrift.TException + public void send_existsAll(java.nio.ByteBuffer table, java.util.List tgets) throws org.apache.thrift.TException { existsAll_args args = new existsAll_args(); args.setTable(table); @@ -389,7 +362,7 @@ public class THBaseService { sendBase("existsAll", args); } - public List recv_existsAll() throws TIOError, org.apache.thrift.TException + public java.util.List recv_existsAll() throws TIOError, org.apache.thrift.TException { existsAll_result result = new existsAll_result(); receiveBase(result, "existsAll"); @@ -402,13 +375,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "existsAll failed: unknown result"); } - public TResult get(ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException + public TResult get(java.nio.ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException { send_get(table, tget); return recv_get(); } - public void send_get(ByteBuffer table, TGet tget) throws org.apache.thrift.TException + public void send_get(java.nio.ByteBuffer table, TGet tget) throws org.apache.thrift.TException { get_args args = new get_args(); args.setTable(table); @@ -429,13 +402,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get failed: unknown result"); } - public List getMultiple(ByteBuffer table, List tgets) throws TIOError, org.apache.thrift.TException + public java.util.List getMultiple(java.nio.ByteBuffer table, java.util.List tgets) throws TIOError, org.apache.thrift.TException { send_getMultiple(table, tgets); return recv_getMultiple(); } - public void send_getMultiple(ByteBuffer table, List tgets) throws org.apache.thrift.TException + public void send_getMultiple(java.nio.ByteBuffer table, java.util.List tgets) throws org.apache.thrift.TException { getMultiple_args args = new getMultiple_args(); args.setTable(table); @@ -443,7 +416,7 @@ public class THBaseService { sendBase("getMultiple", args); } - public List recv_getMultiple() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getMultiple() throws TIOError, org.apache.thrift.TException { getMultiple_result result = new getMultiple_result(); receiveBase(result, "getMultiple"); @@ -456,13 +429,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMultiple failed: unknown result"); } - public void put(ByteBuffer table, TPut tput) throws TIOError, org.apache.thrift.TException + public void put(java.nio.ByteBuffer table, TPut tput) throws TIOError, org.apache.thrift.TException { send_put(table, tput); recv_put(); } - public void send_put(ByteBuffer table, TPut tput) throws org.apache.thrift.TException + public void send_put(java.nio.ByteBuffer table, TPut tput) throws org.apache.thrift.TException { put_args args = new put_args(); args.setTable(table); @@ -480,13 +453,13 @@ public class THBaseService { return; } - public boolean checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput) throws TIOError, org.apache.thrift.TException + public boolean checkAndPut(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TPut tput) throws TIOError, org.apache.thrift.TException { send_checkAndPut(table, row, family, qualifier, value, tput); return recv_checkAndPut(); } - public void send_checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput) throws org.apache.thrift.TException + public void send_checkAndPut(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TPut tput) throws org.apache.thrift.TException { checkAndPut_args args = new checkAndPut_args(); args.setTable(table); @@ -511,13 +484,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkAndPut failed: unknown result"); } - public void putMultiple(ByteBuffer table, List tputs) throws TIOError, org.apache.thrift.TException + public void putMultiple(java.nio.ByteBuffer table, java.util.List tputs) throws TIOError, org.apache.thrift.TException { send_putMultiple(table, tputs); recv_putMultiple(); } - public void send_putMultiple(ByteBuffer table, List tputs) throws org.apache.thrift.TException + public void send_putMultiple(java.nio.ByteBuffer table, java.util.List tputs) throws org.apache.thrift.TException { putMultiple_args args = new putMultiple_args(); args.setTable(table); @@ -535,13 +508,13 @@ public class THBaseService { return; } - public void deleteSingle(ByteBuffer table, TDelete tdelete) throws TIOError, org.apache.thrift.TException + public void deleteSingle(java.nio.ByteBuffer table, TDelete tdelete) throws TIOError, org.apache.thrift.TException { send_deleteSingle(table, tdelete); recv_deleteSingle(); } - public void send_deleteSingle(ByteBuffer table, TDelete tdelete) throws org.apache.thrift.TException + public void send_deleteSingle(java.nio.ByteBuffer table, TDelete tdelete) throws org.apache.thrift.TException { deleteSingle_args args = new deleteSingle_args(); args.setTable(table); @@ -559,13 +532,13 @@ public class THBaseService { return; } - public List deleteMultiple(ByteBuffer table, List tdeletes) throws TIOError, org.apache.thrift.TException + public java.util.List deleteMultiple(java.nio.ByteBuffer table, java.util.List tdeletes) throws TIOError, org.apache.thrift.TException { send_deleteMultiple(table, tdeletes); return recv_deleteMultiple(); } - public void send_deleteMultiple(ByteBuffer table, List tdeletes) throws org.apache.thrift.TException + public void send_deleteMultiple(java.nio.ByteBuffer table, java.util.List tdeletes) throws org.apache.thrift.TException { deleteMultiple_args args = new deleteMultiple_args(); args.setTable(table); @@ -573,7 +546,7 @@ public class THBaseService { sendBase("deleteMultiple", args); } - public List recv_deleteMultiple() throws TIOError, org.apache.thrift.TException + public java.util.List recv_deleteMultiple() throws TIOError, org.apache.thrift.TException { deleteMultiple_result result = new deleteMultiple_result(); receiveBase(result, "deleteMultiple"); @@ -586,13 +559,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteMultiple failed: unknown result"); } - public boolean checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete) throws TIOError, org.apache.thrift.TException + public boolean checkAndDelete(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TDelete tdelete) throws TIOError, org.apache.thrift.TException { send_checkAndDelete(table, row, family, qualifier, value, tdelete); return recv_checkAndDelete(); } - public void send_checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete) throws org.apache.thrift.TException + public void send_checkAndDelete(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TDelete tdelete) throws org.apache.thrift.TException { checkAndDelete_args args = new checkAndDelete_args(); args.setTable(table); @@ -617,13 +590,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkAndDelete failed: unknown result"); } - public TResult increment(ByteBuffer table, TIncrement tincrement) throws TIOError, org.apache.thrift.TException + public TResult increment(java.nio.ByteBuffer table, TIncrement tincrement) throws TIOError, org.apache.thrift.TException { send_increment(table, tincrement); return recv_increment(); } - public void send_increment(ByteBuffer table, TIncrement tincrement) throws org.apache.thrift.TException + public void send_increment(java.nio.ByteBuffer table, TIncrement tincrement) throws org.apache.thrift.TException { increment_args args = new increment_args(); args.setTable(table); @@ -644,13 +617,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "increment failed: unknown result"); } - public TResult append(ByteBuffer table, TAppend tappend) throws TIOError, org.apache.thrift.TException + public TResult append(java.nio.ByteBuffer table, TAppend tappend) throws TIOError, org.apache.thrift.TException { send_append(table, tappend); return recv_append(); } - public void send_append(ByteBuffer table, TAppend tappend) throws org.apache.thrift.TException + public void send_append(java.nio.ByteBuffer table, TAppend tappend) throws org.apache.thrift.TException { append_args args = new append_args(); args.setTable(table); @@ -671,13 +644,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "append failed: unknown result"); } - public int openScanner(ByteBuffer table, TScan tscan) throws TIOError, org.apache.thrift.TException + public int openScanner(java.nio.ByteBuffer table, TScan tscan) throws TIOError, org.apache.thrift.TException { send_openScanner(table, tscan); return recv_openScanner(); } - public void send_openScanner(ByteBuffer table, TScan tscan) throws org.apache.thrift.TException + public void send_openScanner(java.nio.ByteBuffer table, TScan tscan) throws org.apache.thrift.TException { openScanner_args args = new openScanner_args(); args.setTable(table); @@ -698,7 +671,7 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "openScanner failed: unknown result"); } - public List getScannerRows(int scannerId, int numRows) throws TIOError, TIllegalArgument, org.apache.thrift.TException + public java.util.List getScannerRows(int scannerId, int numRows) throws TIOError, TIllegalArgument, org.apache.thrift.TException { send_getScannerRows(scannerId, numRows); return recv_getScannerRows(); @@ -712,7 +685,7 @@ public class THBaseService { sendBase("getScannerRows", args); } - public List recv_getScannerRows() throws TIOError, TIllegalArgument, org.apache.thrift.TException + public java.util.List recv_getScannerRows() throws TIOError, TIllegalArgument, org.apache.thrift.TException { getScannerRows_result result = new getScannerRows_result(); receiveBase(result, "getScannerRows"); @@ -754,13 +727,13 @@ public class THBaseService { return; } - public void mutateRow(ByteBuffer table, TRowMutations trowMutations) throws TIOError, org.apache.thrift.TException + public void mutateRow(java.nio.ByteBuffer table, TRowMutations trowMutations) throws TIOError, org.apache.thrift.TException { send_mutateRow(table, trowMutations); recv_mutateRow(); } - public void send_mutateRow(ByteBuffer table, TRowMutations trowMutations) throws org.apache.thrift.TException + public void send_mutateRow(java.nio.ByteBuffer table, TRowMutations trowMutations) throws org.apache.thrift.TException { mutateRow_args args = new mutateRow_args(); args.setTable(table); @@ -778,13 +751,13 @@ public class THBaseService { return; } - public List getScannerResults(ByteBuffer table, TScan tscan, int numRows) throws TIOError, org.apache.thrift.TException + public java.util.List getScannerResults(java.nio.ByteBuffer table, TScan tscan, int numRows) throws TIOError, org.apache.thrift.TException { send_getScannerResults(table, tscan, numRows); return recv_getScannerResults(); } - public void send_getScannerResults(ByteBuffer table, TScan tscan, int numRows) throws org.apache.thrift.TException + public void send_getScannerResults(java.nio.ByteBuffer table, TScan tscan, int numRows) throws org.apache.thrift.TException { getScannerResults_args args = new getScannerResults_args(); args.setTable(table); @@ -793,7 +766,7 @@ public class THBaseService { sendBase("getScannerResults", args); } - public List recv_getScannerResults() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getScannerResults() throws TIOError, org.apache.thrift.TException { getScannerResults_result result = new getScannerResults_result(); receiveBase(result, "getScannerResults"); @@ -806,13 +779,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScannerResults failed: unknown result"); } - public THRegionLocation getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload) throws TIOError, org.apache.thrift.TException + public THRegionLocation getRegionLocation(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload) throws TIOError, org.apache.thrift.TException { send_getRegionLocation(table, row, reload); return recv_getRegionLocation(); } - public void send_getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload) throws org.apache.thrift.TException + public void send_getRegionLocation(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload) throws org.apache.thrift.TException { getRegionLocation_args args = new getRegionLocation_args(); args.setTable(table); @@ -834,20 +807,20 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRegionLocation failed: unknown result"); } - public List getAllRegionLocations(ByteBuffer table) throws TIOError, org.apache.thrift.TException + public java.util.List getAllRegionLocations(java.nio.ByteBuffer table) throws TIOError, org.apache.thrift.TException { send_getAllRegionLocations(table); return recv_getAllRegionLocations(); } - public void send_getAllRegionLocations(ByteBuffer table) throws org.apache.thrift.TException + public void send_getAllRegionLocations(java.nio.ByteBuffer table) throws org.apache.thrift.TException { getAllRegionLocations_args args = new getAllRegionLocations_args(); args.setTable(table); sendBase("getAllRegionLocations", args); } - public List recv_getAllRegionLocations() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getAllRegionLocations() throws TIOError, org.apache.thrift.TException { getAllRegionLocations_result result = new getAllRegionLocations_result(); receiveBase(result, "getAllRegionLocations"); @@ -860,13 +833,13 @@ 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 + public boolean checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.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 + public void send_checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.ByteBuffer value, TRowMutations rowMutations) throws org.apache.thrift.TException { checkAndMutate_args args = new checkAndMutate_args(); args.setTable(table); @@ -910,17 +883,17 @@ 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(java.nio.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; ___manager.call(method_call); } - public static class exists_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class exists_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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(java.nio.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; @@ -935,9 +908,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public boolean getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.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!"); + throw new java.lang.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); @@ -945,17 +918,17 @@ public class THBaseService { } } - public void existsAll(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void existsAll(java.nio.ByteBuffer table, java.util.List tgets, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); existsAll_call method_call = new existsAll_call(table, tgets, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class existsAll_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private List tgets; - public existsAll_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 static class existsAll_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; + private java.util.List tgets; + public existsAll_call(java.nio.ByteBuffer table, java.util.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; @@ -970,9 +943,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -980,17 +953,17 @@ public class THBaseService { } } - public void get(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get(java.nio.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; ___manager.call(method_call); } - public static class get_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class get_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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(java.nio.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; @@ -1007,7 +980,7 @@ public class THBaseService { public TResult getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1015,17 +988,17 @@ public class THBaseService { } } - public void getMultiple(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getMultiple(java.nio.ByteBuffer table, java.util.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; ___manager.call(method_call); } - 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 static class getMultiple_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; + private java.util.List tgets; + public getMultiple_call(java.nio.ByteBuffer table, java.util.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; @@ -1040,9 +1013,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1050,17 +1023,17 @@ public class THBaseService { } } - public void put(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void put(java.nio.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; ___manager.call(method_call); } - public static class put_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class put_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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(java.nio.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; @@ -1075,31 +1048,31 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, org.apache.thrift.TException { + public Void getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_put(); + return null; } } - 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(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.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; ___manager.call(method_call); } - public static class checkAndPut_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private ByteBuffer row; - private ByteBuffer family; - private ByteBuffer qualifier; - private ByteBuffer value; + public static class checkAndPut_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer family; + private java.nio.ByteBuffer qualifier; + private java.nio.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(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.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; @@ -1122,9 +1095,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public boolean getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.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!"); + throw new java.lang.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); @@ -1132,17 +1105,17 @@ public class THBaseService { } } - public void putMultiple(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void putMultiple(java.nio.ByteBuffer table, java.util.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; ___manager.call(method_call); } - 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 static class putMultiple_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.util.List tputs; + public putMultiple_call(java.nio.ByteBuffer table, java.util.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; @@ -1157,27 +1130,27 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, org.apache.thrift.TException { + public Void getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_putMultiple(); + return null; } } - public void deleteSingle(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteSingle(java.nio.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; ___manager.call(method_call); } - public static class deleteSingle_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class deleteSingle_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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(java.nio.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; @@ -1192,27 +1165,27 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, org.apache.thrift.TException { + public Void getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteSingle(); + return null; } } - public void deleteMultiple(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteMultiple(java.nio.ByteBuffer table, java.util.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; ___manager.call(method_call); } - 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 static class deleteMultiple_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; + private java.util.List tdeletes; + public deleteMultiple_call(java.nio.ByteBuffer table, java.util.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; @@ -1227,9 +1200,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1237,21 +1210,21 @@ 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(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.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; ___manager.call(method_call); } - public static class checkAndDelete_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private ByteBuffer row; - private ByteBuffer family; - private ByteBuffer qualifier; - private ByteBuffer value; + public static class checkAndDelete_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer family; + private java.nio.ByteBuffer qualifier; + private java.nio.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(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.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; @@ -1274,9 +1247,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public boolean getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.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!"); + throw new java.lang.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); @@ -1284,17 +1257,17 @@ public class THBaseService { } } - public void increment(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void increment(java.nio.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; ___manager.call(method_call); } - public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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(java.nio.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; @@ -1311,7 +1284,7 @@ public class THBaseService { public TResult getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1319,17 +1292,17 @@ public class THBaseService { } } - public void append(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append(java.nio.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; ___manager.call(method_call); } - public static class append_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class append_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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(java.nio.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; @@ -1346,7 +1319,7 @@ public class THBaseService { public TResult getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1354,17 +1327,17 @@ public class THBaseService { } } - public void openScanner(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void openScanner(java.nio.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; ___manager.call(method_call); } - public static class openScanner_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class openScanner_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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(java.nio.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; @@ -1379,9 +1352,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public int getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.Integer getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1389,17 +1362,17 @@ 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; ___manager.call(method_call); } - public static class getScannerRows_call extends org.apache.thrift.async.TAsyncMethodCall { + 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; @@ -1414,9 +1387,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, TIllegalArgument, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, TIllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1424,16 +1397,16 @@ 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; ___manager.call(method_call); } - public static class closeScanner_call extends org.apache.thrift.async.TAsyncMethodCall { + 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; } @@ -1446,27 +1419,27 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, TIllegalArgument, org.apache.thrift.TException { + public Void getResult() throws TIOError, TIllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_closeScanner(); + return null; } } - public void mutateRow(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void mutateRow(java.nio.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; ___manager.call(method_call); } - public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.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(java.nio.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; @@ -1481,28 +1454,28 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, org.apache.thrift.TException { + public Void getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_mutateRow(); + return null; } } - public void getScannerResults(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getScannerResults(java.nio.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; ___manager.call(method_call); } - public static class getScannerResults_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class getScannerResults_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.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(java.nio.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; @@ -1519,9 +1492,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1529,18 +1502,18 @@ 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(java.nio.ByteBuffer table, java.nio.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; ___manager.call(method_call); } - public static class getRegionLocation_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private ByteBuffer row; + public static class getRegionLocation_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.nio.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(java.nio.ByteBuffer table, java.nio.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; @@ -1559,7 +1532,7 @@ public class THBaseService { public THRegionLocation getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1567,16 +1540,16 @@ public class THBaseService { } } - public void getAllRegionLocations(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllRegionLocations(java.nio.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; ___manager.call(method_call); } - 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 static class getAllRegionLocations_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; + public getAllRegionLocations_call(java.nio.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; } @@ -1589,9 +1562,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1599,22 +1572,22 @@ 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 { + public void checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.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; + public static class checkAndMutate_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer family; + private java.nio.ByteBuffer qualifier; private TCompareOp compareOp; - private ByteBuffer value; + private java.nio.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 { + public checkAndMutate_call(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.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; @@ -1639,9 +1612,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public boolean getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.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!"); + throw new java.lang.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); @@ -1652,16 +1625,16 @@ public class THBaseService { } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("exists", new exists()); processMap.put("existsAll", new existsAll()); processMap.put("get", new get()); @@ -1698,6 +1671,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public exists_result getResult(I iface, exists_args args) throws org.apache.thrift.TException { exists_result result = new exists_result(); try { @@ -1723,6 +1701,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public existsAll_result getResult(I iface, existsAll_args args) throws org.apache.thrift.TException { existsAll_result result = new existsAll_result(); try { @@ -1733,6 +1716,7 @@ public class THBaseService { return result; } } + public static class get extends org.apache.thrift.ProcessFunction { public get() { super("get"); @@ -1746,6 +1730,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public get_result getResult(I iface, get_args args) throws org.apache.thrift.TException { get_result result = new get_result(); try { @@ -1770,6 +1759,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getMultiple_result getResult(I iface, getMultiple_args args) throws org.apache.thrift.TException { getMultiple_result result = new getMultiple_result(); try { @@ -1794,6 +1788,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public put_result getResult(I iface, put_args args) throws org.apache.thrift.TException { put_result result = new put_result(); try { @@ -1818,6 +1817,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public checkAndPut_result getResult(I iface, checkAndPut_args args) throws org.apache.thrift.TException { checkAndPut_result result = new checkAndPut_result(); try { @@ -1843,6 +1847,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public putMultiple_result getResult(I iface, putMultiple_args args) throws org.apache.thrift.TException { putMultiple_result result = new putMultiple_result(); try { @@ -1867,6 +1876,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteSingle_result getResult(I iface, deleteSingle_args args) throws org.apache.thrift.TException { deleteSingle_result result = new deleteSingle_result(); try { @@ -1891,6 +1905,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteMultiple_result getResult(I iface, deleteMultiple_args args) throws org.apache.thrift.TException { deleteMultiple_result result = new deleteMultiple_result(); try { @@ -1915,6 +1934,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public checkAndDelete_result getResult(I iface, checkAndDelete_args args) throws org.apache.thrift.TException { checkAndDelete_result result = new checkAndDelete_result(); try { @@ -1940,6 +1964,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public increment_result getResult(I iface, increment_args args) throws org.apache.thrift.TException { increment_result result = new increment_result(); try { @@ -1964,6 +1993,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public append_result getResult(I iface, append_args args) throws org.apache.thrift.TException { append_result result = new append_result(); try { @@ -1988,6 +2022,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public openScanner_result getResult(I iface, openScanner_args args) throws org.apache.thrift.TException { openScanner_result result = new openScanner_result(); try { @@ -2013,6 +2052,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getScannerRows_result getResult(I iface, getScannerRows_args args) throws org.apache.thrift.TException { getScannerRows_result result = new getScannerRows_result(); try { @@ -2039,6 +2083,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public closeScanner_result getResult(I iface, closeScanner_args args) throws org.apache.thrift.TException { closeScanner_result result = new closeScanner_result(); try { @@ -2065,6 +2114,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public mutateRow_result getResult(I iface, mutateRow_args args) throws org.apache.thrift.TException { mutateRow_result result = new mutateRow_result(); try { @@ -2089,6 +2143,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getScannerResults_result getResult(I iface, getScannerResults_args args) throws org.apache.thrift.TException { getScannerResults_result result = new getScannerResults_result(); try { @@ -2113,6 +2172,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRegionLocation_result getResult(I iface, getRegionLocation_args args) throws org.apache.thrift.TException { getRegionLocation_result result = new getRegionLocation_result(); try { @@ -2137,6 +2201,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getAllRegionLocations_result getResult(I iface, getAllRegionLocations_args args) throws org.apache.thrift.TException { getAllRegionLocations_result result = new getAllRegionLocations_result(); try { @@ -2161,6 +2230,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public checkAndMutate_result getResult(I iface, checkAndMutate_args args) throws org.apache.thrift.TException { checkAndMutate_result result = new checkAndMutate_result(); try { @@ -2176,17 +2250,18 @@ public class THBaseService { } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("exists", new exists()); + processMap.put("existsAll", new existsAll()); processMap.put("get", new get()); processMap.put("getMultiple", new getMultiple()); processMap.put("put", new put()); @@ -2208,7 +2283,7 @@ public class THBaseService { return processMap; } - public static class exists extends org.apache.thrift.AsyncProcessFunction { + public static class exists extends org.apache.thrift.AsyncProcessFunction { public exists() { super("exists"); } @@ -2217,42 +2292,50 @@ public class THBaseService { return new exists_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; exists_result result = new exists_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2261,11 +2344,76 @@ public class THBaseService { return false; } - public void start(I iface, exists_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, exists_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.exists(args.table, args.tget,resultHandler); } } + public static class existsAll extends org.apache.thrift.AsyncProcessFunction> { + public existsAll() { + super("existsAll"); + } + + public existsAll_args getEmptyArgsInstance() { + return new existsAll_args(); + } + + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { + existsAll_result result = new existsAll_result(); + result.success = o; + try { + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); + } + } + public void onError(java.lang.Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TSerializable msg; + existsAll_result result = new existsAll_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); + } + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, existsAll_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { + iface.existsAll(args.table, args.tgets,resultHandler); + } + } + public static class get extends org.apache.thrift.AsyncProcessFunction { public get() { super("get"); @@ -2275,41 +2423,49 @@ public class THBaseService { return new get_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; get_result result = new get_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2318,12 +2474,12 @@ public class THBaseService { return false; } - public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.get(args.table, args.tget,resultHandler); } } - public static class getMultiple extends org.apache.thrift.AsyncProcessFunction> { + public static class getMultiple extends org.apache.thrift.AsyncProcessFunction> { public getMultiple() { super("getMultiple"); } @@ -2332,41 +2488,49 @@ public class THBaseService { return new getMultiple_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getMultiple_result result = new getMultiple_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2375,7 +2539,7 @@ public class THBaseService { return false; } - public void start(I iface, getMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getMultiple(args.table, args.tgets,resultHandler); } } @@ -2389,40 +2553,48 @@ public class THBaseService { return new put_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; put_result result = new put_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2431,12 +2603,12 @@ public class THBaseService { return false; } - public void start(I iface, put_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, put_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.put(args.table, args.tput,resultHandler); } } - public static class checkAndPut extends org.apache.thrift.AsyncProcessFunction { + public static class checkAndPut extends org.apache.thrift.AsyncProcessFunction { public checkAndPut() { super("checkAndPut"); } @@ -2445,42 +2617,50 @@ public class THBaseService { return new checkAndPut_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; checkAndPut_result result = new checkAndPut_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2489,7 +2669,7 @@ public class THBaseService { return false; } - public void start(I iface, checkAndPut_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, checkAndPut_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.checkAndPut(args.table, args.row, args.family, args.qualifier, args.value, args.tput,resultHandler); } } @@ -2503,40 +2683,48 @@ public class THBaseService { return new putMultiple_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; putMultiple_result result = new putMultiple_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2545,7 +2733,7 @@ public class THBaseService { return false; } - public void start(I iface, putMultiple_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, putMultiple_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.putMultiple(args.table, args.tputs,resultHandler); } } @@ -2559,40 +2747,48 @@ public class THBaseService { return new deleteSingle_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteSingle_result result = new deleteSingle_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2601,12 +2797,12 @@ public class THBaseService { return false; } - public void start(I iface, deleteSingle_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteSingle_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteSingle(args.table, args.tdelete,resultHandler); } } - public static class deleteMultiple extends org.apache.thrift.AsyncProcessFunction> { + public static class deleteMultiple extends org.apache.thrift.AsyncProcessFunction> { public deleteMultiple() { super("deleteMultiple"); } @@ -2615,41 +2811,49 @@ public class THBaseService { return new deleteMultiple_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteMultiple_result result = new deleteMultiple_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2658,12 +2862,12 @@ public class THBaseService { return false; } - public void start(I iface, deleteMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, deleteMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.deleteMultiple(args.table, args.tdeletes,resultHandler); } } - public static class checkAndDelete extends org.apache.thrift.AsyncProcessFunction { + public static class checkAndDelete extends org.apache.thrift.AsyncProcessFunction { public checkAndDelete() { super("checkAndDelete"); } @@ -2672,42 +2876,50 @@ public class THBaseService { return new checkAndDelete_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; checkAndDelete_result result = new checkAndDelete_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2716,7 +2928,7 @@ public class THBaseService { return false; } - public void start(I iface, checkAndDelete_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, checkAndDelete_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.checkAndDelete(args.table, args.row, args.family, args.qualifier, args.value, args.tdelete,resultHandler); } } @@ -2730,41 +2942,49 @@ public class THBaseService { return new increment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; increment_result result = new increment_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2773,7 +2993,7 @@ public class THBaseService { return false; } - public void start(I iface, increment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, increment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.increment(args.table, args.tincrement,resultHandler); } } @@ -2787,41 +3007,49 @@ public class THBaseService { return new append_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; append_result result = new append_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2830,12 +3058,12 @@ public class THBaseService { return false; } - public void start(I iface, append_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, append_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.append(args.table, args.tappend,resultHandler); } } - public static class openScanner extends org.apache.thrift.AsyncProcessFunction { + public static class openScanner extends org.apache.thrift.AsyncProcessFunction { public openScanner() { super("openScanner"); } @@ -2844,42 +3072,50 @@ public class THBaseService { return new openScanner_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; openScanner_result result = new openScanner_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2888,12 +3124,12 @@ public class THBaseService { return false; } - public void start(I iface, openScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, openScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.openScanner(args.table, args.tscan,resultHandler); } } - public static class getScannerRows extends org.apache.thrift.AsyncProcessFunction> { + public static class getScannerRows extends org.apache.thrift.AsyncProcessFunction> { public getScannerRows() { super("getScannerRows"); } @@ -2902,46 +3138,53 @@ public class THBaseService { return new getScannerRows_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof TIllegalArgument) { + result.ia = (TIllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2950,7 +3193,7 @@ public class THBaseService { return false; } - public void start(I iface, getScannerRows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getScannerRows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getScannerRows(args.scannerId, args.numRows,resultHandler); } } @@ -2964,45 +3207,52 @@ public class THBaseService { return new closeScanner_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof TIllegalArgument) { + result.ia = (TIllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3011,7 +3261,7 @@ public class THBaseService { return false; } - public void start(I iface, closeScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, closeScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.closeScanner(args.scannerId,resultHandler); } } @@ -3025,40 +3275,48 @@ public class THBaseService { return new mutateRow_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; mutateRow_result result = new mutateRow_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3067,12 +3325,12 @@ public class THBaseService { return false; } - public void start(I iface, mutateRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, mutateRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.mutateRow(args.table, args.trowMutations,resultHandler); } } - public static class getScannerResults extends org.apache.thrift.AsyncProcessFunction> { + public static class getScannerResults extends org.apache.thrift.AsyncProcessFunction> { public getScannerResults() { super("getScannerResults"); } @@ -3081,41 +3339,49 @@ public class THBaseService { return new getScannerResults_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getScannerResults_result result = new getScannerResults_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3124,7 +3390,7 @@ public class THBaseService { return false; } - public void start(I iface, getScannerResults_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getScannerResults_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getScannerResults(args.table, args.tscan, args.numRows,resultHandler); } } @@ -3138,41 +3404,49 @@ public class THBaseService { return new getRegionLocation_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRegionLocation_result result = new getRegionLocation_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3181,12 +3455,12 @@ public class THBaseService { return false; } - public void start(I iface, getRegionLocation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getRegionLocation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getRegionLocation(args.table, args.row, args.reload,resultHandler); } } - public static class getAllRegionLocations extends org.apache.thrift.AsyncProcessFunction> { + public static class getAllRegionLocations extends org.apache.thrift.AsyncProcessFunction> { public getAllRegionLocations() { super("getAllRegionLocations"); } @@ -3195,41 +3469,49 @@ public class THBaseService { return new getAllRegionLocations_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getAllRegionLocations_result result = new getAllRegionLocations_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3238,12 +3520,12 @@ public class THBaseService { return false; } - public void start(I iface, getAllRegionLocations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getAllRegionLocations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getAllRegionLocations(args.table,resultHandler); } } - public static class checkAndMutate extends org.apache.thrift.AsyncProcessFunction { + public static class checkAndMutate extends org.apache.thrift.AsyncProcessFunction { public checkAndMutate() { super("checkAndMutate"); } @@ -3252,42 +3534,50 @@ public class THBaseService { return new checkAndMutate_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; checkAndMutate_result result = new checkAndMutate_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3296,7 +3586,7 @@ public class THBaseService { return false; } - public void start(I iface, checkAndMutate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, checkAndMutate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.checkAndMutate(args.table, args.row, args.family, args.qualifier, args.compareOp, args.value, args.rowMutations,resultHandler); } } @@ -3309,20 +3599,17 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new exists_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new exists_argsTupleSchemeFactory(); /** * the table to check on */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TGet to check for */ - public TGet tget; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -3335,10 +3622,10 @@ public class THBaseService { */ TGET((short)2, "tget"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -3346,6 +3633,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -3363,21 +3651,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -3386,20 +3675,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_args.class, metaDataMap); } @@ -3407,7 +3696,7 @@ public class THBaseService { } public exists_args( - ByteBuffer table, + java.nio.ByteBuffer table, TGet tget) { this(); @@ -3445,7 +3734,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -3453,11 +3742,11 @@ public class THBaseService { * the table to check on */ public exists_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public exists_args setTable(ByteBuffer table) { + public exists_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -3480,6 +3769,7 @@ public class THBaseService { /** * the TGet to check for */ + @org.apache.thrift.annotation.Nullable public TGet getTget() { return this.tget; } @@ -3487,7 +3777,7 @@ public class THBaseService { /** * the TGet to check for */ - public exists_args setTget(TGet tget) { + public exists_args setTget(@org.apache.thrift.annotation.Nullable TGet tget) { this.tget = tget; return this; } @@ -3507,13 +3797,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -3528,7 +3822,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -3537,13 +3832,13 @@ public class THBaseService { return getTget(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -3552,11 +3847,11 @@ public class THBaseService { case TGET: return isSetTget(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof exists_args) @@ -3567,6 +3862,8 @@ public class THBaseService { public boolean equals(exists_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -3591,19 +3888,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tget = true && (isSetTget()); - list.add(present_tget); - if (present_tget) - list.add(tget); + hashCode = hashCode * 8191 + ((isSetTget()) ? 131071 : 524287); + if (isSetTget()) + hashCode = hashCode * 8191 + tget.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -3614,7 +3909,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -3624,7 +3919,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); + lastComparison = java.lang.Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); if (lastComparison != 0) { return lastComparison; } @@ -3637,21 +3932,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("exists_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("exists_args("); boolean first = true; sb.append("table:"); @@ -3695,7 +3991,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -3703,13 +3999,13 @@ public class THBaseService { } } - private static class exists_argsStandardSchemeFactory implements SchemeFactory { + private static class exists_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public exists_argsStandardScheme getScheme() { return new exists_argsStandardScheme(); } } - private static class exists_argsStandardScheme extends StandardScheme { + private static class exists_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, exists_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -3769,24 +4065,24 @@ public class THBaseService { } - private static class exists_argsTupleSchemeFactory implements SchemeFactory { + private static class exists_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public exists_argsTupleScheme getScheme() { return new exists_argsTupleScheme(); } } - private static class exists_argsTupleScheme extends TupleScheme { + private static class exists_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tget.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tget = new TGet(); @@ -3795,6 +4091,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class exists_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -3803,24 +4102,21 @@ public class THBaseService { 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 exists_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exists_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new exists_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new exists_resultTupleSchemeFactory(); public boolean success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -3828,6 +4124,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -3845,21 +4142,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -3868,7 +4166,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -3876,14 +4174,14 @@ 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_result.class, metaDataMap); } @@ -3933,23 +4231,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public exists_result setIo(TIOError io) { + public exists_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -3969,13 +4268,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -3990,7 +4289,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -3999,13 +4299,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -4014,11 +4314,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof exists_result) @@ -4029,6 +4329,8 @@ public class THBaseService { public boolean equals(exists_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -4053,19 +4355,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -4076,7 +4374,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -4086,7 +4384,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -4099,21 +4397,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("exists_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("exists_result("); boolean first = true; sb.append("success:"); @@ -4144,7 +4443,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -4154,13 +4453,13 @@ public class THBaseService { } } - private static class exists_resultStandardSchemeFactory implements SchemeFactory { + private static class exists_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public exists_resultStandardScheme getScheme() { return new exists_resultStandardScheme(); } } - private static class exists_resultStandardScheme extends StandardScheme { + private static class exists_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, exists_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -4220,18 +4519,18 @@ public class THBaseService { } - private static class exists_resultTupleSchemeFactory implements SchemeFactory { + private static class exists_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public exists_resultTupleScheme getScheme() { return new exists_resultTupleScheme(); } } - private static class exists_resultTupleScheme extends TupleScheme { + private static class exists_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -4249,8 +4548,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -4263,47 +4562,44 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } - public static class existsAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class existsAll_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("existsAll_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 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>(); + 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); - static { - schemes.put(StandardScheme.class, new existsAll_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new existsAll_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new existsAll_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new existsAll_argsTupleSchemeFactory(); /** * the table to check on */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * a list of TGets to check for */ - public List tgets; // required + public @org.apache.thrift.annotation.Nullable java.util.List tgets; // required - /** - * The set of fields this struct contains, along with convenience methods for finding and manipulating them. - */ + /** 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"), + TABLE((short)1, "table"), /** * a list of TGets to check for */ - TGETS((short) 2, "tgets"); + TGETS((short)2, "tgets"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -4311,8 +4607,9 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { - switch (fieldId) { + switch(fieldId) { case 1: // TABLE return TABLE; case 2: // TGETS @@ -4328,21 +4625,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -4351,22 +4649,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - + public static final java.util.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)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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)))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(existsAll_args.class, metaDataMap); } @@ -4374,10 +4671,11 @@ public class THBaseService { } public existsAll_args( - ByteBuffer table, - List tgets) { + java.nio.ByteBuffer table, + java.util.List tgets) + { this(); - this.table = table; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); this.tgets = tgets; } @@ -4387,10 +4685,9 @@ public class THBaseService { public existsAll_args(existsAll_args other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); - ; } if (other.isSetTgets()) { - List __this__tgets = new ArrayList(); + java.util.List __this__tgets = new java.util.ArrayList(other.tgets.size()); for (TGet other_element : other.tgets) { __this__tgets.add(new TGet(other_element)); } @@ -4416,20 +4713,20 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { - return table; + public java.nio.ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** * the table to check on */ public existsAll_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer) null : ByteBuffer.wrap(table)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public existsAll_args setTable(ByteBuffer table) { - this.table = table; + public existsAll_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -4437,9 +4734,7 @@ public class THBaseService { this.table = null; } - /** - * Returns true if field table is set (has been assigned a value) and false otherwise - */ + /** Returns true if field table is set (has been assigned a value) and false otherwise */ public boolean isSetTable() { return this.table != null; } @@ -4454,13 +4749,14 @@ public class THBaseService { return (this.tgets == null) ? 0 : this.tgets.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.tgets.add(elem); } @@ -4468,14 +4764,15 @@ public class THBaseService { /** * a list of TGets to check for */ - public List getTgets() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTgets() { return this.tgets; } /** * a list of TGets to check for */ - public existsAll_args setTgets(List tgets) { + public existsAll_args setTgets(@org.apache.thrift.annotation.Nullable java.util.List tgets) { this.tgets = tgets; return this; } @@ -4484,9 +4781,7 @@ public class THBaseService { this.tgets = null; } - /** - * Returns true if field tgets is set (has been assigned a value) and false otherwise - */ + /** Returns true if field tgets is set (has been assigned a value) and false otherwise */ public boolean isSetTgets() { return this.tgets != null; } @@ -4497,68 +4792,73 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case TABLE: - if (value == null) { - unsetTable(); + case TABLE: + if (value == null) { + unsetTable(); + } else { + if (value instanceof byte[]) { + setTable((byte[])value); } else { - setTable((ByteBuffer) value); + setTable((java.nio.ByteBuffer)value); } - break; + } + break; - case TGETS: - if (value == null) { - unsetTgets(); - } else { - setTgets((List) value); - } - break; + case TGETS: + if (value == null) { + unsetTgets(); + } else { + setTgets((java.util.List)value); + } + break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case TABLE: - return getTable(); + case TABLE: + return getTable(); - case TGETS: - return getTgets(); + case TGETS: + return getTgets(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } - /** - * Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise - */ + /** 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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { - case TABLE: - return isSetTable(); - case TGETS: - return isSetTgets(); + case TABLE: + return isSetTable(); + case TGETS: + return isSetTgets(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof existsAll_args) - return this.equals((existsAll_args) that); + return this.equals((existsAll_args)that); return false; } public boolean equals(existsAll_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -4583,33 +4883,43 @@ public class THBaseService { @Override public int hashCode() { - return 0; + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); + + hashCode = hashCode * 8191 + ((isSetTgets()) ? 131071 : 524287); + if (isSetTgets()) + hashCode = hashCode * 8191 + tgets.hashCode(); + + return hashCode; } + @Override public int compareTo(existsAll_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - existsAll_args typedOther = (existsAll_args) other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = java.lang.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(isSetTgets()).compareTo(typedOther.isSetTgets()); + lastComparison = java.lang.Boolean.valueOf(isSetTgets()).compareTo(other.isSetTgets()); if (lastComparison != 0) { return lastComparison; } if (isSetTgets()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tgets, typedOther.tgets); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tgets, other.tgets); if (lastComparison != 0) { return lastComparison; } @@ -4617,21 +4927,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("existsAll_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("existsAll_args("); boolean first = true; sb.append("table:"); @@ -4672,7 +4983,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -4680,20 +4991,21 @@ public class THBaseService { } } - private static class existsAll_argsStandardSchemeFactory implements SchemeFactory { + private static class existsAll_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public existsAll_argsStandardScheme getScheme() { return new existsAll_argsStandardScheme(); } } - private static class existsAll_argsStandardScheme extends StandardScheme { + private static class existsAll_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, existsAll_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); - while (true) { + while (true) + { schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { @@ -4701,25 +5013,26 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.table = iprot.readBinary(); struct.setTableIsSet(true); - } else { + } 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); + org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); + struct.tgets = new java.util.ArrayList(_list142.size); + @org.apache.thrift.annotation.Nullable TGet _elem143; + for (int _i144 = 0; _i144 < _list142.size; ++_i144) + { + _elem143 = new TGet(); + _elem143.read(iprot); + struct.tgets.add(_elem143); } iprot.readListEnd(); } struct.setTgetsIsSet(true); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; @@ -4747,8 +5060,9 @@ public class THBaseService { 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); + for (TGet _iter145 : struct.tgets) + { + _iter145.write(oprot); } oprot.writeListEnd(); } @@ -4760,74 +5074,73 @@ public class THBaseService { } - private static class existsAll_argsTupleSchemeFactory implements SchemeFactory { + private static class existsAll_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public existsAll_argsTupleScheme getScheme() { return new existsAll_argsTupleScheme(); } } - private static class existsAll_argsTupleScheme extends TupleScheme { + private static class existsAll_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, existsAll_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); { oprot.writeI32(struct.tgets.size()); - for (TGet _iter136 : struct.tgets) { - _iter136.write(oprot); + for (TGet _iter146 : struct.tgets) + { + _iter146.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, existsAll_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.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); + org.apache.thrift.protocol.TList _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tgets = new java.util.ArrayList(_list147.size); + @org.apache.thrift.annotation.Nullable TGet _elem148; + for (int _i149 = 0; _i149 < _list147.size; ++_i149) + { + _elem148 = new TGet(); + _elem148.read(iprot); + struct.tgets.add(_elem148); } } struct.setTgetsIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } - public static class existsAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class existsAll_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("existsAll_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>(); + 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); - static { - schemes.put(StandardScheme.class, new existsAll_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new existsAll_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new existsAll_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new existsAll_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required - /** - * The set of fields this struct contains, along with convenience methods for finding and manipulating them. - */ + /** 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"); + SUCCESS((short)0, "success"), + IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -4835,8 +5148,9 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { - switch (fieldId) { + switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // IO @@ -4852,21 +5166,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -4875,22 +5190,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - + public static final java.util.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.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(existsAll_result.class, metaDataMap); } @@ -4898,8 +5212,9 @@ public class THBaseService { } public existsAll_result( - List success, - TIOError io) { + java.util.List success, + TIOError io) + { this(); this.success = success; this.io = io; @@ -4910,10 +5225,7 @@ public class THBaseService { */ public existsAll_result(existsAll_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (Boolean other_element : other.success) { - __this__success.add(other_element); - } + java.util.List __this__success = new java.util.ArrayList(other.success); this.success = __this__success; } if (other.isSetIo()) { @@ -4935,22 +5247,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(boolean elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public existsAll_result setSuccess(List success) { + public existsAll_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -4959,9 +5273,7 @@ public class THBaseService { this.success = null; } - /** - * Returns true if field success is set (has been assigned a value) and false otherwise - */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -4972,11 +5284,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public existsAll_result setIo(TIOError io) { + public existsAll_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -4985,9 +5298,7 @@ public class THBaseService { this.io = null; } - /** - * Returns true if field io is set (has been assigned a value) and false otherwise - */ + /** Returns true if field io is set (has been assigned a value) and false otherwise */ public boolean isSetIo() { return this.io != null; } @@ -4998,68 +5309,69 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List) value); - } - break; + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((java.util.List)value); + } + break; - case IO: - if (value == null) { - unsetIo(); - } else { - setIo((TIOError) value); - } - break; + case IO: + if (value == null) { + unsetIo(); + } else { + setIo((TIOError)value); + } + break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case SUCCESS: + return getSuccess(); - case IO: - return getIo(); + case IO: + return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } - /** - * Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise - */ + /** 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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { - case SUCCESS: - return isSetSuccess(); - case IO: - return isSetIo(); + case SUCCESS: + return isSetSuccess(); + case IO: + return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof existsAll_result) - return this.equals((existsAll_result) that); + return this.equals((existsAll_result)that); return false; } public boolean equals(existsAll_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -5084,33 +5396,43 @@ public class THBaseService { @Override public int hashCode() { - return 0; + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); + + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); + + return hashCode; } + @Override public int compareTo(existsAll_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - existsAll_result typedOther = (existsAll_result) other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = java.lang.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 = java.lang.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; } @@ -5118,21 +5440,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); - } + scheme(oprot).write(oprot, this); + } @Override - public String toString() { - StringBuilder sb = new StringBuilder("existsAll_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("existsAll_result("); boolean first = true; sb.append("success:"); @@ -5167,7 +5490,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -5175,37 +5498,39 @@ public class THBaseService { } } - private static class existsAll_resultStandardSchemeFactory implements SchemeFactory { + private static class existsAll_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public existsAll_resultStandardScheme getScheme() { return new existsAll_resultStandardScheme(); } } - private static class existsAll_resultStandardScheme extends StandardScheme { + private static class existsAll_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, existsAll_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); - while (true) { + while (true) + { schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { 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); - for (int _i141 = 0; _i141 < _list140.size; ++_i141) { - boolean _elem142; // required - _elem142 = iprot.readBool(); - struct.success.add(_elem142); + org.apache.thrift.protocol.TList _list150 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list150.size); + boolean _elem151; + for (int _i152 = 0; _i152 < _list150.size; ++_i152) + { + _elem151 = iprot.readBool(); + struct.success.add(_elem151); } iprot.readListEnd(); } struct.setSuccessIsSet(true); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; @@ -5214,7 +5539,7 @@ public class THBaseService { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; @@ -5237,8 +5562,9 @@ public class THBaseService { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, struct.success.size())); - for (boolean _iter143 : struct.success) { - oprot.writeBool(_iter143); + for (boolean _iter153 : struct.success) + { + oprot.writeBool(_iter153); } oprot.writeListEnd(); } @@ -5255,18 +5581,18 @@ public class THBaseService { } - private static class existsAll_resultTupleSchemeFactory implements SchemeFactory { + private static class existsAll_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public existsAll_resultTupleScheme getScheme() { return new existsAll_resultTupleScheme(); } } - private static class existsAll_resultTupleScheme extends TupleScheme { + private static class existsAll_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, existsAll_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -5277,8 +5603,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (boolean _iter144 : struct.success) { - oprot.writeBool(_iter144); + for (boolean _iter154 : struct.success) + { + oprot.writeBool(_iter154); } } } @@ -5289,16 +5616,17 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, existsAll_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.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.BOOL, iprot.readI32()); - struct.success = new ArrayList(_list145.size); - for (int _i146 = 0; _i146 < _list145.size; ++_i146) { - boolean _elem147; // required - _elem147 = iprot.readBool(); - struct.success.add(_elem147); + org.apache.thrift.protocol.TList _list155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); + struct.success = new java.util.ArrayList(_list155.size); + boolean _elem156; + for (int _i157 = 0; _i157 < _list155.size; ++_i157) + { + _elem156 = iprot.readBool(); + struct.success.add(_elem156); } } struct.setSuccessIsSet(true); @@ -5311,6 +5639,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class get_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -5319,20 +5650,17 @@ public class THBaseService { 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_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_argsTupleSchemeFactory(); /** * the table to get from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TGet to fetch */ - public TGet tget; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -5345,10 +5673,10 @@ public class THBaseService { */ TGET((short)2, "tget"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -5356,6 +5684,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -5373,21 +5702,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -5396,20 +5726,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); } @@ -5417,7 +5747,7 @@ public class THBaseService { } public get_args( - ByteBuffer table, + java.nio.ByteBuffer table, TGet tget) { this(); @@ -5455,7 +5785,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -5463,11 +5793,11 @@ public class THBaseService { * the table to get from */ public get_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public get_args setTable(ByteBuffer table) { + public get_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -5490,6 +5820,7 @@ public class THBaseService { /** * the TGet to fetch */ + @org.apache.thrift.annotation.Nullable public TGet getTget() { return this.tget; } @@ -5497,7 +5828,7 @@ public class THBaseService { /** * the TGet to fetch */ - public get_args setTget(TGet tget) { + public get_args setTget(@org.apache.thrift.annotation.Nullable TGet tget) { this.tget = tget; return this; } @@ -5517,13 +5848,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -5538,7 +5873,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -5547,13 +5883,13 @@ public class THBaseService { return getTget(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -5562,11 +5898,11 @@ public class THBaseService { case TGET: return isSetTget(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof get_args) @@ -5577,6 +5913,8 @@ public class THBaseService { public boolean equals(get_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -5601,19 +5939,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tget = true && (isSetTget()); - list.add(present_tget); - if (present_tget) - list.add(tget); + hashCode = hashCode * 8191 + ((isSetTget()) ? 131071 : 524287); + if (isSetTget()) + hashCode = hashCode * 8191 + tget.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -5624,7 +5960,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -5634,7 +5970,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); + lastComparison = java.lang.Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); if (lastComparison != 0) { return lastComparison; } @@ -5647,21 +5983,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("get_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("get_args("); boolean first = true; sb.append("table:"); @@ -5705,7 +6042,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -5713,13 +6050,13 @@ public class THBaseService { } } - private static class get_argsStandardSchemeFactory implements SchemeFactory { + private static class get_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_argsStandardScheme getScheme() { return new get_argsStandardScheme(); } } - private static class get_argsStandardScheme extends StandardScheme { + private static class get_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, get_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -5779,24 +6116,24 @@ public class THBaseService { } - private static class get_argsTupleSchemeFactory implements SchemeFactory { + private static class get_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_argsTupleScheme getScheme() { return new get_argsTupleScheme(); } } - private static class get_argsTupleScheme extends TupleScheme { + private static class get_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tget.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tget = new TGet(); @@ -5805,6 +6142,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class get_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -5813,24 +6153,21 @@ public class THBaseService { 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 get_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_resultTupleSchemeFactory(); - public TResult success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TResult success; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -5838,6 +6175,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -5855,21 +6193,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -5878,20 +6217,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); } @@ -5929,11 +6268,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TResult getSuccess() { return this.success; } - public get_result setSuccess(TResult success) { + public get_result setSuccess(@org.apache.thrift.annotation.Nullable TResult success) { this.success = success; return this; } @@ -5953,11 +6293,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public get_result setIo(TIOError io) { + public get_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -5977,7 +6318,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -5998,7 +6339,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -6007,13 +6349,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -6022,11 +6364,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof get_result) @@ -6037,6 +6379,8 @@ public class THBaseService { public boolean equals(get_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -6061,19 +6405,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -6084,7 +6426,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -6094,7 +6436,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -6107,21 +6449,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("get_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("get_result("); boolean first = true; sb.append("success:"); @@ -6159,7 +6502,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -6167,13 +6510,13 @@ public class THBaseService { } } - private static class get_resultStandardSchemeFactory implements SchemeFactory { + private static class get_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_resultStandardScheme getScheme() { return new get_resultStandardScheme(); } } - private static class get_resultStandardScheme extends StandardScheme { + private static class get_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, get_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -6234,18 +6577,18 @@ public class THBaseService { } - private static class get_resultTupleSchemeFactory implements SchemeFactory { + private static class get_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_resultTupleScheme getScheme() { return new get_resultTupleScheme(); } } - private static class get_resultTupleScheme extends TupleScheme { + private static class get_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -6263,8 +6606,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); @@ -6278,6 +6621,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -6286,22 +6632,19 @@ public class THBaseService { 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_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMultiple_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getMultiple_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getMultiple_argsTupleSchemeFactory(); /** * the table to get from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.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 @org.apache.thrift.annotation.Nullable java.util.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 { @@ -6316,10 +6659,10 @@ public class THBaseService { */ TGETS((short)2, "tgets"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -6327,6 +6670,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -6344,21 +6688,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -6367,21 +6712,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMultiple_args.class, metaDataMap); } @@ -6389,8 +6734,8 @@ public class THBaseService { } public getMultiple_args( - ByteBuffer table, - List tgets) + java.nio.ByteBuffer table, + java.util.List tgets) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -6405,7 +6750,7 @@ public class THBaseService { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } if (other.isSetTgets()) { - List __this__tgets = new ArrayList(other.tgets.size()); + java.util.List __this__tgets = new java.util.ArrayList(other.tgets.size()); for (TGet other_element : other.tgets) { __this__tgets.add(new TGet(other_element)); } @@ -6431,7 +6776,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -6439,11 +6784,11 @@ public class THBaseService { * the table to get from */ public getMultiple_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public getMultiple_args setTable(ByteBuffer table) { + public getMultiple_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -6467,13 +6812,14 @@ public class THBaseService { return (this.tgets == null) ? 0 : this.tgets.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.tgets.add(elem); } @@ -6483,7 +6829,8 @@ public class THBaseService { * will have the Results at corresponding positions * or null if there was an error */ - public List getTgets() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTgets() { return this.tgets; } @@ -6492,7 +6839,7 @@ public class THBaseService { * will have the Results at corresponding positions * or null if there was an error */ - public getMultiple_args setTgets(List tgets) { + public getMultiple_args setTgets(@org.apache.thrift.annotation.Nullable java.util.List tgets) { this.tgets = tgets; return this; } @@ -6512,13 +6859,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -6526,14 +6877,15 @@ public class THBaseService { if (value == null) { unsetTgets(); } else { - setTgets((List)value); + setTgets((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -6542,13 +6894,13 @@ public class THBaseService { return getTgets(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -6557,11 +6909,11 @@ public class THBaseService { case TGETS: return isSetTgets(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getMultiple_args) @@ -6572,6 +6924,8 @@ public class THBaseService { public boolean equals(getMultiple_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -6596,19 +6950,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tgets = true && (isSetTgets()); - list.add(present_tgets); - if (present_tgets) - list.add(tgets); + hashCode = hashCode * 8191 + ((isSetTgets()) ? 131071 : 524287); + if (isSetTgets()) + hashCode = hashCode * 8191 + tgets.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -6619,7 +6971,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -6629,7 +6981,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTgets()).compareTo(other.isSetTgets()); + lastComparison = java.lang.Boolean.valueOf(isSetTgets()).compareTo(other.isSetTgets()); if (lastComparison != 0) { return lastComparison; } @@ -6642,21 +6994,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getMultiple_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getMultiple_args("); boolean first = true; sb.append("table:"); @@ -6697,7 +7050,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -6705,13 +7058,13 @@ public class THBaseService { } } - private static class getMultiple_argsStandardSchemeFactory implements SchemeFactory { + private static class getMultiple_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getMultiple_argsStandardScheme getScheme() { return new getMultiple_argsStandardScheme(); } } - private static class getMultiple_argsStandardScheme extends StandardScheme { + private static class getMultiple_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -6734,14 +7087,14 @@ public class THBaseService { 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); - TGet _elem133; - for (int _i134 = 0; _i134 < _list132.size; ++_i134) + org.apache.thrift.protocol.TList _list158 = iprot.readListBegin(); + struct.tgets = new java.util.ArrayList(_list158.size); + @org.apache.thrift.annotation.Nullable TGet _elem159; + for (int _i160 = 0; _i160 < _list158.size; ++_i160) { - _elem133 = new TGet(); - _elem133.read(iprot); - struct.tgets.add(_elem133); + _elem159 = new TGet(); + _elem159.read(iprot); + struct.tgets.add(_elem159); } iprot.readListEnd(); } @@ -6774,9 +7127,9 @@ public class THBaseService { 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) + for (TGet _iter161 : struct.tgets) { - _iter135.write(oprot); + _iter161.write(oprot); } oprot.writeListEnd(); } @@ -6788,47 +7141,50 @@ public class THBaseService { } - private static class getMultiple_argsTupleSchemeFactory implements SchemeFactory { + private static class getMultiple_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getMultiple_argsTupleScheme getScheme() { return new getMultiple_argsTupleScheme(); } } - private static class getMultiple_argsTupleScheme extends TupleScheme { + private static class getMultiple_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); { oprot.writeI32(struct.tgets.size()); - for (TGet _iter136 : struct.tgets) + for (TGet _iter162 : struct.tgets) { - _iter136.write(oprot); + _iter162.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.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); - TGet _elem138; - for (int _i139 = 0; _i139 < _list137.size; ++_i139) + org.apache.thrift.protocol.TList _list163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tgets = new java.util.ArrayList(_list163.size); + @org.apache.thrift.annotation.Nullable TGet _elem164; + for (int _i165 = 0; _i165 < _list163.size; ++_i165) { - _elem138 = new TGet(); - _elem138.read(iprot); - struct.tgets.add(_elem138); + _elem164 = new TGet(); + _elem164.read(iprot); + struct.tgets.add(_elem164); } } struct.setTgetsIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -6837,24 +7193,21 @@ public class THBaseService { 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 getMultiple_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMultiple_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getMultiple_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getMultiple_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -6862,6 +7215,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -6879,21 +7233,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -6902,21 +7257,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMultiple_result.class, metaDataMap); } @@ -6924,7 +7279,7 @@ public class THBaseService { } public getMultiple_result( - List success, + java.util.List success, TIOError io) { this(); @@ -6937,7 +7292,7 @@ public class THBaseService { */ public getMultiple_result(getMultiple_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } @@ -6962,22 +7317,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getMultiple_result setSuccess(List success) { + public getMultiple_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -6997,11 +7354,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getMultiple_result setIo(TIOError io) { + public getMultiple_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -7021,13 +7379,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -7042,7 +7400,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -7051,13 +7410,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -7066,11 +7425,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getMultiple_result) @@ -7081,6 +7440,8 @@ public class THBaseService { public boolean equals(getMultiple_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -7105,19 +7466,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -7128,7 +7487,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -7138,7 +7497,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -7151,21 +7510,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getMultiple_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getMultiple_result("); boolean first = true; sb.append("success:"); @@ -7200,7 +7560,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -7208,13 +7568,13 @@ public class THBaseService { } } - private static class getMultiple_resultStandardSchemeFactory implements SchemeFactory { + private static class getMultiple_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getMultiple_resultStandardScheme getScheme() { return new getMultiple_resultStandardScheme(); } } - private static class getMultiple_resultStandardScheme extends StandardScheme { + private static class getMultiple_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7229,14 +7589,14 @@ public class THBaseService { 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) + org.apache.thrift.protocol.TList _list166 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list166.size); + @org.apache.thrift.annotation.Nullable TResult _elem167; + for (int _i168 = 0; _i168 < _list166.size; ++_i168) { - _elem141 = new TResult(); - _elem141.read(iprot); - struct.success.add(_elem141); + _elem167 = new TResult(); + _elem167.read(iprot); + struct.success.add(_elem167); } iprot.readListEnd(); } @@ -7273,9 +7633,9 @@ public class THBaseService { 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) + for (TResult _iter169 : struct.success) { - _iter143.write(oprot); + _iter169.write(oprot); } oprot.writeListEnd(); } @@ -7292,18 +7652,18 @@ public class THBaseService { } - private static class getMultiple_resultTupleSchemeFactory implements SchemeFactory { + private static class getMultiple_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getMultiple_resultTupleScheme getScheme() { return new getMultiple_resultTupleScheme(); } } - private static class getMultiple_resultTupleScheme extends TupleScheme { + private static class getMultiple_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getMultiple_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -7314,9 +7674,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TResult _iter144 : struct.success) + for (TResult _iter170 : struct.success) { - _iter144.write(oprot); + _iter170.write(oprot); } } } @@ -7327,18 +7687,18 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getMultiple_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.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) + org.apache.thrift.protocol.TList _list171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list171.size); + @org.apache.thrift.annotation.Nullable TResult _elem172; + for (int _i173 = 0; _i173 < _list171.size; ++_i173) { - _elem146 = new TResult(); - _elem146.read(iprot); - struct.success.add(_elem146); + _elem172 = new TResult(); + _elem172.read(iprot); + struct.success.add(_elem172); } } struct.setSuccessIsSet(true); @@ -7351,6 +7711,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class put_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -7359,20 +7722,17 @@ public class THBaseService { 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_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new put_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new put_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new put_argsTupleSchemeFactory(); /** * the table to put data in */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TPut to put */ - public TPut tput; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -7385,10 +7745,10 @@ public class THBaseService { */ TPUT((short)2, "tput"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7396,6 +7756,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -7413,21 +7774,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7436,20 +7798,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_args.class, metaDataMap); } @@ -7457,7 +7819,7 @@ public class THBaseService { } public put_args( - ByteBuffer table, + java.nio.ByteBuffer table, TPut tput) { this(); @@ -7495,7 +7857,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -7503,11 +7865,11 @@ public class THBaseService { * 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)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public put_args setTable(ByteBuffer table) { + public put_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -7530,6 +7892,7 @@ public class THBaseService { /** * the TPut to put */ + @org.apache.thrift.annotation.Nullable public TPut getTput() { return this.tput; } @@ -7537,7 +7900,7 @@ public class THBaseService { /** * the TPut to put */ - public put_args setTput(TPut tput) { + public put_args setTput(@org.apache.thrift.annotation.Nullable TPut tput) { this.tput = tput; return this; } @@ -7557,13 +7920,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -7578,7 +7945,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -7587,13 +7955,13 @@ public class THBaseService { return getTput(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -7602,11 +7970,11 @@ public class THBaseService { case TPUT: return isSetTput(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof put_args) @@ -7617,6 +7985,8 @@ public class THBaseService { public boolean equals(put_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -7641,19 +8011,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tput = true && (isSetTput()); - list.add(present_tput); - if (present_tput) - list.add(tput); + hashCode = hashCode * 8191 + ((isSetTput()) ? 131071 : 524287); + if (isSetTput()) + hashCode = hashCode * 8191 + tput.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -7664,7 +8032,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -7674,7 +8042,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); + lastComparison = java.lang.Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); if (lastComparison != 0) { return lastComparison; } @@ -7687,21 +8055,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("put_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("put_args("); boolean first = true; sb.append("table:"); @@ -7745,7 +8114,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -7753,13 +8122,13 @@ public class THBaseService { } } - private static class put_argsStandardSchemeFactory implements SchemeFactory { + private static class put_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public put_argsStandardScheme getScheme() { return new put_argsStandardScheme(); } } - private static class put_argsStandardScheme extends StandardScheme { + private static class put_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, put_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7819,24 +8188,24 @@ public class THBaseService { } - private static class put_argsTupleSchemeFactory implements SchemeFactory { + private static class put_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public put_argsTupleScheme getScheme() { return new put_argsTupleScheme(); } } - private static class put_argsTupleScheme extends TupleScheme { + private static class put_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tput.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tput = new TPut(); @@ -7845,6 +8214,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class put_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -7852,22 +8224,19 @@ public class THBaseService { 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_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new put_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new put_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new put_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7875,6 +8244,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -7890,21 +8260,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7913,18 +8284,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_result.class, metaDataMap); } @@ -7956,11 +8327,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public put_result setIo(TIOError io) { + public put_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -7980,7 +8352,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -7993,30 +8365,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof put_result) @@ -8027,6 +8400,8 @@ public class THBaseService { public boolean equals(put_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -8042,14 +8417,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8060,7 +8434,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -8073,21 +8447,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("put_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("put_result("); boolean first = true; sb.append("io:"); @@ -8114,7 +8489,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -8122,13 +8497,13 @@ public class THBaseService { } } - private static class put_resultStandardSchemeFactory implements SchemeFactory { + private static class put_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public put_resultStandardScheme getScheme() { return new put_resultStandardScheme(); } } - private static class put_resultStandardScheme extends StandardScheme { + private static class put_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, put_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8175,18 +8550,18 @@ public class THBaseService { } - private static class put_resultTupleSchemeFactory implements SchemeFactory { + private static class put_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public put_resultTupleScheme getScheme() { return new put_resultTupleScheme(); } } - private static class put_resultTupleScheme extends TupleScheme { + private static class put_resultTupleScheme extends org.apache.thrift.scheme.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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -8198,8 +8573,8 @@ public class THBaseService { @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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -8208,6 +8583,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndPut_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8220,38 +8598,35 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndPut_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndPut_argsTupleSchemeFactory(); /** * to check in and put to */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * row to check */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column family to check */ - public ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required /** * column qualifier to check */ - public ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.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 + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required /** * the TPut to put if the check succeeds */ - public TPut tput; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -8282,10 +8657,10 @@ public class THBaseService { */ TPUT((short)6, "tput"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8293,6 +8668,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -8318,21 +8694,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8341,15 +8718,15 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, @@ -8362,7 +8739,7 @@ public class THBaseService { 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_args.class, metaDataMap); } @@ -8370,11 +8747,11 @@ public class THBaseService { } public checkAndPut_args( - ByteBuffer table, - ByteBuffer row, - ByteBuffer family, - ByteBuffer qualifier, - ByteBuffer value, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, + java.nio.ByteBuffer family, + java.nio.ByteBuffer qualifier, + java.nio.ByteBuffer value, TPut tput) { this(); @@ -8432,7 +8809,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -8440,11 +8817,11 @@ public class THBaseService { * 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)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public checkAndPut_args setTable(ByteBuffer table) { + public checkAndPut_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -8472,7 +8849,7 @@ public class THBaseService { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -8480,11 +8857,11 @@ public class THBaseService { * row to check */ public checkAndPut_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public checkAndPut_args setRow(ByteBuffer row) { + public checkAndPut_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -8512,7 +8889,7 @@ public class THBaseService { return family == null ? null : family.array(); } - public ByteBuffer bufferForFamily() { + public java.nio.ByteBuffer bufferForFamily() { return org.apache.thrift.TBaseHelper.copyBinary(family); } @@ -8520,11 +8897,11 @@ public class THBaseService { * column family to check */ public checkAndPut_args setFamily(byte[] family) { - this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + this.family = family == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(family.clone()); return this; } - public checkAndPut_args setFamily(ByteBuffer family) { + public checkAndPut_args setFamily(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family) { this.family = org.apache.thrift.TBaseHelper.copyBinary(family); return this; } @@ -8552,7 +8929,7 @@ public class THBaseService { return qualifier == null ? null : qualifier.array(); } - public ByteBuffer bufferForQualifier() { + public java.nio.ByteBuffer bufferForQualifier() { return org.apache.thrift.TBaseHelper.copyBinary(qualifier); } @@ -8560,11 +8937,11 @@ public class THBaseService { * column qualifier to check */ public checkAndPut_args setQualifier(byte[] qualifier) { - this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + this.qualifier = qualifier == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(qualifier.clone()); return this; } - public checkAndPut_args setQualifier(ByteBuffer qualifier) { + public checkAndPut_args setQualifier(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); return this; } @@ -8594,7 +8971,7 @@ public class THBaseService { return value == null ? null : value.array(); } - public ByteBuffer bufferForValue() { + public java.nio.ByteBuffer bufferForValue() { return org.apache.thrift.TBaseHelper.copyBinary(value); } @@ -8604,11 +8981,11 @@ public class THBaseService { * column in question */ public checkAndPut_args setValue(byte[] value) { - this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone()); return this; } - public checkAndPut_args setValue(ByteBuffer value) { + public checkAndPut_args setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) { this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -8631,6 +9008,7 @@ public class THBaseService { /** * the TPut to put if the check succeeds */ + @org.apache.thrift.annotation.Nullable public TPut getTput() { return this.tput; } @@ -8638,7 +9016,7 @@ public class THBaseService { /** * the TPut to put if the check succeeds */ - public checkAndPut_args setTput(TPut tput) { + public checkAndPut_args setTput(@org.apache.thrift.annotation.Nullable TPut tput) { this.tput = tput; return this; } @@ -8658,13 +9036,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -8672,7 +9054,11 @@ public class THBaseService { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -8680,7 +9066,11 @@ public class THBaseService { if (value == null) { unsetFamily(); } else { - setFamily((ByteBuffer)value); + if (value instanceof byte[]) { + setFamily((byte[])value); + } else { + setFamily((java.nio.ByteBuffer)value); + } } break; @@ -8688,7 +9078,11 @@ public class THBaseService { if (value == null) { unsetQualifier(); } else { - setQualifier((ByteBuffer)value); + if (value instanceof byte[]) { + setQualifier((byte[])value); + } else { + setQualifier((java.nio.ByteBuffer)value); + } } break; @@ -8696,7 +9090,11 @@ public class THBaseService { if (value == null) { unsetValue(); } else { - setValue((ByteBuffer)value); + if (value instanceof byte[]) { + setValue((byte[])value); + } else { + setValue((java.nio.ByteBuffer)value); + } } break; @@ -8711,7 +9109,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -8732,13 +9131,13 @@ public class THBaseService { return getTput(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -8755,11 +9154,11 @@ public class THBaseService { case TPUT: return isSetTput(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndPut_args) @@ -8770,6 +9169,8 @@ public class THBaseService { public boolean equals(checkAndPut_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -8830,39 +9231,33 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_tput = true && (isSetTput()); - list.add(present_tput); - if (present_tput) - list.add(tput); + hashCode = hashCode * 8191 + ((isSetTput()) ? 131071 : 524287); + if (isSetTput()) + hashCode = hashCode * 8191 + tput.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8873,7 +9268,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -8883,7 +9278,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -8893,7 +9288,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + lastComparison = java.lang.Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } @@ -8903,7 +9298,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + lastComparison = java.lang.Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } @@ -8913,7 +9308,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -8923,7 +9318,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); + lastComparison = java.lang.Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); if (lastComparison != 0) { return lastComparison; } @@ -8936,21 +9331,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndPut_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndPut_args("); boolean first = true; sb.append("table:"); @@ -9035,7 +9431,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -9043,13 +9439,13 @@ public class THBaseService { } } - private static class checkAndPut_argsStandardSchemeFactory implements SchemeFactory { + private static class checkAndPut_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_argsStandardScheme getScheme() { return new checkAndPut_argsStandardScheme(); } } - private static class checkAndPut_argsStandardScheme extends StandardScheme { + private static class checkAndPut_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9161,23 +9557,23 @@ public class THBaseService { } - private static class checkAndPut_argsTupleSchemeFactory implements SchemeFactory { + private static class checkAndPut_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_argsTupleScheme getScheme() { return new checkAndPut_argsTupleScheme(); } } - private static class checkAndPut_argsTupleScheme extends TupleScheme { + private static class checkAndPut_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.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(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -9189,7 +9585,7 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.row = iprot.readBinary(); @@ -9201,7 +9597,7 @@ public class THBaseService { struct.tput = new TPut(); struct.tput.read(iprot); struct.setTputIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.value = iprot.readBinary(); struct.setValueIsSet(true); @@ -9209,6 +9605,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndPut_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9217,24 +9616,21 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndPut_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndPut_resultTupleSchemeFactory(); public boolean success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9242,6 +9638,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -9259,21 +9656,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -9282,7 +9680,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -9290,14 +9688,14 @@ 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_result.class, metaDataMap); } @@ -9347,23 +9745,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public checkAndPut_result setIo(TIOError io) { + public checkAndPut_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -9383,13 +9782,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -9404,7 +9803,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -9413,13 +9813,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -9428,11 +9828,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndPut_result) @@ -9443,6 +9843,8 @@ public class THBaseService { public boolean equals(checkAndPut_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -9467,19 +9869,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -9490,7 +9888,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -9500,7 +9898,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -9513,21 +9911,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndPut_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndPut_result("); boolean first = true; sb.append("success:"); @@ -9558,7 +9957,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -9568,13 +9967,13 @@ public class THBaseService { } } - private static class checkAndPut_resultStandardSchemeFactory implements SchemeFactory { + private static class checkAndPut_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_resultStandardScheme getScheme() { return new checkAndPut_resultStandardScheme(); } } - private static class checkAndPut_resultStandardScheme extends StandardScheme { + private static class checkAndPut_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9634,18 +10033,18 @@ public class THBaseService { } - private static class checkAndPut_resultTupleSchemeFactory implements SchemeFactory { + private static class checkAndPut_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_resultTupleScheme getScheme() { return new checkAndPut_resultTupleScheme(); } } - private static class checkAndPut_resultTupleScheme extends TupleScheme { + private static class checkAndPut_resultTupleScheme extends org.apache.thrift.scheme.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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -9663,8 +10062,8 @@ public class THBaseService { @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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -9677,6 +10076,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class putMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9685,20 +10087,17 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new putMultiple_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new putMultiple_argsTupleSchemeFactory(); /** * the table to put data in */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * a list of TPuts to commit */ - public List tputs; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { @@ -9711,10 +10110,10 @@ public class THBaseService { */ TPUTS((short)2, "tputs"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9722,6 +10121,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -9739,21 +10139,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -9762,21 +10163,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putMultiple_args.class, metaDataMap); } @@ -9784,8 +10185,8 @@ public class THBaseService { } public putMultiple_args( - ByteBuffer table, - List tputs) + java.nio.ByteBuffer table, + java.util.List tputs) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -9800,7 +10201,7 @@ public class THBaseService { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } if (other.isSetTputs()) { - List __this__tputs = new ArrayList(other.tputs.size()); + java.util.List __this__tputs = new java.util.ArrayList(other.tputs.size()); for (TPut other_element : other.tputs) { __this__tputs.add(new TPut(other_element)); } @@ -9826,7 +10227,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -9834,11 +10235,11 @@ public class THBaseService { * the table to put data in */ public putMultiple_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public putMultiple_args setTable(ByteBuffer table) { + public putMultiple_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -9862,13 +10263,14 @@ public class THBaseService { return (this.tputs == null) ? 0 : this.tputs.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.tputs.add(elem); } @@ -9876,14 +10278,15 @@ public class THBaseService { /** * a list of TPuts to commit */ - public List getTputs() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTputs() { return this.tputs; } /** * a list of TPuts to commit */ - public putMultiple_args setTputs(List tputs) { + public putMultiple_args setTputs(@org.apache.thrift.annotation.Nullable java.util.List tputs) { this.tputs = tputs; return this; } @@ -9903,13 +10306,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -9917,14 +10324,15 @@ public class THBaseService { if (value == null) { unsetTputs(); } else { - setTputs((List)value); + setTputs((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -9933,13 +10341,13 @@ public class THBaseService { return getTputs(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -9948,11 +10356,11 @@ public class THBaseService { case TPUTS: return isSetTputs(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof putMultiple_args) @@ -9963,6 +10371,8 @@ public class THBaseService { public boolean equals(putMultiple_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -9987,19 +10397,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tputs = true && (isSetTputs()); - list.add(present_tputs); - if (present_tputs) - list.add(tputs); + hashCode = hashCode * 8191 + ((isSetTputs()) ? 131071 : 524287); + if (isSetTputs()) + hashCode = hashCode * 8191 + tputs.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10010,7 +10418,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -10020,7 +10428,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTputs()).compareTo(other.isSetTputs()); + lastComparison = java.lang.Boolean.valueOf(isSetTputs()).compareTo(other.isSetTputs()); if (lastComparison != 0) { return lastComparison; } @@ -10033,21 +10441,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("putMultiple_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("putMultiple_args("); boolean first = true; sb.append("table:"); @@ -10088,7 +10497,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10096,13 +10505,13 @@ public class THBaseService { } } - private static class putMultiple_argsStandardSchemeFactory implements SchemeFactory { + private static class putMultiple_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public putMultiple_argsStandardScheme getScheme() { return new putMultiple_argsStandardScheme(); } } - private static class putMultiple_argsStandardScheme extends StandardScheme { + private static class putMultiple_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, putMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -10125,14 +10534,14 @@ public class THBaseService { 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) + org.apache.thrift.protocol.TList _list174 = iprot.readListBegin(); + struct.tputs = new java.util.ArrayList(_list174.size); + @org.apache.thrift.annotation.Nullable TPut _elem175; + for (int _i176 = 0; _i176 < _list174.size; ++_i176) { - _elem149 = new TPut(); - _elem149.read(iprot); - struct.tputs.add(_elem149); + _elem175 = new TPut(); + _elem175.read(iprot); + struct.tputs.add(_elem175); } iprot.readListEnd(); } @@ -10165,9 +10574,9 @@ public class THBaseService { 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) + for (TPut _iter177 : struct.tputs) { - _iter151.write(oprot); + _iter177.write(oprot); } oprot.writeListEnd(); } @@ -10179,47 +10588,50 @@ public class THBaseService { } - private static class putMultiple_argsTupleSchemeFactory implements SchemeFactory { + private static class putMultiple_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public putMultiple_argsTupleScheme getScheme() { return new putMultiple_argsTupleScheme(); } } - private static class putMultiple_argsTupleScheme extends TupleScheme { + private static class putMultiple_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, putMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); { oprot.writeI32(struct.tputs.size()); - for (TPut _iter152 : struct.tputs) + for (TPut _iter178 : struct.tputs) { - _iter152.write(oprot); + _iter178.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, putMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.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); - TPut _elem154; - for (int _i155 = 0; _i155 < _list153.size; ++_i155) + org.apache.thrift.protocol.TList _list179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tputs = new java.util.ArrayList(_list179.size); + @org.apache.thrift.annotation.Nullable TPut _elem180; + for (int _i181 = 0; _i181 < _list179.size; ++_i181) { - _elem154 = new TPut(); - _elem154.read(iprot); - struct.tputs.add(_elem154); + _elem180 = new TPut(); + _elem180.read(iprot); + struct.tputs.add(_elem180); } } struct.setTputsIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class putMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10227,22 +10639,19 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new putMultiple_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new putMultiple_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10250,6 +10659,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -10265,21 +10675,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10288,18 +10699,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putMultiple_result.class, metaDataMap); } @@ -10331,11 +10742,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public putMultiple_result setIo(TIOError io) { + public putMultiple_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -10355,7 +10767,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -10368,30 +10780,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof putMultiple_result) @@ -10402,6 +10815,8 @@ public class THBaseService { public boolean equals(putMultiple_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -10417,14 +10832,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10435,7 +10849,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -10448,21 +10862,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("putMultiple_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("putMultiple_result("); boolean first = true; sb.append("io:"); @@ -10489,7 +10904,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10497,13 +10912,13 @@ public class THBaseService { } } - private static class putMultiple_resultStandardSchemeFactory implements SchemeFactory { + private static class putMultiple_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public putMultiple_resultStandardScheme getScheme() { return new putMultiple_resultStandardScheme(); } } - private static class putMultiple_resultStandardScheme extends StandardScheme { + private static class putMultiple_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, putMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -10550,18 +10965,18 @@ public class THBaseService { } - private static class putMultiple_resultTupleSchemeFactory implements SchemeFactory { + private static class putMultiple_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public putMultiple_resultTupleScheme getScheme() { return new putMultiple_resultTupleScheme(); } } - private static class putMultiple_resultTupleScheme extends TupleScheme { + private static class putMultiple_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -10573,8 +10988,8 @@ public class THBaseService { @Override 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(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -10583,6 +10998,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteSingle_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10591,20 +11009,17 @@ public class THBaseService { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteSingle_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteSingle_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteSingle_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteSingle_argsTupleSchemeFactory(); /** * the table to delete from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TDelete to delete */ - public TDelete tdelete; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -10617,10 +11032,10 @@ public class THBaseService { */ TDELETE((short)2, "tdelete"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10628,6 +11043,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -10645,21 +11061,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10668,20 +11085,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSingle_args.class, metaDataMap); } @@ -10689,7 +11106,7 @@ public class THBaseService { } public deleteSingle_args( - ByteBuffer table, + java.nio.ByteBuffer table, TDelete tdelete) { this(); @@ -10727,7 +11144,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -10735,11 +11152,11 @@ public class THBaseService { * the table to delete from */ public deleteSingle_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public deleteSingle_args setTable(ByteBuffer table) { + public deleteSingle_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -10762,6 +11179,7 @@ public class THBaseService { /** * the TDelete to delete */ + @org.apache.thrift.annotation.Nullable public TDelete getTdelete() { return this.tdelete; } @@ -10769,7 +11187,7 @@ public class THBaseService { /** * the TDelete to delete */ - public deleteSingle_args setTdelete(TDelete tdelete) { + public deleteSingle_args setTdelete(@org.apache.thrift.annotation.Nullable TDelete tdelete) { this.tdelete = tdelete; return this; } @@ -10789,13 +11207,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -10810,7 +11232,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -10819,13 +11242,13 @@ public class THBaseService { return getTdelete(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -10834,11 +11257,11 @@ public class THBaseService { case TDELETE: return isSetTdelete(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteSingle_args) @@ -10849,6 +11272,8 @@ public class THBaseService { public boolean equals(deleteSingle_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -10873,19 +11298,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tdelete = true && (isSetTdelete()); - list.add(present_tdelete); - if (present_tdelete) - list.add(tdelete); + hashCode = hashCode * 8191 + ((isSetTdelete()) ? 131071 : 524287); + if (isSetTdelete()) + hashCode = hashCode * 8191 + tdelete.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10896,7 +11319,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -10906,7 +11329,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); + lastComparison = java.lang.Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); if (lastComparison != 0) { return lastComparison; } @@ -10919,21 +11342,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteSingle_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteSingle_args("); boolean first = true; sb.append("table:"); @@ -10977,7 +11401,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10985,13 +11409,13 @@ public class THBaseService { } } - private static class deleteSingle_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteSingle_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteSingle_argsStandardScheme getScheme() { return new deleteSingle_argsStandardScheme(); } } - private static class deleteSingle_argsStandardScheme extends StandardScheme { + private static class deleteSingle_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteSingle_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11051,24 +11475,24 @@ public class THBaseService { } - private static class deleteSingle_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteSingle_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteSingle_argsTupleScheme getScheme() { return new deleteSingle_argsTupleScheme(); } } - private static class deleteSingle_argsTupleScheme extends TupleScheme { + private static class deleteSingle_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteSingle_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tdelete.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteSingle_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tdelete = new TDelete(); @@ -11077,6 +11501,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteSingle_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11084,22 +11511,19 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteSingle_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteSingle_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11107,6 +11531,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -11122,21 +11547,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11145,18 +11571,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSingle_result.class, metaDataMap); } @@ -11188,11 +11614,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public deleteSingle_result setIo(TIOError io) { + public deleteSingle_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -11212,7 +11639,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -11225,30 +11652,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteSingle_result) @@ -11259,6 +11687,8 @@ public class THBaseService { public boolean equals(deleteSingle_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -11274,14 +11704,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11292,7 +11721,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -11305,21 +11734,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteSingle_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteSingle_result("); boolean first = true; sb.append("io:"); @@ -11346,7 +11776,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11354,13 +11784,13 @@ public class THBaseService { } } - private static class deleteSingle_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteSingle_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteSingle_resultStandardScheme getScheme() { return new deleteSingle_resultStandardScheme(); } } - private static class deleteSingle_resultStandardScheme extends StandardScheme { + private static class deleteSingle_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteSingle_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11407,18 +11837,18 @@ public class THBaseService { } - private static class deleteSingle_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteSingle_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteSingle_resultTupleScheme getScheme() { return new deleteSingle_resultTupleScheme(); } } - private static class deleteSingle_resultTupleScheme extends TupleScheme { + private static class deleteSingle_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -11430,8 +11860,8 @@ public class THBaseService { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -11440,6 +11870,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11448,20 +11881,17 @@ public class THBaseService { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteMultiple_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteMultiple_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteMultiple_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteMultiple_argsTupleSchemeFactory(); /** * the table to delete from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * list of TDeletes to delete */ - public List tdeletes; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { @@ -11474,10 +11904,10 @@ public class THBaseService { */ TDELETES((short)2, "tdeletes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11485,6 +11915,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -11502,21 +11933,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11525,21 +11957,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteMultiple_args.class, metaDataMap); } @@ -11547,8 +11979,8 @@ public class THBaseService { } public deleteMultiple_args( - ByteBuffer table, - List tdeletes) + java.nio.ByteBuffer table, + java.util.List tdeletes) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -11563,7 +11995,7 @@ public class THBaseService { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } if (other.isSetTdeletes()) { - List __this__tdeletes = new ArrayList(other.tdeletes.size()); + java.util.List __this__tdeletes = new java.util.ArrayList(other.tdeletes.size()); for (TDelete other_element : other.tdeletes) { __this__tdeletes.add(new TDelete(other_element)); } @@ -11589,7 +12021,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -11597,11 +12029,11 @@ public class THBaseService { * the table to delete from */ public deleteMultiple_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public deleteMultiple_args setTable(ByteBuffer table) { + public deleteMultiple_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -11625,13 +12057,14 @@ public class THBaseService { return (this.tdeletes == null) ? 0 : this.tdeletes.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.tdeletes.add(elem); } @@ -11639,14 +12072,15 @@ public class THBaseService { /** * list of TDeletes to delete */ - public List getTdeletes() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTdeletes() { return this.tdeletes; } /** * list of TDeletes to delete */ - public deleteMultiple_args setTdeletes(List tdeletes) { + public deleteMultiple_args setTdeletes(@org.apache.thrift.annotation.Nullable java.util.List tdeletes) { this.tdeletes = tdeletes; return this; } @@ -11666,13 +12100,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -11680,14 +12118,15 @@ public class THBaseService { if (value == null) { unsetTdeletes(); } else { - setTdeletes((List)value); + setTdeletes((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -11696,13 +12135,13 @@ public class THBaseService { return getTdeletes(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -11711,11 +12150,11 @@ public class THBaseService { case TDELETES: return isSetTdeletes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteMultiple_args) @@ -11726,6 +12165,8 @@ public class THBaseService { public boolean equals(deleteMultiple_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -11750,19 +12191,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tdeletes = true && (isSetTdeletes()); - list.add(present_tdeletes); - if (present_tdeletes) - list.add(tdeletes); + hashCode = hashCode * 8191 + ((isSetTdeletes()) ? 131071 : 524287); + if (isSetTdeletes()) + hashCode = hashCode * 8191 + tdeletes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11773,7 +12212,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -11783,7 +12222,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdeletes()).compareTo(other.isSetTdeletes()); + lastComparison = java.lang.Boolean.valueOf(isSetTdeletes()).compareTo(other.isSetTdeletes()); if (lastComparison != 0) { return lastComparison; } @@ -11796,21 +12235,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteMultiple_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteMultiple_args("); boolean first = true; sb.append("table:"); @@ -11851,7 +12291,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11859,13 +12299,13 @@ public class THBaseService { } } - private static class deleteMultiple_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteMultiple_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteMultiple_argsStandardScheme getScheme() { return new deleteMultiple_argsStandardScheme(); } } - private static class deleteMultiple_argsStandardScheme extends StandardScheme { + private static class deleteMultiple_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11888,14 +12328,14 @@ public class THBaseService { 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) + org.apache.thrift.protocol.TList _list182 = iprot.readListBegin(); + struct.tdeletes = new java.util.ArrayList(_list182.size); + @org.apache.thrift.annotation.Nullable TDelete _elem183; + for (int _i184 = 0; _i184 < _list182.size; ++_i184) { - _elem157 = new TDelete(); - _elem157.read(iprot); - struct.tdeletes.add(_elem157); + _elem183 = new TDelete(); + _elem183.read(iprot); + struct.tdeletes.add(_elem183); } iprot.readListEnd(); } @@ -11928,9 +12368,9 @@ public class THBaseService { 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) + for (TDelete _iter185 : struct.tdeletes) { - _iter159.write(oprot); + _iter185.write(oprot); } oprot.writeListEnd(); } @@ -11942,47 +12382,50 @@ public class THBaseService { } - private static class deleteMultiple_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteMultiple_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteMultiple_argsTupleScheme getScheme() { return new deleteMultiple_argsTupleScheme(); } } - private static class deleteMultiple_argsTupleScheme extends TupleScheme { + private static class deleteMultiple_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); { oprot.writeI32(struct.tdeletes.size()); - for (TDelete _iter160 : struct.tdeletes) + for (TDelete _iter186 : struct.tdeletes) { - _iter160.write(oprot); + _iter186.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.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); - TDelete _elem162; - for (int _i163 = 0; _i163 < _list161.size; ++_i163) + org.apache.thrift.protocol.TList _list187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tdeletes = new java.util.ArrayList(_list187.size); + @org.apache.thrift.annotation.Nullable TDelete _elem188; + for (int _i189 = 0; _i189 < _list187.size; ++_i189) { - _elem162 = new TDelete(); - _elem162.read(iprot); - struct.tdeletes.add(_elem162); + _elem188 = new TDelete(); + _elem188.read(iprot); + struct.tdeletes.add(_elem188); } } struct.setTdeletesIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11991,24 +12434,21 @@ public class THBaseService { 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 deleteMultiple_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteMultiple_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteMultiple_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteMultiple_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12016,6 +12456,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -12033,21 +12474,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12056,21 +12498,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteMultiple_result.class, metaDataMap); } @@ -12078,7 +12520,7 @@ public class THBaseService { } public deleteMultiple_result( - List success, + java.util.List success, TIOError io) { this(); @@ -12091,7 +12533,7 @@ public class THBaseService { */ public deleteMultiple_result(deleteMultiple_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TDelete other_element : other.success) { __this__success.add(new TDelete(other_element)); } @@ -12116,22 +12558,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public deleteMultiple_result setSuccess(List success) { + public deleteMultiple_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -12151,11 +12595,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public deleteMultiple_result setIo(TIOError io) { + public deleteMultiple_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -12175,13 +12620,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -12196,7 +12641,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -12205,13 +12651,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -12220,11 +12666,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteMultiple_result) @@ -12235,6 +12681,8 @@ public class THBaseService { public boolean equals(deleteMultiple_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -12259,19 +12707,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12282,7 +12728,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -12292,7 +12738,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -12305,21 +12751,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteMultiple_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteMultiple_result("); boolean first = true; sb.append("success:"); @@ -12354,7 +12801,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12362,13 +12809,13 @@ public class THBaseService { } } - private static class deleteMultiple_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteMultiple_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteMultiple_resultStandardScheme getScheme() { return new deleteMultiple_resultStandardScheme(); } } - private static class deleteMultiple_resultStandardScheme extends StandardScheme { + private static class deleteMultiple_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12383,14 +12830,14 @@ public class THBaseService { 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) + org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list190.size); + @org.apache.thrift.annotation.Nullable TDelete _elem191; + for (int _i192 = 0; _i192 < _list190.size; ++_i192) { - _elem165 = new TDelete(); - _elem165.read(iprot); - struct.success.add(_elem165); + _elem191 = new TDelete(); + _elem191.read(iprot); + struct.success.add(_elem191); } iprot.readListEnd(); } @@ -12427,9 +12874,9 @@ public class THBaseService { 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) + for (TDelete _iter193 : struct.success) { - _iter167.write(oprot); + _iter193.write(oprot); } oprot.writeListEnd(); } @@ -12446,18 +12893,18 @@ public class THBaseService { } - private static class deleteMultiple_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteMultiple_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteMultiple_resultTupleScheme getScheme() { return new deleteMultiple_resultTupleScheme(); } } - private static class deleteMultiple_resultTupleScheme extends TupleScheme { + private static class deleteMultiple_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -12468,9 +12915,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TDelete _iter168 : struct.success) + for (TDelete _iter194 : struct.success) { - _iter168.write(oprot); + _iter194.write(oprot); } } } @@ -12481,18 +12928,18 @@ public class THBaseService { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.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) + org.apache.thrift.protocol.TList _list195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list195.size); + @org.apache.thrift.annotation.Nullable TDelete _elem196; + for (int _i197 = 0; _i197 < _list195.size; ++_i197) { - _elem170 = new TDelete(); - _elem170.read(iprot); - struct.success.add(_elem170); + _elem196 = new TDelete(); + _elem196.read(iprot); + struct.success.add(_elem196); } } struct.setSuccessIsSet(true); @@ -12505,6 +12952,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndDelete_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12517,38 +12967,35 @@ public class THBaseService { 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 checkAndDelete_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndDelete_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndDelete_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndDelete_argsTupleSchemeFactory(); /** * to check in and delete from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * row to check */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column family to check */ - public ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required /** * column qualifier to check */ - public ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.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 + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required /** * the TDelete to execute if the check succeeds */ - public TDelete tdelete; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -12579,10 +13026,10 @@ public class THBaseService { */ TDELETE((short)6, "tdelete"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12590,6 +13037,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -12615,21 +13063,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12638,15 +13087,15 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, @@ -12659,7 +13108,7 @@ public class THBaseService { 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndDelete_args.class, metaDataMap); } @@ -12667,11 +13116,11 @@ public class THBaseService { } public checkAndDelete_args( - ByteBuffer table, - ByteBuffer row, - ByteBuffer family, - ByteBuffer qualifier, - ByteBuffer value, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, + java.nio.ByteBuffer family, + java.nio.ByteBuffer qualifier, + java.nio.ByteBuffer value, TDelete tdelete) { this(); @@ -12729,7 +13178,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -12737,11 +13186,11 @@ public class THBaseService { * to check in and delete from */ public checkAndDelete_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public checkAndDelete_args setTable(ByteBuffer table) { + public checkAndDelete_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -12769,7 +13218,7 @@ public class THBaseService { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -12777,11 +13226,11 @@ public class THBaseService { * row to check */ public checkAndDelete_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public checkAndDelete_args setRow(ByteBuffer row) { + public checkAndDelete_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -12809,7 +13258,7 @@ public class THBaseService { return family == null ? null : family.array(); } - public ByteBuffer bufferForFamily() { + public java.nio.ByteBuffer bufferForFamily() { return org.apache.thrift.TBaseHelper.copyBinary(family); } @@ -12817,11 +13266,11 @@ public class THBaseService { * column family to check */ public checkAndDelete_args setFamily(byte[] family) { - this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + this.family = family == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(family.clone()); return this; } - public checkAndDelete_args setFamily(ByteBuffer family) { + public checkAndDelete_args setFamily(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family) { this.family = org.apache.thrift.TBaseHelper.copyBinary(family); return this; } @@ -12849,7 +13298,7 @@ public class THBaseService { return qualifier == null ? null : qualifier.array(); } - public ByteBuffer bufferForQualifier() { + public java.nio.ByteBuffer bufferForQualifier() { return org.apache.thrift.TBaseHelper.copyBinary(qualifier); } @@ -12857,11 +13306,11 @@ public class THBaseService { * column qualifier to check */ public checkAndDelete_args setQualifier(byte[] qualifier) { - this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + this.qualifier = qualifier == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(qualifier.clone()); return this; } - public checkAndDelete_args setQualifier(ByteBuffer qualifier) { + public checkAndDelete_args setQualifier(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); return this; } @@ -12891,7 +13340,7 @@ public class THBaseService { return value == null ? null : value.array(); } - public ByteBuffer bufferForValue() { + public java.nio.ByteBuffer bufferForValue() { return org.apache.thrift.TBaseHelper.copyBinary(value); } @@ -12901,11 +13350,11 @@ public class THBaseService { * column in question */ public checkAndDelete_args setValue(byte[] value) { - this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone()); return this; } - public checkAndDelete_args setValue(ByteBuffer value) { + public checkAndDelete_args setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) { this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -12928,6 +13377,7 @@ public class THBaseService { /** * the TDelete to execute if the check succeeds */ + @org.apache.thrift.annotation.Nullable public TDelete getTdelete() { return this.tdelete; } @@ -12935,7 +13385,7 @@ public class THBaseService { /** * the TDelete to execute if the check succeeds */ - public checkAndDelete_args setTdelete(TDelete tdelete) { + public checkAndDelete_args setTdelete(@org.apache.thrift.annotation.Nullable TDelete tdelete) { this.tdelete = tdelete; return this; } @@ -12955,13 +13405,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -12969,7 +13423,11 @@ public class THBaseService { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -12977,7 +13435,11 @@ public class THBaseService { if (value == null) { unsetFamily(); } else { - setFamily((ByteBuffer)value); + if (value instanceof byte[]) { + setFamily((byte[])value); + } else { + setFamily((java.nio.ByteBuffer)value); + } } break; @@ -12985,7 +13447,11 @@ public class THBaseService { if (value == null) { unsetQualifier(); } else { - setQualifier((ByteBuffer)value); + if (value instanceof byte[]) { + setQualifier((byte[])value); + } else { + setQualifier((java.nio.ByteBuffer)value); + } } break; @@ -12993,7 +13459,11 @@ public class THBaseService { if (value == null) { unsetValue(); } else { - setValue((ByteBuffer)value); + if (value instanceof byte[]) { + setValue((byte[])value); + } else { + setValue((java.nio.ByteBuffer)value); + } } break; @@ -13008,7 +13478,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -13029,13 +13500,13 @@ public class THBaseService { return getTdelete(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -13052,11 +13523,11 @@ public class THBaseService { case TDELETE: return isSetTdelete(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndDelete_args) @@ -13067,6 +13538,8 @@ public class THBaseService { public boolean equals(checkAndDelete_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -13127,39 +13600,33 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_tdelete = true && (isSetTdelete()); - list.add(present_tdelete); - if (present_tdelete) - list.add(tdelete); + hashCode = hashCode * 8191 + ((isSetTdelete()) ? 131071 : 524287); + if (isSetTdelete()) + hashCode = hashCode * 8191 + tdelete.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13170,7 +13637,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -13180,7 +13647,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -13190,7 +13657,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + lastComparison = java.lang.Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } @@ -13200,7 +13667,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + lastComparison = java.lang.Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } @@ -13210,7 +13677,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -13220,7 +13687,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); + lastComparison = java.lang.Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); if (lastComparison != 0) { return lastComparison; } @@ -13233,21 +13700,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndDelete_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndDelete_args("); boolean first = true; sb.append("table:"); @@ -13332,7 +13800,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13340,13 +13808,13 @@ public class THBaseService { } } - private static class checkAndDelete_argsStandardSchemeFactory implements SchemeFactory { + private static class checkAndDelete_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndDelete_argsStandardScheme getScheme() { return new checkAndDelete_argsStandardScheme(); } } - private static class checkAndDelete_argsStandardScheme extends StandardScheme { + private static class checkAndDelete_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndDelete_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13458,23 +13926,23 @@ public class THBaseService { } - private static class checkAndDelete_argsTupleSchemeFactory implements SchemeFactory { + private static class checkAndDelete_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndDelete_argsTupleScheme getScheme() { return new checkAndDelete_argsTupleScheme(); } } - private static class checkAndDelete_argsTupleScheme extends TupleScheme { + private static class checkAndDelete_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.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(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -13486,7 +13954,7 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.row = iprot.readBinary(); @@ -13498,7 +13966,7 @@ public class THBaseService { struct.tdelete = new TDelete(); struct.tdelete.read(iprot); struct.setTdeleteIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.value = iprot.readBinary(); struct.setValueIsSet(true); @@ -13506,6 +13974,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndDelete_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13514,24 +13985,21 @@ public class THBaseService { 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 checkAndDelete_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndDelete_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndDelete_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndDelete_resultTupleSchemeFactory(); public boolean success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -13539,6 +14007,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -13556,21 +14025,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -13579,7 +14049,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -13587,14 +14057,14 @@ 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndDelete_result.class, metaDataMap); } @@ -13644,23 +14114,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public checkAndDelete_result setIo(TIOError io) { + public checkAndDelete_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -13680,13 +14151,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -13701,7 +14172,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -13710,13 +14182,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -13725,11 +14197,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndDelete_result) @@ -13740,6 +14212,8 @@ public class THBaseService { public boolean equals(checkAndDelete_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -13764,19 +14238,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13787,7 +14257,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -13797,7 +14267,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -13810,21 +14280,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndDelete_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndDelete_result("); boolean first = true; sb.append("success:"); @@ -13855,7 +14326,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -13865,13 +14336,13 @@ public class THBaseService { } } - private static class checkAndDelete_resultStandardSchemeFactory implements SchemeFactory { + private static class checkAndDelete_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndDelete_resultStandardScheme getScheme() { return new checkAndDelete_resultStandardScheme(); } } - private static class checkAndDelete_resultStandardScheme extends StandardScheme { + private static class checkAndDelete_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndDelete_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13931,18 +14402,18 @@ public class THBaseService { } - private static class checkAndDelete_resultTupleSchemeFactory implements SchemeFactory { + private static class checkAndDelete_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndDelete_resultTupleScheme getScheme() { return new checkAndDelete_resultTupleScheme(); } } - private static class checkAndDelete_resultTupleScheme extends TupleScheme { + private static class checkAndDelete_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -13960,8 +14431,8 @@ public class THBaseService { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -13974,6 +14445,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class increment_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13982,20 +14456,17 @@ public class THBaseService { 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 increment_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new increment_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new increment_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new increment_argsTupleSchemeFactory(); /** * the table to increment the value on */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TIncrement to increment */ - public TIncrement tincrement; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -14008,10 +14479,10 @@ public class THBaseService { */ TINCREMENT((short)2, "tincrement"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14019,6 +14490,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -14036,21 +14508,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14059,20 +14532,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_args.class, metaDataMap); } @@ -14080,7 +14553,7 @@ public class THBaseService { } public increment_args( - ByteBuffer table, + java.nio.ByteBuffer table, TIncrement tincrement) { this(); @@ -14118,7 +14591,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -14126,11 +14599,11 @@ public class THBaseService { * the table to increment the value on */ public increment_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public increment_args setTable(ByteBuffer table) { + public increment_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -14153,6 +14626,7 @@ public class THBaseService { /** * the TIncrement to increment */ + @org.apache.thrift.annotation.Nullable public TIncrement getTincrement() { return this.tincrement; } @@ -14160,7 +14634,7 @@ public class THBaseService { /** * the TIncrement to increment */ - public increment_args setTincrement(TIncrement tincrement) { + public increment_args setTincrement(@org.apache.thrift.annotation.Nullable TIncrement tincrement) { this.tincrement = tincrement; return this; } @@ -14180,13 +14654,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -14201,7 +14679,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -14210,13 +14689,13 @@ public class THBaseService { return getTincrement(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14225,11 +14704,11 @@ public class THBaseService { case TINCREMENT: return isSetTincrement(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof increment_args) @@ -14240,6 +14719,8 @@ public class THBaseService { public boolean equals(increment_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -14264,19 +14745,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tincrement = true && (isSetTincrement()); - list.add(present_tincrement); - if (present_tincrement) - list.add(tincrement); + hashCode = hashCode * 8191 + ((isSetTincrement()) ? 131071 : 524287); + if (isSetTincrement()) + hashCode = hashCode * 8191 + tincrement.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14287,7 +14766,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -14297,7 +14776,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTincrement()).compareTo(other.isSetTincrement()); + lastComparison = java.lang.Boolean.valueOf(isSetTincrement()).compareTo(other.isSetTincrement()); if (lastComparison != 0) { return lastComparison; } @@ -14310,21 +14789,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("increment_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("increment_args("); boolean first = true; sb.append("table:"); @@ -14368,7 +14848,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14376,13 +14856,13 @@ public class THBaseService { } } - private static class increment_argsStandardSchemeFactory implements SchemeFactory { + private static class increment_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_argsStandardScheme getScheme() { return new increment_argsStandardScheme(); } } - private static class increment_argsStandardScheme extends StandardScheme { + private static class increment_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, increment_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14442,24 +14922,24 @@ public class THBaseService { } - private static class increment_argsTupleSchemeFactory implements SchemeFactory { + private static class increment_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_argsTupleScheme getScheme() { return new increment_argsTupleScheme(); } } - private static class increment_argsTupleScheme extends TupleScheme { + private static class increment_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tincrement.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tincrement = new TIncrement(); @@ -14468,6 +14948,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class increment_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14476,24 +14959,21 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new increment_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new increment_resultTupleSchemeFactory(); - public TResult success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TResult success; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14501,6 +14981,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -14518,21 +14999,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14541,20 +15023,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_result.class, metaDataMap); } @@ -14592,11 +15074,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TResult getSuccess() { return this.success; } - public increment_result setSuccess(TResult success) { + public increment_result setSuccess(@org.apache.thrift.annotation.Nullable TResult success) { this.success = success; return this; } @@ -14616,11 +15099,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public increment_result setIo(TIOError io) { + public increment_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -14640,7 +15124,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -14661,7 +15145,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -14670,13 +15155,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14685,11 +15170,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof increment_result) @@ -14700,6 +15185,8 @@ public class THBaseService { public boolean equals(increment_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -14724,19 +15211,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14747,7 +15232,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -14757,7 +15242,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -14770,21 +15255,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("increment_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("increment_result("); boolean first = true; sb.append("success:"); @@ -14822,7 +15308,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14830,13 +15316,13 @@ public class THBaseService { } } - private static class increment_resultStandardSchemeFactory implements SchemeFactory { + private static class increment_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_resultStandardScheme getScheme() { return new increment_resultStandardScheme(); } } - private static class increment_resultStandardScheme extends StandardScheme { + private static class increment_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, increment_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14897,18 +15383,18 @@ public class THBaseService { } - private static class increment_resultTupleSchemeFactory implements SchemeFactory { + private static class increment_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_resultTupleScheme getScheme() { return new increment_resultTupleScheme(); } } - private static class increment_resultTupleScheme extends TupleScheme { + private static class increment_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -14926,8 +15412,8 @@ public class THBaseService { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); @@ -14941,6 +15427,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class append_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14949,20 +15438,17 @@ public class THBaseService { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new append_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new append_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new append_argsTupleSchemeFactory(); /** * the table to append the value on */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TAppend to append */ - public TAppend tappend; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -14975,10 +15461,10 @@ public class THBaseService { */ TAPPEND((short)2, "tappend"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14986,6 +15472,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -15003,21 +15490,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15026,20 +15514,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_args.class, metaDataMap); } @@ -15047,7 +15535,7 @@ public class THBaseService { } public append_args( - ByteBuffer table, + java.nio.ByteBuffer table, TAppend tappend) { this(); @@ -15085,7 +15573,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -15093,11 +15581,11 @@ public class THBaseService { * the table to append the value on */ public append_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public append_args setTable(ByteBuffer table) { + public append_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -15120,6 +15608,7 @@ public class THBaseService { /** * the TAppend to append */ + @org.apache.thrift.annotation.Nullable public TAppend getTappend() { return this.tappend; } @@ -15127,7 +15616,7 @@ public class THBaseService { /** * the TAppend to append */ - public append_args setTappend(TAppend tappend) { + public append_args setTappend(@org.apache.thrift.annotation.Nullable TAppend tappend) { this.tappend = tappend; return this; } @@ -15147,13 +15636,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -15168,7 +15661,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -15177,13 +15671,13 @@ public class THBaseService { return getTappend(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -15192,11 +15686,11 @@ public class THBaseService { case TAPPEND: return isSetTappend(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof append_args) @@ -15207,6 +15701,8 @@ public class THBaseService { public boolean equals(append_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -15231,19 +15727,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tappend = true && (isSetTappend()); - list.add(present_tappend); - if (present_tappend) - list.add(tappend); + hashCode = hashCode * 8191 + ((isSetTappend()) ? 131071 : 524287); + if (isSetTappend()) + hashCode = hashCode * 8191 + tappend.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15254,7 +15748,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -15264,7 +15758,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTappend()).compareTo(other.isSetTappend()); + lastComparison = java.lang.Boolean.valueOf(isSetTappend()).compareTo(other.isSetTappend()); if (lastComparison != 0) { return lastComparison; } @@ -15277,21 +15771,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("append_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("append_args("); boolean first = true; sb.append("table:"); @@ -15335,7 +15830,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -15343,13 +15838,13 @@ public class THBaseService { } } - private static class append_argsStandardSchemeFactory implements SchemeFactory { + private static class append_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_argsStandardScheme getScheme() { return new append_argsStandardScheme(); } } - private static class append_argsStandardScheme extends StandardScheme { + private static class append_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, append_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15409,24 +15904,24 @@ public class THBaseService { } - private static class append_argsTupleSchemeFactory implements SchemeFactory { + private static class append_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_argsTupleScheme getScheme() { return new append_argsTupleScheme(); } } - private static class append_argsTupleScheme extends TupleScheme { + private static class append_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tappend.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tappend = new TAppend(); @@ -15435,6 +15930,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class append_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15443,24 +15941,21 @@ public class THBaseService { 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 append_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new append_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new append_resultTupleSchemeFactory(); - public TResult success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TResult success; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15468,6 +15963,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -15485,21 +15981,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15508,20 +16005,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_result.class, metaDataMap); } @@ -15559,11 +16056,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TResult getSuccess() { return this.success; } - public append_result setSuccess(TResult success) { + public append_result setSuccess(@org.apache.thrift.annotation.Nullable TResult success) { this.success = success; return this; } @@ -15583,11 +16081,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public append_result setIo(TIOError io) { + public append_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -15607,7 +16106,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -15628,7 +16127,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -15637,13 +16137,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -15652,11 +16152,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof append_result) @@ -15667,6 +16167,8 @@ public class THBaseService { public boolean equals(append_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -15691,19 +16193,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15714,7 +16214,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -15724,7 +16224,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -15737,21 +16237,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("append_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("append_result("); boolean first = true; sb.append("success:"); @@ -15789,7 +16290,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -15797,13 +16298,13 @@ public class THBaseService { } } - private static class append_resultStandardSchemeFactory implements SchemeFactory { + private static class append_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_resultStandardScheme getScheme() { return new append_resultStandardScheme(); } } - private static class append_resultStandardScheme extends StandardScheme { + private static class append_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, append_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15864,18 +16365,18 @@ public class THBaseService { } - private static class append_resultTupleSchemeFactory implements SchemeFactory { + private static class append_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_resultTupleScheme getScheme() { return new append_resultTupleScheme(); } } - private static class append_resultTupleScheme extends TupleScheme { + private static class append_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -15893,8 +16394,8 @@ public class THBaseService { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); @@ -15908,6 +16409,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class openScanner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15916,20 +16420,17 @@ public class THBaseService { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new openScanner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new openScanner_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new openScanner_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new openScanner_argsTupleSchemeFactory(); /** * the table to get the Scanner for */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the scan object to get a Scanner for */ - public TScan tscan; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -15942,10 +16443,10 @@ public class THBaseService { */ TSCAN((short)2, "tscan"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15953,6 +16454,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -15970,21 +16472,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15993,20 +16496,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openScanner_args.class, metaDataMap); } @@ -16014,7 +16517,7 @@ public class THBaseService { } public openScanner_args( - ByteBuffer table, + java.nio.ByteBuffer table, TScan tscan) { this(); @@ -16052,7 +16555,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -16060,11 +16563,11 @@ public class THBaseService { * the table to get the Scanner for */ public openScanner_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public openScanner_args setTable(ByteBuffer table) { + public openScanner_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -16087,6 +16590,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ + @org.apache.thrift.annotation.Nullable public TScan getTscan() { return this.tscan; } @@ -16094,7 +16598,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ - public openScanner_args setTscan(TScan tscan) { + public openScanner_args setTscan(@org.apache.thrift.annotation.Nullable TScan tscan) { this.tscan = tscan; return this; } @@ -16114,13 +16618,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -16135,7 +16643,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -16144,13 +16653,13 @@ public class THBaseService { return getTscan(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -16159,11 +16668,11 @@ public class THBaseService { case TSCAN: return isSetTscan(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof openScanner_args) @@ -16174,6 +16683,8 @@ public class THBaseService { public boolean equals(openScanner_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -16198,19 +16709,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tscan = true && (isSetTscan()); - list.add(present_tscan); - if (present_tscan) - list.add(tscan); + hashCode = hashCode * 8191 + ((isSetTscan()) ? 131071 : 524287); + if (isSetTscan()) + hashCode = hashCode * 8191 + tscan.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16221,7 +16730,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -16231,7 +16740,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); + lastComparison = java.lang.Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); if (lastComparison != 0) { return lastComparison; } @@ -16244,21 +16753,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("openScanner_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("openScanner_args("); boolean first = true; sb.append("table:"); @@ -16302,7 +16812,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -16310,13 +16820,13 @@ public class THBaseService { } } - private static class openScanner_argsStandardSchemeFactory implements SchemeFactory { + private static class openScanner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public openScanner_argsStandardScheme getScheme() { return new openScanner_argsStandardScheme(); } } - private static class openScanner_argsStandardScheme extends StandardScheme { + private static class openScanner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, openScanner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16376,24 +16886,24 @@ public class THBaseService { } - private static class openScanner_argsTupleSchemeFactory implements SchemeFactory { + private static class openScanner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public openScanner_argsTupleScheme getScheme() { return new openScanner_argsTupleScheme(); } } - private static class openScanner_argsTupleScheme extends TupleScheme { + private static class openScanner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, openScanner_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tscan.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, openScanner_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tscan = new TScan(); @@ -16402,6 +16912,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class openScanner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16410,24 +16923,21 @@ public class THBaseService { 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 openScanner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new openScanner_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new openScanner_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new openScanner_resultTupleSchemeFactory(); public int success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16435,6 +16945,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -16452,21 +16963,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16475,7 +16987,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -16483,14 +16995,14 @@ 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openScanner_result.class, metaDataMap); } @@ -16540,23 +17052,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public openScanner_result setIo(TIOError io) { + public openScanner_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -16576,13 +17089,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -16597,7 +17110,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -16606,13 +17120,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -16621,11 +17135,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof openScanner_result) @@ -16636,6 +17150,8 @@ public class THBaseService { public boolean equals(openScanner_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -16660,19 +17176,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16683,7 +17195,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -16693,7 +17205,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -16706,21 +17218,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("openScanner_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("openScanner_result("); boolean first = true; sb.append("success:"); @@ -16751,7 +17264,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -16761,13 +17274,13 @@ public class THBaseService { } } - private static class openScanner_resultStandardSchemeFactory implements SchemeFactory { + private static class openScanner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public openScanner_resultStandardScheme getScheme() { return new openScanner_resultStandardScheme(); } } - private static class openScanner_resultStandardScheme extends StandardScheme { + private static class openScanner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, openScanner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16827,18 +17340,18 @@ public class THBaseService { } - private static class openScanner_resultTupleSchemeFactory implements SchemeFactory { + private static class openScanner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public openScanner_resultTupleScheme getScheme() { return new openScanner_resultTupleScheme(); } } - private static class openScanner_resultTupleScheme extends TupleScheme { + private static class openScanner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -16856,8 +17369,8 @@ public class THBaseService { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -16870,6 +17383,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getScannerRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16878,11 +17394,8 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getScannerRows_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getScannerRows_argsTupleSchemeFactory(); /** * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. @@ -16904,10 +17417,10 @@ public class THBaseService { */ NUM_ROWS((short)2, "numRows"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16915,6 +17428,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SCANNER_ID @@ -16932,21 +17446,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16955,7 +17470,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -16964,14 +17479,14 @@ public class THBaseService { 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerRows_args.class, metaDataMap); } @@ -17029,16 +17544,16 @@ public class THBaseService { } public void unsetScannerId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); } /** 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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SCANNERID_ISSET_ID); } public void setScannerIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); } /** @@ -17058,25 +17573,25 @@ public class THBaseService { } public void unsetNumRows() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); } public void setNumRowsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SCANNER_ID: if (value == null) { unsetScannerId(); } else { - setScannerId((Integer)value); + setScannerId((java.lang.Integer)value); } break; @@ -17084,14 +17599,15 @@ public class THBaseService { if (value == null) { unsetNumRows(); } else { - setNumRows((Integer)value); + setNumRows((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SCANNER_ID: return getScannerId(); @@ -17100,13 +17616,13 @@ public class THBaseService { return getNumRows(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -17115,11 +17631,11 @@ public class THBaseService { case NUM_ROWS: return isSetNumRows(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getScannerRows_args) @@ -17130,6 +17646,8 @@ public class THBaseService { public boolean equals(getScannerRows_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_scannerId = true; boolean that_present_scannerId = true; @@ -17154,19 +17672,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_scannerId = true; - list.add(present_scannerId); - if (present_scannerId) - list.add(scannerId); + hashCode = hashCode * 8191 + scannerId; - boolean present_numRows = true; - list.add(present_numRows); - if (present_numRows) - list.add(numRows); + hashCode = hashCode * 8191 + numRows; - return list.hashCode(); + return hashCode; } @Override @@ -17177,7 +17689,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); + lastComparison = java.lang.Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); if (lastComparison != 0) { return lastComparison; } @@ -17187,7 +17699,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); + lastComparison = java.lang.Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); if (lastComparison != 0) { return lastComparison; } @@ -17200,21 +17712,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getScannerRows_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getScannerRows_args("); boolean first = true; sb.append("scannerId:"); @@ -17242,7 +17755,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -17252,13 +17765,13 @@ public class THBaseService { } } - private static class getScannerRows_argsStandardSchemeFactory implements SchemeFactory { + private static class getScannerRows_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerRows_argsStandardScheme getScheme() { return new getScannerRows_argsStandardScheme(); } } - private static class getScannerRows_argsStandardScheme extends StandardScheme { + private static class getScannerRows_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerRows_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17316,19 +17829,19 @@ public class THBaseService { } - private static class getScannerRows_argsTupleSchemeFactory implements SchemeFactory { + private static class getScannerRows_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerRows_argsTupleScheme getScheme() { return new getScannerRows_argsTupleScheme(); } } - private static class getScannerRows_argsTupleScheme extends TupleScheme { + private static class getScannerRows_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.scannerId); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNumRows()) { optionals.set(0); } @@ -17340,10 +17853,10 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getScannerRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.scannerId = iprot.readI32(); struct.setScannerIdIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.numRows = iprot.readI32(); struct.setNumRowsIsSet(true); @@ -17351,6 +17864,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getScannerRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17360,18 +17876,15 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getScannerRows_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getScannerRows_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** * if the scannerId is invalid */ - public TIllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -17382,10 +17895,10 @@ public class THBaseService { */ IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -17393,6 +17906,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -17412,21 +17926,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -17435,23 +17950,23 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerRows_result.class, metaDataMap); } @@ -17459,7 +17974,7 @@ public class THBaseService { } public getScannerRows_result( - List success, + java.util.List success, TIOError io, TIllegalArgument ia) { @@ -17474,7 +17989,7 @@ public class THBaseService { */ public getScannerRows_result(getScannerRows_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } @@ -17503,22 +18018,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getScannerRows_result setSuccess(List success) { + public getScannerRows_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -17538,11 +18055,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getScannerRows_result setIo(TIOError io) { + public getScannerRows_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -17565,6 +18083,7 @@ public class THBaseService { /** * if the scannerId is invalid */ + @org.apache.thrift.annotation.Nullable public TIllegalArgument getIa() { return this.ia; } @@ -17572,7 +18091,7 @@ public class THBaseService { /** * if the scannerId is invalid */ - public getScannerRows_result setIa(TIllegalArgument ia) { + public getScannerRows_result setIa(@org.apache.thrift.annotation.Nullable TIllegalArgument ia) { this.ia = ia; return this; } @@ -17592,13 +18111,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -17621,7 +18140,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -17633,13 +18153,13 @@ public class THBaseService { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -17650,11 +18170,11 @@ public class THBaseService { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getScannerRows_result) @@ -17665,6 +18185,8 @@ public class THBaseService { public boolean equals(getScannerRows_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -17698,24 +18220,21 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -17726,7 +18245,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -17736,7 +18255,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -17746,7 +18265,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -17759,21 +18278,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getScannerRows_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getScannerRows_result("); boolean first = true; sb.append("success:"); @@ -17816,7 +18336,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -17824,13 +18344,13 @@ public class THBaseService { } } - private static class getScannerRows_resultStandardSchemeFactory implements SchemeFactory { + private static class getScannerRows_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerRows_resultStandardScheme getScheme() { return new getScannerRows_resultStandardScheme(); } } - private static class getScannerRows_resultStandardScheme extends StandardScheme { + private static class getScannerRows_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerRows_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17845,14 +18365,14 @@ public class THBaseService { 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); - TResult _elem173; - for (int _i174 = 0; _i174 < _list172.size; ++_i174) + org.apache.thrift.protocol.TList _list198 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list198.size); + @org.apache.thrift.annotation.Nullable TResult _elem199; + for (int _i200 = 0; _i200 < _list198.size; ++_i200) { - _elem173 = new TResult(); - _elem173.read(iprot); - struct.success.add(_elem173); + _elem199 = new TResult(); + _elem199.read(iprot); + struct.success.add(_elem199); } iprot.readListEnd(); } @@ -17898,9 +18418,9 @@ public class THBaseService { 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) + for (TResult _iter201 : struct.success) { - _iter175.write(oprot); + _iter201.write(oprot); } oprot.writeListEnd(); } @@ -17922,18 +18442,18 @@ public class THBaseService { } - private static class getScannerRows_resultTupleSchemeFactory implements SchemeFactory { + private static class getScannerRows_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerRows_resultTupleScheme getScheme() { return new getScannerRows_resultTupleScheme(); } } - private static class getScannerRows_resultTupleScheme extends TupleScheme { + private static class getScannerRows_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -17947,9 +18467,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TResult _iter176 : struct.success) + for (TResult _iter202 : struct.success) { - _iter176.write(oprot); + _iter202.write(oprot); } } } @@ -17963,18 +18483,18 @@ public class THBaseService { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); 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); - TResult _elem178; - for (int _i179 = 0; _i179 < _list177.size; ++_i179) + org.apache.thrift.protocol.TList _list203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list203.size); + @org.apache.thrift.annotation.Nullable TResult _elem204; + for (int _i205 = 0; _i205 < _list203.size; ++_i205) { - _elem178 = new TResult(); - _elem178.read(iprot); - struct.success.add(_elem178); + _elem204 = new TResult(); + _elem204.read(iprot); + struct.success.add(_elem204); } } struct.setSuccessIsSet(true); @@ -17992,6 +18512,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class closeScanner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17999,11 +18522,8 @@ public class THBaseService { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new closeScanner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new closeScanner_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new closeScanner_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new closeScanner_argsTupleSchemeFactory(); /** * the Id of the Scanner to close * @@ -18017,10 +18537,10 @@ public class THBaseService { */ SCANNER_ID((short)1, "scannerId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18028,6 +18548,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SCANNER_ID @@ -18043,21 +18564,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18066,7 +18588,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -18074,12 +18596,12 @@ 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeScanner_args.class, metaDataMap); } @@ -18129,55 +18651,56 @@ public class THBaseService { } public void unsetScannerId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); } /** 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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SCANNERID_ISSET_ID); } public void setScannerIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SCANNER_ID: if (value == null) { unsetScannerId(); } else { - setScannerId((Integer)value); + setScannerId((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SCANNER_ID: return getScannerId(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SCANNER_ID: return isSetScannerId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof closeScanner_args) @@ -18188,6 +18711,8 @@ public class THBaseService { public boolean equals(closeScanner_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_scannerId = true; boolean that_present_scannerId = true; @@ -18203,14 +18728,11 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_scannerId = true; - list.add(present_scannerId); - if (present_scannerId) - list.add(scannerId); + hashCode = hashCode * 8191 + scannerId; - return list.hashCode(); + return hashCode; } @Override @@ -18221,7 +18743,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); + lastComparison = java.lang.Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); if (lastComparison != 0) { return lastComparison; } @@ -18234,21 +18756,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("closeScanner_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("closeScanner_args("); boolean first = true; sb.append("scannerId:"); @@ -18272,7 +18795,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -18282,13 +18805,13 @@ public class THBaseService { } } - private static class closeScanner_argsStandardSchemeFactory implements SchemeFactory { + private static class closeScanner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public closeScanner_argsStandardScheme getScheme() { return new closeScanner_argsStandardScheme(); } } - private static class closeScanner_argsStandardScheme extends StandardScheme { + private static class closeScanner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, closeScanner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18335,28 +18858,31 @@ public class THBaseService { } - private static class closeScanner_argsTupleSchemeFactory implements SchemeFactory { + private static class closeScanner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public closeScanner_argsTupleScheme getScheme() { return new closeScanner_argsTupleScheme(); } } - private static class closeScanner_argsTupleScheme extends TupleScheme { + private static class closeScanner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, closeScanner_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.scannerId); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeScanner_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.scannerId = iprot.readI32(); struct.setScannerIdIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class closeScanner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18365,17 +18891,14 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new closeScanner_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new closeScanner_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** * if the scannerId is invalid */ - public TIllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -18385,10 +18908,10 @@ public class THBaseService { */ IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18396,6 +18919,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -18413,21 +18937,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18436,20 +18961,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeScanner_result.class, metaDataMap); } @@ -18487,11 +19012,12 @@ public class THBaseService { this.ia = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public closeScanner_result setIo(TIOError io) { + public closeScanner_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -18514,6 +19040,7 @@ public class THBaseService { /** * if the scannerId is invalid */ + @org.apache.thrift.annotation.Nullable public TIllegalArgument getIa() { return this.ia; } @@ -18521,7 +19048,7 @@ public class THBaseService { /** * if the scannerId is invalid */ - public closeScanner_result setIa(TIllegalArgument ia) { + public closeScanner_result setIa(@org.apache.thrift.annotation.Nullable TIllegalArgument ia) { this.ia = ia; return this; } @@ -18541,7 +19068,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -18562,7 +19089,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); @@ -18571,13 +19099,13 @@ public class THBaseService { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -18586,11 +19114,11 @@ public class THBaseService { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof closeScanner_result) @@ -18601,6 +19129,8 @@ public class THBaseService { public boolean equals(closeScanner_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -18625,19 +19155,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -18648,7 +19176,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -18658,7 +19186,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -18671,21 +19199,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("closeScanner_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("closeScanner_result("); boolean first = true; sb.append("io:"); @@ -18720,7 +19249,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -18728,13 +19257,13 @@ public class THBaseService { } } - private static class closeScanner_resultStandardSchemeFactory implements SchemeFactory { + private static class closeScanner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public closeScanner_resultStandardScheme getScheme() { return new closeScanner_resultStandardScheme(); } } - private static class closeScanner_resultStandardScheme extends StandardScheme { + private static class closeScanner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, closeScanner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18795,18 +19324,18 @@ public class THBaseService { } - private static class closeScanner_resultTupleSchemeFactory implements SchemeFactory { + private static class closeScanner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public closeScanner_resultTupleScheme getScheme() { return new closeScanner_resultTupleScheme(); } } - private static class closeScanner_resultTupleScheme extends TupleScheme { + private static class closeScanner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -18824,8 +19353,8 @@ public class THBaseService { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -18839,6 +19368,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18847,20 +19379,17 @@ public class THBaseService { 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 mutateRow_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRow_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRow_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRow_argsTupleSchemeFactory(); /** * table to apply the mutations */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * mutations to apply */ - public TRowMutations trowMutations; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -18873,10 +19402,10 @@ public class THBaseService { */ TROW_MUTATIONS((short)2, "trowMutations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18884,6 +19413,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -18901,21 +19431,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18924,20 +19455,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_args.class, metaDataMap); } @@ -18945,7 +19476,7 @@ public class THBaseService { } public mutateRow_args( - ByteBuffer table, + java.nio.ByteBuffer table, TRowMutations trowMutations) { this(); @@ -18983,7 +19514,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -18991,11 +19522,11 @@ public class THBaseService { * table to apply the mutations */ public mutateRow_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public mutateRow_args setTable(ByteBuffer table) { + public mutateRow_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -19018,6 +19549,7 @@ public class THBaseService { /** * mutations to apply */ + @org.apache.thrift.annotation.Nullable public TRowMutations getTrowMutations() { return this.trowMutations; } @@ -19025,7 +19557,7 @@ public class THBaseService { /** * mutations to apply */ - public mutateRow_args setTrowMutations(TRowMutations trowMutations) { + public mutateRow_args setTrowMutations(@org.apache.thrift.annotation.Nullable TRowMutations trowMutations) { this.trowMutations = trowMutations; return this; } @@ -19045,13 +19577,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -19066,7 +19602,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -19075,13 +19612,13 @@ public class THBaseService { return getTrowMutations(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -19090,11 +19627,11 @@ public class THBaseService { case TROW_MUTATIONS: return isSetTrowMutations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRow_args) @@ -19105,6 +19642,8 @@ public class THBaseService { public boolean equals(mutateRow_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -19129,19 +19668,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_trowMutations = true && (isSetTrowMutations()); - list.add(present_trowMutations); - if (present_trowMutations) - list.add(trowMutations); + hashCode = hashCode * 8191 + ((isSetTrowMutations()) ? 131071 : 524287); + if (isSetTrowMutations()) + hashCode = hashCode * 8191 + trowMutations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -19152,7 +19689,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -19162,7 +19699,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTrowMutations()).compareTo(other.isSetTrowMutations()); + lastComparison = java.lang.Boolean.valueOf(isSetTrowMutations()).compareTo(other.isSetTrowMutations()); if (lastComparison != 0) { return lastComparison; } @@ -19175,21 +19712,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRow_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRow_args("); boolean first = true; sb.append("table:"); @@ -19233,7 +19771,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -19241,13 +19779,13 @@ public class THBaseService { } } - private static class mutateRow_argsStandardSchemeFactory implements SchemeFactory { + private static class mutateRow_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_argsStandardScheme getScheme() { return new mutateRow_argsStandardScheme(); } } - private static class mutateRow_argsStandardScheme extends StandardScheme { + private static class mutateRow_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19307,24 +19845,24 @@ public class THBaseService { } - private static class mutateRow_argsTupleSchemeFactory implements SchemeFactory { + private static class mutateRow_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_argsTupleScheme getScheme() { return new mutateRow_argsTupleScheme(); } } - private static class mutateRow_argsTupleScheme extends TupleScheme { + private static class mutateRow_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.trowMutations.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.trowMutations = new TRowMutations(); @@ -19333,6 +19871,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -19340,22 +19881,19 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRow_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRow_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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 { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -19363,6 +19901,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -19378,21 +19917,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -19401,18 +19941,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_result.class, metaDataMap); } @@ -19444,11 +19984,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public mutateRow_result setIo(TIOError io) { + public mutateRow_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -19468,7 +20009,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -19481,30 +20022,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRow_result) @@ -19515,6 +20057,8 @@ public class THBaseService { public boolean equals(mutateRow_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -19530,14 +20074,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -19548,7 +20091,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -19561,21 +20104,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRow_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRow_result("); boolean first = true; sb.append("io:"); @@ -19602,7 +20146,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -19610,13 +20154,13 @@ public class THBaseService { } } - private static class mutateRow_resultStandardSchemeFactory implements SchemeFactory { + private static class mutateRow_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_resultStandardScheme getScheme() { return new mutateRow_resultStandardScheme(); } } - private static class mutateRow_resultStandardScheme extends StandardScheme { + private static class mutateRow_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19663,18 +20207,18 @@ public class THBaseService { } - private static class mutateRow_resultTupleSchemeFactory implements SchemeFactory { + private static class mutateRow_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_resultTupleScheme getScheme() { return new mutateRow_resultTupleScheme(); } } - private static class mutateRow_resultTupleScheme extends TupleScheme { + private static class mutateRow_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -19686,8 +20230,8 @@ public class THBaseService { @Override 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(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -19696,6 +20240,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getScannerResults_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -19705,20 +20252,17 @@ public class THBaseService { 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 getScannerResults_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerResults_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getScannerResults_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getScannerResults_argsTupleSchemeFactory(); /** * the table to get the Scanner for */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the scan object to get a Scanner for */ - public TScan tscan; // required + public @org.apache.thrift.annotation.Nullable TScan tscan; // required /** * number of rows to return */ @@ -19739,10 +20283,10 @@ public class THBaseService { */ NUM_ROWS((short)3, "numRows"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -19750,6 +20294,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -19769,21 +20314,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -19792,7 +20338,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -19800,16 +20346,16 @@ 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerResults_args.class, metaDataMap); } @@ -19819,7 +20365,7 @@ public class THBaseService { } public getScannerResults_args( - ByteBuffer table, + java.nio.ByteBuffer table, TScan tscan, int numRows) { @@ -19864,7 +20410,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -19872,11 +20418,11 @@ public class THBaseService { * the table to get the Scanner for */ public getScannerResults_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public getScannerResults_args setTable(ByteBuffer table) { + public getScannerResults_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -19899,6 +20445,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ + @org.apache.thrift.annotation.Nullable public TScan getTscan() { return this.tscan; } @@ -19906,7 +20453,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ - public getScannerResults_args setTscan(TScan tscan) { + public getScannerResults_args setTscan(@org.apache.thrift.annotation.Nullable TScan tscan) { this.tscan = tscan; return this; } @@ -19943,25 +20490,29 @@ public class THBaseService { } public void unsetNumRows() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); } public void setNumRowsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -19977,14 +20528,15 @@ public class THBaseService { if (value == null) { unsetNumRows(); } else { - setNumRows((Integer)value); + setNumRows((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -19996,13 +20548,13 @@ public class THBaseService { return getNumRows(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -20013,11 +20565,11 @@ public class THBaseService { case NUM_ROWS: return isSetNumRows(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getScannerResults_args) @@ -20028,6 +20580,8 @@ public class THBaseService { public boolean equals(getScannerResults_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -20061,24 +20615,19 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tscan = true && (isSetTscan()); - list.add(present_tscan); - if (present_tscan) - list.add(tscan); + hashCode = hashCode * 8191 + ((isSetTscan()) ? 131071 : 524287); + if (isSetTscan()) + hashCode = hashCode * 8191 + tscan.hashCode(); - boolean present_numRows = true; - list.add(present_numRows); - if (present_numRows) - list.add(numRows); + hashCode = hashCode * 8191 + numRows; - return list.hashCode(); + return hashCode; } @Override @@ -20089,7 +20638,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -20099,7 +20648,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); + lastComparison = java.lang.Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); if (lastComparison != 0) { return lastComparison; } @@ -20109,7 +20658,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); + lastComparison = java.lang.Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); if (lastComparison != 0) { return lastComparison; } @@ -20122,21 +20671,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getScannerResults_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getScannerResults_args("); boolean first = true; sb.append("table:"); @@ -20184,7 +20734,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -20194,13 +20744,13 @@ public class THBaseService { } } - private static class getScannerResults_argsStandardSchemeFactory implements SchemeFactory { + private static class getScannerResults_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerResults_argsStandardScheme getScheme() { return new getScannerResults_argsStandardScheme(); } } - private static class getScannerResults_argsStandardScheme extends StandardScheme { + private static class getScannerResults_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerResults_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20271,20 +20821,20 @@ public class THBaseService { } - private static class getScannerResults_argsTupleSchemeFactory implements SchemeFactory { + private static class getScannerResults_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerResults_argsTupleScheme getScheme() { return new getScannerResults_argsTupleScheme(); } } - private static class getScannerResults_argsTupleScheme extends TupleScheme { + private static class getScannerResults_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tscan.write(oprot); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNumRows()) { optionals.set(0); } @@ -20296,13 +20846,13 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tscan = new TScan(); struct.tscan.read(iprot); struct.setTscanIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.numRows = iprot.readI32(); struct.setNumRowsIsSet(true); @@ -20310,6 +20860,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getScannerResults_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20318,24 +20871,21 @@ public class THBaseService { 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 getScannerResults_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerResults_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getScannerResults_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getScannerResults_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20343,6 +20893,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -20360,21 +20911,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20383,21 +20935,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerResults_result.class, metaDataMap); } @@ -20405,7 +20957,7 @@ public class THBaseService { } public getScannerResults_result( - List success, + java.util.List success, TIOError io) { this(); @@ -20418,7 +20970,7 @@ public class THBaseService { */ public getScannerResults_result(getScannerResults_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } @@ -20443,22 +20995,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getScannerResults_result setSuccess(List success) { + public getScannerResults_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -20478,11 +21032,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getScannerResults_result setIo(TIOError io) { + public getScannerResults_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -20502,13 +21057,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -20523,7 +21078,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -20532,13 +21088,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -20547,11 +21103,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getScannerResults_result) @@ -20562,6 +21118,8 @@ public class THBaseService { public boolean equals(getScannerResults_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -20586,19 +21144,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -20609,7 +21165,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -20619,7 +21175,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -20632,21 +21188,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getScannerResults_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getScannerResults_result("); boolean first = true; sb.append("success:"); @@ -20681,7 +21238,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -20689,13 +21246,13 @@ public class THBaseService { } } - private static class getScannerResults_resultStandardSchemeFactory implements SchemeFactory { + private static class getScannerResults_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerResults_resultStandardScheme getScheme() { return new getScannerResults_resultStandardScheme(); } } - private static class getScannerResults_resultStandardScheme extends StandardScheme { + private static class getScannerResults_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerResults_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20710,14 +21267,14 @@ public class THBaseService { 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) + org.apache.thrift.protocol.TList _list206 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list206.size); + @org.apache.thrift.annotation.Nullable TResult _elem207; + for (int _i208 = 0; _i208 < _list206.size; ++_i208) { - _elem181 = new TResult(); - _elem181.read(iprot); - struct.success.add(_elem181); + _elem207 = new TResult(); + _elem207.read(iprot); + struct.success.add(_elem207); } iprot.readListEnd(); } @@ -20754,9 +21311,9 @@ public class THBaseService { 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) + for (TResult _iter209 : struct.success) { - _iter183.write(oprot); + _iter209.write(oprot); } oprot.writeListEnd(); } @@ -20773,18 +21330,18 @@ public class THBaseService { } - private static class getScannerResults_resultTupleSchemeFactory implements SchemeFactory { + private static class getScannerResults_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerResults_resultTupleScheme getScheme() { return new getScannerResults_resultTupleScheme(); } } - private static class getScannerResults_resultTupleScheme extends TupleScheme { + private static class getScannerResults_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -20795,9 +21352,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TResult _iter184 : struct.success) + for (TResult _iter210 : struct.success) { - _iter184.write(oprot); + _iter210.write(oprot); } } } @@ -20808,18 +21365,18 @@ public class THBaseService { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.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) + org.apache.thrift.protocol.TList _list211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list211.size); + @org.apache.thrift.annotation.Nullable TResult _elem212; + for (int _i213 = 0; _i213 < _list211.size; ++_i213) { - _elem186 = new TResult(); - _elem186.read(iprot); - struct.success.add(_elem186); + _elem212 = new TResult(); + _elem212.read(iprot); + struct.success.add(_elem212); } } struct.setSuccessIsSet(true); @@ -20832,6 +21389,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRegionLocation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20841,14 +21401,11 @@ public class THBaseService { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRegionLocation_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRegionLocation_argsTupleSchemeFactory(); - public ByteBuffer table; // required - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required public boolean reload; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -20857,10 +21414,10 @@ public class THBaseService { ROW((short)2, "row"), RELOAD((short)3, "reload"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20868,6 +21425,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -20887,21 +21445,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20910,7 +21469,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -20918,16 +21477,16 @@ 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionLocation_args.class, metaDataMap); } @@ -20935,8 +21494,8 @@ public class THBaseService { } public getRegionLocation_args( - ByteBuffer table, - ByteBuffer row, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, boolean reload) { this(); @@ -20977,16 +21536,16 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } public getRegionLocation_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public getRegionLocation_args setTable(ByteBuffer table) { + public getRegionLocation_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -21011,16 +21570,16 @@ public class THBaseService { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.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)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getRegionLocation_args setRow(ByteBuffer row) { + public getRegionLocation_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -21051,25 +21610,29 @@ public class THBaseService { } public void unsetReload() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RELOAD_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __RELOAD_ISSET_ID); } public void setReloadIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RELOAD_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __RELOAD_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -21077,7 +21640,11 @@ public class THBaseService { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -21085,14 +21652,15 @@ public class THBaseService { if (value == null) { unsetReload(); } else { - setReload((Boolean)value); + setReload((java.lang.Boolean)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -21104,13 +21672,13 @@ public class THBaseService { return isReload(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21121,11 +21689,11 @@ public class THBaseService { case RELOAD: return isSetReload(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRegionLocation_args) @@ -21136,6 +21704,8 @@ public class THBaseService { public boolean equals(getRegionLocation_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -21169,24 +21739,19 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_reload = true; - list.add(present_reload); - if (present_reload) - list.add(reload); + hashCode = hashCode * 8191 + ((reload) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -21197,7 +21762,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -21207,7 +21772,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -21217,7 +21782,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReload()).compareTo(other.isSetReload()); + lastComparison = java.lang.Boolean.valueOf(isSetReload()).compareTo(other.isSetReload()); if (lastComparison != 0) { return lastComparison; } @@ -21230,21 +21795,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRegionLocation_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRegionLocation_args("); boolean first = true; sb.append("table:"); @@ -21289,7 +21855,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -21299,13 +21865,13 @@ public class THBaseService { } } - private static class getRegionLocation_argsStandardSchemeFactory implements SchemeFactory { + private static class getRegionLocation_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionLocation_argsStandardScheme getScheme() { return new getRegionLocation_argsStandardScheme(); } } - private static class getRegionLocation_argsStandardScheme extends StandardScheme { + private static class getRegionLocation_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionLocation_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21375,20 +21941,20 @@ public class THBaseService { } - private static class getRegionLocation_argsTupleSchemeFactory implements SchemeFactory { + private static class getRegionLocation_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionLocation_argsTupleScheme getScheme() { return new getRegionLocation_argsTupleScheme(); } } - private static class getRegionLocation_argsTupleScheme extends TupleScheme { + private static class getRegionLocation_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); oprot.writeBinary(struct.row); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetReload()) { optionals.set(0); } @@ -21400,12 +21966,12 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.row = iprot.readBinary(); struct.setRowIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.reload = iprot.readBool(); struct.setReloadIsSet(true); @@ -21413,6 +21979,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRegionLocation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21421,24 +21990,21 @@ public class THBaseService { 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 getRegionLocation_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRegionLocation_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRegionLocation_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRegionLocation_resultTupleSchemeFactory(); - public THRegionLocation success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable THRegionLocation success; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21446,6 +22012,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -21463,21 +22030,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21486,20 +22054,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionLocation_result.class, metaDataMap); } @@ -21537,11 +22105,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public THRegionLocation getSuccess() { return this.success; } - public getRegionLocation_result setSuccess(THRegionLocation success) { + public getRegionLocation_result setSuccess(@org.apache.thrift.annotation.Nullable THRegionLocation success) { this.success = success; return this; } @@ -21561,11 +22130,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getRegionLocation_result setIo(TIOError io) { + public getRegionLocation_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -21585,7 +22155,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -21606,7 +22176,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -21615,13 +22186,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21630,11 +22201,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRegionLocation_result) @@ -21645,6 +22216,8 @@ public class THBaseService { public boolean equals(getRegionLocation_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -21669,19 +22242,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -21692,7 +22263,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -21702,7 +22273,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -21715,21 +22286,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRegionLocation_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRegionLocation_result("); boolean first = true; sb.append("success:"); @@ -21767,7 +22339,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -21775,13 +22347,13 @@ public class THBaseService { } } - private static class getRegionLocation_resultStandardSchemeFactory implements SchemeFactory { + private static class getRegionLocation_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionLocation_resultStandardScheme getScheme() { return new getRegionLocation_resultStandardScheme(); } } - private static class getRegionLocation_resultStandardScheme extends StandardScheme { + private static class getRegionLocation_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionLocation_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21842,18 +22414,18 @@ public class THBaseService { } - private static class getRegionLocation_resultTupleSchemeFactory implements SchemeFactory { + private static class getRegionLocation_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionLocation_resultTupleScheme getScheme() { return new getRegionLocation_resultTupleScheme(); } } - private static class getRegionLocation_resultTupleScheme extends TupleScheme { + private static class getRegionLocation_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -21871,8 +22443,8 @@ public class THBaseService { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new THRegionLocation(); struct.success.read(iprot); @@ -21886,6 +22458,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getAllRegionLocations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21893,22 +22468,19 @@ public class THBaseService { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getAllRegionLocations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllRegionLocations_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAllRegionLocations_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAllRegionLocations_argsTupleSchemeFactory(); - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // 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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21916,6 +22488,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -21931,21 +22504,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21954,18 +22528,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllRegionLocations_args.class, metaDataMap); } @@ -21973,7 +22547,7 @@ public class THBaseService { } public getAllRegionLocations_args( - ByteBuffer table) + java.nio.ByteBuffer table) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -22002,16 +22576,16 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } public getAllRegionLocations_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public getAllRegionLocations_args setTable(ByteBuffer table) { + public getAllRegionLocations_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -22031,43 +22605,48 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE: return isSetTable(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getAllRegionLocations_args) @@ -22078,6 +22657,8 @@ public class THBaseService { public boolean equals(getAllRegionLocations_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -22093,14 +22674,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -22111,7 +22691,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -22124,21 +22704,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getAllRegionLocations_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getAllRegionLocations_args("); boolean first = true; sb.append("table:"); @@ -22168,7 +22749,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22176,13 +22757,13 @@ public class THBaseService { } } - private static class getAllRegionLocations_argsStandardSchemeFactory implements SchemeFactory { + private static class getAllRegionLocations_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllRegionLocations_argsStandardScheme getScheme() { return new getAllRegionLocations_argsStandardScheme(); } } - private static class getAllRegionLocations_argsStandardScheme extends StandardScheme { + private static class getAllRegionLocations_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22228,28 +22809,31 @@ public class THBaseService { } - private static class getAllRegionLocations_argsTupleSchemeFactory implements SchemeFactory { + private static class getAllRegionLocations_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllRegionLocations_argsTupleScheme getScheme() { return new getAllRegionLocations_argsTupleScheme(); } } - private static class getAllRegionLocations_argsTupleScheme extends TupleScheme { + private static class getAllRegionLocations_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getAllRegionLocations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22258,24 +22842,21 @@ public class THBaseService { 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 getAllRegionLocations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllRegionLocations_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAllRegionLocations_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAllRegionLocations_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22283,6 +22864,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -22300,21 +22882,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22323,21 +22906,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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)))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllRegionLocations_result.class, metaDataMap); } @@ -22345,7 +22928,7 @@ public class THBaseService { } public getAllRegionLocations_result( - List success, + java.util.List success, TIOError io) { this(); @@ -22358,7 +22941,7 @@ public class THBaseService { */ public getAllRegionLocations_result(getAllRegionLocations_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (THRegionLocation other_element : other.success) { __this__success.add(new THRegionLocation(other_element)); } @@ -22383,22 +22966,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getAllRegionLocations_result setSuccess(List success) { + public getAllRegionLocations_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -22418,11 +23003,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getAllRegionLocations_result setIo(TIOError io) { + public getAllRegionLocations_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -22442,13 +23028,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -22463,7 +23049,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -22472,13 +23059,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -22487,11 +23074,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getAllRegionLocations_result) @@ -22502,6 +23089,8 @@ public class THBaseService { public boolean equals(getAllRegionLocations_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -22526,19 +23115,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -22549,7 +23136,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -22559,7 +23146,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -22572,21 +23159,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getAllRegionLocations_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getAllRegionLocations_result("); boolean first = true; sb.append("success:"); @@ -22621,7 +23209,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22629,13 +23217,13 @@ public class THBaseService { } } - private static class getAllRegionLocations_resultStandardSchemeFactory implements SchemeFactory { + private static class getAllRegionLocations_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllRegionLocations_resultStandardScheme getScheme() { return new getAllRegionLocations_resultStandardScheme(); } } - private static class getAllRegionLocations_resultStandardScheme extends StandardScheme { + private static class getAllRegionLocations_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22650,14 +23238,14 @@ public class THBaseService { 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); - THRegionLocation _elem189; - for (int _i190 = 0; _i190 < _list188.size; ++_i190) + org.apache.thrift.protocol.TList _list214 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list214.size); + @org.apache.thrift.annotation.Nullable THRegionLocation _elem215; + for (int _i216 = 0; _i216 < _list214.size; ++_i216) { - _elem189 = new THRegionLocation(); - _elem189.read(iprot); - struct.success.add(_elem189); + _elem215 = new THRegionLocation(); + _elem215.read(iprot); + struct.success.add(_elem215); } iprot.readListEnd(); } @@ -22694,9 +23282,9 @@ public class THBaseService { 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) + for (THRegionLocation _iter217 : struct.success) { - _iter191.write(oprot); + _iter217.write(oprot); } oprot.writeListEnd(); } @@ -22713,18 +23301,18 @@ public class THBaseService { } - private static class getAllRegionLocations_resultTupleSchemeFactory implements SchemeFactory { + private static class getAllRegionLocations_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllRegionLocations_resultTupleScheme getScheme() { return new getAllRegionLocations_resultTupleScheme(); } } - private static class getAllRegionLocations_resultTupleScheme extends TupleScheme { + private static class getAllRegionLocations_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -22735,9 +23323,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (THRegionLocation _iter192 : struct.success) + for (THRegionLocation _iter218 : struct.success) { - _iter192.write(oprot); + _iter218.write(oprot); } } } @@ -22748,18 +23336,18 @@ public class THBaseService { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.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); - THRegionLocation _elem194; - for (int _i195 = 0; _i195 < _list193.size; ++_i195) + org.apache.thrift.protocol.TList _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list219.size); + @org.apache.thrift.annotation.Nullable THRegionLocation _elem220; + for (int _i221 = 0; _i221 < _list219.size; ++_i221) { - _elem194 = new THRegionLocation(); - _elem194.read(iprot); - struct.success.add(_elem194); + _elem220 = new THRegionLocation(); + _elem220.read(iprot); + struct.success.add(_elem220); } } struct.setSuccessIsSet(true); @@ -22772,6 +23360,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndMutate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22785,43 +23376,40 @@ public class THBaseService { 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 checkAndMutate_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndMutate_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndMutate_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndMutate_argsTupleSchemeFactory(); /** * to check in and delete from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * row to check */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column family to check */ - public ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required /** * column qualifier to check */ - public ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // required /** * comparison to make on the value * * @see TCompareOp */ - public TCompareOp compareOp; // required + public @org.apache.thrift.annotation.Nullable 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 + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required /** * row mutations to execute if the value matches */ - public TRowMutations rowMutations; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -22857,10 +23445,10 @@ public class THBaseService { */ ROW_MUTATIONS((short)7, "rowMutations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22868,6 +23456,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -22895,21 +23484,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22918,15 +23508,15 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, @@ -22941,7 +23531,7 @@ public class THBaseService { 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndMutate_args.class, metaDataMap); } @@ -22949,12 +23539,12 @@ public class THBaseService { } public checkAndMutate_args( - ByteBuffer table, - ByteBuffer row, - ByteBuffer family, - ByteBuffer qualifier, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, + java.nio.ByteBuffer family, + java.nio.ByteBuffer qualifier, TCompareOp compareOp, - ByteBuffer value, + java.nio.ByteBuffer value, TRowMutations rowMutations) { this(); @@ -23017,7 +23607,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -23025,11 +23615,11 @@ public class THBaseService { * 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)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public checkAndMutate_args setTable(ByteBuffer table) { + public checkAndMutate_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -23057,7 +23647,7 @@ public class THBaseService { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -23065,11 +23655,11 @@ public class THBaseService { * row to check */ public checkAndMutate_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public checkAndMutate_args setRow(ByteBuffer row) { + public checkAndMutate_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -23097,7 +23687,7 @@ public class THBaseService { return family == null ? null : family.array(); } - public ByteBuffer bufferForFamily() { + public java.nio.ByteBuffer bufferForFamily() { return org.apache.thrift.TBaseHelper.copyBinary(family); } @@ -23105,11 +23695,11 @@ public class THBaseService { * column family to check */ public checkAndMutate_args setFamily(byte[] family) { - this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + this.family = family == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(family.clone()); return this; } - public checkAndMutate_args setFamily(ByteBuffer family) { + public checkAndMutate_args setFamily(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family) { this.family = org.apache.thrift.TBaseHelper.copyBinary(family); return this; } @@ -23137,7 +23727,7 @@ public class THBaseService { return qualifier == null ? null : qualifier.array(); } - public ByteBuffer bufferForQualifier() { + public java.nio.ByteBuffer bufferForQualifier() { return org.apache.thrift.TBaseHelper.copyBinary(qualifier); } @@ -23145,11 +23735,11 @@ public class THBaseService { * column qualifier to check */ public checkAndMutate_args setQualifier(byte[] qualifier) { - this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + this.qualifier = qualifier == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(qualifier.clone()); return this; } - public checkAndMutate_args setQualifier(ByteBuffer qualifier) { + public checkAndMutate_args setQualifier(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); return this; } @@ -23174,6 +23764,7 @@ public class THBaseService { * * @see TCompareOp */ + @org.apache.thrift.annotation.Nullable public TCompareOp getCompareOp() { return this.compareOp; } @@ -23183,7 +23774,7 @@ public class THBaseService { * * @see TCompareOp */ - public checkAndMutate_args setCompareOp(TCompareOp compareOp) { + public checkAndMutate_args setCompareOp(@org.apache.thrift.annotation.Nullable TCompareOp compareOp) { this.compareOp = compareOp; return this; } @@ -23212,7 +23803,7 @@ public class THBaseService { return value == null ? null : value.array(); } - public ByteBuffer bufferForValue() { + public java.nio.ByteBuffer bufferForValue() { return org.apache.thrift.TBaseHelper.copyBinary(value); } @@ -23221,11 +23812,11 @@ public class THBaseService { * check is for the non-existence of the column in question */ public checkAndMutate_args setValue(byte[] value) { - this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone()); return this; } - public checkAndMutate_args setValue(ByteBuffer value) { + public checkAndMutate_args setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) { this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -23248,6 +23839,7 @@ public class THBaseService { /** * row mutations to execute if the value matches */ + @org.apache.thrift.annotation.Nullable public TRowMutations getRowMutations() { return this.rowMutations; } @@ -23255,7 +23847,7 @@ public class THBaseService { /** * row mutations to execute if the value matches */ - public checkAndMutate_args setRowMutations(TRowMutations rowMutations) { + public checkAndMutate_args setRowMutations(@org.apache.thrift.annotation.Nullable TRowMutations rowMutations) { this.rowMutations = rowMutations; return this; } @@ -23275,13 +23867,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -23289,7 +23885,11 @@ public class THBaseService { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -23297,7 +23897,11 @@ public class THBaseService { if (value == null) { unsetFamily(); } else { - setFamily((ByteBuffer)value); + if (value instanceof byte[]) { + setFamily((byte[])value); + } else { + setFamily((java.nio.ByteBuffer)value); + } } break; @@ -23305,7 +23909,11 @@ public class THBaseService { if (value == null) { unsetQualifier(); } else { - setQualifier((ByteBuffer)value); + if (value instanceof byte[]) { + setQualifier((byte[])value); + } else { + setQualifier((java.nio.ByteBuffer)value); + } } break; @@ -23321,7 +23929,11 @@ public class THBaseService { if (value == null) { unsetValue(); } else { - setValue((ByteBuffer)value); + if (value instanceof byte[]) { + setValue((byte[])value); + } else { + setValue((java.nio.ByteBuffer)value); + } } break; @@ -23336,7 +23948,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -23360,13 +23973,13 @@ public class THBaseService { return getRowMutations(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -23385,11 +23998,11 @@ public class THBaseService { case ROW_MUTATIONS: return isSetRowMutations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndMutate_args) @@ -23400,6 +24013,8 @@ public class THBaseService { public boolean equals(checkAndMutate_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -23469,44 +24084,37 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_compareOp = true && (isSetCompareOp()); - list.add(present_compareOp); - if (present_compareOp) - list.add(compareOp.getValue()); + hashCode = hashCode * 8191 + ((isSetCompareOp()) ? 131071 : 524287); + if (isSetCompareOp()) + hashCode = hashCode * 8191 + compareOp.getValue(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_rowMutations = true && (isSetRowMutations()); - list.add(present_rowMutations); - if (present_rowMutations) - list.add(rowMutations); + hashCode = hashCode * 8191 + ((isSetRowMutations()) ? 131071 : 524287); + if (isSetRowMutations()) + hashCode = hashCode * 8191 + rowMutations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -23517,7 +24125,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -23527,7 +24135,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -23537,7 +24145,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + lastComparison = java.lang.Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } @@ -23547,7 +24155,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + lastComparison = java.lang.Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } @@ -23557,7 +24165,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompareOp()).compareTo(other.isSetCompareOp()); + lastComparison = java.lang.Boolean.valueOf(isSetCompareOp()).compareTo(other.isSetCompareOp()); if (lastComparison != 0) { return lastComparison; } @@ -23567,7 +24175,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -23577,7 +24185,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRowMutations()).compareTo(other.isSetRowMutations()); + lastComparison = java.lang.Boolean.valueOf(isSetRowMutations()).compareTo(other.isSetRowMutations()); if (lastComparison != 0) { return lastComparison; } @@ -23590,21 +24198,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndMutate_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndMutate_args("); boolean first = true; sb.append("table:"); @@ -23700,7 +24309,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -23708,13 +24317,13 @@ public class THBaseService { } } - private static class checkAndMutate_argsStandardSchemeFactory implements SchemeFactory { + private static class checkAndMutate_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndMutate_argsStandardScheme getScheme() { return new checkAndMutate_argsStandardScheme(); } } - private static class checkAndMutate_argsStandardScheme extends StandardScheme { + private static class checkAndMutate_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndMutate_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -23839,24 +24448,24 @@ public class THBaseService { } - private static class checkAndMutate_argsTupleSchemeFactory implements SchemeFactory { + private static class checkAndMutate_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndMutate_argsTupleScheme getScheme() { return new checkAndMutate_argsTupleScheme(); } } - private static class checkAndMutate_argsTupleScheme extends TupleScheme { + private static class checkAndMutate_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.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(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -23868,7 +24477,7 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.row = iprot.readBinary(); @@ -23882,7 +24491,7 @@ public class THBaseService { struct.rowMutations = new TRowMutations(); struct.rowMutations.read(iprot); struct.setRowMutationsIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.value = iprot.readBinary(); struct.setValueIsSet(true); @@ -23890,6 +24499,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndMutate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -23898,24 +24510,21 @@ public class THBaseService { 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 checkAndMutate_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndMutate_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndMutate_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndMutate_resultTupleSchemeFactory(); public boolean success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23923,6 +24532,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -23940,21 +24550,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23963,7 +24574,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -23971,14 +24582,14 @@ 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndMutate_result.class, metaDataMap); } @@ -24028,23 +24639,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public checkAndMutate_result setIo(TIOError io) { + public checkAndMutate_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -24064,13 +24676,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -24085,7 +24697,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -24094,13 +24707,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -24109,11 +24722,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndMutate_result) @@ -24124,6 +24737,8 @@ public class THBaseService { public boolean equals(checkAndMutate_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -24148,19 +24763,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -24171,7 +24782,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -24181,7 +24792,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -24194,21 +24805,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndMutate_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndMutate_result("); boolean first = true; sb.append("success:"); @@ -24239,7 +24851,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -24249,13 +24861,13 @@ public class THBaseService { } } - private static class checkAndMutate_resultStandardSchemeFactory implements SchemeFactory { + private static class checkAndMutate_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndMutate_resultStandardScheme getScheme() { return new checkAndMutate_resultStandardScheme(); } } - private static class checkAndMutate_resultStandardScheme extends StandardScheme { + private static class checkAndMutate_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndMutate_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24315,18 +24927,18 @@ public class THBaseService { } - private static class checkAndMutate_resultTupleSchemeFactory implements SchemeFactory { + private static class checkAndMutate_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndMutate_resultTupleScheme getScheme() { return new checkAndMutate_resultTupleScheme(); } } - private static class checkAndMutate_resultTupleScheme extends TupleScheme { + private static class checkAndMutate_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -24344,8 +24956,8 @@ public class THBaseService { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -24358,6 +24970,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } } 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 e58a970..b536368 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,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -46,16 +19,13 @@ public class THRegionInfo implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new THRegionInfoStandardSchemeFactory()); - schemes.put(TupleScheme.class, new THRegionInfoTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new THRegionInfoStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new THRegionInfoTupleSchemeFactory(); public long regionId; // required - public ByteBuffer tableName; // required - public ByteBuffer startKey; // optional - public ByteBuffer endKey; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tableName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startKey; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer endKey; // optional public boolean offline; // optional public boolean split; // optional public int replicaId; // optional @@ -70,10 +40,10 @@ public class THRegionInfo implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -81,6 +51,7 @@ public class THRegionInfo implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REGION_ID, new org.apache.thrift.meta_data.FieldMetaData("regionId", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -160,7 +132,7 @@ public class THRegionInfo implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_regionId = true; - list.add(present_regionId); - if (present_regionId) - list.add(regionId); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(regionId); - boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); - if (present_tableName) - list.add(tableName); + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); - boolean present_startKey = true && (isSetStartKey()); - list.add(present_startKey); - if (present_startKey) - list.add(startKey); + hashCode = hashCode * 8191 + ((isSetStartKey()) ? 131071 : 524287); + if (isSetStartKey()) + hashCode = hashCode * 8191 + startKey.hashCode(); - boolean present_endKey = true && (isSetEndKey()); - list.add(present_endKey); - if (present_endKey) - list.add(endKey); + hashCode = hashCode * 8191 + ((isSetEndKey()) ? 131071 : 524287); + if (isSetEndKey()) + hashCode = hashCode * 8191 + endKey.hashCode(); - boolean present_offline = true && (isSetOffline()); - list.add(present_offline); - if (present_offline) - list.add(offline); + hashCode = hashCode * 8191 + ((isSetOffline()) ? 131071 : 524287); + if (isSetOffline()) + hashCode = hashCode * 8191 + ((offline) ? 131071 : 524287); - boolean present_split = true && (isSetSplit()); - list.add(present_split); - if (present_split) - list.add(split); + hashCode = hashCode * 8191 + ((isSetSplit()) ? 131071 : 524287); + if (isSetSplit()) + hashCode = hashCode * 8191 + ((split) ? 131071 : 524287); - boolean present_replicaId = true && (isSetReplicaId()); - list.add(present_replicaId); - if (present_replicaId) - list.add(replicaId); + hashCode = hashCode * 8191 + ((isSetReplicaId()) ? 131071 : 524287); + if (isSetReplicaId()) + hashCode = hashCode * 8191 + replicaId; - return list.hashCode(); + return hashCode; } @Override @@ -652,7 +630,7 @@ public class THRegionInfo implements org.apache.thrift.TBase { + private static class THRegionInfoStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, THRegionInfo struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -957,20 +936,20 @@ public class THRegionInfo implements org.apache.thrift.TBase { + private static class THRegionInfoTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, THRegionInfo struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI64(struct.regionId); oprot.writeBinary(struct.tableName); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetStartKey()) { optionals.set(0); } @@ -1006,12 +985,12 @@ public class THRegionInfo implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 ac4c4a8..b49d079 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,64 +1,34 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); private static final org.apache.thrift.protocol.TField REGION_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("regionInfo", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new THRegionLocationStandardSchemeFactory()); - schemes.put(TupleScheme.class, new THRegionLocationTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new THRegionLocationStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new THRegionLocationTupleSchemeFactory(); - public TServerName serverName; // required - public THRegionInfo regionInfo; // required + public @org.apache.thrift.annotation.Nullable TServerName serverName; // required + public @org.apache.thrift.annotation.Nullable THRegionInfo regionInfo; // 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 { SERVER_NAME((short)1, "serverName"), REGION_INFO((short)2, "regionInfo"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -66,6 +36,7 @@ public class THRegionLocation implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SERVER_NAME, new org.apache.thrift.meta_data.FieldMetaData("serverName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TServerName.class))); tmpMap.put(_Fields.REGION_INFO, new org.apache.thrift.meta_data.FieldMetaData("regionInfo", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, THRegionInfo.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(THRegionLocation.class, metaDataMap); } @@ -157,11 +129,12 @@ public class THRegionLocation implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_serverName = true && (isSetServerName()); - list.add(present_serverName); - if (present_serverName) - list.add(serverName); + hashCode = hashCode * 8191 + ((isSetServerName()) ? 131071 : 524287); + if (isSetServerName()) + hashCode = hashCode * 8191 + serverName.hashCode(); - boolean present_regionInfo = true && (isSetRegionInfo()); - list.add(present_regionInfo); - if (present_regionInfo) - list.add(regionInfo); + hashCode = hashCode * 8191 + ((isSetRegionInfo()) ? 131071 : 524287); + if (isSetRegionInfo()) + hashCode = hashCode * 8191 + regionInfo.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -312,7 +287,7 @@ public class THRegionLocation implements org.apache.thrift.TBase { + private static class THRegionLocationStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, THRegionLocation struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -471,24 +447,24 @@ public class THRegionLocation implements org.apache.thrift.TBase { + private static class THRegionLocationTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, THRegionLocation struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.serverName.write(oprot); struct.regionInfo.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, THRegionLocation struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.serverName = new TServerName(); struct.serverName.read(iprot); struct.setServerNameIsSet(true); @@ -498,5 +474,8 @@ public class THRegionLocation implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 cf67ebe..c3cd0d3 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,66 +1,36 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * 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. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") -public class TIOError extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") +public class TIOError extends org.apache.thrift.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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TIOErrorStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TIOErrorTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TIOErrorStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TIOErrorTupleSchemeFactory(); - public String message; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String message; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -68,6 +38,7 @@ public class TIOError extends TException implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TIOError.class, metaDataMap); } @@ -143,11 +115,12 @@ public class TIOError extends TException implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -247,7 +222,7 @@ public class TIOError extends TException implements org.apache.thrift.TBase { + private static class TIOErrorStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TIOError struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -365,18 +341,18 @@ public class TIOError extends TException implements org.apache.thrift.TBase { + private static class TIOErrorTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TIOError struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetMessage()) { optionals.set(0); } @@ -388,8 +364,8 @@ public class TIOError extends TException implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 05b2255..91f4661 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,65 +1,35 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A TIllegalArgument exception indicates an illegal or invalid * argument was passed into a procedure. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") -public class TIllegalArgument extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") +public class TIllegalArgument extends org.apache.thrift.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); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TIllegalArgumentStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TIllegalArgumentTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TIllegalArgumentStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TIllegalArgumentTupleSchemeFactory(); - public String message; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String message; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -67,6 +37,7 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // MESSAGE @@ -82,21 +53,22 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -105,19 +77,19 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments private static final _Fields optionals[] = {_Fields.MESSAGE}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TIllegalArgument.class, metaDataMap); } @@ -142,11 +114,12 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB this.message = null; } - public String getMessage() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMessage() { return this.message; } - public TIllegalArgument setMessage(String message) { + public TIllegalArgument setMessage(@org.apache.thrift.annotation.Nullable java.lang.String message) { this.message = message; return this; } @@ -166,43 +139,44 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case MESSAGE: if (value == null) { unsetMessage(); } else { - setMessage((String)value); + setMessage((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case MESSAGE: return getMessage(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case MESSAGE: return isSetMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TIllegalArgument) @@ -213,6 +187,8 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB public boolean equals(TIllegalArgument that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); @@ -228,14 +204,13 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -246,7 +221,7 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = java.lang.Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } @@ -259,21 +234,22 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TIllegalArgument("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TIllegalArgument("); boolean first = true; if (isSetMessage()) { @@ -302,7 +278,7 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -310,13 +286,13 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB } } - private static class TIllegalArgumentStandardSchemeFactory implements SchemeFactory { + private static class TIllegalArgumentStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TIllegalArgumentStandardScheme getScheme() { return new TIllegalArgumentStandardScheme(); } } - private static class TIllegalArgumentStandardScheme extends StandardScheme { + private static class TIllegalArgumentStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TIllegalArgument struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -364,18 +340,18 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB } - private static class TIllegalArgumentTupleSchemeFactory implements SchemeFactory { + private static class TIllegalArgumentTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TIllegalArgumentTupleScheme getScheme() { return new TIllegalArgumentTupleScheme(); } } - private static class TIllegalArgumentTupleScheme extends TupleScheme { + private static class TIllegalArgumentTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TIllegalArgument struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetMessage()) { optionals.set(0); } @@ -387,8 +363,8 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB @Override public void read(org.apache.thrift.protocol.TProtocol prot, TIllegalArgument struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); @@ -396,5 +372,8 @@ public class TIllegalArgument extends TException implements org.apache.thrift.TB } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 72fc99d..5372174 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,39 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Used to perform Increment operations for a single row. * @@ -41,7 +14,7 @@ import org.slf4j.LoggerFactory; * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -51,21 +24,18 @@ public class TIncrement implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TIncrementStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TIncrementTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TIncrementStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TIncrementTupleSchemeFactory(); - public ByteBuffer row; // required - public List columns; // required - public Map attributes; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional /** * * @see TDurability */ - public TDurability durability; // optional - public TCellVisibility cellVisibility; // optional + public @org.apache.thrift.annotation.Nullable TDurability durability; // optional + public @org.apache.thrift.annotation.Nullable TCellVisibility cellVisibility; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -79,10 +49,10 @@ public class TIncrement implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -90,6 +60,7 @@ public class TIncrement implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -159,7 +131,7 @@ public class TIncrement implements org.apache.thrift.TBase columns) + java.nio.ByteBuffer row, + java.util.List columns) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -183,14 +155,14 @@ public class TIncrement implements org.apache.thrift.TBase __this__columns = new ArrayList(other.columns.size()); + java.util.List __this__columns = new java.util.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(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -219,16 +191,16 @@ public class TIncrement implements org.apache.thrift.TBase getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumnIncrement elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TIncrement setColumns(List columns) { + public TIncrement setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -291,18 +265,19 @@ public class TIncrement implements org.apache.thrift.TBase(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TIncrement setAttributes(Map attributes) { + public TIncrement setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -326,6 +301,7 @@ public class TIncrement implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -400,7 +381,7 @@ public class TIncrement implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -423,7 +404,8 @@ public class TIncrement implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - boolean present_durability = true && (isSetDurability()); - list.add(present_durability); - if (present_durability) - list.add(durability.getValue()); + hashCode = hashCode * 8191 + ((isSetDurability()) ? 131071 : 524287); + if (isSetDurability()) + hashCode = hashCode * 8191 + durability.getValue(); - boolean present_cellVisibility = true && (isSetCellVisibility()); - list.add(present_cellVisibility); - if (present_cellVisibility) - list.add(cellVisibility); + hashCode = hashCode * 8191 + ((isSetCellVisibility()) ? 131071 : 524287); + if (isSetCellVisibility()) + hashCode = hashCode * 8191 + cellVisibility.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -566,7 +545,7 @@ public class TIncrement implements org.apache.thrift.TBase { + private static class TIncrementStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TIncrement struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -745,8 +725,8 @@ public class TIncrement implements org.apache.thrift.TBase(_list70.size); - TColumnIncrement _elem71; + struct.columns = new java.util.ArrayList(_list70.size); + @org.apache.thrift.annotation.Nullable TColumnIncrement _elem71; for (int _i72 = 0; _i72 < _list70.size; ++_i72) { _elem71 = new TColumnIncrement(); @@ -764,9 +744,9 @@ public class TIncrement implements org.apache.thrift.TBase(2*_map73.size); - ByteBuffer _key74; - ByteBuffer _val75; + struct.attributes = new java.util.HashMap(2*_map73.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key74; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val75; for (int _i76 = 0; _i76 < _map73.size; ++_i76) { _key74 = iprot.readBinary(); @@ -834,7 +814,7 @@ public class TIncrement implements org.apache.thrift.TBase _iter78 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter78 : struct.attributes.entrySet()) { oprot.writeBinary(_iter78.getKey()); oprot.writeBinary(_iter78.getValue()); @@ -864,17 +844,17 @@ public class TIncrement implements org.apache.thrift.TBase { + private static class TIncrementTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TIncrement struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.columns.size()); @@ -883,7 +863,7 @@ public class TIncrement implements org.apache.thrift.TBase _iter80 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter80 : struct.attributes.entrySet()) { oprot.writeBinary(_iter80.getKey()); oprot.writeBinary(_iter80.getValue()); @@ -914,13 +894,13 @@ public class TIncrement implements org.apache.thrift.TBase(_list81.size); - TColumnIncrement _elem82; + struct.columns = new java.util.ArrayList(_list81.size); + @org.apache.thrift.annotation.Nullable TColumnIncrement _elem82; for (int _i83 = 0; _i83 < _list81.size; ++_i83) { _elem82 = new TColumnIncrement(); @@ -929,13 +909,13 @@ public class TIncrement implements org.apache.thrift.TBase(2*_map84.size); - ByteBuffer _key85; - ByteBuffer _val86; + struct.attributes = new java.util.HashMap(2*_map84.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key85; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val86; for (int _i87 = 0; _i87 < _map84.size; ++_i87) { _key85 = iprot.readBinary(); @@ -957,5 +937,8 @@ public class TIncrement implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 39379d1..d6867ca 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,42 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Atomic mutation for the specified row. It can be either Put or Delete. */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") public class TMutation extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TMutation"); private static final org.apache.thrift.protocol.TField PUT_FIELD_DESC = new org.apache.thrift.protocol.TField("put", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -47,10 +21,10 @@ public class TMutation extends org.apache.thrift.TUnion byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -58,6 +32,7 @@ public class TMutation extends org.apache.thrift.TUnion metaDataMap; + public static final java.util.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.PUT, new org.apache.thrift.meta_data.FieldMetaData("put", org.apache.thrift.TFieldRequirementType.DEFAULT, + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PUT, new org.apache.thrift.meta_data.FieldMetaData("put", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class))); - tmpMap.put(_Fields.DELETE_SINGLE, new org.apache.thrift.meta_data.FieldMetaData("deleteSingle", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DELETE_SINGLE, new org.apache.thrift.meta_data.FieldMetaData("deleteSingle", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TMutation.class, metaDataMap); } @@ -118,7 +94,7 @@ public class TMutation extends org.apache.thrift.TUnion list = new ArrayList(); + java.util.List list = new java.util.ArrayList(); list.add(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { list.add(setField.getThriftFieldId()); - Object value = getFieldValue(); + java.lang.Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { @@ -361,7 +338,7 @@ public class TMutation extends org.apache.thrift.TUnion, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPut"); @@ -57,22 +30,19 @@ public class TPut implements org.apache.thrift.TBase, java.i private static final org.apache.thrift.protocol.TField DURABILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("durability", org.apache.thrift.protocol.TType.I32, (short)6); private static final org.apache.thrift.protocol.TField CELL_VISIBILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("cellVisibility", org.apache.thrift.protocol.TType.STRUCT, (short)7); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TPutStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TPutTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TPutStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TPutTupleSchemeFactory(); - public ByteBuffer row; // required - public List columnValues; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columnValues; // required public long timestamp; // optional - public Map attributes; // optional + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional /** * * @see TDurability */ - public TDurability durability; // optional - public TCellVisibility cellVisibility; // optional + public @org.apache.thrift.annotation.Nullable TDurability durability; // optional + public @org.apache.thrift.annotation.Nullable TCellVisibility cellVisibility; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -87,10 +57,10 @@ public class TPut implements org.apache.thrift.TBase, java.i DURABILITY((short)6, "durability"), CELL_VISIBILITY((short)7, "cellVisibility"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -98,6 +68,7 @@ public class TPut implements org.apache.thrift.TBase, java.i /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ROW @@ -123,21 +94,22 @@ public class TPut implements org.apache.thrift.TBase, java.i */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -146,7 +118,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -155,9 +127,9 @@ public class TPut implements org.apache.thrift.TBase, java.i private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; 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; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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.COLUMN_VALUES, new org.apache.thrift.meta_data.FieldMetaData("columnValues", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -173,7 +145,7 @@ public class TPut implements org.apache.thrift.TBase, java.i new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TDurability.class))); tmpMap.put(_Fields.CELL_VISIBILITY, new org.apache.thrift.meta_data.FieldMetaData("cellVisibility", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCellVisibility.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TPut.class, metaDataMap); } @@ -181,8 +153,8 @@ public class TPut implements org.apache.thrift.TBase, java.i } public TPut( - ByteBuffer row, - List columnValues) + java.nio.ByteBuffer row, + java.util.List columnValues) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -198,7 +170,7 @@ public class TPut implements org.apache.thrift.TBase, java.i this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumnValues()) { - List __this__columnValues = new ArrayList(other.columnValues.size()); + java.util.List __this__columnValues = new java.util.ArrayList(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } @@ -206,7 +178,7 @@ public class TPut implements org.apache.thrift.TBase, java.i } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -237,16 +209,16 @@ public class TPut implements org.apache.thrift.TBase, java.i return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } public TPut setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public TPut setRow(ByteBuffer row) { + public TPut setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -270,22 +242,24 @@ public class TPut implements org.apache.thrift.TBase, java.i return (this.columnValues == null) ? 0 : this.columnValues.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getColumnValuesIterator() { return (this.columnValues == null) ? null : this.columnValues.iterator(); } public void addToColumnValues(TColumnValue elem) { if (this.columnValues == null) { - this.columnValues = new ArrayList(); + this.columnValues = new java.util.ArrayList(); } this.columnValues.add(elem); } - public List getColumnValues() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumnValues() { return this.columnValues; } - public TPut setColumnValues(List columnValues) { + public TPut setColumnValues(@org.apache.thrift.annotation.Nullable java.util.List columnValues) { this.columnValues = columnValues; return this; } @@ -316,34 +290,35 @@ public class TPut implements org.apache.thrift.TBase, java.i } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TPut setAttributes(Map attributes) { + public TPut setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -367,6 +342,7 @@ public class TPut implements org.apache.thrift.TBase, java.i * * @see TDurability */ + @org.apache.thrift.annotation.Nullable public TDurability getDurability() { return this.durability; } @@ -375,7 +351,7 @@ public class TPut implements org.apache.thrift.TBase, java.i * * @see TDurability */ - public TPut setDurability(TDurability durability) { + public TPut setDurability(@org.apache.thrift.annotation.Nullable TDurability durability) { this.durability = durability; return this; } @@ -395,11 +371,12 @@ public class TPut implements org.apache.thrift.TBase, java.i } } + @org.apache.thrift.annotation.Nullable public TCellVisibility getCellVisibility() { return this.cellVisibility; } - public TPut setCellVisibility(TCellVisibility cellVisibility) { + public TPut setCellVisibility(@org.apache.thrift.annotation.Nullable TCellVisibility cellVisibility) { this.cellVisibility = cellVisibility; return this; } @@ -419,13 +396,17 @@ public class TPut implements org.apache.thrift.TBase, java.i } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case ROW: if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -433,7 +414,7 @@ public class TPut implements org.apache.thrift.TBase, java.i if (value == null) { unsetColumnValues(); } else { - setColumnValues((List)value); + setColumnValues((java.util.List)value); } break; @@ -441,7 +422,7 @@ public class TPut implements org.apache.thrift.TBase, java.i if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -449,7 +430,7 @@ public class TPut implements org.apache.thrift.TBase, java.i if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; @@ -472,7 +453,8 @@ public class TPut implements org.apache.thrift.TBase, java.i } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -493,13 +475,13 @@ public class TPut implements org.apache.thrift.TBase, java.i return getCellVisibility(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -516,11 +498,11 @@ public class TPut implements org.apache.thrift.TBase, java.i case CELL_VISIBILITY: return isSetCellVisibility(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TPut) @@ -531,6 +513,8 @@ public class TPut implements org.apache.thrift.TBase, java.i public boolean equals(TPut that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); @@ -591,39 +575,33 @@ public class TPut implements org.apache.thrift.TBase, java.i @Override public int hashCode() { - List list = new ArrayList(); - - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); - - boolean present_columnValues = true && (isSetColumnValues()); - list.add(present_columnValues); - if (present_columnValues) - list.add(columnValues); - - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); - - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); - - boolean present_durability = true && (isSetDurability()); - list.add(present_durability); - if (present_durability) - list.add(durability.getValue()); - - boolean present_cellVisibility = true && (isSetCellVisibility()); - list.add(present_cellVisibility); - if (present_cellVisibility) - list.add(cellVisibility); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); + + hashCode = hashCode * 8191 + ((isSetColumnValues()) ? 131071 : 524287); + if (isSetColumnValues()) + hashCode = hashCode * 8191 + columnValues.hashCode(); + + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); + + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDurability()) ? 131071 : 524287); + if (isSetDurability()) + hashCode = hashCode * 8191 + durability.getValue(); + + hashCode = hashCode * 8191 + ((isSetCellVisibility()) ? 131071 : 524287); + if (isSetCellVisibility()) + hashCode = hashCode * 8191 + cellVisibility.hashCode(); + + return hashCode; } @Override @@ -634,7 +612,7 @@ public class TPut implements org.apache.thrift.TBase, java.i int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -644,7 +622,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); + lastComparison = java.lang.Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); if (lastComparison != 0) { return lastComparison; } @@ -654,7 +632,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -664,7 +642,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -674,7 +652,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); + lastComparison = java.lang.Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); if (lastComparison != 0) { return lastComparison; } @@ -684,7 +662,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCellVisibility()).compareTo(other.isSetCellVisibility()); + lastComparison = java.lang.Boolean.valueOf(isSetCellVisibility()).compareTo(other.isSetCellVisibility()); if (lastComparison != 0) { return lastComparison; } @@ -697,21 +675,22 @@ public class TPut implements org.apache.thrift.TBase, java.i return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TPut("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TPut("); boolean first = true; sb.append("row:"); @@ -791,7 +770,7 @@ public class TPut implements org.apache.thrift.TBase, java.i } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -801,13 +780,13 @@ public class TPut implements org.apache.thrift.TBase, java.i } } - private static class TPutStandardSchemeFactory implements SchemeFactory { + private static class TPutStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TPutStandardScheme getScheme() { return new TPutStandardScheme(); } } - private static class TPutStandardScheme extends StandardScheme { + private static class TPutStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TPut struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -831,8 +810,8 @@ public class TPut implements org.apache.thrift.TBase, java.i if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list34 = iprot.readListBegin(); - struct.columnValues = new ArrayList(_list34.size); - TColumnValue _elem35; + struct.columnValues = new java.util.ArrayList(_list34.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem35; for (int _i36 = 0; _i36 < _list34.size; ++_i36) { _elem35 = new TColumnValue(); @@ -858,9 +837,9 @@ public class TPut implements org.apache.thrift.TBase, java.i if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map37 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map37.size); - ByteBuffer _key38; - ByteBuffer _val39; + struct.attributes = new java.util.HashMap(2*_map37.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key38; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val39; for (int _i40 = 0; _i40 < _map37.size; ++_i40) { _key38 = iprot.readBinary(); @@ -933,7 +912,7 @@ public class TPut implements org.apache.thrift.TBase, java.i oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter42 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter42 : struct.attributes.entrySet()) { oprot.writeBinary(_iter42.getKey()); oprot.writeBinary(_iter42.getValue()); @@ -963,17 +942,17 @@ public class TPut implements org.apache.thrift.TBase, java.i } - private static class TPutTupleSchemeFactory implements SchemeFactory { + private static class TPutTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TPutTupleScheme getScheme() { return new TPutTupleScheme(); } } - private static class TPutTupleScheme extends TupleScheme { + private static class TPutTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TPut struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.columnValues.size()); @@ -982,7 +961,7 @@ public class TPut implements org.apache.thrift.TBase, java.i _iter43.write(oprot); } } - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } @@ -1002,7 +981,7 @@ public class TPut implements org.apache.thrift.TBase, java.i if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter44 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter44 : struct.attributes.entrySet()) { oprot.writeBinary(_iter44.getKey()); oprot.writeBinary(_iter44.getValue()); @@ -1019,13 +998,13 @@ public class TPut implements org.apache.thrift.TBase, java.i @Override public void read(org.apache.thrift.protocol.TProtocol prot, TPut struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); { 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); - TColumnValue _elem46; + struct.columnValues = new java.util.ArrayList(_list45.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem46; for (int _i47 = 0; _i47 < _list45.size; ++_i47) { _elem46 = new TColumnValue(); @@ -1034,7 +1013,7 @@ public class TPut implements org.apache.thrift.TBase, java.i } } struct.setColumnValuesIsSet(true); - BitSet incoming = iprot.readBitSet(4); + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); @@ -1042,9 +1021,9 @@ public class TPut implements org.apache.thrift.TBase, java.i if (incoming.get(1)) { { 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); - ByteBuffer _key49; - ByteBuffer _val50; + struct.attributes = new java.util.HashMap(2*_map48.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key49; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val50; for (int _i51 = 0; _i51 < _map48.size; ++_i51) { _key49 = iprot.readBinary(); @@ -1066,5 +1045,8 @@ public class TPut implements org.apache.thrift.TBase, java.i } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 ff8d5ff..c0901bb 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,67 +1,37 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * if no Result is found, row and columnValues will not be set. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); private static final org.apache.thrift.protocol.TField COLUMN_VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("columnValues", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TResultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TResultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TResultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TResultTupleSchemeFactory(); - public ByteBuffer row; // optional - public List columnValues; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // optional + public @org.apache.thrift.annotation.Nullable java.util.List columnValues; // 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 { ROW((short)1, "row"), COLUMN_VALUES((short)2, "columnValues"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class TResult implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.COLUMN_VALUES, new org.apache.thrift.meta_data.FieldMetaData("columnValues", 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, TColumnValue.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TResult.class, metaDataMap); } @@ -132,7 +104,7 @@ public class TResult implements org.apache.thrift.TBase columnValues) + java.util.List columnValues) { this(); this.columnValues = columnValues; @@ -146,7 +118,7 @@ public class TResult implements org.apache.thrift.TBase __this__columnValues = new ArrayList(other.columnValues.size()); + java.util.List __this__columnValues = new java.util.ArrayList(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } @@ -169,16 +141,16 @@ public class TResult implements org.apache.thrift.TBase getColumnValuesIterator() { return (this.columnValues == null) ? null : this.columnValues.iterator(); } public void addToColumnValues(TColumnValue elem) { if (this.columnValues == null) { - this.columnValues = new ArrayList(); + this.columnValues = new java.util.ArrayList(); } this.columnValues.add(elem); } - public List getColumnValues() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumnValues() { return this.columnValues; } - public TResult setColumnValues(List columnValues) { + public TResult setColumnValues(@org.apache.thrift.annotation.Nullable java.util.List columnValues) { this.columnValues = columnValues; return this; } @@ -237,13 +211,17 @@ public class TResult implements org.apache.thrift.TBase)value); + setColumnValues((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -267,13 +246,13 @@ public class TResult implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columnValues = true && (isSetColumnValues()); - list.add(present_columnValues); - if (present_columnValues) - list.add(columnValues); + hashCode = hashCode * 8191 + ((isSetColumnValues()) ? 131071 : 524287); + if (isSetColumnValues()) + hashCode = hashCode * 8191 + columnValues.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -344,7 +323,7 @@ public class TResult implements org.apache.thrift.TBase { + private static class TResultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TResult struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -459,8 +439,8 @@ public class TResult implements org.apache.thrift.TBase(_list0.size); - TColumnValue _elem1; + struct.columnValues = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem1; for (int _i2 = 0; _i2 < _list0.size; ++_i2) { _elem1 = new TColumnValue(); @@ -514,17 +494,17 @@ public class TResult implements org.apache.thrift.TBase { + private static class TResultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TResult struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; { oprot.writeI32(struct.columnValues.size()); for (TColumnValue _iter4 : struct.columnValues) @@ -532,7 +512,7 @@ public class TResult implements org.apache.thrift.TBase(_list5.size); - TColumnValue _elem6; + struct.columnValues = new java.util.ArrayList(_list5.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = new TColumnValue(); @@ -557,7 +537,7 @@ public class TResult implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 8a8a7b2..4050ab5 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,67 +1,37 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A TRowMutations object is used to apply a number of Mutations to a single row. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TRowMutationsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TRowMutationsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TRowMutationsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TRowMutationsTupleSchemeFactory(); - public ByteBuffer row; // required - public List mutations; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List mutations; // 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 { ROW((short)1, "row"), MUTATIONS((short)2, "mutations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class TRowMutations implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", 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, TMutation.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TRowMutations.class, metaDataMap); } @@ -131,8 +103,8 @@ public class TRowMutations implements org.apache.thrift.TBase mutations) + java.nio.ByteBuffer row, + java.util.List mutations) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -147,7 +119,7 @@ public class TRowMutations implements org.apache.thrift.TBase __this__mutations = new ArrayList(other.mutations.size()); + java.util.List __this__mutations = new java.util.ArrayList(other.mutations.size()); for (TMutation other_element : other.mutations) { __this__mutations.add(new TMutation(other_element)); } @@ -170,16 +142,16 @@ public class TRowMutations implements org.apache.thrift.TBase getMutationsIterator() { return (this.mutations == null) ? null : this.mutations.iterator(); } public void addToMutations(TMutation elem) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new java.util.ArrayList(); } this.mutations.add(elem); } - public List getMutations() { + @org.apache.thrift.annotation.Nullable + public java.util.List getMutations() { return this.mutations; } - public TRowMutations setMutations(List mutations) { + public TRowMutations setMutations(@org.apache.thrift.annotation.Nullable java.util.List mutations) { this.mutations = mutations; return this; } @@ -238,13 +212,17 @@ public class TRowMutations implements org.apache.thrift.TBase)value); + setMutations((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -268,13 +247,13 @@ public class TRowMutations implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_mutations = true && (isSetMutations()); - list.add(present_mutations); - if (present_mutations) - list.add(mutations); + hashCode = hashCode * 8191 + ((isSetMutations()) ? 131071 : 524287); + if (isSetMutations()) + hashCode = hashCode * 8191 + mutations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -345,7 +324,7 @@ public class TRowMutations implements org.apache.thrift.TBase { + private static class TRowMutationsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TRowMutations struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -460,14 +440,14 @@ public class TRowMutations implements org.apache.thrift.TBase(_list124.size); - TMutation _elem125; - for (int _i126 = 0; _i126 < _list124.size; ++_i126) + org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); + struct.mutations = new java.util.ArrayList(_list134.size); + @org.apache.thrift.annotation.Nullable TMutation _elem135; + for (int _i136 = 0; _i136 < _list134.size; ++_i136) { - _elem125 = new TMutation(); - _elem125.read(iprot); - struct.mutations.add(_elem125); + _elem135 = new TMutation(); + _elem135.read(iprot); + struct.mutations.add(_elem135); } iprot.readListEnd(); } @@ -500,9 +480,9 @@ public class TRowMutations implements org.apache.thrift.TBase { + private static class TRowMutationsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TRowMutations struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.mutations.size()); - for (TMutation _iter128 : struct.mutations) + for (TMutation _iter138 : struct.mutations) { - _iter128.write(oprot); + _iter138.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, TRowMutations struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); { - org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mutations = new ArrayList(_list129.size); - TMutation _elem130; - for (int _i131 = 0; _i131 < _list129.size; ++_i131) + org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mutations = new java.util.ArrayList(_list139.size); + @org.apache.thrift.annotation.Nullable TMutation _elem140; + for (int _i141 = 0; _i141 < _list139.size; ++_i141) { - _elem130 = new TMutation(); - _elem130.read(iprot); - struct.mutations.add(_elem130); + _elem140 = new TMutation(); + _elem140.read(iprot); + struct.mutations.add(_elem140); } } struct.setMutationsIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 50a8347..82fdd01 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,44 +1,17 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Any timestamps in the columns are ignored but the colFamTimeRangeMap included, use timeRange to select by timestamp. * Max versions defaults to 1. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-03-24") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -57,25 +30,22 @@ public class TScan implements org.apache.thrift.TBase, jav private static final org.apache.thrift.protocol.TField COL_FAM_TIME_RANGE_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("colFamTimeRangeMap", org.apache.thrift.protocol.TType.MAP, (short)13); private static final org.apache.thrift.protocol.TField SMALL_FIELD_DESC = new org.apache.thrift.protocol.TField("small", org.apache.thrift.protocol.TType.BOOL, (short)14); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TScanStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TScanTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TScanStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TScanTupleSchemeFactory(); - public ByteBuffer startRow; // optional - public ByteBuffer stopRow; // optional - public List columns; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer stopRow; // optional + public @org.apache.thrift.annotation.Nullable java.util.List columns; // optional public int caching; // optional public int maxVersions; // optional - public TTimeRange timeRange; // optional - public ByteBuffer filterString; // optional + public @org.apache.thrift.annotation.Nullable TTimeRange timeRange; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterString; // optional public int batchSize; // optional - public Map attributes; // optional - public TAuthorization authorizations; // optional + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional + public @org.apache.thrift.annotation.Nullable TAuthorization authorizations; // optional public boolean reversed; // optional public boolean cacheBlocks; // optional - public Map colFamTimeRangeMap; // optional + public @org.apache.thrift.annotation.Nullable java.util.Map colFamTimeRangeMap; // optional public boolean small; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -95,10 +65,10 @@ public class TScan implements org.apache.thrift.TBase, jav COL_FAM_TIME_RANGE_MAP((short)13, "colFamTimeRangeMap"), SMALL((short)14, "small"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -106,6 +76,7 @@ public class TScan implements org.apache.thrift.TBase, jav /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // START_ROW @@ -147,21 +118,22 @@ public class TScan implements org.apache.thrift.TBase, jav */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -170,7 +142,7 @@ public class TScan implements org.apache.thrift.TBase, jav return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -184,9 +156,9 @@ public class TScan implements org.apache.thrift.TBase, jav private static final int __SMALL_ISSET_ID = 5; private byte __isset_bitfield = 0; 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,_Fields.CACHE_BLOCKS,_Fields.COL_FAM_TIME_RANGE_MAP,_Fields.SMALL}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -220,7 +192,7 @@ public class TScan implements org.apache.thrift.TBase, jav new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTimeRange.class)))); tmpMap.put(_Fields.SMALL, new org.apache.thrift.meta_data.FieldMetaData("small", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TScan.class, metaDataMap); } @@ -241,7 +213,7 @@ public class TScan implements org.apache.thrift.TBase, jav this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(other.stopRow); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -257,7 +229,7 @@ public class TScan implements org.apache.thrift.TBase, jav } this.batchSize = other.batchSize; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetAuthorizations()) { @@ -266,13 +238,13 @@ public class TScan implements org.apache.thrift.TBase, jav this.reversed = other.reversed; this.cacheBlocks = other.cacheBlocks; if (other.isSetColFamTimeRangeMap()) { - Map __this__colFamTimeRangeMap = new HashMap(other.colFamTimeRangeMap.size()); - for (Map.Entry other_element : other.colFamTimeRangeMap.entrySet()) { + java.util.Map __this__colFamTimeRangeMap = new java.util.HashMap(other.colFamTimeRangeMap.size()); + for (java.util.Map.Entry other_element : other.colFamTimeRangeMap.entrySet()) { - ByteBuffer other_element_key = other_element.getKey(); + java.nio.ByteBuffer other_element_key = other_element.getKey(); TTimeRange other_element_value = other_element.getValue(); - ByteBuffer __this__colFamTimeRangeMap_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); + java.nio.ByteBuffer __this__colFamTimeRangeMap_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); TTimeRange __this__colFamTimeRangeMap_copy_value = new TTimeRange(other_element_value); @@ -316,16 +288,16 @@ public class TScan implements org.apache.thrift.TBase, jav return startRow == null ? null : startRow.array(); } - public ByteBuffer bufferForStartRow() { + public java.nio.ByteBuffer bufferForStartRow() { return org.apache.thrift.TBaseHelper.copyBinary(startRow); } public TScan setStartRow(byte[] startRow) { - this.startRow = startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(startRow, startRow.length)); + this.startRow = startRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(startRow.clone()); return this; } - public TScan setStartRow(ByteBuffer startRow) { + public TScan setStartRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer startRow) { this.startRow = org.apache.thrift.TBaseHelper.copyBinary(startRow); return this; } @@ -350,16 +322,16 @@ public class TScan implements org.apache.thrift.TBase, jav return stopRow == null ? null : stopRow.array(); } - public ByteBuffer bufferForStopRow() { + public java.nio.ByteBuffer bufferForStopRow() { return org.apache.thrift.TBaseHelper.copyBinary(stopRow); } public TScan setStopRow(byte[] stopRow) { - this.stopRow = stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(stopRow, stopRow.length)); + this.stopRow = stopRow == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(stopRow.clone()); return this; } - public TScan setStopRow(ByteBuffer stopRow) { + public TScan setStopRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer stopRow) { this.stopRow = org.apache.thrift.TBaseHelper.copyBinary(stopRow); return this; } @@ -383,22 +355,24 @@ public class TScan implements org.apache.thrift.TBase, jav return (this.columns == null) ? 0 : this.columns.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumn elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TScan setColumns(List columns) { + public TScan setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -429,16 +403,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetCaching() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CACHING_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CACHING_ISSET_ID); } /** Returns true if field caching is set (has been assigned a value) and false otherwise */ public boolean isSetCaching() { - return EncodingUtils.testBit(__isset_bitfield, __CACHING_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CACHING_ISSET_ID); } public void setCachingIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CACHING_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CACHING_ISSET_ID, value); } public int getMaxVersions() { @@ -452,23 +426,24 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetMaxVersions() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); } /** Returns true if field maxVersions is set (has been assigned a value) and false otherwise */ public boolean isSetMaxVersions() { - return EncodingUtils.testBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); } public void setMaxVersionsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TTimeRange getTimeRange() { return this.timeRange; } - public TScan setTimeRange(TTimeRange timeRange) { + public TScan setTimeRange(@org.apache.thrift.annotation.Nullable TTimeRange timeRange) { this.timeRange = timeRange; return this; } @@ -493,16 +468,16 @@ public class TScan implements org.apache.thrift.TBase, jav return filterString == null ? null : filterString.array(); } - public ByteBuffer bufferForFilterString() { + public java.nio.ByteBuffer bufferForFilterString() { return org.apache.thrift.TBaseHelper.copyBinary(filterString); } public TScan setFilterString(byte[] filterString) { - this.filterString = filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterString, filterString.length)); + this.filterString = filterString == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(filterString.clone()); return this; } - public TScan setFilterString(ByteBuffer filterString) { + public TScan setFilterString(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterString) { this.filterString = org.apache.thrift.TBaseHelper.copyBinary(filterString); return this; } @@ -533,34 +508,35 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetBatchSize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __BATCHSIZE_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __BATCHSIZE_ISSET_ID); } /** Returns true if field batchSize is set (has been assigned a value) and false otherwise */ public boolean isSetBatchSize() { - return EncodingUtils.testBit(__isset_bitfield, __BATCHSIZE_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __BATCHSIZE_ISSET_ID); } public void setBatchSizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __BATCHSIZE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __BATCHSIZE_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TScan setAttributes(Map attributes) { + public TScan setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -580,11 +556,12 @@ public class TScan implements org.apache.thrift.TBase, jav } } + @org.apache.thrift.annotation.Nullable public TAuthorization getAuthorizations() { return this.authorizations; } - public TScan setAuthorizations(TAuthorization authorizations) { + public TScan setAuthorizations(@org.apache.thrift.annotation.Nullable TAuthorization authorizations) { this.authorizations = authorizations; return this; } @@ -615,16 +592,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetReversed() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __REVERSED_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __REVERSED_ISSET_ID); } /** Returns true if field reversed is set (has been assigned a value) and false otherwise */ public boolean isSetReversed() { - return EncodingUtils.testBit(__isset_bitfield, __REVERSED_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __REVERSED_ISSET_ID); } public void setReversedIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REVERSED_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __REVERSED_ISSET_ID, value); } public boolean isCacheBlocks() { @@ -638,34 +615,35 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetCacheBlocks() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID); } /** Returns true if field cacheBlocks is set (has been assigned a value) and false otherwise */ public boolean isSetCacheBlocks() { - return EncodingUtils.testBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID); } public void setCacheBlocksIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CACHEBLOCKS_ISSET_ID, value); } public int getColFamTimeRangeMapSize() { return (this.colFamTimeRangeMap == null) ? 0 : this.colFamTimeRangeMap.size(); } - public void putToColFamTimeRangeMap(ByteBuffer key, TTimeRange val) { + public void putToColFamTimeRangeMap(java.nio.ByteBuffer key, TTimeRange val) { if (this.colFamTimeRangeMap == null) { - this.colFamTimeRangeMap = new HashMap(); + this.colFamTimeRangeMap = new java.util.HashMap(); } this.colFamTimeRangeMap.put(key, val); } - public Map getColFamTimeRangeMap() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getColFamTimeRangeMap() { return this.colFamTimeRangeMap; } - public TScan setColFamTimeRangeMap(Map colFamTimeRangeMap) { + public TScan setColFamTimeRangeMap(@org.apache.thrift.annotation.Nullable java.util.Map colFamTimeRangeMap) { this.colFamTimeRangeMap = colFamTimeRangeMap; return this; } @@ -696,25 +674,29 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetSmall() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SMALL_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SMALL_ISSET_ID); } /** Returns true if field small is set (has been assigned a value) and false otherwise */ public boolean isSetSmall() { - return EncodingUtils.testBit(__isset_bitfield, __SMALL_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SMALL_ISSET_ID); } public void setSmallIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SMALL_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SMALL_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case START_ROW: if (value == null) { unsetStartRow(); } else { - setStartRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStartRow((byte[])value); + } else { + setStartRow((java.nio.ByteBuffer)value); + } } break; @@ -722,7 +704,11 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetStopRow(); } else { - setStopRow((ByteBuffer)value); + if (value instanceof byte[]) { + setStopRow((byte[])value); + } else { + setStopRow((java.nio.ByteBuffer)value); + } } break; @@ -730,7 +716,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -738,7 +724,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetCaching(); } else { - setCaching((Integer)value); + setCaching((java.lang.Integer)value); } break; @@ -746,7 +732,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetMaxVersions(); } else { - setMaxVersions((Integer)value); + setMaxVersions((java.lang.Integer)value); } break; @@ -762,7 +748,11 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetFilterString(); } else { - setFilterString((ByteBuffer)value); + if (value instanceof byte[]) { + setFilterString((byte[])value); + } else { + setFilterString((java.nio.ByteBuffer)value); + } } break; @@ -770,7 +760,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetBatchSize(); } else { - setBatchSize((Integer)value); + setBatchSize((java.lang.Integer)value); } break; @@ -778,7 +768,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; @@ -794,7 +784,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetReversed(); } else { - setReversed((Boolean)value); + setReversed((java.lang.Boolean)value); } break; @@ -802,7 +792,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetCacheBlocks(); } else { - setCacheBlocks((Boolean)value); + setCacheBlocks((java.lang.Boolean)value); } break; @@ -810,7 +800,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetColFamTimeRangeMap(); } else { - setColFamTimeRangeMap((Map)value); + setColFamTimeRangeMap((java.util.Map)value); } break; @@ -818,14 +808,15 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetSmall(); } else { - setSmall((Boolean)value); + setSmall((java.lang.Boolean)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case START_ROW: return getStartRow(); @@ -870,13 +861,13 @@ public class TScan implements org.apache.thrift.TBase, jav return isSmall(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -909,11 +900,11 @@ public class TScan implements org.apache.thrift.TBase, jav case SMALL: return isSetSmall(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TScan) @@ -924,6 +915,8 @@ public class TScan implements org.apache.thrift.TBase, jav public boolean equals(TScan that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_startRow = true && this.isSetStartRow(); boolean that_present_startRow = true && that.isSetStartRow(); @@ -1056,79 +1049,65 @@ public class TScan implements org.apache.thrift.TBase, jav @Override public int hashCode() { - List list = new ArrayList(); - - boolean present_startRow = true && (isSetStartRow()); - list.add(present_startRow); - if (present_startRow) - list.add(startRow); - - boolean present_stopRow = true && (isSetStopRow()); - list.add(present_stopRow); - if (present_stopRow) - list.add(stopRow); - - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); - - boolean present_caching = true && (isSetCaching()); - list.add(present_caching); - if (present_caching) - list.add(caching); - - boolean present_maxVersions = true && (isSetMaxVersions()); - list.add(present_maxVersions); - if (present_maxVersions) - list.add(maxVersions); - - boolean present_timeRange = true && (isSetTimeRange()); - list.add(present_timeRange); - if (present_timeRange) - list.add(timeRange); - - boolean present_filterString = true && (isSetFilterString()); - list.add(present_filterString); - if (present_filterString) - list.add(filterString); - - boolean present_batchSize = true && (isSetBatchSize()); - list.add(present_batchSize); - if (present_batchSize) - list.add(batchSize); - - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); - - boolean present_authorizations = true && (isSetAuthorizations()); - list.add(present_authorizations); - if (present_authorizations) - list.add(authorizations); - - boolean present_reversed = true && (isSetReversed()); - list.add(present_reversed); - if (present_reversed) - list.add(reversed); - - boolean present_cacheBlocks = true && (isSetCacheBlocks()); - list.add(present_cacheBlocks); - if (present_cacheBlocks) - list.add(cacheBlocks); - - boolean present_colFamTimeRangeMap = true && (isSetColFamTimeRangeMap()); - list.add(present_colFamTimeRangeMap); - if (present_colFamTimeRangeMap) - list.add(colFamTimeRangeMap); - - boolean present_small = true && (isSetSmall()); - list.add(present_small); - if (present_small) - list.add(small); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetStartRow()) ? 131071 : 524287); + if (isSetStartRow()) + hashCode = hashCode * 8191 + startRow.hashCode(); + + hashCode = hashCode * 8191 + ((isSetStopRow()) ? 131071 : 524287); + if (isSetStopRow()) + hashCode = hashCode * 8191 + stopRow.hashCode(); + + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); + + hashCode = hashCode * 8191 + ((isSetCaching()) ? 131071 : 524287); + if (isSetCaching()) + hashCode = hashCode * 8191 + caching; + + hashCode = hashCode * 8191 + ((isSetMaxVersions()) ? 131071 : 524287); + if (isSetMaxVersions()) + hashCode = hashCode * 8191 + maxVersions; + + hashCode = hashCode * 8191 + ((isSetTimeRange()) ? 131071 : 524287); + if (isSetTimeRange()) + hashCode = hashCode * 8191 + timeRange.hashCode(); + + hashCode = hashCode * 8191 + ((isSetFilterString()) ? 131071 : 524287); + if (isSetFilterString()) + hashCode = hashCode * 8191 + filterString.hashCode(); + + hashCode = hashCode * 8191 + ((isSetBatchSize()) ? 131071 : 524287); + if (isSetBatchSize()) + hashCode = hashCode * 8191 + batchSize; + + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); + + hashCode = hashCode * 8191 + ((isSetAuthorizations()) ? 131071 : 524287); + if (isSetAuthorizations()) + hashCode = hashCode * 8191 + authorizations.hashCode(); + + hashCode = hashCode * 8191 + ((isSetReversed()) ? 131071 : 524287); + if (isSetReversed()) + hashCode = hashCode * 8191 + ((reversed) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetCacheBlocks()) ? 131071 : 524287); + if (isSetCacheBlocks()) + hashCode = hashCode * 8191 + ((cacheBlocks) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetColFamTimeRangeMap()) ? 131071 : 524287); + if (isSetColFamTimeRangeMap()) + hashCode = hashCode * 8191 + colFamTimeRangeMap.hashCode(); + + hashCode = hashCode * 8191 + ((isSetSmall()) ? 131071 : 524287); + if (isSetSmall()) + hashCode = hashCode * 8191 + ((small) ? 131071 : 524287); + + return hashCode; } @Override @@ -1139,7 +1118,7 @@ public class TScan implements org.apache.thrift.TBase, jav int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStartRow()).compareTo(other.isSetStartRow()); if (lastComparison != 0) { return lastComparison; } @@ -1149,7 +1128,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); + lastComparison = java.lang.Boolean.valueOf(isSetStopRow()).compareTo(other.isSetStopRow()); if (lastComparison != 0) { return lastComparison; } @@ -1159,7 +1138,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -1169,7 +1148,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCaching()).compareTo(other.isSetCaching()); + lastComparison = java.lang.Boolean.valueOf(isSetCaching()).compareTo(other.isSetCaching()); if (lastComparison != 0) { return lastComparison; } @@ -1179,7 +1158,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); + lastComparison = java.lang.Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); if (lastComparison != 0) { return lastComparison; } @@ -1189,7 +1168,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimeRange()).compareTo(other.isSetTimeRange()); + lastComparison = java.lang.Boolean.valueOf(isSetTimeRange()).compareTo(other.isSetTimeRange()); if (lastComparison != 0) { return lastComparison; } @@ -1199,7 +1178,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); + lastComparison = java.lang.Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); if (lastComparison != 0) { return lastComparison; } @@ -1209,7 +1188,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBatchSize()).compareTo(other.isSetBatchSize()); + lastComparison = java.lang.Boolean.valueOf(isSetBatchSize()).compareTo(other.isSetBatchSize()); if (lastComparison != 0) { return lastComparison; } @@ -1219,7 +1198,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -1229,7 +1208,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthorizations()).compareTo(other.isSetAuthorizations()); + lastComparison = java.lang.Boolean.valueOf(isSetAuthorizations()).compareTo(other.isSetAuthorizations()); if (lastComparison != 0) { return lastComparison; } @@ -1239,7 +1218,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReversed()).compareTo(other.isSetReversed()); + lastComparison = java.lang.Boolean.valueOf(isSetReversed()).compareTo(other.isSetReversed()); if (lastComparison != 0) { return lastComparison; } @@ -1249,7 +1228,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCacheBlocks()).compareTo(other.isSetCacheBlocks()); + lastComparison = java.lang.Boolean.valueOf(isSetCacheBlocks()).compareTo(other.isSetCacheBlocks()); if (lastComparison != 0) { return lastComparison; } @@ -1259,7 +1238,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColFamTimeRangeMap()).compareTo(other.isSetColFamTimeRangeMap()); + lastComparison = java.lang.Boolean.valueOf(isSetColFamTimeRangeMap()).compareTo(other.isSetColFamTimeRangeMap()); if (lastComparison != 0) { return lastComparison; } @@ -1269,7 +1248,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSmall()).compareTo(other.isSetSmall()); + lastComparison = java.lang.Boolean.valueOf(isSetSmall()).compareTo(other.isSetSmall()); if (lastComparison != 0) { return lastComparison; } @@ -1282,21 +1261,22 @@ public class TScan implements org.apache.thrift.TBase, jav return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TScan("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TScan("); boolean first = true; if (isSetStartRow()) { @@ -1437,7 +1417,7 @@ public class TScan implements org.apache.thrift.TBase, jav } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -1447,13 +1427,13 @@ public class TScan implements org.apache.thrift.TBase, jav } } - private static class TScanStandardSchemeFactory implements SchemeFactory { + private static class TScanStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TScanStandardScheme getScheme() { return new TScanStandardScheme(); } } - private static class TScanStandardScheme extends StandardScheme { + private static class TScanStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TScan struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1485,8 +1465,8 @@ public class TScan implements org.apache.thrift.TBase, jav if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); - struct.columns = new ArrayList(_list106.size); - TColumn _elem107; + struct.columns = new java.util.ArrayList(_list106.size); + @org.apache.thrift.annotation.Nullable TColumn _elem107; for (int _i108 = 0; _i108 < _list106.size; ++_i108) { _elem107 = new TColumn(); @@ -1545,9 +1525,9 @@ public class TScan implements org.apache.thrift.TBase, jav if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map109 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map109.size); - ByteBuffer _key110; - ByteBuffer _val111; + struct.attributes = new java.util.HashMap(2*_map109.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key110; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val111; for (int _i112 = 0; _i112 < _map109.size; ++_i112) { _key110 = iprot.readBinary(); @@ -1590,9 +1570,9 @@ public class TScan implements org.apache.thrift.TBase, jav if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map113 = iprot.readMapBegin(); - struct.colFamTimeRangeMap = new HashMap(2*_map113.size); - ByteBuffer _key114; - TTimeRange _val115; + struct.colFamTimeRangeMap = new java.util.HashMap(2*_map113.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key114; + @org.apache.thrift.annotation.Nullable TTimeRange _val115; for (int _i116 = 0; _i116 < _map113.size; ++_i116) { _key114 = iprot.readBinary(); @@ -1692,7 +1672,7 @@ public class TScan implements org.apache.thrift.TBase, jav oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter118 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter118 : struct.attributes.entrySet()) { oprot.writeBinary(_iter118.getKey()); oprot.writeBinary(_iter118.getValue()); @@ -1724,7 +1704,7 @@ public class TScan implements org.apache.thrift.TBase, jav oprot.writeFieldBegin(COL_FAM_TIME_RANGE_MAP_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.colFamTimeRangeMap.size())); - for (Map.Entry _iter119 : struct.colFamTimeRangeMap.entrySet()) + for (java.util.Map.Entry _iter119 : struct.colFamTimeRangeMap.entrySet()) { oprot.writeBinary(_iter119.getKey()); _iter119.getValue().write(oprot); @@ -1745,18 +1725,18 @@ public class TScan implements org.apache.thrift.TBase, jav } - private static class TScanTupleSchemeFactory implements SchemeFactory { + private static class TScanTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TScanTupleScheme getScheme() { return new TScanTupleScheme(); } } - private static class TScanTupleScheme extends TupleScheme { + private static class TScanTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TScan struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetStartRow()) { optionals.set(0); } @@ -1833,7 +1813,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter121 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter121 : struct.attributes.entrySet()) { oprot.writeBinary(_iter121.getKey()); oprot.writeBinary(_iter121.getValue()); @@ -1852,7 +1832,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (struct.isSetColFamTimeRangeMap()) { { oprot.writeI32(struct.colFamTimeRangeMap.size()); - for (Map.Entry _iter122 : struct.colFamTimeRangeMap.entrySet()) + for (java.util.Map.Entry _iter122 : struct.colFamTimeRangeMap.entrySet()) { oprot.writeBinary(_iter122.getKey()); _iter122.getValue().write(oprot); @@ -1866,8 +1846,8 @@ public class TScan implements org.apache.thrift.TBase, jav @Override public void read(org.apache.thrift.protocol.TProtocol prot, TScan struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(14); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(14); if (incoming.get(0)) { struct.startRow = iprot.readBinary(); struct.setStartRowIsSet(true); @@ -1879,8 +1859,8 @@ public class TScan implements org.apache.thrift.TBase, jav if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.columns = new ArrayList(_list123.size); - TColumn _elem124; + struct.columns = new java.util.ArrayList(_list123.size); + @org.apache.thrift.annotation.Nullable TColumn _elem124; for (int _i125 = 0; _i125 < _list123.size; ++_i125) { _elem124 = new TColumn(); @@ -1914,9 +1894,9 @@ public class TScan implements org.apache.thrift.TBase, jav if (incoming.get(8)) { { 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); - ByteBuffer _key127; - ByteBuffer _val128; + struct.attributes = new java.util.HashMap(2*_map126.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key127; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val128; for (int _i129 = 0; _i129 < _map126.size; ++_i129) { _key127 = iprot.readBinary(); @@ -1942,9 +1922,9 @@ public class TScan implements org.apache.thrift.TBase, jav if (incoming.get(12)) { { org.apache.thrift.protocol.TMap _map130 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.colFamTimeRangeMap = new HashMap(2*_map130.size); - ByteBuffer _key131; - TTimeRange _val132; + struct.colFamTimeRangeMap = new java.util.HashMap(2*_map130.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key131; + @org.apache.thrift.annotation.Nullable TTimeRange _val132; for (int _i133 = 0; _i133 < _map130.size; ++_i133) { _key131 = iprot.readBinary(); @@ -1962,5 +1942,8 @@ public class TScan implements org.apache.thrift.TBase, jav } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 39fd7c7..5f1094c 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,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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"); @@ -42,13 +15,10 @@ public class TServerName implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TServerNameStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TServerNameTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TServerNameStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TServerNameTupleSchemeFactory(); - public String hostName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String hostName; // required public int port; // optional public long startCode; // optional @@ -58,10 +28,10 @@ public class TServerName implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class TServerName implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.HOST_NAME, new org.apache.thrift.meta_data.FieldMetaData("hostName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.START_CODE, new org.apache.thrift.meta_data.FieldMetaData("startCode", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TServerName.class, metaDataMap); } @@ -138,7 +110,7 @@ public class TServerName implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_hostName = true && (isSetHostName()); - list.add(present_hostName); - if (present_hostName) - list.add(hostName); + hashCode = hashCode * 8191 + ((isSetHostName()) ? 131071 : 524287); + if (isSetHostName()) + hashCode = hashCode * 8191 + hostName.hashCode(); - boolean present_port = true && (isSetPort()); - list.add(present_port); - if (present_port) - list.add(port); + hashCode = hashCode * 8191 + ((isSetPort()) ? 131071 : 524287); + if (isSetPort()) + hashCode = hashCode * 8191 + port; - boolean present_startCode = true && (isSetStartCode()); - list.add(present_startCode); - if (present_startCode) - list.add(startCode); + hashCode = hashCode * 8191 + ((isSetStartCode()) ? 131071 : 524287); + if (isSetStartCode()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startCode); - return list.hashCode(); + return hashCode; } @Override @@ -373,7 +346,7 @@ public class TServerName implements org.apache.thrift.TBase { + private static class TServerNameStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TServerName struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -550,19 +524,19 @@ public class TServerName implements org.apache.thrift.TBase { + private static class TServerNameTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TServerName struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.hostName); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetPort()) { optionals.set(0); } @@ -580,10 +554,10 @@ public class TServerName implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 1e45aa6..1cdaf06 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,51 +1,21 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * 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.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -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; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -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.3)", date = "2016-05-27") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-03-18") 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); private static final org.apache.thrift.protocol.TField MAX_STAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("maxStamp", org.apache.thrift.protocol.TType.I64, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TTimeRangeStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TTimeRangeTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TTimeRangeStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TTimeRangeTupleSchemeFactory(); public long minStamp; // required public long maxStamp; // required @@ -55,10 +25,10 @@ public class TTimeRange implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -66,6 +36,7 @@ public class TTimeRange implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MIN_STAMP, new org.apache.thrift.meta_data.FieldMetaData("minStamp", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.MAX_STAMP, new org.apache.thrift.meta_data.FieldMetaData("maxStamp", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TTimeRange.class, metaDataMap); } @@ -172,16 +144,16 @@ public class TTimeRange implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_minStamp = true; - list.add(present_minStamp); - if (present_minStamp) - list.add(minStamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(minStamp); - boolean present_maxStamp = true; - list.add(present_maxStamp); - if (present_maxStamp) - list.add(maxStamp); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(maxStamp); - return list.hashCode(); + return hashCode; } @Override @@ -314,7 +283,7 @@ public class TTimeRange implements org.apache.thrift.TBase { + private static class TTimeRangeStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TTimeRange struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -457,24 +427,24 @@ public class TTimeRange implements org.apache.thrift.TBase { + private static class TTimeRangeTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TTimeRange struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI64(struct.minStamp); oprot.writeI64(struct.maxStamp); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, TTimeRange struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.minStamp = iprot.readI64(); struct.setMinStampIsSet(true); struct.maxStamp = iprot.readI64(); @@ -482,5 +452,8 @@ public class TTimeRange implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/pom.xml b/pom.xml index a80fe62..938f41b 100644 --- a/pom.xml +++ b/pom.xml @@ -1296,7 +1296,7 @@ 1.10.19 2.5.0 thrift - 0.9.3 + 0.12.0 3.4.10 1.7.7 4.0.3 -- 1.9.1