From a8540b0f3edd987fbbed32ee8744068412406f6c Mon Sep 17 00:00:00 2001 From: zhangduo Date: Sun, 27 Jan 2019 12:02:00 +0800 Subject: [PATCH] HBASE-21791 Upgrade thrift dependency to 0.12.0 --- .../hbase/thrift/generated/AlreadyExists.java | 133 +- .../hbase/thrift/generated/BatchMutation.java | 171 +- .../thrift/generated/ColumnDescriptor.java | 268 +- .../hadoop/hbase/thrift/generated/Hbase.java | 16481 +++++++++------- .../hbase/thrift/generated/IOError.java | 133 +- .../thrift/generated/IllegalArgument.java | 133 +- .../hbase/thrift/generated/Mutation.java | 195 +- .../hbase/thrift/generated/TAppend.java | 255 +- .../hadoop/hbase/thrift/generated/TCell.java | 153 +- .../hbase/thrift/generated/TColumn.java | 152 +- .../hbase/thrift/generated/TIncrement.java | 207 +- .../hbase/thrift/generated/TRegionInfo.java | 264 +- .../hbase/thrift/generated/TRowResult.java | 215 +- .../hadoop/hbase/thrift/generated/TScan.java | 331 +- .../hbase/thrift2/generated/TAppend.java | 268 +- .../thrift2/generated/TAuthorization.java | 150 +- .../thrift2/generated/TBloomFilterType.java | 8 +- .../thrift2/generated/TCellVisibility.java | 129 +- .../hbase/thrift2/generated/TColumn.java | 176 +- .../generated/TColumnFamilyDescriptor.java | 535 +- .../thrift2/generated/TColumnIncrement.java | 178 +- .../hbase/thrift2/generated/TColumnValue.java | 243 +- .../hbase/thrift2/generated/TCompareOp.java | 8 +- .../generated/TCompressionAlgorithm.java | 8 +- .../hbase/thrift2/generated/TConsistency.java | 8 +- .../thrift2/generated/TDataBlockEncoding.java | 8 +- .../hbase/thrift2/generated/TDelete.java | 266 +- .../hbase/thrift2/generated/TDeleteType.java | 8 +- .../hbase/thrift2/generated/TDurability.java | 8 +- .../hadoop/hbase/thrift2/generated/TGet.java | 446 +- .../thrift2/generated/THBaseService.java | 13481 +++++++------ .../hbase/thrift2/generated/THRegionInfo.java | 248 +- .../thrift2/generated/THRegionLocation.java | 135 +- .../hbase/thrift2/generated/TIOError.java | 131 +- .../thrift2/generated/TIllegalArgument.java | 131 +- .../hbase/thrift2/generated/TIncrement.java | 268 +- .../thrift2/generated/TKeepDeletedCells.java | 8 +- .../hbase/thrift2/generated/TMutation.java | 101 +- .../generated/TNamespaceDescriptor.java | 171 +- .../hadoop/hbase/thrift2/generated/TPut.java | 268 +- .../hbase/thrift2/generated/TReadType.java | 8 +- .../hbase/thrift2/generated/TResult.java | 201 +- .../thrift2/generated/TRowMutations.java | 165 +- .../hadoop/hbase/thrift2/generated/TScan.java | 533 +- .../hbase/thrift2/generated/TServerName.java | 165 +- .../thrift2/generated/TTableDescriptor.java | 210 +- .../hbase/thrift2/generated/TTableName.java | 159 +- .../hbase/thrift2/generated/TTimeRange.java | 137 +- pom.xml | 2 +- 49 files changed, 19847 insertions(+), 18213 deletions(-) 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 117165ec89..d13aaf2b5f 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 = "2019-01-03") -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-01-27") +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 27e3550c8e..5b21f95f10 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 36b7e4f6c4..d548c22f4b 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 3870711663..19900970af 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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. @@ -609,7 +582,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. @@ -618,7 +591,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 @@ -640,99 +613,99 @@ 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 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; } @@ -756,13 +729,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); @@ -779,13 +752,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); @@ -802,13 +775,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); @@ -828,13 +801,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); @@ -851,13 +824,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); @@ -874,7 +847,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(); @@ -886,7 +859,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"); @@ -899,20 +872,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"); @@ -925,20 +898,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"); @@ -951,13 +924,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); @@ -981,13 +954,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); @@ -1004,13 +977,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); @@ -1020,7 +993,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"); @@ -1033,13 +1006,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); @@ -1050,7 +1023,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"); @@ -1063,13 +1036,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); @@ -1081,7 +1054,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"); @@ -1094,13 +1067,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); @@ -1109,7 +1082,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"); @@ -1122,13 +1095,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); @@ -1138,7 +1111,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"); @@ -1151,13 +1124,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); @@ -1167,7 +1140,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"); @@ -1180,13 +1153,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); @@ -1197,7 +1170,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"); @@ -1210,13 +1183,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); @@ -1225,7 +1198,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"); @@ -1238,13 +1211,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); @@ -1254,7 +1227,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"); @@ -1267,13 +1240,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); @@ -1283,7 +1256,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"); @@ -1296,13 +1269,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); @@ -1313,7 +1286,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"); @@ -1326,13 +1299,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); @@ -1355,13 +1328,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); @@ -1385,13 +1358,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); @@ -1413,13 +1386,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); @@ -1442,13 +1415,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); @@ -1474,13 +1447,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); @@ -1500,13 +1473,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); @@ -1527,13 +1500,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); @@ -1575,13 +1548,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); @@ -1598,13 +1571,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); @@ -1624,13 +1597,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); @@ -1652,13 +1625,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); @@ -1681,13 +1654,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); @@ -1711,13 +1684,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); @@ -1740,13 +1713,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); @@ -1770,13 +1743,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); @@ -1801,7 +1774,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(); @@ -1814,7 +1787,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"); @@ -1830,7 +1803,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(); @@ -1844,7 +1817,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"); @@ -1886,13 +1859,13 @@ public class Hbase { return; } - 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); @@ -1912,7 +1885,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(); @@ -1925,7 +1898,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"); @@ -1938,13 +1911,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); @@ -1990,16 +1963,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; } @@ -2012,26 +1985,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; } @@ -2044,26 +2017,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; } @@ -2076,9 +2049,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); @@ -2086,16 +2059,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; } @@ -2108,26 +2081,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; } @@ -2140,25 +2113,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); } @@ -2169,9 +2142,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); @@ -2179,16 +2152,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; } @@ -2201,9 +2174,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); @@ -2211,16 +2184,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; } @@ -2233,9 +2206,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); @@ -2243,17 +2216,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; @@ -2268,26 +2241,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; } @@ -2300,29 +2273,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; @@ -2341,9 +2314,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); @@ -2351,20 +2324,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; @@ -2385,9 +2358,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); @@ -2395,21 +2368,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; @@ -2432,9 +2405,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); @@ -2442,18 +2415,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; @@ -2470,9 +2443,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); @@ -2480,19 +2453,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; @@ -2511,9 +2484,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); @@ -2521,19 +2494,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; @@ -2552,9 +2525,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); @@ -2562,20 +2535,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; @@ -2596,9 +2569,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); @@ -2606,18 +2579,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; @@ -2634,9 +2607,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); @@ -2644,19 +2617,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; @@ -2675,9 +2648,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); @@ -2685,19 +2658,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; @@ -2716,9 +2689,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); @@ -2726,20 +2699,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; @@ -2760,9 +2733,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); @@ -2770,19 +2743,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; @@ -2801,30 +2774,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; @@ -2845,28 +2818,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; @@ -2883,29 +2856,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; @@ -2924,29 +2897,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; @@ -2965,9 +2938,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); @@ -2975,19 +2948,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; @@ -3006,30 +2979,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; @@ -3050,28 +3023,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; @@ -3088,26 +3061,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; } @@ -3120,26 +3093,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; } @@ -3152,29 +3125,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; @@ -3193,28 +3166,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; @@ -3231,9 +3204,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); @@ -3241,19 +3214,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; @@ -3272,9 +3245,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); @@ -3282,20 +3255,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; @@ -3316,9 +3289,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); @@ -3326,19 +3299,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; @@ -3357,9 +3330,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); @@ -3367,20 +3340,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; @@ -3401,9 +3374,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); @@ -3411,21 +3384,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; @@ -3448,9 +3421,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); @@ -3458,16 +3431,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; } @@ -3480,9 +3453,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); @@ -3490,17 +3463,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; @@ -3515,9 +3488,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); @@ -3525,16 +3498,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; } @@ -3547,26 +3520,26 @@ 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 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; } @@ -3581,7 +3554,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); @@ -3589,16 +3562,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; } @@ -3611,9 +3584,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); @@ -3621,21 +3594,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; @@ -3658,9 +3631,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); @@ -3671,16 +3644,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()); @@ -3741,6 +3714,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 { @@ -3765,6 +3743,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 { @@ -3789,6 +3772,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 { @@ -3814,6 +3802,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 { @@ -3838,6 +3831,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 { @@ -3862,6 +3860,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 { @@ -3886,6 +3889,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 { @@ -3910,6 +3918,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 { @@ -3934,6 +3947,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 { @@ -3962,6 +3980,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 { @@ -3986,6 +4009,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 { @@ -4010,6 +4038,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 { @@ -4034,6 +4067,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 { @@ -4058,6 +4096,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 { @@ -4082,6 +4125,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 { @@ -4106,6 +4154,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 { @@ -4130,6 +4183,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 { @@ -4154,6 +4212,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 { @@ -4178,6 +4241,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 { @@ -4202,6 +4270,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 { @@ -4226,6 +4299,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 { @@ -4250,6 +4328,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 { @@ -4276,6 +4359,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 { @@ -4302,6 +4390,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 { @@ -4328,6 +4421,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 { @@ -4354,6 +4452,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 { @@ -4381,6 +4484,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 { @@ -4405,6 +4513,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 { @@ -4429,6 +4542,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 { @@ -4453,6 +4571,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 { @@ -4477,6 +4600,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 { @@ -4501,6 +4629,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 { @@ -4525,6 +4658,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 { @@ -4550,6 +4688,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 { @@ -4575,6 +4718,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 { @@ -4600,6 +4748,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 { @@ -4625,6 +4778,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 { @@ -4650,6 +4808,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 { @@ -4675,6 +4838,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 { @@ -4701,6 +4869,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 { @@ -4727,6 +4900,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 { @@ -4753,6 +4931,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 { @@ -4777,6 +4960,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 { @@ -4801,6 +4989,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 { @@ -4818,16 +5011,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()); @@ -4884,40 +5077,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(); } }; } @@ -4926,7 +5127,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); } } @@ -4940,40 +5141,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(); } }; } @@ -4982,12 +5191,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"); } @@ -4996,42 +5205,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(); } }; } @@ -5040,7 +5257,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); } } @@ -5054,40 +5271,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.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(); } }; } @@ -5096,7 +5321,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); } } @@ -5110,40 +5335,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(); } }; } @@ -5152,12 +5385,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"); } @@ -5166,41 +5399,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(); } }; } @@ -5209,12 +5450,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"); } @@ -5223,41 +5464,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(); } }; } @@ -5266,12 +5515,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"); } @@ -5280,41 +5529,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.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(); } }; } @@ -5323,7 +5580,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); } } @@ -5337,50 +5594,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.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(); } }; } @@ -5389,7 +5652,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); } } @@ -5403,40 +5666,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.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(); } }; } @@ -5445,12 +5716,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"); } @@ -5459,41 +5730,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(); } }; } @@ -5502,12 +5781,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"); } @@ -5516,41 +5795,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(); } }; } @@ -5559,12 +5846,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"); } @@ -5573,41 +5860,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(); } }; } @@ -5616,12 +5911,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"); } @@ -5630,41 +5925,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.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(); } }; } @@ -5673,12 +5976,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"); } @@ -5687,41 +5990,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.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(); } }; } @@ -5730,12 +6041,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"); } @@ -5744,41 +6055,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.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(); } }; } @@ -5787,12 +6106,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"); } @@ -5801,41 +6120,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(); } }; } @@ -5844,12 +6171,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"); } @@ -5858,41 +6185,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(); } }; } @@ -5901,12 +6236,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"); } @@ -5915,41 +6250,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.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(); } }; } @@ -5958,12 +6301,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"); } @@ -5972,41 +6315,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(); } }; } @@ -6015,12 +6366,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"); } @@ -6029,41 +6380,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(); } }; } @@ -6072,7 +6431,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); } } @@ -6086,45 +6445,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.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(); } }; } @@ -6133,7 +6499,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); } } @@ -6147,45 +6513,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(); } }; } @@ -6194,7 +6567,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); } } @@ -6208,45 +6581,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(); } }; } @@ -6255,7 +6635,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); } } @@ -6269,45 +6649,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.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(); } }; } @@ -6316,12 +6703,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"); } @@ -6330,47 +6717,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.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(); } }; } @@ -6379,7 +6773,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); } } @@ -6393,40 +6787,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(); } }; } @@ -6435,7 +6837,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); } } @@ -6449,40 +6851,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.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(); } }; } @@ -6491,7 +6901,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); } } @@ -6505,40 +6915,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.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(); } }; } @@ -6547,7 +6965,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); } } @@ -6561,40 +6979,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(); } }; } @@ -6603,7 +7029,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); } } @@ -6617,40 +7043,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.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(); } }; } @@ -6659,7 +7093,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); } } @@ -6673,40 +7107,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.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(); } }; } @@ -6715,12 +7157,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"); } @@ -6729,42 +7171,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(); } }; } @@ -6773,12 +7223,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"); } @@ -6787,42 +7237,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.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(); } }; } @@ -6831,12 +7289,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"); } @@ -6845,42 +7303,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.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(); } }; } @@ -6889,12 +7355,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"); } @@ -6903,42 +7369,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.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(); } }; } @@ -6947,12 +7421,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"); } @@ -6961,42 +7435,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(); } }; } @@ -7005,12 +7487,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"); } @@ -7019,42 +7501,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.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(); } }; } @@ -7063,12 +7553,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"); } @@ -7077,46 +7567,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.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(); } }; } @@ -7125,12 +7622,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"); } @@ -7139,46 +7636,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(); } }; } @@ -7187,7 +7691,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); } } @@ -7201,45 +7705,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.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(); } }; } @@ -7248,7 +7759,7 @@ 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); } } @@ -7262,41 +7773,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(); } }; } @@ -7305,12 +7824,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"); } @@ -7319,41 +7838,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.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(); } }; } @@ -7362,12 +7889,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"); } @@ -7376,47 +7903,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(); } }; } @@ -7425,7 +7959,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); } } @@ -7437,16 +7971,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 { @@ -7455,10 +7986,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); } } @@ -7466,6 +7997,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 @@ -7481,21 +8013,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; } @@ -7504,18 +8037,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); } @@ -7523,7 +8056,7 @@ public class Hbase { } public enableTable_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -7534,7 +8067,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); } } @@ -7555,7 +8088,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); } @@ -7563,11 +8096,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; } @@ -7587,43 +8120,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) @@ -7634,6 +8172,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(); @@ -7649,14 +8189,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 @@ -7667,7 +8206,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; } @@ -7680,21 +8219,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:"); @@ -7721,7 +8261,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) { @@ -7729,13 +8269,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; @@ -7781,18 +8321,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); } @@ -7804,8 +8344,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); @@ -7813,6 +8353,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 { @@ -7820,22 +8363,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); } } @@ -7843,6 +8383,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 @@ -7858,21 +8399,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; } @@ -7881,18 +8423,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); } @@ -7924,11 +8466,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; } @@ -7948,7 +8491,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) { @@ -7961,30 +8504,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) @@ -7995,6 +8539,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(); @@ -8010,14 +8556,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 @@ -8028,7 +8573,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; } @@ -8041,21 +8586,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:"); @@ -8082,7 +8628,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) { @@ -8090,13 +8636,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; @@ -8143,18 +8689,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); } @@ -8166,8 +8712,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); @@ -8176,6 +8722,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 { @@ -8183,16 +8732,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 { @@ -8201,10 +8747,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); } } @@ -8212,6 +8758,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 @@ -8227,21 +8774,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; } @@ -8250,18 +8798,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); } @@ -8269,7 +8817,7 @@ public class Hbase { } public disableTable_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -8280,7 +8828,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); } } @@ -8301,7 +8849,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); } @@ -8309,11 +8857,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; } @@ -8333,43 +8881,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) @@ -8380,6 +8933,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(); @@ -8395,14 +8950,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 @@ -8413,7 +8967,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; } @@ -8426,21 +8980,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:"); @@ -8467,7 +9022,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) { @@ -8475,13 +9030,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; @@ -8527,18 +9082,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); } @@ -8550,8 +9105,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); @@ -8559,6 +9114,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 { @@ -8566,22 +9124,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); } } @@ -8589,6 +9144,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 @@ -8604,21 +9160,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; } @@ -8627,18 +9184,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); } @@ -8670,11 +9227,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; } @@ -8694,7 +9252,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) { @@ -8707,30 +9265,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) @@ -8741,6 +9300,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(); @@ -8756,14 +9317,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 @@ -8774,7 +9334,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; } @@ -8787,21 +9347,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:"); @@ -8828,7 +9389,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) { @@ -8836,13 +9397,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; @@ -8889,18 +9450,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); } @@ -8912,8 +9473,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); @@ -8922,6 +9483,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 { @@ -8929,16 +9493,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 { @@ -8947,10 +9508,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); } } @@ -8958,6 +9519,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 @@ -8973,21 +9535,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; } @@ -8996,18 +9559,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); } @@ -9015,7 +9578,7 @@ public class Hbase { } public isTableEnabled_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -9026,7 +9589,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); } } @@ -9047,7 +9610,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); } @@ -9055,11 +9618,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; } @@ -9079,43 +9642,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) @@ -9126,6 +9694,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(); @@ -9141,14 +9711,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 @@ -9159,7 +9728,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; } @@ -9172,21 +9741,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:"); @@ -9213,7 +9783,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) { @@ -9221,13 +9791,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; @@ -9273,18 +9843,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); } @@ -9296,8 +9866,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); @@ -9305,6 +9875,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 { @@ -9313,24 +9886,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); } } @@ -9338,6 +9908,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 @@ -9355,21 +9926,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; } @@ -9378,7 +9950,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -9386,14 +9958,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); } @@ -9443,23 +10015,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; } @@ -9479,13 +10052,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; @@ -9500,7 +10073,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(); @@ -9509,13 +10083,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) { @@ -9524,11 +10098,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) @@ -9539,6 +10113,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; @@ -9563,19 +10139,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 @@ -9586,7 +10158,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; } @@ -9596,7 +10168,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; } @@ -9609,21 +10181,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:"); @@ -9654,7 +10227,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; @@ -9664,13 +10237,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; @@ -9730,18 +10303,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); } @@ -9759,8 +10332,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); @@ -9773,6 +10346,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 { @@ -9780,22 +10356,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); } } @@ -9803,6 +10376,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 @@ -9818,21 +10392,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; } @@ -9841,18 +10416,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); } @@ -9860,7 +10435,7 @@ public class Hbase { } public compact_args( - ByteBuffer tableNameOrRegionName) + java.nio.ByteBuffer tableNameOrRegionName) { this(); this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); @@ -9871,7 +10446,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); } } @@ -9889,16 +10464,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; } @@ -9918,43 +10493,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) @@ -9965,6 +10545,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(); @@ -9980,14 +10562,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 @@ -9998,7 +10579,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; } @@ -10011,21 +10592,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:"); @@ -10052,7 +10634,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) { @@ -10060,13 +10642,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; @@ -10112,18 +10694,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); } @@ -10135,8 +10717,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); @@ -10144,6 +10726,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 { @@ -10151,22 +10736,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); } } @@ -10174,6 +10756,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 @@ -10189,21 +10772,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; } @@ -10212,18 +10796,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); } @@ -10255,11 +10839,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; } @@ -10279,7 +10864,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) { @@ -10292,30 +10877,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) @@ -10326,6 +10912,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(); @@ -10341,14 +10929,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 @@ -10359,7 +10946,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; } @@ -10372,21 +10959,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:"); @@ -10413,7 +11001,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) { @@ -10421,13 +11009,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; @@ -10474,18 +11062,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); } @@ -10497,8 +11085,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); @@ -10507,6 +11095,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 { @@ -10514,22 +11105,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); } } @@ -10537,6 +11125,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 @@ -10552,21 +11141,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; } @@ -10575,18 +11165,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); } @@ -10594,7 +11184,7 @@ public class Hbase { } public majorCompact_args( - ByteBuffer tableNameOrRegionName) + java.nio.ByteBuffer tableNameOrRegionName) { this(); this.tableNameOrRegionName = org.apache.thrift.TBaseHelper.copyBinary(tableNameOrRegionName); @@ -10605,7 +11195,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); } } @@ -10623,16 +11213,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; } @@ -10652,43 +11242,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) @@ -10699,6 +11294,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(); @@ -10714,14 +11311,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 @@ -10732,7 +11328,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; } @@ -10745,21 +11341,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:"); @@ -10786,7 +11383,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) { @@ -10794,13 +11391,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; @@ -10846,18 +11443,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); } @@ -10869,8 +11466,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); @@ -10878,6 +11475,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 { @@ -10885,22 +11485,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); } } @@ -10908,6 +11505,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 @@ -10923,21 +11521,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; } @@ -10946,18 +11545,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); } @@ -10989,11 +11588,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; } @@ -11013,7 +11613,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) { @@ -11026,30 +11626,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) @@ -11060,6 +11661,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(); @@ -11075,14 +11678,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 @@ -11093,7 +11695,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; } @@ -11106,21 +11708,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:"); @@ -11147,7 +11750,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) { @@ -11155,13 +11758,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; @@ -11208,18 +11811,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); } @@ -11231,8 +11834,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); @@ -11241,27 +11844,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); } } @@ -11269,6 +11872,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: @@ -11282,21 +11886,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; } @@ -11305,14 +11910,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); } @@ -11333,30 +11938,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) @@ -11367,15 +11973,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 @@ -11389,21 +11997,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(")"); @@ -11423,7 +12032,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) { @@ -11431,13 +12040,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; @@ -11470,25 +12079,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 { @@ -11497,24 +12109,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); } } @@ -11522,6 +12131,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 @@ -11539,21 +12149,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; } @@ -11562,21 +12173,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); } @@ -11584,7 +12195,7 @@ public class Hbase { } public getTableNames_result( - List success, + java.util.List success, IOError io) { this(); @@ -11597,9 +12208,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; } @@ -11622,22 +12233,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; } @@ -11657,11 +12270,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; } @@ -11681,13 +12295,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; @@ -11702,7 +12316,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(); @@ -11711,13 +12326,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) { @@ -11726,11 +12341,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) @@ -11741,6 +12356,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(); @@ -11765,19 +12382,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 @@ -11788,7 +12403,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; } @@ -11798,7 +12413,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; } @@ -11811,21 +12426,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:"); @@ -11860,7 +12476,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) { @@ -11868,13 +12484,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; @@ -11890,8 +12506,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(); @@ -11932,7 +12548,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); } @@ -11951,18 +12567,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); } @@ -11973,7 +12589,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); } @@ -11986,13 +12602,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(); @@ -12009,6 +12625,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 { @@ -12016,16 +12635,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 { @@ -12034,10 +12650,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); } } @@ -12045,6 +12661,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 @@ -12060,21 +12677,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; } @@ -12083,18 +12701,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); } @@ -12102,7 +12720,7 @@ public class Hbase { } public getColumnDescriptors_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -12113,7 +12731,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); } } @@ -12134,7 +12752,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); } @@ -12142,11 +12760,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; } @@ -12166,43 +12784,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) @@ -12213,6 +12836,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(); @@ -12228,14 +12853,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 @@ -12246,7 +12870,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; } @@ -12259,21 +12883,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:"); @@ -12300,7 +12925,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) { @@ -12308,13 +12933,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; @@ -12360,18 +12985,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); } @@ -12383,8 +13008,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); @@ -12392,6 +13017,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 { @@ -12400,24 +13028,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); } } @@ -12425,6 +13050,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 @@ -12442,21 +13068,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; } @@ -12465,22 +13092,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); } @@ -12488,7 +13115,7 @@ public class Hbase { } public getColumnDescriptors_result( - Map success, + java.util.Map success, IOError io) { this(); @@ -12501,13 +13128,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); @@ -12534,18 +13161,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; } @@ -12565,11 +13193,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; } @@ -12589,13 +13218,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; @@ -12610,7 +13239,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(); @@ -12619,13 +13249,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) { @@ -12634,11 +13264,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) @@ -12649,6 +13279,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(); @@ -12673,19 +13305,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 @@ -12696,7 +13326,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; } @@ -12706,7 +13336,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; } @@ -12719,21 +13349,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:"); @@ -12768,7 +13399,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) { @@ -12776,13 +13407,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; @@ -12798,9 +13429,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(); @@ -12843,7 +13474,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); @@ -12863,18 +13494,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); } @@ -12885,7 +13516,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); @@ -12899,14 +13530,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(); @@ -12925,6 +13556,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 { @@ -12932,16 +13566,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 { @@ -12950,10 +13581,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); } } @@ -12961,6 +13592,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 @@ -12976,21 +13608,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; } @@ -12999,18 +13632,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); } @@ -13018,7 +13651,7 @@ public class Hbase { } public getTableRegions_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -13029,7 +13662,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); } } @@ -13050,7 +13683,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); } @@ -13058,11 +13691,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; } @@ -13082,43 +13715,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) @@ -13129,6 +13767,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(); @@ -13144,14 +13784,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 @@ -13162,7 +13801,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; } @@ -13175,21 +13814,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:"); @@ -13216,7 +13856,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) { @@ -13224,13 +13864,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; @@ -13276,18 +13916,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); } @@ -13299,8 +13939,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); @@ -13308,6 +13948,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 { @@ -13316,24 +13959,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); } } @@ -13341,6 +13981,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 @@ -13358,21 +13999,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; } @@ -13381,21 +14023,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); } @@ -13403,7 +14045,7 @@ public class Hbase { } public getTableRegions_result( - List success, + java.util.List success, IOError io) { this(); @@ -13416,7 +14058,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)); } @@ -13441,22 +14083,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; } @@ -13476,11 +14120,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; } @@ -13500,13 +14145,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; @@ -13521,7 +14166,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(); @@ -13530,13 +14176,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) { @@ -13545,11 +14191,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) @@ -13560,6 +14206,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(); @@ -13584,19 +14232,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 @@ -13607,7 +14253,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; } @@ -13617,7 +14263,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; } @@ -13630,21 +14276,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:"); @@ -13679,7 +14326,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) { @@ -13687,13 +14334,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; @@ -13709,8 +14356,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(); @@ -13771,18 +14418,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); } @@ -13806,13 +14453,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(); @@ -13830,6 +14477,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 { @@ -13838,20 +14488,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 { @@ -13864,10 +14511,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); } } @@ -13875,6 +14522,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 @@ -13892,21 +14540,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; } @@ -13915,21 +14564,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); } @@ -13937,8 +14586,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); @@ -13950,10 +14599,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)); } @@ -13979,7 +14628,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); } @@ -13987,11 +14636,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; } @@ -14015,13 +14664,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); } @@ -14029,14 +14679,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; } @@ -14056,13 +14707,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; @@ -14070,14 +14725,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(); @@ -14086,13 +14742,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) { @@ -14101,11 +14757,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) @@ -14116,6 +14772,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(); @@ -14140,19 +14798,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 @@ -14163,7 +14819,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; } @@ -14173,7 +14829,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; } @@ -14186,21 +14842,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:"); @@ -14235,7 +14892,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) { @@ -14243,13 +14900,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; @@ -14273,8 +14930,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(); @@ -14326,18 +14983,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); } @@ -14361,8 +15018,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); @@ -14370,8 +15027,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(); @@ -14384,6 +15041,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 { @@ -14393,15 +15053,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 { @@ -14409,10 +15066,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); } } @@ -14420,6 +15077,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 @@ -14439,21 +15097,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; } @@ -14462,22 +15121,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); } @@ -14521,11 +15180,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; } @@ -14545,11 +15205,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; } @@ -14569,11 +15230,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; } @@ -14593,7 +15255,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) { @@ -14622,7 +15284,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(); @@ -14634,13 +15297,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) { @@ -14651,11 +15314,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) @@ -14666,6 +15329,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(); @@ -14699,24 +15364,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 @@ -14727,7 +15389,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; } @@ -14737,7 +15399,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; } @@ -14747,7 +15409,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; } @@ -14760,21 +15422,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:"); @@ -14817,7 +15480,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) { @@ -14825,13 +15488,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; @@ -14906,18 +15569,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); } @@ -14941,8 +15604,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); @@ -14961,6 +15624,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 { @@ -14968,16 +15634,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 { @@ -14986,10 +15649,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); } } @@ -14997,6 +15660,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 @@ -15012,21 +15676,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; } @@ -15035,18 +15700,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); } @@ -15054,7 +15719,7 @@ public class Hbase { } public deleteTable_args( - ByteBuffer tableName) + java.nio.ByteBuffer tableName) { this(); this.tableName = org.apache.thrift.TBaseHelper.copyBinary(tableName); @@ -15065,7 +15730,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); } } @@ -15086,7 +15751,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); } @@ -15094,11 +15759,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; } @@ -15118,43 +15783,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) @@ -15165,6 +15835,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(); @@ -15180,14 +15852,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 @@ -15198,7 +15869,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; } @@ -15211,21 +15882,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:"); @@ -15252,7 +15924,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) { @@ -15260,13 +15932,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; @@ -15312,18 +15984,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); } @@ -15335,8 +16007,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); @@ -15344,6 +16016,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 { @@ -15351,22 +16026,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); } } @@ -15374,6 +16046,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 @@ -15389,21 +16062,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; } @@ -15412,18 +16086,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); } @@ -15455,11 +16129,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; } @@ -15479,7 +16154,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) { @@ -15492,30 +16167,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) @@ -15526,6 +16202,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(); @@ -15541,14 +16219,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 @@ -15559,7 +16236,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; } @@ -15572,21 +16249,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:"); @@ -15613,7 +16291,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) { @@ -15621,13 +16299,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; @@ -15674,18 +16352,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); } @@ -15697,8 +16375,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); @@ -15707,6 +16385,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 { @@ -15717,28 +16398,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 { @@ -15759,10 +16437,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); } } @@ -15770,6 +16448,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 @@ -15791,21 +16470,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; } @@ -15814,15 +16494,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, @@ -15833,7 +16513,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); } @@ -15841,10 +16521,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); @@ -15858,24 +16538,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); } @@ -15903,7 +16583,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); } @@ -15911,11 +16591,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; } @@ -15943,7 +16623,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); } @@ -15951,11 +16631,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; } @@ -15983,7 +16663,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); } @@ -15991,11 +16671,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; } @@ -16019,9 +16699,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); } @@ -16029,14 +16709,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; } @@ -16056,13 +16737,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; @@ -16070,7 +16755,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; @@ -16078,7 +16767,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; @@ -16086,14 +16779,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(); @@ -16108,13 +16802,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) { @@ -16127,11 +16821,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) @@ -16142,6 +16836,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(); @@ -16184,29 +16880,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 @@ -16217,7 +16909,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; } @@ -16227,7 +16919,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; } @@ -16237,7 +16929,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; } @@ -16247,7 +16939,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; } @@ -16260,21 +16952,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:"); @@ -16325,7 +17018,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) { @@ -16333,13 +17026,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; @@ -16379,9 +17072,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(); @@ -16429,7 +17122,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()); @@ -16444,18 +17137,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); } @@ -16481,7 +17174,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()); @@ -16492,8 +17185,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); @@ -16509,9 +17202,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(); @@ -16524,6 +17217,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 { @@ -16532,24 +17228,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); } } @@ -16557,6 +17250,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 @@ -16574,21 +17268,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; } @@ -16597,21 +17292,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); } @@ -16619,7 +17314,7 @@ public class Hbase { } public get_result( - List success, + java.util.List success, IOError io) { this(); @@ -16632,7 +17327,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)); } @@ -16657,22 +17352,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; } @@ -16692,11 +17389,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; } @@ -16716,13 +17414,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; @@ -16737,7 +17435,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(); @@ -16746,13 +17445,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) { @@ -16761,11 +17460,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) @@ -16776,6 +17475,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(); @@ -16800,19 +17501,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 @@ -16823,7 +17522,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; } @@ -16833,7 +17532,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; } @@ -16846,21 +17545,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:"); @@ -16895,7 +17595,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) { @@ -16903,13 +17603,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; @@ -16925,8 +17625,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(); @@ -16987,18 +17687,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); } @@ -17022,13 +17722,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(); @@ -17046,6 +17746,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 { @@ -17057,24 +17760,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 */ @@ -17082,7 +17782,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 { @@ -17107,10 +17807,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); } } @@ -17118,6 +17818,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 @@ -17141,21 +17842,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; } @@ -17164,7 +17866,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -17172,9 +17874,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, @@ -17187,7 +17889,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); } @@ -17195,11 +17897,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); @@ -17216,25 +17918,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); } @@ -17264,7 +17966,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); } @@ -17272,11 +17974,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; } @@ -17304,7 +18006,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); } @@ -17312,11 +18014,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; } @@ -17344,7 +18046,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); } @@ -17352,11 +18054,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; } @@ -17393,25 +18095,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); } @@ -17419,14 +18121,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; } @@ -17446,13 +18149,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; @@ -17460,7 +18167,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; @@ -17468,7 +18179,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; @@ -17476,7 +18191,7 @@ public class Hbase { if (value == null) { unsetNumVersions(); } else { - setNumVersions((Integer)value); + setNumVersions((java.lang.Integer)value); } break; @@ -17484,14 +18199,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(); @@ -17509,13 +18225,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) { @@ -17530,11 +18246,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) @@ -17545,6 +18261,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(); @@ -17596,34 +18314,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 @@ -17634,7 +18345,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; } @@ -17644,7 +18355,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; } @@ -17654,7 +18365,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; } @@ -17664,7 +18375,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; } @@ -17674,7 +18385,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; } @@ -17687,21 +18398,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:"); @@ -17756,7 +18468,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; @@ -17766,13 +18478,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; @@ -17820,9 +18532,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(); @@ -17873,7 +18585,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()); @@ -17888,18 +18600,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); } @@ -17931,7 +18643,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()); @@ -17942,8 +18654,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); @@ -17963,9 +18675,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(); @@ -17978,6 +18690,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 { @@ -17986,24 +18701,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); } } @@ -18011,6 +18723,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 @@ -18028,21 +18741,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; } @@ -18051,21 +18765,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); } @@ -18073,7 +18787,7 @@ public class Hbase { } public getVer_result( - List success, + java.util.List success, IOError io) { this(); @@ -18086,7 +18800,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)); } @@ -18111,22 +18825,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; } @@ -18146,11 +18862,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; } @@ -18170,13 +18887,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; @@ -18191,7 +18908,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(); @@ -18200,13 +18918,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) { @@ -18215,11 +18933,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) @@ -18230,6 +18948,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(); @@ -18254,19 +18974,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 @@ -18277,7 +18995,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; } @@ -18287,7 +19005,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; } @@ -18300,21 +19018,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:"); @@ -18349,7 +19068,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) { @@ -18357,13 +19076,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; @@ -18379,8 +19098,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(); @@ -18441,18 +19160,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); } @@ -18476,13 +19195,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(); @@ -18500,6 +19219,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 { @@ -18512,24 +19234,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 */ @@ -18541,7 +19260,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 { @@ -18570,10 +19289,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); } } @@ -18581,6 +19300,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 @@ -18606,21 +19326,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; } @@ -18629,7 +19350,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -18638,9 +19359,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, @@ -18655,7 +19376,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); } @@ -18663,12 +19384,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); @@ -18687,26 +19408,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); } @@ -18738,7 +19459,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); } @@ -18746,11 +19467,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; } @@ -18778,7 +19499,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); } @@ -18786,11 +19507,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; } @@ -18818,7 +19539,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); } @@ -18826,11 +19547,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; } @@ -18867,16 +19588,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); } /** @@ -18896,25 +19617,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); } @@ -18922,14 +19643,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; } @@ -18949,13 +19671,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; @@ -18963,7 +19689,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; @@ -18971,7 +19701,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; @@ -18979,7 +19713,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -18987,7 +19721,7 @@ public class Hbase { if (value == null) { unsetNumVersions(); } else { - setNumVersions((Integer)value); + setNumVersions((java.lang.Integer)value); } break; @@ -18995,14 +19729,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(); @@ -19023,13 +19758,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) { @@ -19046,11 +19781,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) @@ -19061,6 +19796,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(); @@ -19121,39 +19858,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 @@ -19164,7 +19891,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; } @@ -19174,7 +19901,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; } @@ -19184,7 +19911,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; } @@ -19194,7 +19921,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; } @@ -19204,7 +19931,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; } @@ -19214,7 +19941,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; } @@ -19227,21 +19954,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:"); @@ -19300,7 +20028,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; @@ -19310,13 +20038,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; @@ -19372,9 +20100,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(); @@ -19428,7 +20156,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()); @@ -19443,18 +20171,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); } @@ -19492,7 +20220,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()); @@ -19503,8 +20231,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); @@ -19528,9 +20256,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(); @@ -19543,6 +20271,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 { @@ -19551,24 +20282,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); } } @@ -19576,6 +20304,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 @@ -19593,21 +20322,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; } @@ -19616,21 +20346,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); } @@ -19638,7 +20368,7 @@ public class Hbase { } public getVerTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -19651,7 +20381,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)); } @@ -19676,22 +20406,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; } @@ -19711,11 +20443,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; } @@ -19735,13 +20468,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; @@ -19756,7 +20489,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(); @@ -19765,13 +20499,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) { @@ -19780,11 +20514,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) @@ -19795,6 +20529,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(); @@ -19819,19 +20555,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 @@ -19842,7 +20576,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; } @@ -19852,7 +20586,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; } @@ -19865,21 +20599,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:"); @@ -19914,7 +20649,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) { @@ -19922,13 +20657,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; @@ -19944,8 +20679,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(); @@ -20006,18 +20741,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); } @@ -20041,13 +20776,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(); @@ -20065,6 +20800,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 { @@ -20074,24 +20812,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 { @@ -20108,10 +20843,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); } } @@ -20119,6 +20854,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 @@ -20138,21 +20874,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; } @@ -20161,15 +20898,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, @@ -20178,7 +20915,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); } @@ -20186,9 +20923,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); @@ -20201,21 +20938,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); } @@ -20242,7 +20979,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); } @@ -20250,11 +20987,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; } @@ -20282,7 +21019,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); } @@ -20290,11 +21027,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; } @@ -20318,9 +21055,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); } @@ -20328,14 +21065,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; } @@ -20355,13 +21093,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; @@ -20369,7 +21111,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; @@ -20377,14 +21123,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(); @@ -20396,13 +21143,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) { @@ -20413,11 +21160,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) @@ -20428,6 +21175,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(); @@ -20461,24 +21210,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 @@ -20489,7 +21235,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; } @@ -20499,7 +21245,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; } @@ -20509,7 +21255,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; } @@ -20522,21 +21268,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:"); @@ -20579,7 +21326,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) { @@ -20587,13 +21334,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; @@ -20625,9 +21372,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(); @@ -20670,7 +21417,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()); @@ -20685,18 +21432,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); } @@ -20716,7 +21463,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()); @@ -20727,8 +21474,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); @@ -20740,9 +21487,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(); @@ -20755,6 +21502,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 { @@ -20763,24 +21513,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); } } @@ -20788,6 +21535,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 @@ -20805,21 +21553,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; } @@ -20828,21 +21577,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); } @@ -20850,7 +21599,7 @@ public class Hbase { } public getRow_result( - List success, + java.util.List success, IOError io) { this(); @@ -20863,7 +21612,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)); } @@ -20888,22 +21637,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; } @@ -20923,11 +21674,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; } @@ -20947,13 +21699,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; @@ -20968,7 +21720,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(); @@ -20977,13 +21730,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) { @@ -20992,11 +21745,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) @@ -21007,6 +21760,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(); @@ -21031,19 +21786,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 @@ -21054,7 +21807,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; } @@ -21064,7 +21817,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; } @@ -21077,21 +21830,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:"); @@ -21126,7 +21880,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) { @@ -21134,13 +21888,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; @@ -21156,8 +21910,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(); @@ -21218,18 +21972,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); } @@ -21253,13 +22007,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(); @@ -21277,6 +22031,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 { @@ -21287,28 +22044,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 { @@ -21329,10 +22083,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); } } @@ -21340,6 +22094,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 @@ -21361,21 +22116,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; } @@ -21384,15 +22140,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, @@ -21404,7 +22160,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); } @@ -21412,10 +22168,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); @@ -21429,28 +22185,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); } @@ -21478,7 +22234,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); } @@ -21486,11 +22242,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; } @@ -21518,7 +22274,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); } @@ -21526,11 +22282,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; } @@ -21554,13 +22310,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); } @@ -21568,14 +22325,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; } @@ -21599,9 +22357,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); } @@ -21609,14 +22367,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; } @@ -21636,13 +22395,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; @@ -21650,7 +22413,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; @@ -21658,7 +22425,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -21666,14 +22433,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(); @@ -21688,13 +22456,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) { @@ -21707,11 +22475,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) @@ -21722,6 +22490,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(); @@ -21764,29 +22534,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 @@ -21797,7 +22563,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; } @@ -21807,7 +22573,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; } @@ -21817,7 +22583,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; } @@ -21827,7 +22593,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; } @@ -21840,21 +22606,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:"); @@ -21905,7 +22672,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) { @@ -21913,13 +22680,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; @@ -21951,8 +22718,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(); @@ -21969,9 +22736,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(); @@ -22014,7 +22781,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); } @@ -22026,7 +22793,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()); @@ -22041,18 +22808,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); } @@ -22075,7 +22842,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); } @@ -22084,7 +22851,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()); @@ -22095,8 +22862,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); @@ -22108,8 +22875,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(); @@ -22121,9 +22888,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(); @@ -22136,6 +22903,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 { @@ -22144,24 +22914,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); } } @@ -22169,6 +22936,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 @@ -22186,21 +22954,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; } @@ -22209,21 +22978,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); } @@ -22231,7 +23000,7 @@ public class Hbase { } public getRowWithColumns_result( - List success, + java.util.List success, IOError io) { this(); @@ -22244,7 +23013,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)); } @@ -22269,22 +23038,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; } @@ -22304,11 +23075,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; } @@ -22328,13 +23100,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; @@ -22349,7 +23121,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(); @@ -22358,13 +23131,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) { @@ -22373,11 +23146,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) @@ -22388,6 +23161,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(); @@ -22412,19 +23187,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 @@ -22435,7 +23208,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; } @@ -22445,7 +23218,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; } @@ -22458,21 +23231,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:"); @@ -22507,7 +23281,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) { @@ -22515,13 +23289,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; @@ -22537,8 +23311,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(); @@ -22599,18 +23373,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); } @@ -22634,13 +23408,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(); @@ -22658,6 +23432,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 { @@ -22668,20 +23445,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 */ @@ -22689,7 +23463,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 { @@ -22710,10 +23484,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); } } @@ -22721,6 +23495,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 @@ -22742,21 +23517,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; } @@ -22765,7 +23541,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -22773,9 +23549,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, @@ -22786,7 +23562,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); } @@ -22794,10 +23570,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); @@ -22813,22 +23589,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); } @@ -22857,7 +23633,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); } @@ -22865,11 +23641,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; } @@ -22897,7 +23673,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); } @@ -22905,11 +23681,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; } @@ -22946,25 +23722,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); } @@ -22972,14 +23748,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; } @@ -22999,13 +23776,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; @@ -23013,7 +23794,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; @@ -23021,7 +23806,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -23029,14 +23814,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(); @@ -23051,13 +23837,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) { @@ -23070,11 +23856,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) @@ -23085,6 +23871,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(); @@ -23127,29 +23915,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 @@ -23160,7 +23942,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; } @@ -23170,7 +23952,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; } @@ -23180,7 +23962,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; } @@ -23190,7 +23972,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; } @@ -23203,21 +23985,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:"); @@ -23264,7 +24047,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; @@ -23274,13 +24057,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; @@ -23320,9 +24103,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(); @@ -23368,7 +24151,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()); @@ -23383,18 +24166,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); } @@ -23420,7 +24203,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()); @@ -23431,8 +24214,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); @@ -23448,9 +24231,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(); @@ -23463,6 +24246,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 { @@ -23471,24 +24257,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); } } @@ -23496,6 +24279,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 @@ -23513,21 +24297,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; } @@ -23536,21 +24321,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); } @@ -23558,7 +24343,7 @@ public class Hbase { } public getRowTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -23571,7 +24356,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)); } @@ -23596,22 +24381,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; } @@ -23631,11 +24418,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; } @@ -23655,13 +24443,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; @@ -23676,7 +24464,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(); @@ -23685,13 +24474,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) { @@ -23700,11 +24489,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) @@ -23715,6 +24504,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(); @@ -23739,19 +24530,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 @@ -23762,7 +24551,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; } @@ -23772,7 +24561,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; } @@ -23785,21 +24574,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:"); @@ -23834,7 +24624,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) { @@ -23842,13 +24632,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; @@ -23864,8 +24654,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(); @@ -23926,18 +24716,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); } @@ -23961,13 +24751,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(); @@ -23985,6 +24775,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 { @@ -23996,29 +24789,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 { @@ -24040,10 +24830,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); } } @@ -24051,6 +24841,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 @@ -24074,21 +24865,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; } @@ -24097,7 +24889,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -24105,9 +24897,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, @@ -24121,7 +24913,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); } @@ -24129,11 +24921,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); @@ -24150,29 +24942,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); } @@ -24202,7 +24994,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); } @@ -24210,11 +25002,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; } @@ -24242,7 +25034,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); } @@ -24250,11 +25042,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; } @@ -24278,13 +25070,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); } @@ -24292,14 +25085,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; } @@ -24330,25 +25124,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); } @@ -24356,14 +25150,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; } @@ -24383,13 +25178,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; @@ -24397,7 +25196,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; @@ -24405,7 +25208,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -24413,7 +25216,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -24421,14 +25224,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(); @@ -24446,13 +25250,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) { @@ -24467,11 +25271,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) @@ -24482,6 +25286,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(); @@ -24533,34 +25339,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 @@ -24571,7 +25370,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; } @@ -24581,7 +25380,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; } @@ -24591,7 +25390,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; } @@ -24601,7 +25400,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; } @@ -24611,7 +25410,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; } @@ -24624,21 +25423,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:"); @@ -24693,7 +25493,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; @@ -24703,13 +25503,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; @@ -24741,8 +25541,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(); @@ -24767,9 +25567,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(); @@ -24812,7 +25612,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); } @@ -24827,7 +25627,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()); @@ -24842,18 +25642,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); } @@ -24879,7 +25679,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); } @@ -24891,7 +25691,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()); @@ -24902,8 +25702,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); @@ -24915,8 +25715,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(); @@ -24932,9 +25732,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(); @@ -24947,6 +25747,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 { @@ -24955,24 +25758,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); } } @@ -24980,6 +25780,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 @@ -24997,21 +25798,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; } @@ -25020,21 +25822,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); } @@ -25042,7 +25844,7 @@ public class Hbase { } public getRowWithColumnsTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -25055,7 +25857,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)); } @@ -25080,22 +25882,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; } @@ -25115,11 +25919,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; } @@ -25139,13 +25944,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; @@ -25160,7 +25965,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(); @@ -25169,13 +25975,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) { @@ -25184,11 +25990,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) @@ -25199,6 +26005,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(); @@ -25223,19 +26031,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 @@ -25246,7 +26052,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; } @@ -25256,7 +26062,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; } @@ -25269,21 +26075,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:"); @@ -25318,7 +26125,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) { @@ -25326,13 +26133,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; @@ -25348,8 +26155,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(); @@ -25410,18 +26217,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); } @@ -25445,13 +26252,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(); @@ -25469,6 +26276,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 { @@ -25478,24 +26288,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 { @@ -25512,10 +26319,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); } } @@ -25523,6 +26330,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 @@ -25542,21 +26350,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; } @@ -25565,15 +26374,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, @@ -25583,7 +26392,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); } @@ -25591,9 +26400,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); @@ -25606,25 +26415,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); } @@ -25651,7 +26460,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); } @@ -25659,11 +26468,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; } @@ -25687,13 +26496,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); } @@ -25701,14 +26511,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; } @@ -25732,9 +26543,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); } @@ -25742,14 +26553,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; } @@ -25769,13 +26581,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; @@ -25783,7 +26599,7 @@ public class Hbase { if (value == null) { unsetRows(); } else { - setRows((List)value); + setRows((java.util.List)value); } break; @@ -25791,14 +26607,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(); @@ -25810,13 +26627,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) { @@ -25827,11 +26644,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) @@ -25842,6 +26659,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(); @@ -25875,24 +26694,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 @@ -25903,7 +26719,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; } @@ -25913,7 +26729,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; } @@ -25923,7 +26739,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; } @@ -25936,21 +26752,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:"); @@ -25993,7 +26810,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) { @@ -26001,13 +26818,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; @@ -26031,8 +26848,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(); @@ -26049,9 +26866,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(); @@ -26089,7 +26906,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); } @@ -26101,7 +26918,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()); @@ -26116,18 +26933,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); } @@ -26144,7 +26961,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); } @@ -26153,7 +26970,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()); @@ -26164,8 +26981,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); @@ -26173,8 +26990,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(); @@ -26186,9 +27003,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(); @@ -26201,6 +27018,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 { @@ -26209,24 +27029,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); } } @@ -26234,6 +27051,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 @@ -26251,21 +27069,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; } @@ -26274,21 +27093,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); } @@ -26296,7 +27115,7 @@ public class Hbase { } public getRows_result( - List success, + java.util.List success, IOError io) { this(); @@ -26309,7 +27128,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)); } @@ -26334,22 +27153,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; } @@ -26369,11 +27190,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; } @@ -26393,13 +27215,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; @@ -26414,7 +27236,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(); @@ -26423,13 +27246,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) { @@ -26438,11 +27261,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) @@ -26453,6 +27276,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(); @@ -26477,19 +27302,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 @@ -26500,7 +27323,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; } @@ -26510,7 +27333,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; } @@ -26523,21 +27346,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:"); @@ -26572,7 +27396,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) { @@ -26580,13 +27404,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; @@ -26602,8 +27426,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(); @@ -26664,18 +27488,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); } @@ -26699,13 +27523,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(); @@ -26723,6 +27547,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 { @@ -26733,28 +27560,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 { @@ -26775,10 +27599,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); } } @@ -26786,6 +27610,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 @@ -26807,21 +27632,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; } @@ -26830,15 +27656,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, @@ -26851,7 +27677,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); } @@ -26859,10 +27685,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); @@ -26876,32 +27702,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); } @@ -26929,7 +27755,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); } @@ -26937,11 +27763,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; } @@ -26965,13 +27791,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); } @@ -26979,14 +27806,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; } @@ -27010,13 +27838,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); } @@ -27024,14 +27853,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; } @@ -27055,9 +27885,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); } @@ -27065,14 +27895,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; } @@ -27092,13 +27923,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; @@ -27106,7 +27941,7 @@ public class Hbase { if (value == null) { unsetRows(); } else { - setRows((List)value); + setRows((java.util.List)value); } break; @@ -27114,7 +27949,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -27122,14 +27957,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(); @@ -27144,13 +27980,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) { @@ -27163,11 +27999,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) @@ -27178,6 +28014,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(); @@ -27220,29 +28058,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 @@ -27253,7 +28087,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; } @@ -27263,7 +28097,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; } @@ -27273,7 +28107,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; } @@ -27283,7 +28117,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; } @@ -27296,21 +28130,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:"); @@ -27361,7 +28196,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) { @@ -27369,13 +28204,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; @@ -27399,8 +28234,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(); @@ -27417,8 +28252,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(); @@ -27435,9 +28270,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(); @@ -27475,7 +28310,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); } @@ -27487,7 +28322,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); } @@ -27499,7 +28334,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()); @@ -27514,18 +28349,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); } @@ -27545,7 +28380,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); } @@ -27554,7 +28389,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); } @@ -27563,7 +28398,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()); @@ -27574,8 +28409,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); @@ -27583,8 +28418,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(); @@ -27596,8 +28431,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(); @@ -27609,9 +28444,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(); @@ -27624,6 +28459,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 { @@ -27632,24 +28470,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); } } @@ -27657,6 +28492,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 @@ -27674,21 +28510,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; } @@ -27697,21 +28534,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); } @@ -27719,7 +28556,7 @@ public class Hbase { } public getRowsWithColumns_result( - List success, + java.util.List success, IOError io) { this(); @@ -27732,7 +28569,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)); } @@ -27757,22 +28594,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; } @@ -27792,11 +28631,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; } @@ -27816,13 +28656,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; @@ -27837,7 +28677,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(); @@ -27846,13 +28687,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) { @@ -27861,11 +28702,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) @@ -27876,6 +28717,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(); @@ -27900,19 +28743,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 @@ -27923,7 +28764,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; } @@ -27933,7 +28774,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; } @@ -27946,21 +28787,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:"); @@ -27995,7 +28837,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) { @@ -28003,13 +28845,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; @@ -28025,8 +28867,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(); @@ -28087,18 +28929,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); } @@ -28122,13 +28964,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(); @@ -28146,6 +28988,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 { @@ -28156,20 +29001,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 */ @@ -28177,7 +29019,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 { @@ -28198,10 +29040,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); } } @@ -28209,6 +29051,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 @@ -28230,21 +29073,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; } @@ -28253,7 +29097,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -28261,9 +29105,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, @@ -28275,7 +29119,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); } @@ -28283,10 +29127,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); @@ -28302,26 +29146,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); } @@ -28350,7 +29194,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); } @@ -28358,11 +29202,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; } @@ -28386,13 +29230,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); } @@ -28400,14 +29245,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; } @@ -28444,25 +29290,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); } @@ -28470,14 +29316,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; } @@ -28497,13 +29344,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; @@ -28511,7 +29362,7 @@ public class Hbase { if (value == null) { unsetRows(); } else { - setRows((List)value); + setRows((java.util.List)value); } break; @@ -28519,7 +29370,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -28527,14 +29378,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(); @@ -28549,13 +29401,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) { @@ -28568,11 +29420,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) @@ -28583,6 +29435,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(); @@ -28625,29 +29479,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 @@ -28658,7 +29506,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; } @@ -28668,7 +29516,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; } @@ -28678,7 +29526,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; } @@ -28688,7 +29536,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; } @@ -28701,21 +29549,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:"); @@ -28762,7 +29611,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; @@ -28772,13 +29621,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; @@ -28802,8 +29651,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(); @@ -28828,9 +29677,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(); @@ -28868,7 +29717,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); } @@ -28883,7 +29732,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()); @@ -28898,18 +29747,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); } @@ -28929,7 +29778,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); } @@ -28941,7 +29790,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()); @@ -28952,8 +29801,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); @@ -28961,8 +29810,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(); @@ -28978,9 +29827,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(); @@ -28993,6 +29842,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 { @@ -29001,24 +29853,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); } } @@ -29026,6 +29875,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 @@ -29043,21 +29893,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; } @@ -29066,21 +29917,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); } @@ -29088,7 +29939,7 @@ public class Hbase { } public getRowsTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -29101,7 +29952,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)); } @@ -29126,22 +29977,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; } @@ -29161,11 +30014,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; } @@ -29185,13 +30039,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; @@ -29206,7 +30060,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(); @@ -29215,13 +30070,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) { @@ -29230,11 +30085,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) @@ -29245,6 +30100,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(); @@ -29269,19 +30126,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 @@ -29292,7 +30147,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; } @@ -29302,7 +30157,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; } @@ -29315,21 +30170,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:"); @@ -29364,7 +30220,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) { @@ -29372,13 +30228,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; @@ -29394,8 +30250,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(); @@ -29456,18 +30312,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); } @@ -29491,13 +30347,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(); @@ -29515,6 +30371,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 { @@ -29526,29 +30385,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 { @@ -29570,10 +30426,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); } } @@ -29581,6 +30437,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 @@ -29604,21 +30461,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; } @@ -29627,7 +30485,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -29635,9 +30493,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, @@ -29652,7 +30510,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); } @@ -29660,11 +30518,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); @@ -29681,33 +30539,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); } @@ -29737,7 +30595,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); } @@ -29745,11 +30603,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; } @@ -29773,13 +30631,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); } @@ -29787,14 +30646,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; } @@ -29818,13 +30678,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); } @@ -29832,14 +30693,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; } @@ -29870,25 +30732,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); } @@ -29896,14 +30758,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; } @@ -29923,13 +30786,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; @@ -29937,7 +30804,7 @@ public class Hbase { if (value == null) { unsetRows(); } else { - setRows((List)value); + setRows((java.util.List)value); } break; @@ -29945,7 +30812,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -29953,7 +30820,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -29961,14 +30828,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(); @@ -29986,13 +30854,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) { @@ -30007,11 +30875,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) @@ -30022,6 +30890,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(); @@ -30073,34 +30943,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 @@ -30111,7 +30974,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; } @@ -30121,7 +30984,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; } @@ -30131,7 +30994,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; } @@ -30141,7 +31004,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; } @@ -30151,7 +31014,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; } @@ -30164,21 +31027,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:"); @@ -30233,7 +31097,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; @@ -30243,13 +31107,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; @@ -30273,8 +31137,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(); @@ -30291,8 +31155,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(); @@ -30317,9 +31181,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(); @@ -30357,7 +31221,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); } @@ -30369,7 +31233,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); } @@ -30384,7 +31248,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()); @@ -30399,18 +31263,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); } @@ -30433,7 +31297,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); } @@ -30442,7 +31306,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); } @@ -30454,7 +31318,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()); @@ -30465,8 +31329,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); @@ -30474,8 +31338,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(); @@ -30487,8 +31351,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(); @@ -30504,9 +31368,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(); @@ -30519,6 +31383,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 { @@ -30527,24 +31394,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); } } @@ -30552,6 +31416,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 @@ -30569,21 +31434,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; } @@ -30592,21 +31458,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); } @@ -30614,7 +31480,7 @@ public class Hbase { } public getRowsWithColumnsTs_result( - List success, + java.util.List success, IOError io) { this(); @@ -30627,7 +31493,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)); } @@ -30652,22 +31518,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; } @@ -30687,11 +31555,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; } @@ -30711,13 +31580,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; @@ -30732,7 +31601,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(); @@ -30741,13 +31611,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) { @@ -30756,11 +31626,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) @@ -30771,6 +31641,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(); @@ -30795,19 +31667,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 @@ -30818,7 +31688,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; } @@ -30828,7 +31698,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; } @@ -30841,21 +31711,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:"); @@ -30890,7 +31761,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) { @@ -30898,13 +31769,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; @@ -30920,8 +31791,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(); @@ -30982,18 +31853,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); } @@ -31017,13 +31888,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(); @@ -31041,6 +31912,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 { @@ -31051,28 +31925,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 { @@ -31093,10 +31964,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); } } @@ -31104,6 +31975,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 @@ -31125,21 +31997,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; } @@ -31148,15 +32021,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, @@ -31168,7 +32041,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); } @@ -31176,10 +32049,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); @@ -31193,28 +32066,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); } @@ -31242,7 +32115,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); } @@ -31250,11 +32123,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; } @@ -31282,7 +32155,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); } @@ -31290,11 +32163,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; } @@ -31318,13 +32191,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); } @@ -31332,14 +32206,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; } @@ -31363,9 +32238,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); } @@ -31373,14 +32248,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; } @@ -31400,13 +32276,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; @@ -31414,7 +32294,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; @@ -31422,7 +32306,7 @@ public class Hbase { if (value == null) { unsetMutations(); } else { - setMutations((List)value); + setMutations((java.util.List)value); } break; @@ -31430,14 +32314,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(); @@ -31452,13 +32337,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) { @@ -31471,11 +32356,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) @@ -31486,6 +32371,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(); @@ -31528,29 +32415,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 @@ -31561,7 +32444,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; } @@ -31571,7 +32454,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; } @@ -31581,7 +32464,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; } @@ -31591,7 +32474,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; } @@ -31604,21 +32487,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:"); @@ -31669,7 +32553,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) { @@ -31677,13 +32561,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; @@ -31715,8 +32599,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(); @@ -31734,9 +32618,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(); @@ -31791,7 +32675,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()); @@ -31806,18 +32690,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); } @@ -31849,7 +32733,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()); @@ -31860,8 +32744,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); @@ -31873,8 +32757,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(); @@ -31887,9 +32771,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(); @@ -31902,6 +32786,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 { @@ -31910,24 +32797,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); } } @@ -31935,6 +32819,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 @@ -31952,21 +32837,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; } @@ -31975,20 +32861,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); } @@ -32026,11 +32912,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; } @@ -32050,11 +32937,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; } @@ -32074,7 +32962,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) { @@ -32095,7 +32983,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(); @@ -32104,13 +32993,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) { @@ -32119,11 +33008,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) @@ -32134,6 +33023,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(); @@ -32158,19 +33049,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 @@ -32181,7 +33070,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; } @@ -32191,7 +33080,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; } @@ -32204,21 +33093,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:"); @@ -32253,7 +33143,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) { @@ -32261,13 +33151,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; @@ -32328,18 +33218,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); } @@ -32357,8 +33247,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); @@ -32372,6 +33262,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 { @@ -32383,24 +33276,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 */ @@ -32408,7 +33298,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 { @@ -32433,10 +33323,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); } } @@ -32444,6 +33334,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 @@ -32467,21 +33358,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; } @@ -32490,7 +33382,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -32498,9 +33390,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, @@ -32514,7 +33406,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); } @@ -32522,11 +33414,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); @@ -32543,13 +33435,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)); } @@ -32557,15 +33449,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); } @@ -32595,7 +33487,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); } @@ -32603,11 +33495,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; } @@ -32635,7 +33527,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); } @@ -32643,11 +33535,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; } @@ -32671,13 +33563,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); } @@ -32685,14 +33578,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; } @@ -32729,25 +33623,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); } @@ -32755,14 +33649,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; } @@ -32782,13 +33677,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; @@ -32796,7 +33695,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; @@ -32804,7 +33707,7 @@ public class Hbase { if (value == null) { unsetMutations(); } else { - setMutations((List)value); + setMutations((java.util.List)value); } break; @@ -32812,7 +33715,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -32820,14 +33723,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(); @@ -32845,13 +33749,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) { @@ -32866,11 +33770,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) @@ -32881,6 +33785,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(); @@ -32932,34 +33838,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 @@ -32970,7 +33869,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; } @@ -32980,7 +33879,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; } @@ -32990,7 +33889,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; } @@ -33000,7 +33899,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; } @@ -33010,7 +33909,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; } @@ -33023,21 +33922,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:"); @@ -33092,7 +33992,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; @@ -33102,13 +34002,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; @@ -33140,8 +34040,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(); @@ -33167,9 +34067,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(); @@ -33227,7 +34127,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()); @@ -33242,18 +34142,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); } @@ -33291,7 +34191,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()); @@ -33302,8 +34202,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); @@ -33315,8 +34215,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(); @@ -33333,9 +34233,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(); @@ -33348,6 +34248,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 { @@ -33356,24 +34259,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); } } @@ -33381,6 +34281,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 @@ -33398,21 +34299,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; } @@ -33421,20 +34323,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); } @@ -33472,11 +34374,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; } @@ -33496,11 +34399,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; } @@ -33520,7 +34424,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) { @@ -33541,7 +34445,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(); @@ -33550,13 +34455,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) { @@ -33565,11 +34470,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) @@ -33580,6 +34485,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(); @@ -33604,19 +34511,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 @@ -33627,7 +34532,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; } @@ -33637,7 +34542,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; } @@ -33650,21 +34555,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:"); @@ -33699,7 +34605,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) { @@ -33707,13 +34613,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; @@ -33774,18 +34680,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); } @@ -33803,8 +34709,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); @@ -33818,6 +34724,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 { @@ -33827,24 +34736,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 { @@ -33861,10 +34767,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); } } @@ -33872,6 +34778,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 @@ -33891,21 +34798,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; } @@ -33914,15 +34822,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, @@ -33932,7 +34840,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); } @@ -33940,9 +34848,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); @@ -33955,25 +34863,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); } @@ -34000,7 +34908,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); } @@ -34008,11 +34916,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; } @@ -34036,13 +34944,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); } @@ -34050,14 +34959,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; } @@ -34081,9 +34991,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); } @@ -34091,14 +35001,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; } @@ -34118,13 +35029,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; @@ -34132,7 +35047,7 @@ public class Hbase { if (value == null) { unsetRowBatches(); } else { - setRowBatches((List)value); + setRowBatches((java.util.List)value); } break; @@ -34140,14 +35055,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(); @@ -34159,13 +35075,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) { @@ -34176,11 +35092,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) @@ -34191,6 +35107,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(); @@ -34224,24 +35142,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 @@ -34252,7 +35167,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; } @@ -34262,7 +35177,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; } @@ -34272,7 +35187,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; } @@ -34285,21 +35200,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:"); @@ -34342,7 +35258,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) { @@ -34350,13 +35266,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; @@ -34380,8 +35296,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(); @@ -34399,9 +35315,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(); @@ -34451,7 +35367,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()); @@ -34466,18 +35382,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); } @@ -34503,7 +35419,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()); @@ -34514,8 +35430,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); @@ -34523,8 +35439,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(); @@ -34537,9 +35453,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(); @@ -34552,6 +35468,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 { @@ -34560,24 +35479,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); } } @@ -34585,6 +35501,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 @@ -34602,21 +35519,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; } @@ -34625,20 +35543,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); } @@ -34676,11 +35594,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; } @@ -34700,11 +35619,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; } @@ -34724,7 +35644,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) { @@ -34745,7 +35665,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(); @@ -34754,13 +35675,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) { @@ -34769,11 +35690,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) @@ -34784,6 +35705,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(); @@ -34808,19 +35731,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 @@ -34831,7 +35752,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; } @@ -34841,7 +35762,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; } @@ -34854,21 +35775,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:"); @@ -34903,7 +35825,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) { @@ -34911,13 +35833,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; @@ -34978,18 +35900,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); } @@ -35007,8 +35929,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); @@ -35022,6 +35944,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 { @@ -35032,20 +35957,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 */ @@ -35053,7 +35975,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 { @@ -35074,10 +35996,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); } } @@ -35085,6 +36007,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 @@ -35106,21 +36029,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; } @@ -35129,7 +36053,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -35137,9 +36061,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, @@ -35151,7 +36075,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); } @@ -35159,10 +36083,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); @@ -35178,10 +36102,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)); } @@ -35189,15 +36113,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); } @@ -35226,7 +36150,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); } @@ -35234,11 +36158,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; } @@ -35262,13 +36186,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); } @@ -35276,14 +36201,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; } @@ -35320,25 +36246,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); } @@ -35346,14 +36272,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; } @@ -35373,13 +36300,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; @@ -35387,7 +36318,7 @@ public class Hbase { if (value == null) { unsetRowBatches(); } else { - setRowBatches((List)value); + setRowBatches((java.util.List)value); } break; @@ -35395,7 +36326,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -35403,14 +36334,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(); @@ -35425,13 +36357,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) { @@ -35444,11 +36376,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) @@ -35459,6 +36391,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(); @@ -35501,29 +36435,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 @@ -35534,7 +36462,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; } @@ -35544,7 +36472,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; } @@ -35554,7 +36482,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; } @@ -35564,7 +36492,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; } @@ -35577,21 +36505,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:"); @@ -35638,7 +36567,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; @@ -35648,13 +36577,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; @@ -35678,8 +36607,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(); @@ -35705,9 +36634,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(); @@ -35760,7 +36689,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()); @@ -35775,18 +36704,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); } @@ -35818,7 +36747,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()); @@ -35829,8 +36758,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); @@ -35838,8 +36767,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(); @@ -35856,9 +36785,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(); @@ -35871,6 +36800,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 { @@ -35879,24 +36811,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); } } @@ -35904,6 +36833,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 @@ -35921,21 +36851,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; } @@ -35944,20 +36875,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); } @@ -35995,11 +36926,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; } @@ -36019,11 +36951,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; } @@ -36043,7 +36976,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) { @@ -36064,7 +36997,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(); @@ -36073,13 +37007,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) { @@ -36088,11 +37022,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) @@ -36103,6 +37037,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(); @@ -36127,19 +37063,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 @@ -36150,7 +37084,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; } @@ -36160,7 +37094,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; } @@ -36173,21 +37107,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:"); @@ -36222,7 +37157,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) { @@ -36230,13 +37165,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; @@ -36297,18 +37232,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); } @@ -36326,8 +37261,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); @@ -36341,6 +37276,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 { @@ -36351,24 +37289,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 */ @@ -36393,10 +37328,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); } } @@ -36404,6 +37339,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 @@ -36425,21 +37361,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; } @@ -36448,7 +37385,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -36456,9 +37393,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, @@ -36467,7 +37404,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); } @@ -36475,9 +37412,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(); @@ -36494,13 +37431,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; } @@ -36526,7 +37463,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); } @@ -36534,11 +37471,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; } @@ -36566,7 +37503,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); } @@ -36574,11 +37511,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; } @@ -36606,7 +37543,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); } @@ -36614,11 +37551,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; } @@ -36655,25 +37592,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; @@ -36681,7 +37622,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; @@ -36689,7 +37634,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; @@ -36697,14 +37646,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(); @@ -36719,13 +37669,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) { @@ -36738,11 +37688,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) @@ -36753,6 +37703,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(); @@ -36795,29 +37747,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 @@ -36828,7 +37774,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; } @@ -36838,7 +37784,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; } @@ -36848,7 +37794,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; } @@ -36858,7 +37804,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; } @@ -36871,21 +37817,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:"); @@ -36932,7 +37879,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; @@ -36942,13 +37889,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; @@ -37031,18 +37978,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); } @@ -37072,8 +38019,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); @@ -37093,6 +38040,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 { @@ -37102,15 +38052,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 { @@ -37118,10 +38065,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); } } @@ -37129,6 +38076,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 @@ -37148,21 +38096,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; } @@ -37171,7 +38120,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -37179,16 +38128,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); } @@ -37244,23 +38193,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; } @@ -37280,11 +38230,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; } @@ -37304,13 +38255,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; @@ -37333,7 +38284,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(); @@ -37345,13 +38297,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) { @@ -37362,11 +38314,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) @@ -37377,6 +38329,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; @@ -37410,24 +38364,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 @@ -37438,7 +38387,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; } @@ -37448,7 +38397,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; } @@ -37458,7 +38407,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; } @@ -37471,21 +38420,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:"); @@ -37524,7 +38474,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; @@ -37534,13 +38484,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; @@ -37614,18 +38564,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); } @@ -37649,8 +38599,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); @@ -37668,6 +38618,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 { @@ -37678,28 +38631,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 { @@ -37720,10 +38670,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); } } @@ -37731,6 +38681,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 @@ -37752,21 +38703,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; } @@ -37775,15 +38727,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, @@ -37794,7 +38746,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); } @@ -37802,10 +38754,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); @@ -37819,24 +38771,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); } @@ -37864,7 +38816,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); } @@ -37872,11 +38824,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; } @@ -37904,7 +38856,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); } @@ -37912,11 +38864,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; } @@ -37944,7 +38896,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); } @@ -37952,11 +38904,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; } @@ -37980,9 +38932,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); } @@ -37990,14 +38942,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; } @@ -38017,13 +38970,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; @@ -38031,7 +38988,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; @@ -38039,7 +39000,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; @@ -38047,14 +39012,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(); @@ -38069,13 +39035,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) { @@ -38088,11 +39054,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) @@ -38103,6 +39069,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(); @@ -38145,29 +39113,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 @@ -38178,7 +39142,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; } @@ -38188,7 +39152,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; } @@ -38198,7 +39162,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; } @@ -38208,7 +39172,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; } @@ -38221,21 +39185,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:"); @@ -38286,7 +39251,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) { @@ -38294,13 +39259,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; @@ -38340,9 +39305,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(); @@ -38390,7 +39355,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()); @@ -38405,18 +39370,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); } @@ -38442,7 +39407,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()); @@ -38453,8 +39418,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); @@ -38470,9 +39435,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(); @@ -38485,6 +39450,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 { @@ -38492,22 +39460,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); } } @@ -38515,6 +39480,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 @@ -38530,21 +39496,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; } @@ -38553,18 +39520,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); } @@ -38596,11 +39563,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; } @@ -38620,7 +39588,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) { @@ -38633,30 +39601,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) @@ -38667,6 +39636,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(); @@ -38682,14 +39653,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 @@ -38700,7 +39670,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; } @@ -38713,21 +39683,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:"); @@ -38754,7 +39725,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) { @@ -38762,13 +39733,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; @@ -38815,18 +39786,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); } @@ -38838,8 +39809,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); @@ -38848,6 +39819,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 { @@ -38859,24 +39833,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 */ @@ -38884,7 +39855,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 { @@ -38909,10 +39880,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); } } @@ -38920,6 +39891,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 @@ -38943,21 +39915,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; } @@ -38966,7 +39939,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -38974,9 +39947,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, @@ -38989,7 +39962,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); } @@ -38997,11 +39970,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); @@ -39018,25 +39991,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); } @@ -39066,7 +40039,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); } @@ -39074,11 +40047,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; } @@ -39106,7 +40079,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); } @@ -39114,11 +40087,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; } @@ -39146,7 +40119,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); } @@ -39154,11 +40127,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; } @@ -39195,25 +40168,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); } @@ -39221,14 +40194,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; } @@ -39248,13 +40222,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; @@ -39262,7 +40240,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; @@ -39270,7 +40252,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; @@ -39278,7 +40264,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -39286,14 +40272,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(); @@ -39311,13 +40298,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) { @@ -39332,11 +40319,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) @@ -39347,6 +40334,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(); @@ -39398,34 +40387,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 @@ -39436,7 +40418,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; } @@ -39446,7 +40428,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; } @@ -39456,7 +40438,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; } @@ -39466,7 +40448,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; } @@ -39476,7 +40458,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; } @@ -39489,21 +40471,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:"); @@ -39558,7 +40541,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; @@ -39568,13 +40551,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; @@ -39622,9 +40605,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(); @@ -39675,7 +40658,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()); @@ -39690,18 +40673,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); } @@ -39733,7 +40716,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()); @@ -39744,8 +40727,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); @@ -39765,9 +40748,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(); @@ -39780,6 +40763,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 { @@ -39787,22 +40773,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); } } @@ -39810,6 +40793,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 @@ -39825,21 +40809,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; } @@ -39848,18 +40833,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); } @@ -39891,11 +40876,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; } @@ -39915,7 +40901,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) { @@ -39928,30 +40914,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) @@ -39962,6 +40949,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(); @@ -39977,14 +40966,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 @@ -39995,7 +40983,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; } @@ -40008,21 +40996,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:"); @@ -40049,7 +41038,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) { @@ -40057,13 +41046,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; @@ -40110,18 +41099,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); } @@ -40133,8 +41122,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); @@ -40143,6 +41132,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 { @@ -40152,24 +41144,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 { @@ -40186,10 +41175,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); } } @@ -40197,6 +41186,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 @@ -40216,21 +41206,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; } @@ -40239,15 +41230,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, @@ -40256,7 +41247,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); } @@ -40264,9 +41255,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); @@ -40279,21 +41270,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); } @@ -40320,7 +41311,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); } @@ -40328,11 +41319,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; } @@ -40360,7 +41351,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); } @@ -40368,11 +41359,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; } @@ -40396,9 +41387,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); } @@ -40406,14 +41397,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; } @@ -40433,13 +41425,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; @@ -40447,7 +41443,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; @@ -40455,14 +41455,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(); @@ -40474,13 +41475,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) { @@ -40491,11 +41492,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) @@ -40506,6 +41507,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(); @@ -40539,24 +41542,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 @@ -40567,7 +41567,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; } @@ -40577,7 +41577,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; } @@ -40587,7 +41587,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; } @@ -40600,21 +41600,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:"); @@ -40657,7 +41658,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) { @@ -40665,13 +41666,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; @@ -40703,9 +41704,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(); @@ -40748,7 +41749,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()); @@ -40763,18 +41764,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); } @@ -40794,7 +41795,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()); @@ -40805,8 +41806,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); @@ -40818,9 +41819,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(); @@ -40833,6 +41834,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 { @@ -40840,22 +41844,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); } } @@ -40863,6 +41864,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 @@ -40878,21 +41880,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; } @@ -40901,18 +41904,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); } @@ -40944,11 +41947,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; } @@ -40968,7 +41972,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) { @@ -40981,30 +41985,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) @@ -41015,6 +42020,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(); @@ -41030,14 +42037,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 @@ -41048,7 +42054,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; } @@ -41061,21 +42067,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:"); @@ -41102,7 +42109,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) { @@ -41110,13 +42117,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; @@ -41163,18 +42170,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); } @@ -41186,8 +42193,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); @@ -41196,6 +42203,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 { @@ -41203,16 +42213,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 { @@ -41221,10 +42228,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); } } @@ -41232,6 +42239,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 @@ -41247,21 +42255,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; } @@ -41270,18 +42279,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); } @@ -41316,6 +42325,7 @@ public class Hbase { /** * The single increment to apply */ + @org.apache.thrift.annotation.Nullable public TIncrement getIncrement() { return this.increment; } @@ -41323,7 +42333,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; } @@ -41343,7 +42353,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) { @@ -41356,30 +42366,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) @@ -41390,6 +42401,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(); @@ -41405,14 +42418,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 @@ -41423,7 +42435,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; } @@ -41436,21 +42448,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:"); @@ -41480,7 +42493,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) { @@ -41488,13 +42501,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; @@ -41541,18 +42554,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); } @@ -41564,8 +42577,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); @@ -41574,6 +42587,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 { @@ -41581,22 +42597,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); } } @@ -41604,6 +42617,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 @@ -41619,21 +42633,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; } @@ -41642,18 +42657,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); } @@ -41685,11 +42700,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; } @@ -41709,7 +42725,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) { @@ -41722,30 +42738,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) @@ -41756,6 +42773,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(); @@ -41771,14 +42790,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 @@ -41789,7 +42807,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; } @@ -41802,21 +42820,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:"); @@ -41843,7 +42862,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) { @@ -41851,13 +42870,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; @@ -41904,18 +42923,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); } @@ -41927,8 +42946,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); @@ -41937,6 +42956,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 { @@ -41944,16 +42966,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 { @@ -41962,10 +42981,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); } } @@ -41973,6 +42992,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 @@ -41988,21 +43008,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; } @@ -42011,19 +43032,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); } @@ -42031,7 +43052,7 @@ public class Hbase { } public incrementRows_args( - List increments) + java.util.List increments) { this(); this.increments = increments; @@ -42042,7 +43063,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)); } @@ -42063,13 +43084,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); } @@ -42077,14 +43099,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; } @@ -42104,43 +43127,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) @@ -42151,6 +43175,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(); @@ -42166,14 +43192,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 @@ -42184,7 +43209,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; } @@ -42197,21 +43222,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:"); @@ -42238,7 +43264,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) { @@ -42246,13 +43272,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; @@ -42268,8 +43294,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(); @@ -42316,18 +43342,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); } @@ -42345,13 +43371,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(); @@ -42364,6 +43390,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 { @@ -42371,22 +43400,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); } } @@ -42394,6 +43420,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 @@ -42409,21 +43436,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; } @@ -42432,18 +43460,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); } @@ -42475,11 +43503,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; } @@ -42499,7 +43528,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) { @@ -42512,30 +43541,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) @@ -42546,6 +43576,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(); @@ -42561,14 +43593,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 @@ -42579,7 +43610,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; } @@ -42592,21 +43623,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:"); @@ -42633,7 +43665,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) { @@ -42641,13 +43673,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; @@ -42694,18 +43726,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); } @@ -42717,8 +43749,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); @@ -42727,6 +43759,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 { @@ -42737,20 +43772,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 */ @@ -42758,7 +43790,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 { @@ -42779,10 +43811,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); } } @@ -42790,6 +43822,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 @@ -42811,21 +43844,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; } @@ -42834,7 +43868,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -42842,9 +43876,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, @@ -42855,7 +43889,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); } @@ -42863,10 +43897,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); @@ -42882,22 +43916,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); } @@ -42926,7 +43960,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); } @@ -42934,11 +43968,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; } @@ -42966,7 +44000,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); } @@ -42974,11 +44008,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; } @@ -43015,25 +44049,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); } @@ -43041,14 +44075,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; } @@ -43068,13 +44103,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; @@ -43082,7 +44121,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; @@ -43090,7 +44133,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -43098,14 +44141,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(); @@ -43120,13 +44164,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) { @@ -43139,11 +44183,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) @@ -43154,6 +44198,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(); @@ -43196,29 +44242,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 @@ -43229,7 +44269,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; } @@ -43239,7 +44279,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; } @@ -43249,7 +44289,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; } @@ -43259,7 +44299,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; } @@ -43272,21 +44312,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:"); @@ -43333,7 +44374,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; @@ -43343,13 +44384,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; @@ -43389,9 +44430,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(); @@ -43437,7 +44478,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()); @@ -43452,18 +44493,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); } @@ -43489,7 +44530,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()); @@ -43500,8 +44541,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); @@ -43517,9 +44558,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(); @@ -43532,6 +44573,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 { @@ -43539,22 +44583,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); } } @@ -43562,6 +44603,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 @@ -43577,21 +44619,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; } @@ -43600,18 +44643,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); } @@ -43643,11 +44686,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; } @@ -43667,7 +44711,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) { @@ -43680,30 +44724,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) @@ -43714,6 +44759,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(); @@ -43729,14 +44776,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 @@ -43747,7 +44793,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; } @@ -43760,21 +44806,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:"); @@ -43801,7 +44848,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) { @@ -43809,13 +44856,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; @@ -43862,18 +44909,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); } @@ -43885,8 +44932,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); @@ -43895,6 +44942,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 { @@ -43904,24 +44954,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 { @@ -43938,10 +44985,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); } } @@ -43949,6 +44996,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 @@ -43968,21 +45016,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; } @@ -43991,15 +45040,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, @@ -44008,7 +45057,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); } @@ -44016,9 +45065,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); @@ -44031,21 +45080,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); } @@ -44072,7 +45121,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); } @@ -44080,11 +45129,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; } @@ -44107,6 +45156,7 @@ public class Hbase { /** * Scan instance */ + @org.apache.thrift.annotation.Nullable public TScan getScan() { return this.scan; } @@ -44114,7 +45164,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; } @@ -44138,9 +45188,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); } @@ -44148,14 +45198,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; } @@ -44175,13 +45226,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; @@ -44197,14 +45252,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(); @@ -44216,13 +45272,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) { @@ -44233,11 +45289,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) @@ -44248,6 +45304,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(); @@ -44281,24 +45339,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 @@ -44309,7 +45364,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; } @@ -44319,7 +45374,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; } @@ -44329,7 +45384,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; } @@ -44342,21 +45397,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:"); @@ -44402,7 +45458,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) { @@ -44410,13 +45466,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; @@ -44449,9 +45505,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(); @@ -44494,7 +45550,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()); @@ -44509,18 +45565,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); } @@ -44540,7 +45596,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()); @@ -44551,8 +45607,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); @@ -44565,9 +45621,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(); @@ -44580,6 +45636,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 { @@ -44588,24 +45647,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); } } @@ -44613,6 +45669,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 @@ -44630,21 +45687,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; } @@ -44653,7 +45711,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -44661,14 +45719,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); } @@ -44718,23 +45776,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; } @@ -44754,13 +45813,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; @@ -44775,7 +45834,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(); @@ -44784,13 +45844,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) { @@ -44799,11 +45859,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) @@ -44814,6 +45874,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; @@ -44838,19 +45900,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 @@ -44861,7 +45919,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; } @@ -44871,7 +45929,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; } @@ -44884,21 +45942,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:"); @@ -44929,7 +45988,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; @@ -44939,13 +45998,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; @@ -45005,18 +46064,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); } @@ -45034,8 +46093,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); @@ -45048,6 +46107,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 { @@ -45058,31 +46120,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 { @@ -45106,10 +46165,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); } } @@ -45117,6 +46176,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 @@ -45138,21 +46198,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; } @@ -45161,15 +46222,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, @@ -45181,7 +46242,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); } @@ -45189,10 +46250,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); @@ -45206,28 +46267,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); } @@ -45255,7 +46316,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); } @@ -45263,11 +46324,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; } @@ -45296,7 +46357,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); } @@ -45305,11 +46366,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; } @@ -45333,13 +46394,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); } @@ -45349,7 +46411,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; } @@ -45358,7 +46421,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; } @@ -45382,9 +46445,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); } @@ -45392,14 +46455,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; } @@ -45419,13 +46483,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; @@ -45433,7 +46501,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; @@ -45441,7 +46513,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -45449,14 +46521,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(); @@ -45471,13 +46544,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) { @@ -45490,11 +46563,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) @@ -45505,6 +46578,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(); @@ -45547,29 +46622,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 @@ -45580,7 +46651,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; } @@ -45590,7 +46661,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; } @@ -45600,7 +46671,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; } @@ -45610,7 +46681,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; } @@ -45623,21 +46694,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:"); @@ -45688,7 +46760,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) { @@ -45696,13 +46768,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; @@ -45734,8 +46806,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(); @@ -45752,9 +46824,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(); @@ -45797,7 +46869,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); } @@ -45809,7 +46881,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()); @@ -45824,18 +46896,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); } @@ -45858,7 +46930,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); } @@ -45867,7 +46939,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()); @@ -45878,8 +46950,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); @@ -45891,8 +46963,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(); @@ -45904,9 +46976,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(); @@ -45919,6 +46991,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 { @@ -45927,24 +47002,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); } } @@ -45952,6 +47024,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 @@ -45969,21 +47042,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; } @@ -45992,7 +47066,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -46000,14 +47074,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); } @@ -46057,23 +47131,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; } @@ -46093,13 +47168,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; @@ -46114,7 +47189,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(); @@ -46123,13 +47199,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) { @@ -46138,11 +47214,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) @@ -46153,6 +47229,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; @@ -46177,19 +47255,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 @@ -46200,7 +47274,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; } @@ -46210,7 +47284,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; } @@ -46223,21 +47297,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:"); @@ -46268,7 +47343,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; @@ -46278,13 +47353,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; @@ -46344,18 +47419,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); } @@ -46373,8 +47448,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); @@ -46387,6 +47462,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 { @@ -46398,36 +47476,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 { @@ -46456,10 +47531,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); } } @@ -46467,6 +47542,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 @@ -46490,21 +47566,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; } @@ -46513,15 +47590,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, @@ -46535,7 +47612,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); } @@ -46543,11 +47620,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); @@ -46562,31 +47639,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); } @@ -46615,7 +47692,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); } @@ -46623,11 +47700,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; } @@ -46656,7 +47733,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); } @@ -46665,11 +47742,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; } @@ -46698,7 +47775,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); } @@ -46707,11 +47784,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; } @@ -46735,13 +47812,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); } @@ -46751,7 +47829,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; } @@ -46760,7 +47839,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; } @@ -46784,9 +47863,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); } @@ -46794,14 +47873,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; } @@ -46821,13 +47901,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; @@ -46835,7 +47919,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; @@ -46843,7 +47931,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; @@ -46851,7 +47943,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -46859,14 +47951,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(); @@ -46884,13 +47977,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) { @@ -46905,11 +47998,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) @@ -46920,6 +48013,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(); @@ -46971,34 +48066,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 @@ -47009,7 +48099,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; } @@ -47019,7 +48109,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; } @@ -47029,7 +48119,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; } @@ -47039,7 +48129,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; } @@ -47049,7 +48139,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; } @@ -47062,21 +48152,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:"); @@ -47135,7 +48226,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) { @@ -47143,13 +48234,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; @@ -47189,8 +48280,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(); @@ -47207,9 +48298,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(); @@ -47257,7 +48348,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); } @@ -47269,7 +48360,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()); @@ -47284,18 +48375,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); } @@ -47324,7 +48415,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); } @@ -47333,7 +48424,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()); @@ -47344,8 +48435,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); @@ -47361,8 +48452,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(); @@ -47374,9 +48465,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(); @@ -47389,6 +48480,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 { @@ -47397,24 +48491,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); } } @@ -47422,6 +48513,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 @@ -47439,21 +48531,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; } @@ -47462,7 +48555,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -47470,14 +48563,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); } @@ -47527,23 +48620,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; } @@ -47563,13 +48657,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; @@ -47584,7 +48678,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(); @@ -47593,13 +48688,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) { @@ -47608,11 +48703,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) @@ -47623,6 +48718,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; @@ -47647,19 +48744,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 @@ -47670,7 +48763,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; } @@ -47680,7 +48773,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; } @@ -47693,21 +48786,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:"); @@ -47738,7 +48832,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; @@ -47748,13 +48842,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; @@ -47814,18 +48908,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); } @@ -47843,8 +48937,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); @@ -47857,6 +48951,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 { @@ -47867,28 +48964,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 { @@ -47909,10 +49003,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); } } @@ -47920,6 +49014,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 @@ -47941,21 +49036,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; } @@ -47964,15 +49060,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, @@ -47984,7 +49080,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); } @@ -47992,10 +49088,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); @@ -48009,28 +49105,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); } @@ -48058,7 +49154,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); } @@ -48066,11 +49162,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; } @@ -48098,7 +49194,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); } @@ -48106,11 +49202,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; } @@ -48134,13 +49230,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); } @@ -48148,14 +49245,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; } @@ -48179,9 +49277,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); } @@ -48189,14 +49287,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; } @@ -48216,13 +49315,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; @@ -48230,7 +49333,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; @@ -48238,7 +49345,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -48246,14 +49353,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(); @@ -48268,13 +49376,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) { @@ -48287,11 +49395,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) @@ -48302,6 +49410,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(); @@ -48344,29 +49454,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 @@ -48377,7 +49483,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; } @@ -48387,7 +49493,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; } @@ -48397,7 +49503,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; } @@ -48407,7 +49513,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; } @@ -48420,21 +49526,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:"); @@ -48485,7 +49592,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) { @@ -48493,13 +49600,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; @@ -48531,8 +49638,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(); @@ -48549,9 +49656,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(); @@ -48594,7 +49701,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); } @@ -48606,7 +49713,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()); @@ -48621,18 +49728,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); } @@ -48655,7 +49762,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); } @@ -48664,7 +49771,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()); @@ -48675,8 +49782,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); @@ -48688,8 +49795,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(); @@ -48701,9 +49808,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(); @@ -48716,6 +49823,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 { @@ -48724,24 +49834,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); } } @@ -48749,6 +49856,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 @@ -48766,21 +49874,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; } @@ -48789,7 +49898,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -48797,14 +49906,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); } @@ -48854,23 +49963,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; } @@ -48890,13 +50000,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; @@ -48911,7 +50021,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(); @@ -48920,13 +50031,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) { @@ -48935,11 +50046,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) @@ -48950,6 +50061,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; @@ -48974,19 +50087,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 @@ -48997,7 +50106,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; } @@ -49007,7 +50116,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; } @@ -49020,21 +50129,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:"); @@ -49065,7 +50175,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; @@ -49075,13 +50185,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; @@ -49141,18 +50251,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); } @@ -49170,8 +50280,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); @@ -49184,6 +50294,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 { @@ -49195,27 +50308,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 */ @@ -49223,7 +50333,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 { @@ -49251,10 +50361,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); } } @@ -49262,6 +50372,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 @@ -49285,21 +50396,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; } @@ -49308,7 +50420,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -49316,9 +50428,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, @@ -49332,7 +50444,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); } @@ -49340,11 +50452,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); @@ -49361,29 +50473,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); } @@ -49413,7 +50525,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); } @@ -49421,11 +50533,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; } @@ -49454,7 +50566,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); } @@ -49463,11 +50575,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; } @@ -49491,13 +50603,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); } @@ -49507,7 +50620,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; } @@ -49516,7 +50630,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; } @@ -49553,25 +50667,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); } @@ -49579,14 +50693,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; } @@ -49606,13 +50721,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; @@ -49620,7 +50739,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; @@ -49628,7 +50751,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -49636,7 +50759,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -49644,14 +50767,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(); @@ -49669,13 +50793,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) { @@ -49690,11 +50814,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) @@ -49705,6 +50829,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(); @@ -49756,34 +50882,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 @@ -49794,7 +50913,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; } @@ -49804,7 +50923,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; } @@ -49814,7 +50933,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; } @@ -49824,7 +50943,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; } @@ -49834,7 +50953,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; } @@ -49847,21 +50966,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:"); @@ -49916,7 +51036,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; @@ -49926,13 +51046,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; @@ -49964,8 +51084,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(); @@ -49990,9 +51110,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(); @@ -50035,7 +51155,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); } @@ -50050,7 +51170,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()); @@ -50065,18 +51185,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); } @@ -50102,7 +51222,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); } @@ -50114,7 +51234,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()); @@ -50125,8 +51245,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); @@ -50138,8 +51258,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(); @@ -50155,9 +51275,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(); @@ -50170,6 +51290,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 { @@ -50178,24 +51301,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); } } @@ -50203,6 +51323,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 @@ -50220,21 +51341,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; } @@ -50243,7 +51365,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -50251,14 +51373,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); } @@ -50308,23 +51430,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; } @@ -50344,13 +51467,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; @@ -50365,7 +51488,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(); @@ -50374,13 +51498,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) { @@ -50389,11 +51513,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) @@ -50404,6 +51528,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; @@ -50428,19 +51554,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 @@ -50451,7 +51573,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; } @@ -50461,7 +51583,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; } @@ -50474,21 +51596,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:"); @@ -50519,7 +51642,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; @@ -50529,13 +51652,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; @@ -50595,18 +51718,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); } @@ -50624,8 +51747,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); @@ -50638,6 +51761,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 { @@ -50650,32 +51776,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 */ @@ -50683,7 +51806,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 { @@ -50716,10 +51839,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); } } @@ -50727,6 +51850,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 @@ -50752,21 +51876,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; } @@ -50775,7 +51900,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -50783,9 +51908,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, @@ -50801,7 +51926,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); } @@ -50809,12 +51934,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); @@ -50832,32 +51957,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); } @@ -50888,7 +52013,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); } @@ -50896,11 +52021,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; } @@ -50929,7 +52054,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); } @@ -50938,11 +52063,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; } @@ -50971,7 +52096,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); } @@ -50980,11 +52105,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; } @@ -51008,13 +52133,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); } @@ -51024,7 +52150,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; } @@ -51033,7 +52160,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; } @@ -51070,25 +52197,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); } @@ -51096,14 +52223,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; } @@ -51123,13 +52251,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; @@ -51137,7 +52269,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; @@ -51145,7 +52281,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; @@ -51153,7 +52293,7 @@ public class Hbase { if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -51161,7 +52301,7 @@ public class Hbase { if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -51169,14 +52309,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(); @@ -51197,13 +52338,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) { @@ -51220,11 +52361,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) @@ -51235,6 +52376,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(); @@ -51295,39 +52438,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 @@ -51338,7 +52473,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; } @@ -51348,7 +52483,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; } @@ -51358,7 +52493,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; } @@ -51368,7 +52503,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; } @@ -51378,7 +52513,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; } @@ -51388,7 +52523,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; } @@ -51401,21 +52536,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:"); @@ -51478,7 +52614,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; @@ -51488,13 +52624,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; @@ -51534,8 +52670,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(); @@ -51560,9 +52696,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(); @@ -51610,7 +52746,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); } @@ -51625,7 +52761,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()); @@ -51640,18 +52776,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); } @@ -51683,7 +52819,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); } @@ -51695,7 +52831,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()); @@ -51706,8 +52842,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); @@ -51723,8 +52859,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(); @@ -51740,9 +52876,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(); @@ -51755,6 +52891,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 { @@ -51763,24 +52902,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); } } @@ -51788,6 +52924,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 @@ -51805,21 +52942,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; } @@ -51828,7 +52966,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -51836,14 +52974,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); } @@ -51893,23 +53031,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; } @@ -51929,13 +53068,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; @@ -51950,7 +53089,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(); @@ -51959,13 +53099,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) { @@ -51974,11 +53114,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) @@ -51989,6 +53129,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; @@ -52013,19 +53155,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 @@ -52036,7 +53174,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; } @@ -52046,7 +53184,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; } @@ -52059,21 +53197,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:"); @@ -52104,7 +53243,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; @@ -52114,13 +53253,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; @@ -52180,18 +53319,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); } @@ -52209,8 +53348,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); @@ -52223,6 +53362,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 { @@ -52230,11 +53372,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 @@ -52248,10 +53387,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); } } @@ -52259,6 +53398,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 @@ -52274,21 +53414,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; } @@ -52297,7 +53438,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -52305,12 +53446,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); } @@ -52360,55 +53501,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) @@ -52419,6 +53561,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; @@ -52434,14 +53578,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 @@ -52452,7 +53593,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; } @@ -52465,21 +53606,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:"); @@ -52502,7 +53644,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; @@ -52512,13 +53654,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; @@ -52562,18 +53704,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); } @@ -52585,8 +53727,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); @@ -52594,6 +53736,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 { @@ -52603,15 +53748,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 { @@ -52619,10 +53761,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); } } @@ -52630,6 +53772,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 @@ -52649,21 +53792,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; } @@ -52672,23 +53816,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); } @@ -52696,7 +53840,7 @@ public class Hbase { } public scannerGet_result( - List success, + java.util.List success, IOError io, IllegalArgument ia) { @@ -52711,7 +53855,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)); } @@ -52740,22 +53884,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; } @@ -52775,11 +53921,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; } @@ -52799,11 +53946,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; } @@ -52823,13 +53971,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; @@ -52852,7 +54000,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(); @@ -52864,13 +54013,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) { @@ -52881,11 +54030,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) @@ -52896,6 +54045,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(); @@ -52929,24 +54080,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 @@ -52957,7 +54105,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; } @@ -52967,7 +54115,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; } @@ -52977,7 +54125,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; } @@ -52990,21 +54138,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:"); @@ -53047,7 +54196,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) { @@ -53055,13 +54204,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; @@ -53077,8 +54226,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(); @@ -53153,18 +54302,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); } @@ -53194,13 +54343,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(); @@ -53223,6 +54372,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 { @@ -53231,11 +54383,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 @@ -53257,10 +54406,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); } } @@ -53268,6 +54417,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 @@ -53285,21 +54435,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; } @@ -53308,7 +54459,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -53317,14 +54468,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); } @@ -53380,16 +54531,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); } /** @@ -53409,25 +54560,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; @@ -53435,14 +54586,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(); @@ -53451,13 +54603,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) { @@ -53466,11 +54618,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) @@ -53481,6 +54633,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; @@ -53505,19 +54659,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 @@ -53528,7 +54676,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; } @@ -53538,7 +54686,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; } @@ -53551,21 +54699,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:"); @@ -53592,7 +54741,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; @@ -53602,13 +54751,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; @@ -53663,18 +54812,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); } @@ -53692,8 +54841,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); @@ -53705,6 +54854,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 { @@ -53714,15 +54866,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 { @@ -53730,10 +54879,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); } } @@ -53741,6 +54890,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 @@ -53760,21 +54910,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; } @@ -53783,23 +54934,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); } @@ -53807,7 +54958,7 @@ public class Hbase { } public scannerGetList_result( - List success, + java.util.List success, IOError io, IllegalArgument ia) { @@ -53822,7 +54973,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)); } @@ -53851,22 +55002,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; } @@ -53886,11 +55039,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; } @@ -53910,11 +55064,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; } @@ -53934,13 +55089,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; @@ -53963,7 +55118,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(); @@ -53975,13 +55131,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) { @@ -53992,11 +55148,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) @@ -54007,6 +55163,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(); @@ -54040,24 +55198,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 @@ -54068,7 +55223,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; } @@ -54078,7 +55233,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; } @@ -54088,7 +55243,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; } @@ -54101,21 +55256,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:"); @@ -54158,7 +55314,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) { @@ -54166,13 +55322,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; @@ -54188,8 +55344,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(); @@ -54264,18 +55420,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); } @@ -54305,13 +55461,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(); @@ -54334,6 +55490,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 { @@ -54341,11 +55500,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 @@ -54359,10 +55515,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); } } @@ -54370,6 +55526,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 @@ -54385,21 +55542,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; } @@ -54408,7 +55566,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -54416,12 +55574,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); } @@ -54471,55 +55629,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) @@ -54530,6 +55689,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; @@ -54545,14 +55706,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 @@ -54563,7 +55721,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; } @@ -54576,21 +55734,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:"); @@ -54613,7 +55772,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; @@ -54623,13 +55782,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; @@ -54673,18 +55832,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); } @@ -54696,8 +55855,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); @@ -54705,6 +55864,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 { @@ -54713,24 +55875,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); } } @@ -54738,6 +55897,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 @@ -54755,21 +55915,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; } @@ -54778,20 +55939,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); } @@ -54829,11 +55990,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; } @@ -54853,11 +56015,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; } @@ -54877,7 +56040,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) { @@ -54898,7 +56061,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(); @@ -54907,13 +56071,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) { @@ -54922,11 +56086,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) @@ -54937,6 +56101,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(); @@ -54961,19 +56127,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 @@ -54984,7 +56148,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; } @@ -54994,7 +56158,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; } @@ -55007,21 +56171,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:"); @@ -55056,7 +56221,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) { @@ -55064,13 +56229,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; @@ -55131,18 +56296,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); } @@ -55160,8 +56325,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); @@ -55175,6 +56340,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 { @@ -55182,16 +56350,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 { @@ -55200,10 +56365,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); } } @@ -55211,6 +56376,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 @@ -55226,21 +56392,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; } @@ -55249,18 +56416,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); } @@ -55268,7 +56435,7 @@ public class Hbase { } public getRegionInfo_args( - ByteBuffer row) + java.nio.ByteBuffer row) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -55279,7 +56446,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); } } @@ -55300,7 +56467,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); } @@ -55308,11 +56475,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; } @@ -55332,43 +56499,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) @@ -55379,6 +56551,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(); @@ -55394,14 +56568,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 @@ -55412,7 +56585,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; } @@ -55425,21 +56598,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:"); @@ -55466,7 +56640,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) { @@ -55474,13 +56648,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; @@ -55526,18 +56700,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); } @@ -55549,8 +56723,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); @@ -55558,6 +56732,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 { @@ -55566,24 +56743,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); } } @@ -55591,6 +56765,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 @@ -55608,21 +56783,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; } @@ -55631,20 +56807,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); } @@ -55682,11 +56858,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; } @@ -55706,11 +56883,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; } @@ -55730,7 +56908,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) { @@ -55751,7 +56929,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(); @@ -55760,13 +56939,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) { @@ -55775,11 +56954,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) @@ -55790,6 +56969,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(); @@ -55814,19 +56995,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 @@ -55837,7 +57016,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; } @@ -55847,7 +57026,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; } @@ -55860,21 +57039,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:"); @@ -55912,7 +57092,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) { @@ -55920,13 +57100,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; @@ -55987,18 +57167,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); } @@ -56016,8 +57196,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); @@ -56031,6 +57211,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 { @@ -56038,16 +57221,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 { @@ -56056,10 +57236,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); } } @@ -56067,6 +57247,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 @@ -56082,21 +57263,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; } @@ -56105,18 +57287,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); } @@ -56151,6 +57333,7 @@ public class Hbase { /** * The single append operation to apply */ + @org.apache.thrift.annotation.Nullable public TAppend getAppend() { return this.append; } @@ -56158,7 +57341,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; } @@ -56178,7 +57361,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) { @@ -56191,30 +57374,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) @@ -56225,6 +57409,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(); @@ -56240,14 +57426,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 @@ -56258,7 +57443,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; } @@ -56271,21 +57456,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:"); @@ -56315,7 +57501,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) { @@ -56323,13 +57509,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; @@ -56376,18 +57562,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); } @@ -56399,8 +57585,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); @@ -56409,6 +57595,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 { @@ -56417,24 +57606,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); } } @@ -56442,6 +57628,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 @@ -56459,21 +57646,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; } @@ -56482,21 +57670,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); } @@ -56504,7 +57692,7 @@ public class Hbase { } public append_result( - List success, + java.util.List success, IOError io) { this(); @@ -56517,7 +57705,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)); } @@ -56542,22 +57730,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; } @@ -56577,11 +57767,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; } @@ -56601,13 +57792,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; @@ -56622,7 +57813,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(); @@ -56631,13 +57823,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) { @@ -56646,11 +57838,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) @@ -56661,6 +57853,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(); @@ -56685,19 +57879,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 @@ -56708,7 +57900,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; } @@ -56718,7 +57910,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; } @@ -56731,21 +57923,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:"); @@ -56780,7 +57973,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) { @@ -56788,13 +57981,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; @@ -56810,8 +58003,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(); @@ -56872,18 +58065,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); } @@ -56907,13 +58100,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 _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(); @@ -56931,6 +58124,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 { @@ -56943,38 +58139,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 { @@ -57005,10 +58198,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); } } @@ -57016,6 +58209,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 @@ -57041,21 +58235,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; } @@ -57064,15 +58259,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, @@ -57087,7 +58282,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); } @@ -57095,12 +58290,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); @@ -57116,30 +58311,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); } @@ -57169,7 +58364,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); } @@ -57177,11 +58372,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; } @@ -57209,7 +58404,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); } @@ -57217,11 +58412,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; } @@ -57249,7 +58444,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); } @@ -57257,11 +58452,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; } @@ -57291,7 +58486,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); } @@ -57301,11 +58496,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; } @@ -57328,6 +58523,7 @@ public class Hbase { /** * mutation for the put */ + @org.apache.thrift.annotation.Nullable public Mutation getMput() { return this.mput; } @@ -57335,7 +58531,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; } @@ -57359,9 +58555,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); } @@ -57369,14 +58565,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; } @@ -57396,13 +58593,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; @@ -57410,7 +58611,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; @@ -57418,7 +58623,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; @@ -57426,7 +58635,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; @@ -57442,14 +58655,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(); @@ -57470,13 +58684,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) { @@ -57493,11 +58707,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) @@ -57508,6 +58722,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(); @@ -57568,39 +58784,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 @@ -57611,7 +58821,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; } @@ -57621,7 +58831,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; } @@ -57631,7 +58841,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; } @@ -57641,7 +58851,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; } @@ -57651,7 +58861,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; } @@ -57661,7 +58871,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; } @@ -57674,21 +58884,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:"); @@ -57758,7 +58969,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) { @@ -57766,13 +58977,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; @@ -57829,9 +59040,9 @@ public class Hbase { if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map590 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map590.size); - ByteBuffer _key591; - ByteBuffer _val592; + struct.attributes = new java.util.HashMap(2*_map590.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key591; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val592; for (int _i593 = 0; _i593 < _map590.size; ++_i593) { _key591 = iprot.readBinary(); @@ -57889,7 +59100,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 _iter594 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter594 : struct.attributes.entrySet()) { oprot.writeBinary(_iter594.getKey()); oprot.writeBinary(_iter594.getValue()); @@ -57904,18 +59115,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); } @@ -57953,7 +59164,7 @@ public class Hbase { if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter595 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter595 : struct.attributes.entrySet()) { oprot.writeBinary(_iter595.getKey()); oprot.writeBinary(_iter595.getValue()); @@ -57964,8 +59175,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); @@ -57990,9 +59201,9 @@ public class Hbase { if (incoming.get(5)) { { org.apache.thrift.protocol.TMap _map596 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.attributes = new HashMap(2*_map596.size); - ByteBuffer _key597; - ByteBuffer _val598; + struct.attributes = new java.util.HashMap(2*_map596.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key597; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val598; for (int _i599 = 0; _i599 < _map596.size; ++_i599) { _key597 = iprot.readBinary(); @@ -58005,6 +59216,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 { @@ -58014,15 +59228,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 { @@ -58030,10 +59241,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); } } @@ -58041,6 +59252,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 @@ -58060,21 +59272,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; } @@ -58083,7 +59296,7 @@ public class Hbase { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -58091,16 +59304,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); } @@ -58156,23 +59369,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; } @@ -58192,11 +59406,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; } @@ -58216,13 +59431,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; @@ -58245,7 +59460,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(); @@ -58257,13 +59473,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) { @@ -58274,11 +59490,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) @@ -58289,6 +59505,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; @@ -58322,24 +59540,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 @@ -58350,7 +59563,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; } @@ -58360,7 +59573,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; } @@ -58370,7 +59583,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; } @@ -58383,21 +59596,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:"); @@ -58436,7 +59650,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; @@ -58446,13 +59660,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; @@ -58526,18 +59740,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); } @@ -58561,8 +59775,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); @@ -58580,6 +59794,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 13f7b4ef09..5a3bb38e99 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 = "2019-01-03") -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-01-27") +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 df9fe41b26..a3043d7538 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 = "2019-01-03") -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-01-27") +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 7c9c439ca3..2bf11e69d8 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 46c0fa0d81..dd276b4964 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 db31d9e11e..1ddfa7bb41 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 1f7d34101b..526b23604e 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 12dbe73015..a48f9b4eb1 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 3870cae590..e095277fdd 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 da656875c2..9524f741b2 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 0aabf0bf0b..5f97a606e1 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 d2aa0d3d6e..7c4f77a402 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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"); @@ -45,21 +18,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 public boolean returnResults; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -75,10 +45,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); } } @@ -86,6 +56,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, @@ -161,7 +133,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); @@ -186,14 +158,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()) { @@ -225,16 +197,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; } @@ -297,18 +271,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; } @@ -332,6 +307,7 @@ public class TAppend implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -429,7 +410,7 @@ public class TAppend implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -453,14 +434,15 @@ public class TAppend 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_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); - - boolean present_returnResults = true && (isSetReturnResults()); - list.add(present_returnResults); - if (present_returnResults) - list.add(returnResults); - - 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 + ((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(); + + hashCode = hashCode * 8191 + ((isSetReturnResults()) ? 131071 : 524287); + if (isSetReturnResults()) + hashCode = hashCode * 8191 + ((returnResults) ? 131071 : 524287); + + return hashCode; } @Override @@ -622,7 +600,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; @@ -819,8 +798,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(); @@ -838,9 +817,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(); @@ -916,7 +895,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()); @@ -951,17 +930,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()); @@ -970,7 +949,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()); @@ -1007,13 +986,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(); @@ -1022,13 +1001,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(); @@ -1054,5 +1033,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 db5c916c54..c16e12f5e5 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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/TBloomFilterType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TBloomFilterType.java index c4022a0078..c06c8ecbf2 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TBloomFilterType.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TBloomFilterType.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.regionserver.BloomType */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public enum TBloomFilterType implements org.apache.thrift.TEnum { /** * Bloomfilters disabled @@ -54,6 +51,7 @@ public enum TBloomFilterType 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 TBloomFilterType findByValue(int value) { switch (value) { case 0: 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 bc0d513e76..802b79c4d8 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 87345391ed..4de5a0ee13 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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/TColumnFamilyDescriptor.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnFamilyDescriptor.java index 233533398e..efab7d77ae 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnFamilyDescriptor.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnFamilyDescriptor.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"}) /** * Thrift wrapper around * org.apache.hadoop.hbase.client.ColumnFamilyDescriptor */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public class TColumnFamilyDescriptor 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("TColumnFamilyDescriptor"); @@ -63,37 +36,34 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TColumnFamilyDescriptorStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TColumnFamilyDescriptorTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TColumnFamilyDescriptorStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TColumnFamilyDescriptorTupleSchemeFactory(); - public ByteBuffer name; // required - public Map attributes; // optional - public Map configuration; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer name; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional + public @org.apache.thrift.annotation.Nullable java.util.Map configuration; // optional public int blockSize; // optional /** * * @see TBloomFilterType */ - public TBloomFilterType bloomnFilterType; // optional + public @org.apache.thrift.annotation.Nullable TBloomFilterType bloomnFilterType; // optional /** * * @see TCompressionAlgorithm */ - public TCompressionAlgorithm compressionType; // optional + public @org.apache.thrift.annotation.Nullable TCompressionAlgorithm compressionType; // optional public short dfsReplication; // optional /** * * @see TDataBlockEncoding */ - public TDataBlockEncoding dataBlockEncoding; // optional + public @org.apache.thrift.annotation.Nullable TDataBlockEncoding dataBlockEncoding; // optional /** * * @see TKeepDeletedCells */ - public TKeepDeletedCells keepDeletedCells; // optional + public @org.apache.thrift.annotation.Nullable TKeepDeletedCells keepDeletedCells; // optional public int maxVersions; // optional public int minVersions; // optional public int scope; // optional @@ -145,10 +115,10 @@ public class TColumnFamilyDescriptor 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); } } @@ -156,6 +126,7 @@ public class TColumnFamilyDescriptor 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.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -300,7 +272,7 @@ public class TColumnFamilyDescriptor 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.isSetConfiguration()) { - Map __this__configuration = new HashMap(other.configuration); + java.util.Map __this__configuration = new java.util.HashMap(other.configuration); this.configuration = __this__configuration; } this.blockSize = other.blockSize; @@ -403,16 +375,16 @@ public class TColumnFamilyDescriptor 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 TColumnFamilyDescriptor setAttributes(Map attributes) { + public TColumnFamilyDescriptor setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -471,18 +444,19 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase(); + this.configuration = new java.util.HashMap(); } this.configuration.put(key, val); } - public Map getConfiguration() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getConfiguration() { return this.configuration; } - public TColumnFamilyDescriptor setConfiguration(Map configuration) { + public TColumnFamilyDescriptor setConfiguration(@org.apache.thrift.annotation.Nullable java.util.Map configuration) { this.configuration = configuration; return this; } @@ -513,22 +487,23 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -951,7 +933,7 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase)value); + setConfiguration((java.util.Map)value); } break; @@ -959,7 +941,7 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); - - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); - - boolean present_configuration = true && (isSetConfiguration()); - list.add(present_configuration); - if (present_configuration) - list.add(configuration); - - boolean present_blockSize = true && (isSetBlockSize()); - list.add(present_blockSize); - if (present_blockSize) - list.add(blockSize); - - boolean present_bloomnFilterType = true && (isSetBloomnFilterType()); - list.add(present_bloomnFilterType); - if (present_bloomnFilterType) - list.add(bloomnFilterType.getValue()); - - boolean present_compressionType = true && (isSetCompressionType()); - list.add(present_compressionType); - if (present_compressionType) - list.add(compressionType.getValue()); - - boolean present_dfsReplication = true && (isSetDfsReplication()); - list.add(present_dfsReplication); - if (present_dfsReplication) - list.add(dfsReplication); - - boolean present_dataBlockEncoding = true && (isSetDataBlockEncoding()); - list.add(present_dataBlockEncoding); - if (present_dataBlockEncoding) - list.add(dataBlockEncoding.getValue()); - - boolean present_keepDeletedCells = true && (isSetKeepDeletedCells()); - list.add(present_keepDeletedCells); - if (present_keepDeletedCells) - list.add(keepDeletedCells.getValue()); - - boolean present_maxVersions = true && (isSetMaxVersions()); - list.add(present_maxVersions); - if (present_maxVersions) - list.add(maxVersions); - - boolean present_minVersions = true && (isSetMinVersions()); - list.add(present_minVersions); - if (present_minVersions) - list.add(minVersions); - - boolean present_scope = true && (isSetScope()); - list.add(present_scope); - if (present_scope) - list.add(scope); - - boolean present_timeToLive = true && (isSetTimeToLive()); - list.add(present_timeToLive); - if (present_timeToLive) - list.add(timeToLive); - - boolean present_blockCacheEnabled = true && (isSetBlockCacheEnabled()); - list.add(present_blockCacheEnabled); - if (present_blockCacheEnabled) - list.add(blockCacheEnabled); - - boolean present_cacheBloomsOnWrite = true && (isSetCacheBloomsOnWrite()); - list.add(present_cacheBloomsOnWrite); - if (present_cacheBloomsOnWrite) - list.add(cacheBloomsOnWrite); - - boolean present_cacheDataOnWrite = true && (isSetCacheDataOnWrite()); - list.add(present_cacheDataOnWrite); - if (present_cacheDataOnWrite) - list.add(cacheDataOnWrite); - - boolean present_cacheIndexesOnWrite = true && (isSetCacheIndexesOnWrite()); - list.add(present_cacheIndexesOnWrite); - if (present_cacheIndexesOnWrite) - list.add(cacheIndexesOnWrite); - - boolean present_compressTags = true && (isSetCompressTags()); - list.add(present_compressTags); - if (present_compressTags) - list.add(compressTags); - - boolean present_evictBlocksOnClose = true && (isSetEvictBlocksOnClose()); - list.add(present_evictBlocksOnClose); - if (present_evictBlocksOnClose) - list.add(evictBlocksOnClose); - - boolean present_inMemory = true && (isSetInMemory()); - list.add(present_inMemory); - if (present_inMemory) - list.add(inMemory); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); + if (isSetName()) + hashCode = hashCode * 8191 + name.hashCode(); + + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); + + hashCode = hashCode * 8191 + ((isSetConfiguration()) ? 131071 : 524287); + if (isSetConfiguration()) + hashCode = hashCode * 8191 + configuration.hashCode(); + + hashCode = hashCode * 8191 + ((isSetBlockSize()) ? 131071 : 524287); + if (isSetBlockSize()) + hashCode = hashCode * 8191 + blockSize; + + hashCode = hashCode * 8191 + ((isSetBloomnFilterType()) ? 131071 : 524287); + if (isSetBloomnFilterType()) + hashCode = hashCode * 8191 + bloomnFilterType.getValue(); + + hashCode = hashCode * 8191 + ((isSetCompressionType()) ? 131071 : 524287); + if (isSetCompressionType()) + hashCode = hashCode * 8191 + compressionType.getValue(); + + hashCode = hashCode * 8191 + ((isSetDfsReplication()) ? 131071 : 524287); + if (isSetDfsReplication()) + hashCode = hashCode * 8191 + dfsReplication; + + hashCode = hashCode * 8191 + ((isSetDataBlockEncoding()) ? 131071 : 524287); + if (isSetDataBlockEncoding()) + hashCode = hashCode * 8191 + dataBlockEncoding.getValue(); + + hashCode = hashCode * 8191 + ((isSetKeepDeletedCells()) ? 131071 : 524287); + if (isSetKeepDeletedCells()) + hashCode = hashCode * 8191 + keepDeletedCells.getValue(); + + hashCode = hashCode * 8191 + ((isSetMaxVersions()) ? 131071 : 524287); + if (isSetMaxVersions()) + hashCode = hashCode * 8191 + maxVersions; + + hashCode = hashCode * 8191 + ((isSetMinVersions()) ? 131071 : 524287); + if (isSetMinVersions()) + hashCode = hashCode * 8191 + minVersions; + + hashCode = hashCode * 8191 + ((isSetScope()) ? 131071 : 524287); + if (isSetScope()) + hashCode = hashCode * 8191 + scope; + + hashCode = hashCode * 8191 + ((isSetTimeToLive()) ? 131071 : 524287); + if (isSetTimeToLive()) + hashCode = hashCode * 8191 + timeToLive; + + hashCode = hashCode * 8191 + ((isSetBlockCacheEnabled()) ? 131071 : 524287); + if (isSetBlockCacheEnabled()) + hashCode = hashCode * 8191 + ((blockCacheEnabled) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetCacheBloomsOnWrite()) ? 131071 : 524287); + if (isSetCacheBloomsOnWrite()) + hashCode = hashCode * 8191 + ((cacheBloomsOnWrite) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetCacheDataOnWrite()) ? 131071 : 524287); + if (isSetCacheDataOnWrite()) + hashCode = hashCode * 8191 + ((cacheDataOnWrite) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetCacheIndexesOnWrite()) ? 131071 : 524287); + if (isSetCacheIndexesOnWrite()) + hashCode = hashCode * 8191 + ((cacheIndexesOnWrite) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetCompressTags()) ? 131071 : 524287); + if (isSetCompressTags()) + hashCode = hashCode * 8191 + ((compressTags) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetEvictBlocksOnClose()) ? 131071 : 524287); + if (isSetEvictBlocksOnClose()) + hashCode = hashCode * 8191 + ((evictBlocksOnClose) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetInMemory()) ? 131071 : 524287); + if (isSetInMemory()) + hashCode = hashCode * 8191 + ((inMemory) ? 131071 : 524287); + + return hashCode; } @Override @@ -1522,7 +1487,7 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase { + private static class TColumnFamilyDescriptorStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TColumnFamilyDescriptor struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1947,9 +1913,9 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase(2*_map142.size); - ByteBuffer _key143; - ByteBuffer _val144; + struct.attributes = new java.util.HashMap(2*_map142.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key143; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val144; for (int _i145 = 0; _i145 < _map142.size; ++_i145) { _key143 = iprot.readBinary(); @@ -1967,9 +1933,9 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase(2*_map146.size); - String _key147; - String _val148; + struct.configuration = new java.util.HashMap(2*_map146.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key147; + @org.apache.thrift.annotation.Nullable java.lang.String _val148; for (int _i149 = 0; _i149 < _map146.size; ++_i149) { _key147 = iprot.readString(); @@ -2144,7 +2110,7 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase _iter150 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter150 : struct.attributes.entrySet()) { oprot.writeBinary(_iter150.getKey()); oprot.writeBinary(_iter150.getValue()); @@ -2159,7 +2125,7 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase _iter151 : struct.configuration.entrySet()) + for (java.util.Map.Entry _iter151 : struct.configuration.entrySet()) { oprot.writeString(_iter151.getKey()); oprot.writeString(_iter151.getValue()); @@ -2268,19 +2234,19 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase { + private static class TColumnFamilyDescriptorTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumnFamilyDescriptor 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.name); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAttributes()) { optionals.set(0); } @@ -2342,7 +2308,7 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase _iter152 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter152 : struct.attributes.entrySet()) { oprot.writeBinary(_iter152.getKey()); oprot.writeBinary(_iter152.getValue()); @@ -2352,7 +2318,7 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase _iter153 : struct.configuration.entrySet()) + for (java.util.Map.Entry _iter153 : struct.configuration.entrySet()) { oprot.writeString(_iter153.getKey()); oprot.writeString(_iter153.getValue()); @@ -2414,16 +2380,16 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase(2*_map154.size); - ByteBuffer _key155; - ByteBuffer _val156; + struct.attributes = new java.util.HashMap(2*_map154.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key155; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val156; for (int _i157 = 0; _i157 < _map154.size; ++_i157) { _key155 = iprot.readBinary(); @@ -2436,9 +2402,9 @@ public class TColumnFamilyDescriptor implements org.apache.thrift.TBase(2*_map158.size); - String _key159; - String _val160; + struct.configuration = new java.util.HashMap(2*_map158.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key159; + @org.apache.thrift.annotation.Nullable java.lang.String _val160; for (int _i161 = 0; _i161 < _map158.size; ++_i161) { _key159 = iprot.readString(); @@ -2519,5 +2485,8 @@ public class TColumnFamilyDescriptor 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 08574c3d25..d215066caf 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 e2105bc624..0cbdcd858f 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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"); @@ -48,17 +21,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 public byte type; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -70,10 +40,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); } } @@ -81,6 +51,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, @@ -154,7 +126,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(); - boolean present_type = true && (isSetType()); - list.add(present_type); - if (present_type) - list.add(type); + hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287); + if (isSetType()) + hashCode = hashCode * 8191 + (int) (type); - return list.hashCode(); + return hashCode; } @Override @@ -606,7 +591,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; @@ -886,21 +872,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); } @@ -924,14 +910,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 efbba09cbe..e9c0cc7401 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-01-27") 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/TCompressionAlgorithm.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompressionAlgorithm.java index 59f7448396..ce689638f0 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompressionAlgorithm.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompressionAlgorithm.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.io.compress.Algorithm */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public enum TCompressionAlgorithm implements org.apache.thrift.TEnum { LZO(0), GZ(1), @@ -41,6 +38,7 @@ public enum TCompressionAlgorithm 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 TCompressionAlgorithm findByValue(int value) { switch (value) { case 0: diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TConsistency.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TConsistency.java index b473d02bda..5e5b66c834 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TConsistency.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TConsistency.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 Consistency: * - STRONG means reads only from primary region * - TIMELINE means reads might return values from secondary region replicas */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public enum TConsistency implements org.apache.thrift.TEnum { STRONG(1), TIMELINE(2); @@ -37,6 +34,7 @@ public enum TConsistency 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 TConsistency findByValue(int value) { switch (value) { case 1: diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDataBlockEncoding.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDataBlockEncoding.java index bd513e97b8..29fa6fbebf 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDataBlockEncoding.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDataBlockEncoding.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.io.encoding.DataBlockEncoding */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public enum TDataBlockEncoding implements org.apache.thrift.TEnum { /** * Disable data block encoding. @@ -42,6 +39,7 @@ public enum TDataBlockEncoding 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 TDataBlockEncoding 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 c3e1543f1f..30118b9edc 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 8c9aa392d7..f400414bf4 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-01-27") public enum TDeleteType implements org.apache.thrift.TEnum { DELETE_COLUMN(0), DELETE_COLUMNS(1), @@ -39,6 +36,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 dbe739322a..06c856bbaf 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-01-27") public enum TDurability implements org.apache.thrift.TEnum { USE_DEFAULT(0), SKIP_WAL(1), @@ -42,6 +39,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 0: 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 676275a765..dc51ca9ee2 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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"); @@ -67,31 +40,28 @@ public class TGet implements org.apache.thrift.TBase, java.i private static final org.apache.thrift.protocol.TField EXISTENCE_ONLY_FIELD_DESC = new org.apache.thrift.protocol.TField("existence_only", org.apache.thrift.protocol.TType.BOOL, (short)14); private static final org.apache.thrift.protocol.TField FILTER_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("filterBytes", org.apache.thrift.protocol.TType.STRING, (short)15); - 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 /** * * @see TConsistency */ - public TConsistency consistency; // optional + public @org.apache.thrift.annotation.Nullable TConsistency consistency; // optional public int targetReplicaId; // optional public boolean cacheBlocks; // optional public int storeLimit; // optional public int storeOffset; // optional public boolean existence_only; // optional - public ByteBuffer filterBytes; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterBytes; // 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 { @@ -115,10 +85,10 @@ public class TGet implements org.apache.thrift.TBase, java.i EXISTENCE_ONLY((short)14, "existence_only"), FILTER_BYTES((short)15, "filterBytes"); - 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); } } @@ -126,6 +96,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 @@ -169,21 +140,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; } @@ -192,7 +164,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -207,9 +179,9 @@ public class TGet implements org.apache.thrift.TBase, java.i private static final int __EXISTENCE_ONLY_ISSET_ID = 6; 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,_Fields.CONSISTENCY,_Fields.TARGET_REPLICA_ID,_Fields.CACHE_BLOCKS,_Fields.STORE_LIMIT,_Fields.STORE_OFFSET,_Fields.EXISTENCE_ONLY,_Fields.FILTER_BYTES}; - 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, @@ -243,7 +215,7 @@ public class TGet implements org.apache.thrift.TBase, java.i new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.FILTER_BYTES, new org.apache.thrift.meta_data.FieldMetaData("filterBytes", org.apache.thrift.TFieldRequirementType.OPTIONAL, 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(TGet.class, metaDataMap); } @@ -251,7 +223,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); @@ -266,7 +238,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)); } @@ -281,7 +253,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()) { @@ -335,16 +307,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; } @@ -368,22 +340,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; } @@ -414,23 +388,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; } @@ -461,16 +436,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() { @@ -478,16 +453,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; } @@ -511,18 +486,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; } @@ -542,11 +518,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; } @@ -570,6 +547,7 @@ public class TGet implements org.apache.thrift.TBase, java.i * * @see TConsistency */ + @org.apache.thrift.annotation.Nullable public TConsistency getConsistency() { return this.consistency; } @@ -578,7 +556,7 @@ public class TGet implements org.apache.thrift.TBase, java.i * * @see TConsistency */ - public TGet setConsistency(TConsistency consistency) { + public TGet setConsistency(@org.apache.thrift.annotation.Nullable TConsistency consistency) { this.consistency = consistency; return this; } @@ -609,16 +587,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } public void unsetTargetReplicaId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID); } /** Returns true if field targetReplicaId is set (has been assigned a value) and false otherwise */ public boolean isSetTargetReplicaId() { - return EncodingUtils.testBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID); } public void setTargetReplicaIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID, value); } public boolean isCacheBlocks() { @@ -632,16 +610,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } 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 getStoreLimit() { @@ -655,16 +633,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } public void unsetStoreLimit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STORELIMIT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STORELIMIT_ISSET_ID); } /** Returns true if field storeLimit is set (has been assigned a value) and false otherwise */ public boolean isSetStoreLimit() { - return EncodingUtils.testBit(__isset_bitfield, __STORELIMIT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STORELIMIT_ISSET_ID); } public void setStoreLimitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STORELIMIT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STORELIMIT_ISSET_ID, value); } public int getStoreOffset() { @@ -678,16 +656,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } public void unsetStoreOffset() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STOREOFFSET_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STOREOFFSET_ISSET_ID); } /** Returns true if field storeOffset is set (has been assigned a value) and false otherwise */ public boolean isSetStoreOffset() { - return EncodingUtils.testBit(__isset_bitfield, __STOREOFFSET_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STOREOFFSET_ISSET_ID); } public void setStoreOffsetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STOREOFFSET_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STOREOFFSET_ISSET_ID, value); } public boolean isExistence_only() { @@ -701,16 +679,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } public void unsetExistence_only() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXISTENCE_ONLY_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __EXISTENCE_ONLY_ISSET_ID); } /** Returns true if field existence_only is set (has been assigned a value) and false otherwise */ public boolean isSetExistence_only() { - return EncodingUtils.testBit(__isset_bitfield, __EXISTENCE_ONLY_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EXISTENCE_ONLY_ISSET_ID); } public void setExistence_onlyIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXISTENCE_ONLY_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __EXISTENCE_ONLY_ISSET_ID, value); } public byte[] getFilterBytes() { @@ -718,16 +696,16 @@ public class TGet implements org.apache.thrift.TBase, java.i return filterBytes == null ? null : filterBytes.array(); } - public ByteBuffer bufferForFilterBytes() { + public java.nio.ByteBuffer bufferForFilterBytes() { return org.apache.thrift.TBaseHelper.copyBinary(filterBytes); } public TGet setFilterBytes(byte[] filterBytes) { - this.filterBytes = filterBytes == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterBytes, filterBytes.length)); + this.filterBytes = filterBytes == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(filterBytes.clone()); return this; } - public TGet setFilterBytes(ByteBuffer filterBytes) { + public TGet setFilterBytes(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterBytes) { this.filterBytes = org.apache.thrift.TBaseHelper.copyBinary(filterBytes); return this; } @@ -747,13 +725,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; @@ -761,7 +743,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; @@ -769,7 +751,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; @@ -785,7 +767,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; @@ -793,7 +775,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; @@ -801,7 +787,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; @@ -825,7 +811,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetTargetReplicaId(); } else { - setTargetReplicaId((Integer)value); + setTargetReplicaId((java.lang.Integer)value); } break; @@ -833,7 +819,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetCacheBlocks(); } else { - setCacheBlocks((Boolean)value); + setCacheBlocks((java.lang.Boolean)value); } break; @@ -841,7 +827,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetStoreLimit(); } else { - setStoreLimit((Integer)value); + setStoreLimit((java.lang.Integer)value); } break; @@ -849,7 +835,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetStoreOffset(); } else { - setStoreOffset((Integer)value); + setStoreOffset((java.lang.Integer)value); } break; @@ -857,7 +843,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetExistence_only(); } else { - setExistence_only((Boolean)value); + setExistence_only((java.lang.Boolean)value); } break; @@ -865,14 +851,19 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetFilterBytes(); } else { - setFilterBytes((ByteBuffer)value); + if (value instanceof byte[]) { + setFilterBytes((byte[])value); + } else { + setFilterBytes((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(); @@ -920,13 +911,13 @@ public class TGet implements org.apache.thrift.TBase, java.i return getFilterBytes(); } - 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) { @@ -961,11 +952,11 @@ public class TGet implements org.apache.thrift.TBase, java.i case FILTER_BYTES: return isSetFilterBytes(); } - 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) @@ -976,6 +967,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(); @@ -1117,84 +1110,69 @@ public class TGet 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_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_timeRange = true && (isSetTimeRange()); - list.add(present_timeRange); - if (present_timeRange) - list.add(timeRange); - - boolean present_maxVersions = true && (isSetMaxVersions()); - list.add(present_maxVersions); - if (present_maxVersions) - list.add(maxVersions); - - boolean present_filterString = true && (isSetFilterString()); - list.add(present_filterString); - if (present_filterString) - list.add(filterString); - - 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_consistency = true && (isSetConsistency()); - list.add(present_consistency); - if (present_consistency) - list.add(consistency.getValue()); - - boolean present_targetReplicaId = true && (isSetTargetReplicaId()); - list.add(present_targetReplicaId); - if (present_targetReplicaId) - list.add(targetReplicaId); - - boolean present_cacheBlocks = true && (isSetCacheBlocks()); - list.add(present_cacheBlocks); - if (present_cacheBlocks) - list.add(cacheBlocks); - - boolean present_storeLimit = true && (isSetStoreLimit()); - list.add(present_storeLimit); - if (present_storeLimit) - list.add(storeLimit); - - boolean present_storeOffset = true && (isSetStoreOffset()); - list.add(present_storeOffset); - if (present_storeOffset) - list.add(storeOffset); - - boolean present_existence_only = true && (isSetExistence_only()); - list.add(present_existence_only); - if (present_existence_only) - list.add(existence_only); - - boolean present_filterBytes = true && (isSetFilterBytes()); - list.add(present_filterBytes); - if (present_filterBytes) - list.add(filterBytes); - - 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 + ((isSetTimeRange()) ? 131071 : 524287); + if (isSetTimeRange()) + hashCode = hashCode * 8191 + timeRange.hashCode(); + + hashCode = hashCode * 8191 + ((isSetMaxVersions()) ? 131071 : 524287); + if (isSetMaxVersions()) + hashCode = hashCode * 8191 + maxVersions; + + hashCode = hashCode * 8191 + ((isSetFilterString()) ? 131071 : 524287); + if (isSetFilterString()) + hashCode = hashCode * 8191 + filterString.hashCode(); + + 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 + ((isSetConsistency()) ? 131071 : 524287); + if (isSetConsistency()) + hashCode = hashCode * 8191 + consistency.getValue(); + + hashCode = hashCode * 8191 + ((isSetTargetReplicaId()) ? 131071 : 524287); + if (isSetTargetReplicaId()) + hashCode = hashCode * 8191 + targetReplicaId; + + hashCode = hashCode * 8191 + ((isSetCacheBlocks()) ? 131071 : 524287); + if (isSetCacheBlocks()) + hashCode = hashCode * 8191 + ((cacheBlocks) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetStoreLimit()) ? 131071 : 524287); + if (isSetStoreLimit()) + hashCode = hashCode * 8191 + storeLimit; + + hashCode = hashCode * 8191 + ((isSetStoreOffset()) ? 131071 : 524287); + if (isSetStoreOffset()) + hashCode = hashCode * 8191 + storeOffset; + + hashCode = hashCode * 8191 + ((isSetExistence_only()) ? 131071 : 524287); + if (isSetExistence_only()) + hashCode = hashCode * 8191 + ((existence_only) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetFilterBytes()) ? 131071 : 524287); + if (isSetFilterBytes()) + hashCode = hashCode * 8191 + filterBytes.hashCode(); + + return hashCode; } @Override @@ -1205,7 +1183,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; } @@ -1215,7 +1193,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; } @@ -1225,7 +1203,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; } @@ -1235,7 +1213,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; } @@ -1245,7 +1223,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; } @@ -1255,7 +1233,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; } @@ -1265,7 +1243,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; } @@ -1275,7 +1253,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; } @@ -1285,7 +1263,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency()).compareTo(other.isSetConsistency()); + lastComparison = java.lang.Boolean.valueOf(isSetConsistency()).compareTo(other.isSetConsistency()); if (lastComparison != 0) { return lastComparison; } @@ -1295,7 +1273,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTargetReplicaId()).compareTo(other.isSetTargetReplicaId()); + lastComparison = java.lang.Boolean.valueOf(isSetTargetReplicaId()).compareTo(other.isSetTargetReplicaId()); if (lastComparison != 0) { return lastComparison; } @@ -1305,7 +1283,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCacheBlocks()).compareTo(other.isSetCacheBlocks()); + lastComparison = java.lang.Boolean.valueOf(isSetCacheBlocks()).compareTo(other.isSetCacheBlocks()); if (lastComparison != 0) { return lastComparison; } @@ -1315,7 +1293,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStoreLimit()).compareTo(other.isSetStoreLimit()); + lastComparison = java.lang.Boolean.valueOf(isSetStoreLimit()).compareTo(other.isSetStoreLimit()); if (lastComparison != 0) { return lastComparison; } @@ -1325,7 +1303,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStoreOffset()).compareTo(other.isSetStoreOffset()); + lastComparison = java.lang.Boolean.valueOf(isSetStoreOffset()).compareTo(other.isSetStoreOffset()); if (lastComparison != 0) { return lastComparison; } @@ -1335,7 +1313,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExistence_only()).compareTo(other.isSetExistence_only()); + lastComparison = java.lang.Boolean.valueOf(isSetExistence_only()).compareTo(other.isSetExistence_only()); if (lastComparison != 0) { return lastComparison; } @@ -1345,7 +1323,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterBytes()).compareTo(other.isSetFilterBytes()); + lastComparison = java.lang.Boolean.valueOf(isSetFilterBytes()).compareTo(other.isSetFilterBytes()); if (lastComparison != 0) { return lastComparison; } @@ -1358,21 +1336,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:"); @@ -1520,7 +1499,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; @@ -1530,13 +1509,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; @@ -1560,8 +1539,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(); @@ -1612,9 +1591,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(); @@ -1756,7 +1735,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()); @@ -1818,19 +1797,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); } @@ -1898,7 +1877,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()); @@ -1933,15 +1912,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(14); + java.util.BitSet incoming = iprot.readBitSet(14); 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(); @@ -1971,9 +1950,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(); @@ -2019,5 +1998,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 880af450d0..69ce4a67ff 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public class THBaseService { public interface Iface { @@ -48,7 +21,7 @@ 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. @@ -60,7 +33,7 @@ public class THBaseService { * * @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,7 +253,7 @@ 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; /** * Get a table descriptor. @@ -298,7 +271,7 @@ public class THBaseService { * * @param tables the tablename list of the tables to get tableDescriptor */ - public List getTableDescriptors(List tables) throws TIOError, org.apache.thrift.TException; + public java.util.List getTableDescriptors(java.util.List tables) throws TIOError, org.apache.thrift.TException; /** * @@ -318,7 +291,7 @@ public class THBaseService { * * @param includeSysTables set to false if match only against userspace tables */ - public List getTableDescriptorsByPattern(String regex, boolean includeSysTables) throws TIOError, org.apache.thrift.TException; + public java.util.List getTableDescriptorsByPattern(java.lang.String regex, boolean includeSysTables) throws TIOError, org.apache.thrift.TException; /** * Get table descriptors of tables in the given namespace @@ -327,7 +300,7 @@ public class THBaseService { * * @param name The namesapce's name */ - public List getTableDescriptorsByNamespace(String name) throws TIOError, org.apache.thrift.TException; + public java.util.List getTableDescriptorsByNamespace(java.lang.String name) throws TIOError, org.apache.thrift.TException; /** * Get table names of tables that match the given pattern @@ -338,7 +311,7 @@ public class THBaseService { * * @param includeSysTables set to false if match only against userspace tables */ - public List getTableNamesByPattern(String regex, boolean includeSysTables) throws TIOError, org.apache.thrift.TException; + public java.util.List getTableNamesByPattern(java.lang.String regex, boolean includeSysTables) throws TIOError, org.apache.thrift.TException; /** * Get table names of tables in the given namespace @@ -347,7 +320,7 @@ public class THBaseService { * * @param name The namesapce's name */ - public List getTableNamesByNamespace(String name) throws TIOError, org.apache.thrift.TException; + public java.util.List getTableNamesByNamespace(java.lang.String name) throws TIOError, org.apache.thrift.TException; /** * Creates a new table with an initial set of empty regions defined by the specified split keys. @@ -359,7 +332,7 @@ public class THBaseService { * * @param splitKeys rray of split keys for the initial regions of the table */ - public void createTable(TTableDescriptor desc, List splitKeys) throws TIOError, org.apache.thrift.TException; + public void createTable(TTableDescriptor desc, java.util.List splitKeys) throws TIOError, org.apache.thrift.TException; /** * Deletes a table. Synchronous operation. @@ -434,7 +407,7 @@ public class THBaseService { * * @param splitKeys keys to check if the table has been created with all split keys */ - public boolean isTableAvailableWithSplit(TTableName tableName, List splitKeys) throws TIOError, org.apache.thrift.TException; + public boolean isTableAvailableWithSplit(TTableName tableName, java.util.List splitKeys) throws TIOError, org.apache.thrift.TException; /** * Add a column family to an existing table. Synchronous operation. @@ -454,7 +427,7 @@ public class THBaseService { * * @param column name of column family to be deleted */ - public void deleteColumnFamily(TTableName tableName, ByteBuffer column) throws TIOError, org.apache.thrift.TException; + public void deleteColumnFamily(TTableName tableName, java.nio.ByteBuffer column) throws TIOError, org.apache.thrift.TException; /** * Modify an existing column family on a table. Synchronous operation. @@ -500,7 +473,7 @@ public class THBaseService { * * @param name namespace name */ - public void deleteNamespace(String name) throws TIOError, org.apache.thrift.TException; + public void deleteNamespace(java.lang.String name) throws TIOError, org.apache.thrift.TException; /** * Get a namespace descriptor by name. @@ -509,107 +482,107 @@ public class THBaseService { * * @param name name of namespace descriptor */ - public TNamespaceDescriptor getNamespaceDescriptor(String name) throws TIOError, org.apache.thrift.TException; + public TNamespaceDescriptor getNamespaceDescriptor(java.lang.String name) throws TIOError, org.apache.thrift.TException; /** * @return all namespaces * */ - public List listNamespaceDescriptors() throws TIOError, org.apache.thrift.TException; + public java.util.List listNamespaceDescriptors() 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; - public void getTableDescriptor(TTableName table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTableDescriptor(TTableName table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getTableDescriptors(List tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTableDescriptors(java.util.List tables, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void tableExists(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void tableExists(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getTableDescriptorsByPattern(String regex, boolean includeSysTables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTableDescriptorsByPattern(java.lang.String regex, boolean includeSysTables, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getTableDescriptorsByNamespace(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTableDescriptorsByNamespace(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getTableNamesByPattern(String regex, boolean includeSysTables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTableNamesByPattern(java.lang.String regex, boolean includeSysTables, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getTableNamesByNamespace(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTableNamesByNamespace(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void createTable(TTableDescriptor desc, List splitKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createTable(TTableDescriptor desc, java.util.List splitKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void truncateTable(TTableName tableName, boolean preserveSplits, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void truncateTable(TTableName tableName, boolean preserveSplits, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void enableTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void enableTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void disableTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void disableTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isTableEnabled(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isTableEnabled(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isTableDisabled(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isTableDisabled(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isTableAvailable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isTableAvailable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isTableAvailableWithSplit(TTableName tableName, List splitKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isTableAvailableWithSplit(TTableName tableName, java.util.List splitKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void addColumnFamily(TTableName tableName, TColumnFamilyDescriptor column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void addColumnFamily(TTableName tableName, TColumnFamilyDescriptor column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteColumnFamily(TTableName tableName, ByteBuffer column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteColumnFamily(TTableName tableName, java.nio.ByteBuffer column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void modifyColumnFamily(TTableName tableName, TColumnFamilyDescriptor column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void modifyColumnFamily(TTableName tableName, TColumnFamilyDescriptor column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void modifyTable(TTableDescriptor desc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void modifyTable(TTableDescriptor desc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void createNamespace(TNamespaceDescriptor namespaceDesc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createNamespace(TNamespaceDescriptor namespaceDesc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void modifyNamespace(TNamespaceDescriptor namespaceDesc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void modifyNamespace(TNamespaceDescriptor namespaceDesc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteNamespace(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteNamespace(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getNamespaceDescriptor(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getNamespaceDescriptor(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void listNamespaceDescriptors(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void listNamespaceDescriptors(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; } @@ -633,13 +606,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); @@ -660,13 +633,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); @@ -674,7 +647,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"); @@ -687,13 +660,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); @@ -714,13 +687,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); @@ -728,7 +701,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"); @@ -741,13 +714,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); @@ -765,13 +738,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); @@ -796,13 +769,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); @@ -820,13 +793,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); @@ -844,13 +817,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); @@ -858,7 +831,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"); @@ -871,13 +844,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); @@ -902,13 +875,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); @@ -929,13 +902,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); @@ -956,13 +929,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); @@ -983,7 +956,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(); @@ -997,7 +970,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"); @@ -1039,13 +1012,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); @@ -1063,13 +1036,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); @@ -1078,7 +1051,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"); @@ -1091,13 +1064,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); @@ -1119,20 +1092,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"); @@ -1145,13 +1118,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); @@ -1203,20 +1176,20 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableDescriptor failed: unknown result"); } - public List getTableDescriptors(List tables) throws TIOError, org.apache.thrift.TException + public java.util.List getTableDescriptors(java.util.List tables) throws TIOError, org.apache.thrift.TException { send_getTableDescriptors(tables); return recv_getTableDescriptors(); } - public void send_getTableDescriptors(List tables) throws org.apache.thrift.TException + public void send_getTableDescriptors(java.util.List tables) throws org.apache.thrift.TException { getTableDescriptors_args args = new getTableDescriptors_args(); args.setTables(tables); sendBase("getTableDescriptors", args); } - public List recv_getTableDescriptors() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getTableDescriptors() throws TIOError, org.apache.thrift.TException { getTableDescriptors_result result = new getTableDescriptors_result(); receiveBase(result, "getTableDescriptors"); @@ -1255,13 +1228,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "tableExists failed: unknown result"); } - public List getTableDescriptorsByPattern(String regex, boolean includeSysTables) throws TIOError, org.apache.thrift.TException + public java.util.List getTableDescriptorsByPattern(java.lang.String regex, boolean includeSysTables) throws TIOError, org.apache.thrift.TException { send_getTableDescriptorsByPattern(regex, includeSysTables); return recv_getTableDescriptorsByPattern(); } - public void send_getTableDescriptorsByPattern(String regex, boolean includeSysTables) throws org.apache.thrift.TException + public void send_getTableDescriptorsByPattern(java.lang.String regex, boolean includeSysTables) throws org.apache.thrift.TException { getTableDescriptorsByPattern_args args = new getTableDescriptorsByPattern_args(); args.setRegex(regex); @@ -1269,7 +1242,7 @@ public class THBaseService { sendBase("getTableDescriptorsByPattern", args); } - public List recv_getTableDescriptorsByPattern() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getTableDescriptorsByPattern() throws TIOError, org.apache.thrift.TException { getTableDescriptorsByPattern_result result = new getTableDescriptorsByPattern_result(); receiveBase(result, "getTableDescriptorsByPattern"); @@ -1282,20 +1255,20 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableDescriptorsByPattern failed: unknown result"); } - public List getTableDescriptorsByNamespace(String name) throws TIOError, org.apache.thrift.TException + public java.util.List getTableDescriptorsByNamespace(java.lang.String name) throws TIOError, org.apache.thrift.TException { send_getTableDescriptorsByNamespace(name); return recv_getTableDescriptorsByNamespace(); } - public void send_getTableDescriptorsByNamespace(String name) throws org.apache.thrift.TException + public void send_getTableDescriptorsByNamespace(java.lang.String name) throws org.apache.thrift.TException { getTableDescriptorsByNamespace_args args = new getTableDescriptorsByNamespace_args(); args.setName(name); sendBase("getTableDescriptorsByNamespace", args); } - public List recv_getTableDescriptorsByNamespace() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getTableDescriptorsByNamespace() throws TIOError, org.apache.thrift.TException { getTableDescriptorsByNamespace_result result = new getTableDescriptorsByNamespace_result(); receiveBase(result, "getTableDescriptorsByNamespace"); @@ -1308,13 +1281,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableDescriptorsByNamespace failed: unknown result"); } - public List getTableNamesByPattern(String regex, boolean includeSysTables) throws TIOError, org.apache.thrift.TException + public java.util.List getTableNamesByPattern(java.lang.String regex, boolean includeSysTables) throws TIOError, org.apache.thrift.TException { send_getTableNamesByPattern(regex, includeSysTables); return recv_getTableNamesByPattern(); } - public void send_getTableNamesByPattern(String regex, boolean includeSysTables) throws org.apache.thrift.TException + public void send_getTableNamesByPattern(java.lang.String regex, boolean includeSysTables) throws org.apache.thrift.TException { getTableNamesByPattern_args args = new getTableNamesByPattern_args(); args.setRegex(regex); @@ -1322,7 +1295,7 @@ public class THBaseService { sendBase("getTableNamesByPattern", args); } - public List recv_getTableNamesByPattern() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getTableNamesByPattern() throws TIOError, org.apache.thrift.TException { getTableNamesByPattern_result result = new getTableNamesByPattern_result(); receiveBase(result, "getTableNamesByPattern"); @@ -1335,20 +1308,20 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableNamesByPattern failed: unknown result"); } - public List getTableNamesByNamespace(String name) throws TIOError, org.apache.thrift.TException + public java.util.List getTableNamesByNamespace(java.lang.String name) throws TIOError, org.apache.thrift.TException { send_getTableNamesByNamespace(name); return recv_getTableNamesByNamespace(); } - public void send_getTableNamesByNamespace(String name) throws org.apache.thrift.TException + public void send_getTableNamesByNamespace(java.lang.String name) throws org.apache.thrift.TException { getTableNamesByNamespace_args args = new getTableNamesByNamespace_args(); args.setName(name); sendBase("getTableNamesByNamespace", args); } - public List recv_getTableNamesByNamespace() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getTableNamesByNamespace() throws TIOError, org.apache.thrift.TException { getTableNamesByNamespace_result result = new getTableNamesByNamespace_result(); receiveBase(result, "getTableNamesByNamespace"); @@ -1361,13 +1334,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableNamesByNamespace failed: unknown result"); } - public void createTable(TTableDescriptor desc, List splitKeys) throws TIOError, org.apache.thrift.TException + public void createTable(TTableDescriptor desc, java.util.List splitKeys) throws TIOError, org.apache.thrift.TException { send_createTable(desc, splitKeys); recv_createTable(); } - public void send_createTable(TTableDescriptor desc, List splitKeys) throws org.apache.thrift.TException + public void send_createTable(TTableDescriptor desc, java.util.List splitKeys) throws org.apache.thrift.TException { createTable_args args = new createTable_args(); args.setDesc(desc); @@ -1556,13 +1529,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTableAvailable failed: unknown result"); } - public boolean isTableAvailableWithSplit(TTableName tableName, List splitKeys) throws TIOError, org.apache.thrift.TException + public boolean isTableAvailableWithSplit(TTableName tableName, java.util.List splitKeys) throws TIOError, org.apache.thrift.TException { send_isTableAvailableWithSplit(tableName, splitKeys); return recv_isTableAvailableWithSplit(); } - public void send_isTableAvailableWithSplit(TTableName tableName, List splitKeys) throws org.apache.thrift.TException + public void send_isTableAvailableWithSplit(TTableName tableName, java.util.List splitKeys) throws org.apache.thrift.TException { isTableAvailableWithSplit_args args = new isTableAvailableWithSplit_args(); args.setTableName(tableName); @@ -1607,13 +1580,13 @@ public class THBaseService { return; } - public void deleteColumnFamily(TTableName tableName, ByteBuffer column) throws TIOError, org.apache.thrift.TException + public void deleteColumnFamily(TTableName tableName, java.nio.ByteBuffer column) throws TIOError, org.apache.thrift.TException { send_deleteColumnFamily(tableName, column); recv_deleteColumnFamily(); } - public void send_deleteColumnFamily(TTableName tableName, ByteBuffer column) throws org.apache.thrift.TException + public void send_deleteColumnFamily(TTableName tableName, java.nio.ByteBuffer column) throws org.apache.thrift.TException { deleteColumnFamily_args args = new deleteColumnFamily_args(); args.setTableName(tableName); @@ -1724,13 +1697,13 @@ public class THBaseService { return; } - public void deleteNamespace(String name) throws TIOError, org.apache.thrift.TException + public void deleteNamespace(java.lang.String name) throws TIOError, org.apache.thrift.TException { send_deleteNamespace(name); recv_deleteNamespace(); } - public void send_deleteNamespace(String name) throws org.apache.thrift.TException + public void send_deleteNamespace(java.lang.String name) throws org.apache.thrift.TException { deleteNamespace_args args = new deleteNamespace_args(); args.setName(name); @@ -1747,13 +1720,13 @@ public class THBaseService { return; } - public TNamespaceDescriptor getNamespaceDescriptor(String name) throws TIOError, org.apache.thrift.TException + public TNamespaceDescriptor getNamespaceDescriptor(java.lang.String name) throws TIOError, org.apache.thrift.TException { send_getNamespaceDescriptor(name); return recv_getNamespaceDescriptor(); } - public void send_getNamespaceDescriptor(String name) throws org.apache.thrift.TException + public void send_getNamespaceDescriptor(java.lang.String name) throws org.apache.thrift.TException { getNamespaceDescriptor_args args = new getNamespaceDescriptor_args(); args.setName(name); @@ -1773,7 +1746,7 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNamespaceDescriptor failed: unknown result"); } - public List listNamespaceDescriptors() throws TIOError, org.apache.thrift.TException + public java.util.List listNamespaceDescriptors() throws TIOError, org.apache.thrift.TException { send_listNamespaceDescriptors(); return recv_listNamespaceDescriptors(); @@ -1785,7 +1758,7 @@ public class THBaseService { sendBase("listNamespaceDescriptors", args); } - public List recv_listNamespaceDescriptors() throws TIOError, org.apache.thrift.TException + public java.util.List recv_listNamespaceDescriptors() throws TIOError, org.apache.thrift.TException { listNamespaceDescriptors_result result = new listNamespaceDescriptors_result(); receiveBase(result, "listNamespaceDescriptors"); @@ -1816,17 +1789,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; @@ -1841,9 +1814,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); @@ -1851,17 +1824,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; @@ -1876,9 +1849,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); @@ -1886,17 +1859,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; @@ -1913,7 +1886,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); @@ -1921,17 +1894,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; @@ -1946,9 +1919,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); @@ -1956,17 +1929,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; @@ -1981,31 +1954,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; @@ -2028,9 +2001,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); @@ -2038,17 +2011,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; @@ -2063,27 +2036,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; @@ -2098,27 +2071,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; @@ -2133,9 +2106,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); @@ -2143,21 +2116,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; @@ -2180,9 +2153,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); @@ -2190,17 +2163,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; @@ -2217,7 +2190,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); @@ -2225,17 +2198,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; @@ -2252,7 +2225,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); @@ -2260,17 +2233,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; @@ -2285,9 +2258,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); @@ -2295,17 +2268,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; @@ -2320,9 +2293,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); @@ -2330,16 +2303,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; } @@ -2352,27 +2325,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; @@ -2387,28 +2360,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; @@ -2425,9 +2398,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); @@ -2435,18 +2408,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; @@ -2465,7 +2438,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); @@ -2473,16 +2446,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; } @@ -2495,9 +2468,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); @@ -2505,22 +2478,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; @@ -2545,9 +2518,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); @@ -2555,16 +2528,16 @@ public class THBaseService { } } - public void getTableDescriptor(TTableName table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableDescriptor(TTableName table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getTableDescriptor_call method_call = new getTableDescriptor_call(table, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getTableDescriptor_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getTableDescriptor_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName table; - public getTableDescriptor_call(TTableName 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 getTableDescriptor_call(TTableName 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; } @@ -2579,7 +2552,7 @@ public class THBaseService { public TTableDescriptor 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); @@ -2587,16 +2560,16 @@ public class THBaseService { } } - public void getTableDescriptors(List tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableDescriptors(java.util.List tables, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getTableDescriptors_call method_call = new getTableDescriptors_call(tables, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getTableDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall { - private List tables; - public getTableDescriptors_call(List tables, 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 getTableDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.util.List tables; + public getTableDescriptors_call(java.util.List tables, 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.tables = tables; } @@ -2609,9 +2582,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); @@ -2619,16 +2592,16 @@ public class THBaseService { } } - public void tableExists(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void tableExists(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); tableExists_call method_call = new tableExists_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class tableExists_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class tableExists_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - public tableExists_call(TTableName 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 tableExists_call(TTableName 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; } @@ -2641,9 +2614,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); @@ -2651,17 +2624,17 @@ public class THBaseService { } } - public void getTableDescriptorsByPattern(String regex, boolean includeSysTables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableDescriptorsByPattern(java.lang.String regex, boolean includeSysTables, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getTableDescriptorsByPattern_call method_call = new getTableDescriptorsByPattern_call(regex, includeSysTables, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getTableDescriptorsByPattern_call extends org.apache.thrift.async.TAsyncMethodCall { - private String regex; + public static class getTableDescriptorsByPattern_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String regex; private boolean includeSysTables; - public getTableDescriptorsByPattern_call(String regex, boolean includeSysTables, 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 getTableDescriptorsByPattern_call(java.lang.String regex, boolean includeSysTables, 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.regex = regex; this.includeSysTables = includeSysTables; @@ -2676,9 +2649,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); @@ -2686,16 +2659,16 @@ public class THBaseService { } } - public void getTableDescriptorsByNamespace(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableDescriptorsByNamespace(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getTableDescriptorsByNamespace_call method_call = new getTableDescriptorsByNamespace_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getTableDescriptorsByNamespace_call extends org.apache.thrift.async.TAsyncMethodCall { - private String name; - public getTableDescriptorsByNamespace_call(String name, 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 getTableDescriptorsByNamespace_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String name; + public getTableDescriptorsByNamespace_call(java.lang.String name, 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.name = name; } @@ -2708,9 +2681,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); @@ -2718,17 +2691,17 @@ public class THBaseService { } } - public void getTableNamesByPattern(String regex, boolean includeSysTables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableNamesByPattern(java.lang.String regex, boolean includeSysTables, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getTableNamesByPattern_call method_call = new getTableNamesByPattern_call(regex, includeSysTables, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getTableNamesByPattern_call extends org.apache.thrift.async.TAsyncMethodCall { - private String regex; + public static class getTableNamesByPattern_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String regex; private boolean includeSysTables; - public getTableNamesByPattern_call(String regex, boolean includeSysTables, 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 getTableNamesByPattern_call(java.lang.String regex, boolean includeSysTables, 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.regex = regex; this.includeSysTables = includeSysTables; @@ -2743,9 +2716,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); @@ -2753,16 +2726,16 @@ public class THBaseService { } } - public void getTableNamesByNamespace(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTableNamesByNamespace(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getTableNamesByNamespace_call method_call = new getTableNamesByNamespace_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getTableNamesByNamespace_call extends org.apache.thrift.async.TAsyncMethodCall { - private String name; - public getTableNamesByNamespace_call(String name, 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 getTableNamesByNamespace_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String name; + public getTableNamesByNamespace_call(java.lang.String name, 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.name = name; } @@ -2775,9 +2748,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); @@ -2785,17 +2758,17 @@ public class THBaseService { } } - public void createTable(TTableDescriptor desc, List splitKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void createTable(TTableDescriptor desc, java.util.List splitKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createTable_call method_call = new createTable_call(desc, splitKeys, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class createTable_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class createTable_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableDescriptor desc; - private List splitKeys; - public createTable_call(TTableDescriptor desc, List splitKeys, 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.List splitKeys; + public createTable_call(TTableDescriptor desc, java.util.List splitKeys, 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.desc = desc; this.splitKeys = splitKeys; @@ -2810,26 +2783,26 @@ 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_createTable(); + return null; } } - public void deleteTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteTable(TTableName 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 { + public static class deleteTable_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - public deleteTable_call(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteTable_call(TTableName 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; } @@ -2842,27 +2815,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_deleteTable(); + return null; } } - public void truncateTable(TTableName tableName, boolean preserveSplits, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void truncateTable(TTableName tableName, boolean preserveSplits, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); truncateTable_call method_call = new truncateTable_call(tableName, preserveSplits, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class truncateTable_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class truncateTable_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; private boolean preserveSplits; - public truncateTable_call(TTableName tableName, boolean preserveSplits, 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 truncateTable_call(TTableName tableName, boolean preserveSplits, 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.preserveSplits = preserveSplits; @@ -2877,26 +2850,26 @@ 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_truncateTable(); + return null; } } - public void enableTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void enableTable(TTableName 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 { + public static class enableTable_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - public enableTable_call(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public enableTable_call(TTableName 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; } @@ -2909,26 +2882,26 @@ 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_enableTable(); + return null; } } - public void disableTable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void disableTable(TTableName 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 { + public static class disableTable_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - public disableTable_call(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public disableTable_call(TTableName 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; } @@ -2941,26 +2914,26 @@ 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_disableTable(); + return null; } } - public void isTableEnabled(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isTableEnabled(TTableName 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 { + public static class isTableEnabled_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - public isTableEnabled_call(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public isTableEnabled_call(TTableName 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; } @@ -2973,9 +2946,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); @@ -2983,16 +2956,16 @@ public class THBaseService { } } - public void isTableDisabled(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isTableDisabled(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isTableDisabled_call method_call = new isTableDisabled_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class isTableDisabled_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class isTableDisabled_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - public isTableDisabled_call(TTableName 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 isTableDisabled_call(TTableName 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; } @@ -3005,9 +2978,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); @@ -3015,16 +2988,16 @@ public class THBaseService { } } - public void isTableAvailable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isTableAvailable(TTableName tableName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isTableAvailable_call method_call = new isTableAvailable_call(tableName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class isTableAvailable_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class isTableAvailable_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - public isTableAvailable_call(TTableName 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 isTableAvailable_call(TTableName 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; } @@ -3037,9 +3010,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); @@ -3047,17 +3020,17 @@ public class THBaseService { } } - public void isTableAvailableWithSplit(TTableName tableName, List splitKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isTableAvailableWithSplit(TTableName tableName, java.util.List splitKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isTableAvailableWithSplit_call method_call = new isTableAvailableWithSplit_call(tableName, splitKeys, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class isTableAvailableWithSplit_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class isTableAvailableWithSplit_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - private List splitKeys; - public isTableAvailableWithSplit_call(TTableName tableName, List splitKeys, 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.List splitKeys; + public isTableAvailableWithSplit_call(TTableName tableName, java.util.List splitKeys, 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.splitKeys = splitKeys; @@ -3072,9 +3045,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); @@ -3082,17 +3055,17 @@ public class THBaseService { } } - public void addColumnFamily(TTableName tableName, TColumnFamilyDescriptor column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void addColumnFamily(TTableName tableName, TColumnFamilyDescriptor column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); addColumnFamily_call method_call = new addColumnFamily_call(tableName, column, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class addColumnFamily_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class addColumnFamily_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; private TColumnFamilyDescriptor column; - public addColumnFamily_call(TTableName tableName, TColumnFamilyDescriptor column, 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 addColumnFamily_call(TTableName tableName, TColumnFamilyDescriptor column, 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.column = column; @@ -3107,27 +3080,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_addColumnFamily(); + return null; } } - public void deleteColumnFamily(TTableName tableName, ByteBuffer column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteColumnFamily(TTableName tableName, java.nio.ByteBuffer column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteColumnFamily_call method_call = new deleteColumnFamily_call(tableName, column, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class deleteColumnFamily_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class deleteColumnFamily_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; - private ByteBuffer column; - public deleteColumnFamily_call(TTableName tableName, ByteBuffer column, 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.nio.ByteBuffer column; + public deleteColumnFamily_call(TTableName tableName, java.nio.ByteBuffer column, 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.column = column; @@ -3142,27 +3115,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_deleteColumnFamily(); + return null; } } - public void modifyColumnFamily(TTableName tableName, TColumnFamilyDescriptor column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void modifyColumnFamily(TTableName tableName, TColumnFamilyDescriptor column, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); modifyColumnFamily_call method_call = new modifyColumnFamily_call(tableName, column, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class modifyColumnFamily_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class modifyColumnFamily_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableName tableName; private TColumnFamilyDescriptor column; - public modifyColumnFamily_call(TTableName tableName, TColumnFamilyDescriptor column, 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 modifyColumnFamily_call(TTableName tableName, TColumnFamilyDescriptor column, 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.column = column; @@ -3177,26 +3150,26 @@ 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_modifyColumnFamily(); + return null; } } - public void modifyTable(TTableDescriptor desc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void modifyTable(TTableDescriptor desc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); modifyTable_call method_call = new modifyTable_call(desc, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class modifyTable_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class modifyTable_call extends org.apache.thrift.async.TAsyncMethodCall { private TTableDescriptor desc; - public modifyTable_call(TTableDescriptor desc, 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 modifyTable_call(TTableDescriptor desc, 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.desc = desc; } @@ -3209,26 +3182,26 @@ 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_modifyTable(); + return null; } } - public void createNamespace(TNamespaceDescriptor namespaceDesc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void createNamespace(TNamespaceDescriptor namespaceDesc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createNamespace_call method_call = new createNamespace_call(namespaceDesc, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class createNamespace_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class createNamespace_call extends org.apache.thrift.async.TAsyncMethodCall { private TNamespaceDescriptor namespaceDesc; - public createNamespace_call(TNamespaceDescriptor namespaceDesc, 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 createNamespace_call(TNamespaceDescriptor namespaceDesc, 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.namespaceDesc = namespaceDesc; } @@ -3241,26 +3214,26 @@ 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_createNamespace(); + return null; } } - public void modifyNamespace(TNamespaceDescriptor namespaceDesc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void modifyNamespace(TNamespaceDescriptor namespaceDesc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); modifyNamespace_call method_call = new modifyNamespace_call(namespaceDesc, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class modifyNamespace_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class modifyNamespace_call extends org.apache.thrift.async.TAsyncMethodCall { private TNamespaceDescriptor namespaceDesc; - public modifyNamespace_call(TNamespaceDescriptor namespaceDesc, 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 modifyNamespace_call(TNamespaceDescriptor namespaceDesc, 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.namespaceDesc = namespaceDesc; } @@ -3273,26 +3246,26 @@ 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_modifyNamespace(); + return null; } } - public void deleteNamespace(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteNamespace(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteNamespace_call method_call = new deleteNamespace_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class deleteNamespace_call extends org.apache.thrift.async.TAsyncMethodCall { - private String name; - public deleteNamespace_call(String name, 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 deleteNamespace_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String name; + public deleteNamespace_call(java.lang.String name, 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.name = name; } @@ -3305,26 +3278,26 @@ 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_deleteNamespace(); + return null; } } - public void getNamespaceDescriptor(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getNamespaceDescriptor(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getNamespaceDescriptor_call method_call = new getNamespaceDescriptor_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getNamespaceDescriptor_call extends org.apache.thrift.async.TAsyncMethodCall { - private String name; - public getNamespaceDescriptor_call(String name, 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 getNamespaceDescriptor_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String name; + public getNamespaceDescriptor_call(java.lang.String name, 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.name = name; } @@ -3339,7 +3312,7 @@ public class THBaseService { public TNamespaceDescriptor 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); @@ -3347,15 +3320,15 @@ public class THBaseService { } } - public void listNamespaceDescriptors(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void listNamespaceDescriptors(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); listNamespaceDescriptors_call method_call = new listNamespaceDescriptors_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class listNamespaceDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall { - public listNamespaceDescriptors_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 listNamespaceDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall> { + public listNamespaceDescriptors_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); } @@ -3366,9 +3339,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); @@ -3379,16 +3352,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()); @@ -3450,6 +3423,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 { @@ -3475,6 +3453,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 { @@ -3499,6 +3482,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 { @@ -3523,6 +3511,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 { @@ -3547,6 +3540,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 { @@ -3571,6 +3569,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 { @@ -3596,6 +3599,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 { @@ -3620,6 +3628,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 { @@ -3644,6 +3657,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 { @@ -3668,6 +3686,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 { @@ -3693,6 +3716,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 { @@ -3717,6 +3745,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 { @@ -3741,6 +3774,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 { @@ -3766,6 +3804,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 { @@ -3792,6 +3835,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 { @@ -3818,6 +3866,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 { @@ -3842,6 +3895,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 { @@ -3866,6 +3924,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 { @@ -3890,6 +3953,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 { @@ -3914,6 +3982,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 { @@ -3939,6 +4012,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTableDescriptor_result getResult(I iface, getTableDescriptor_args args) throws org.apache.thrift.TException { getTableDescriptor_result result = new getTableDescriptor_result(); try { @@ -3963,6 +4041,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTableDescriptors_result getResult(I iface, getTableDescriptors_args args) throws org.apache.thrift.TException { getTableDescriptors_result result = new getTableDescriptors_result(); try { @@ -3987,6 +4070,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public tableExists_result getResult(I iface, tableExists_args args) throws org.apache.thrift.TException { tableExists_result result = new tableExists_result(); try { @@ -4012,6 +4100,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTableDescriptorsByPattern_result getResult(I iface, getTableDescriptorsByPattern_args args) throws org.apache.thrift.TException { getTableDescriptorsByPattern_result result = new getTableDescriptorsByPattern_result(); try { @@ -4036,6 +4129,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTableDescriptorsByNamespace_result getResult(I iface, getTableDescriptorsByNamespace_args args) throws org.apache.thrift.TException { getTableDescriptorsByNamespace_result result = new getTableDescriptorsByNamespace_result(); try { @@ -4060,6 +4158,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTableNamesByPattern_result getResult(I iface, getTableNamesByPattern_args args) throws org.apache.thrift.TException { getTableNamesByPattern_result result = new getTableNamesByPattern_result(); try { @@ -4084,6 +4187,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTableNamesByNamespace_result getResult(I iface, getTableNamesByNamespace_args args) throws org.apache.thrift.TException { getTableNamesByNamespace_result result = new getTableNamesByNamespace_result(); try { @@ -4108,6 +4216,11 @@ public class THBaseService { 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 { @@ -4132,6 +4245,11 @@ public class THBaseService { 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 { @@ -4156,6 +4274,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public truncateTable_result getResult(I iface, truncateTable_args args) throws org.apache.thrift.TException { truncateTable_result result = new truncateTable_result(); try { @@ -4180,6 +4303,11 @@ public class THBaseService { 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 { @@ -4204,6 +4332,11 @@ public class THBaseService { 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 { @@ -4228,6 +4361,11 @@ public class THBaseService { 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 { @@ -4253,6 +4391,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public isTableDisabled_result getResult(I iface, isTableDisabled_args args) throws org.apache.thrift.TException { isTableDisabled_result result = new isTableDisabled_result(); try { @@ -4278,6 +4421,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public isTableAvailable_result getResult(I iface, isTableAvailable_args args) throws org.apache.thrift.TException { isTableAvailable_result result = new isTableAvailable_result(); try { @@ -4303,6 +4451,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public isTableAvailableWithSplit_result getResult(I iface, isTableAvailableWithSplit_args args) throws org.apache.thrift.TException { isTableAvailableWithSplit_result result = new isTableAvailableWithSplit_result(); try { @@ -4328,6 +4481,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public addColumnFamily_result getResult(I iface, addColumnFamily_args args) throws org.apache.thrift.TException { addColumnFamily_result result = new addColumnFamily_result(); try { @@ -4352,6 +4510,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteColumnFamily_result getResult(I iface, deleteColumnFamily_args args) throws org.apache.thrift.TException { deleteColumnFamily_result result = new deleteColumnFamily_result(); try { @@ -4376,6 +4539,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public modifyColumnFamily_result getResult(I iface, modifyColumnFamily_args args) throws org.apache.thrift.TException { modifyColumnFamily_result result = new modifyColumnFamily_result(); try { @@ -4400,6 +4568,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public modifyTable_result getResult(I iface, modifyTable_args args) throws org.apache.thrift.TException { modifyTable_result result = new modifyTable_result(); try { @@ -4424,6 +4597,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public createNamespace_result getResult(I iface, createNamespace_args args) throws org.apache.thrift.TException { createNamespace_result result = new createNamespace_result(); try { @@ -4448,6 +4626,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public modifyNamespace_result getResult(I iface, modifyNamespace_args args) throws org.apache.thrift.TException { modifyNamespace_result result = new modifyNamespace_result(); try { @@ -4472,6 +4655,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteNamespace_result getResult(I iface, deleteNamespace_args args) throws org.apache.thrift.TException { deleteNamespace_result result = new deleteNamespace_result(); try { @@ -4496,6 +4684,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getNamespaceDescriptor_result getResult(I iface, getNamespaceDescriptor_args args) throws org.apache.thrift.TException { getNamespaceDescriptor_result result = new getNamespaceDescriptor_result(); try { @@ -4520,6 +4713,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public listNamespaceDescriptors_result getResult(I iface, listNamespaceDescriptors_args args) throws org.apache.thrift.TException { listNamespaceDescriptors_result result = new listNamespaceDescriptors_result(); try { @@ -4534,16 +4732,16 @@ 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()); @@ -4592,7 +4790,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"); } @@ -4601,42 +4799,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.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(); } }; } @@ -4645,12 +4851,12 @@ 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 static class existsAll extends org.apache.thrift.AsyncProcessFunction> { public existsAll() { super("existsAll"); } @@ -4659,41 +4865,49 @@ public class THBaseService { return new existsAll_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) { existsAll_result result = new existsAll_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; existsAll_result result = new existsAll_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(); } }; } @@ -4702,7 +4916,7 @@ public class THBaseService { return false; } - public void start(I iface, existsAll_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + 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); } } @@ -4716,41 +4930,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.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(); } }; } @@ -4759,12 +4981,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"); } @@ -4773,41 +4995,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(); } }; } @@ -4816,7 +5046,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); } } @@ -4830,40 +5060,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.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(); } }; } @@ -4872,12 +5110,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"); } @@ -4886,42 +5124,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.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(); } }; } @@ -4930,7 +5176,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); } } @@ -4944,40 +5190,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.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(); } }; } @@ -4986,7 +5240,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); } } @@ -5000,40 +5254,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.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(); } }; } @@ -5042,12 +5304,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"); } @@ -5056,41 +5318,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.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(); } }; } @@ -5099,12 +5369,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"); } @@ -5113,42 +5383,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(); } }; } @@ -5157,7 +5435,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); } } @@ -5171,41 +5449,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.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(); } }; } @@ -5214,7 +5500,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); } } @@ -5228,41 +5514,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(); } }; } @@ -5271,12 +5565,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"); } @@ -5285,42 +5579,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.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(); } }; } @@ -5329,12 +5631,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"); } @@ -5343,46 +5645,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(); } }; } @@ -5391,7 +5700,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); } } @@ -5405,45 +5714,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(); } }; } @@ -5452,7 +5768,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); } } @@ -5466,40 +5782,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.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(); } }; } @@ -5508,12 +5832,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"); } @@ -5522,41 +5846,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.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(); } }; } @@ -5565,7 +5897,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); } } @@ -5579,41 +5911,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.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(); } }; } @@ -5622,12 +5962,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"); } @@ -5636,41 +5976,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.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(); } }; } @@ -5679,12 +6027,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"); } @@ -5693,42 +6041,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(); } }; } @@ -5737,7 +6093,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); } } @@ -5751,41 +6107,49 @@ public class THBaseService { return new getTableDescriptor_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(TTableDescriptor o) { getTableDescriptor_result result = new getTableDescriptor_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; getTableDescriptor_result result = new getTableDescriptor_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(); } }; } @@ -5794,12 +6158,12 @@ public class THBaseService { return false; } - public void start(I iface, getTableDescriptor_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getTableDescriptor_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getTableDescriptor(args.table,resultHandler); } } - public static class getTableDescriptors extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableDescriptors extends org.apache.thrift.AsyncProcessFunction> { public getTableDescriptors() { super("getTableDescriptors"); } @@ -5808,41 +6172,49 @@ public class THBaseService { return new getTableDescriptors_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) { getTableDescriptors_result result = new getTableDescriptors_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; getTableDescriptors_result result = new getTableDescriptors_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(); } }; } @@ -5851,12 +6223,12 @@ public class THBaseService { return false; } - public void start(I iface, getTableDescriptors_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getTableDescriptors_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getTableDescriptors(args.tables,resultHandler); } } - public static class tableExists extends org.apache.thrift.AsyncProcessFunction { + public static class tableExists extends org.apache.thrift.AsyncProcessFunction { public tableExists() { super("tableExists"); } @@ -5865,42 +6237,50 @@ public class THBaseService { return new tableExists_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) { tableExists_result result = new tableExists_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; tableExists_result result = new tableExists_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(); } }; } @@ -5909,12 +6289,12 @@ public class THBaseService { return false; } - public void start(I iface, tableExists_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, tableExists_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.tableExists(args.tableName,resultHandler); } } - public static class getTableDescriptorsByPattern extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableDescriptorsByPattern extends org.apache.thrift.AsyncProcessFunction> { public getTableDescriptorsByPattern() { super("getTableDescriptorsByPattern"); } @@ -5923,41 +6303,49 @@ public class THBaseService { return new getTableDescriptorsByPattern_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) { getTableDescriptorsByPattern_result result = new getTableDescriptorsByPattern_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; getTableDescriptorsByPattern_result result = new getTableDescriptorsByPattern_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(); } }; } @@ -5966,12 +6354,12 @@ public class THBaseService { return false; } - public void start(I iface, getTableDescriptorsByPattern_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getTableDescriptorsByPattern_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getTableDescriptorsByPattern(args.regex, args.includeSysTables,resultHandler); } } - public static class getTableDescriptorsByNamespace extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableDescriptorsByNamespace extends org.apache.thrift.AsyncProcessFunction> { public getTableDescriptorsByNamespace() { super("getTableDescriptorsByNamespace"); } @@ -5980,41 +6368,49 @@ public class THBaseService { return new getTableDescriptorsByNamespace_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) { getTableDescriptorsByNamespace_result result = new getTableDescriptorsByNamespace_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; getTableDescriptorsByNamespace_result result = new getTableDescriptorsByNamespace_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(); } }; } @@ -6023,12 +6419,12 @@ public class THBaseService { return false; } - public void start(I iface, getTableDescriptorsByNamespace_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getTableDescriptorsByNamespace_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getTableDescriptorsByNamespace(args.name,resultHandler); } } - public static class getTableNamesByPattern extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableNamesByPattern extends org.apache.thrift.AsyncProcessFunction> { public getTableNamesByPattern() { super("getTableNamesByPattern"); } @@ -6037,41 +6433,49 @@ public class THBaseService { return new getTableNamesByPattern_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) { getTableNamesByPattern_result result = new getTableNamesByPattern_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; getTableNamesByPattern_result result = new getTableNamesByPattern_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(); } }; } @@ -6080,12 +6484,12 @@ public class THBaseService { return false; } - public void start(I iface, getTableNamesByPattern_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getTableNamesByPattern_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getTableNamesByPattern(args.regex, args.includeSysTables,resultHandler); } } - public static class getTableNamesByNamespace extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableNamesByNamespace extends org.apache.thrift.AsyncProcessFunction> { public getTableNamesByNamespace() { super("getTableNamesByNamespace"); } @@ -6094,41 +6498,49 @@ public class THBaseService { return new getTableNamesByNamespace_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) { getTableNamesByNamespace_result result = new getTableNamesByNamespace_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; getTableNamesByNamespace_result result = new getTableNamesByNamespace_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(); } }; } @@ -6137,7 +6549,7 @@ public class THBaseService { return false; } - public void start(I iface, getTableNamesByNamespace_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getTableNamesByNamespace_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getTableNamesByNamespace(args.name,resultHandler); } } @@ -6151,40 +6563,48 @@ public class THBaseService { 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 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(); } }; } @@ -6193,7 +6613,7 @@ public class THBaseService { 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.desc, args.splitKeys,resultHandler); } } @@ -6207,40 +6627,48 @@ public class THBaseService { 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 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(); } }; } @@ -6249,7 +6677,7 @@ public class THBaseService { 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); } } @@ -6263,40 +6691,48 @@ public class THBaseService { return new truncateTable_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) { truncateTable_result result = new truncateTable_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; truncateTable_result result = new truncateTable_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(); } }; } @@ -6305,7 +6741,7 @@ public class THBaseService { return false; } - public void start(I iface, truncateTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, truncateTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.truncateTable(args.tableName, args.preserveSplits,resultHandler); } } @@ -6319,40 +6755,48 @@ public class THBaseService { 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 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(); } }; } @@ -6361,7 +6805,7 @@ public class THBaseService { 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); } } @@ -6375,40 +6819,48 @@ public class THBaseService { 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 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(); } }; } @@ -6417,12 +6869,12 @@ public class THBaseService { 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"); } @@ -6431,42 +6883,50 @@ public class THBaseService { 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 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(); } }; } @@ -6475,12 +6935,12 @@ public class THBaseService { 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); } } - public static class isTableDisabled extends org.apache.thrift.AsyncProcessFunction { + public static class isTableDisabled extends org.apache.thrift.AsyncProcessFunction { public isTableDisabled() { super("isTableDisabled"); } @@ -6489,42 +6949,50 @@ public class THBaseService { return new isTableDisabled_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) { isTableDisabled_result result = new isTableDisabled_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; isTableDisabled_result result = new isTableDisabled_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(); } }; } @@ -6533,12 +7001,12 @@ public class THBaseService { return false; } - public void start(I iface, isTableDisabled_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, isTableDisabled_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.isTableDisabled(args.tableName,resultHandler); } } - public static class isTableAvailable extends org.apache.thrift.AsyncProcessFunction { + public static class isTableAvailable extends org.apache.thrift.AsyncProcessFunction { public isTableAvailable() { super("isTableAvailable"); } @@ -6547,42 +7015,50 @@ public class THBaseService { return new isTableAvailable_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) { isTableAvailable_result result = new isTableAvailable_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; isTableAvailable_result result = new isTableAvailable_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(); } }; } @@ -6591,12 +7067,12 @@ public class THBaseService { return false; } - public void start(I iface, isTableAvailable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, isTableAvailable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.isTableAvailable(args.tableName,resultHandler); } } - public static class isTableAvailableWithSplit extends org.apache.thrift.AsyncProcessFunction { + public static class isTableAvailableWithSplit extends org.apache.thrift.AsyncProcessFunction { public isTableAvailableWithSplit() { super("isTableAvailableWithSplit"); } @@ -6605,42 +7081,50 @@ public class THBaseService { return new isTableAvailableWithSplit_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) { isTableAvailableWithSplit_result result = new isTableAvailableWithSplit_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; isTableAvailableWithSplit_result result = new isTableAvailableWithSplit_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(); } }; } @@ -6649,7 +7133,7 @@ public class THBaseService { return false; } - public void start(I iface, isTableAvailableWithSplit_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, isTableAvailableWithSplit_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.isTableAvailableWithSplit(args.tableName, args.splitKeys,resultHandler); } } @@ -6663,40 +7147,48 @@ public class THBaseService { return new addColumnFamily_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) { addColumnFamily_result result = new addColumnFamily_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; addColumnFamily_result result = new addColumnFamily_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(); } }; } @@ -6705,7 +7197,7 @@ public class THBaseService { return false; } - public void start(I iface, addColumnFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, addColumnFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.addColumnFamily(args.tableName, args.column,resultHandler); } } @@ -6719,40 +7211,48 @@ public class THBaseService { return new deleteColumnFamily_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) { deleteColumnFamily_result result = new deleteColumnFamily_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; deleteColumnFamily_result result = new deleteColumnFamily_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(); } }; } @@ -6761,7 +7261,7 @@ public class THBaseService { return false; } - public void start(I iface, deleteColumnFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteColumnFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteColumnFamily(args.tableName, args.column,resultHandler); } } @@ -6775,40 +7275,48 @@ public class THBaseService { return new modifyColumnFamily_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) { modifyColumnFamily_result result = new modifyColumnFamily_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; modifyColumnFamily_result result = new modifyColumnFamily_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(); } }; } @@ -6817,7 +7325,7 @@ public class THBaseService { return false; } - public void start(I iface, modifyColumnFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, modifyColumnFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.modifyColumnFamily(args.tableName, args.column,resultHandler); } } @@ -6831,40 +7339,48 @@ public class THBaseService { return new modifyTable_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) { modifyTable_result result = new modifyTable_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; modifyTable_result result = new modifyTable_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(); } }; } @@ -6873,7 +7389,7 @@ public class THBaseService { return false; } - public void start(I iface, modifyTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, modifyTable_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.modifyTable(args.desc,resultHandler); } } @@ -6887,40 +7403,48 @@ public class THBaseService { return new createNamespace_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) { createNamespace_result result = new createNamespace_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; createNamespace_result result = new createNamespace_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(); } }; } @@ -6929,7 +7453,7 @@ public class THBaseService { return false; } - public void start(I iface, createNamespace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, createNamespace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.createNamespace(args.namespaceDesc,resultHandler); } } @@ -6943,40 +7467,48 @@ public class THBaseService { return new modifyNamespace_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) { modifyNamespace_result result = new modifyNamespace_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; modifyNamespace_result result = new modifyNamespace_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(); } }; } @@ -6985,7 +7517,7 @@ public class THBaseService { return false; } - public void start(I iface, modifyNamespace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, modifyNamespace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.modifyNamespace(args.namespaceDesc,resultHandler); } } @@ -6999,40 +7531,48 @@ public class THBaseService { return new deleteNamespace_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) { deleteNamespace_result result = new deleteNamespace_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; deleteNamespace_result result = new deleteNamespace_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(); } }; } @@ -7041,7 +7581,7 @@ public class THBaseService { return false; } - public void start(I iface, deleteNamespace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteNamespace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteNamespace(args.name,resultHandler); } } @@ -7055,41 +7595,49 @@ public class THBaseService { return new getNamespaceDescriptor_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(TNamespaceDescriptor o) { getNamespaceDescriptor_result result = new getNamespaceDescriptor_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; getNamespaceDescriptor_result result = new getNamespaceDescriptor_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(); } }; } @@ -7098,12 +7646,12 @@ public class THBaseService { return false; } - public void start(I iface, getNamespaceDescriptor_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getNamespaceDescriptor_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getNamespaceDescriptor(args.name,resultHandler); } } - public static class listNamespaceDescriptors extends org.apache.thrift.AsyncProcessFunction> { + public static class listNamespaceDescriptors extends org.apache.thrift.AsyncProcessFunction> { public listNamespaceDescriptors() { super("listNamespaceDescriptors"); } @@ -7112,41 +7660,49 @@ public class THBaseService { return new listNamespaceDescriptors_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) { listNamespaceDescriptors_result result = new listNamespaceDescriptors_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; listNamespaceDescriptors_result result = new listNamespaceDescriptors_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(); } }; } @@ -7155,7 +7711,7 @@ public class THBaseService { return false; } - public void start(I iface, listNamespaceDescriptors_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, listNamespaceDescriptors_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.listNamespaceDescriptors(resultHandler); } } @@ -7168,20 +7724,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 { @@ -7194,10 +7747,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); } } @@ -7205,6 +7758,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 @@ -7222,21 +7776,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; } @@ -7245,20 +7800,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); } @@ -7266,7 +7821,7 @@ public class THBaseService { } public exists_args( - ByteBuffer table, + java.nio.ByteBuffer table, TGet tget) { this(); @@ -7304,7 +7859,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); } @@ -7312,11 +7867,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; } @@ -7339,6 +7894,7 @@ public class THBaseService { /** * the TGet to check for */ + @org.apache.thrift.annotation.Nullable public TGet getTget() { return this.tget; } @@ -7346,7 +7902,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; } @@ -7366,13 +7922,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; @@ -7387,7 +7947,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(); @@ -7396,13 +7957,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) { @@ -7411,11 +7972,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) @@ -7426,6 +7987,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(); @@ -7450,19 +8013,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 @@ -7473,7 +8034,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; } @@ -7483,7 +8044,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; } @@ -7496,21 +8057,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:"); @@ -7554,7 +8116,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) { @@ -7562,13 +8124,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; @@ -7628,24 +8190,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(); @@ -7654,6 +8216,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 { @@ -7662,24 +8227,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); } } @@ -7687,6 +8249,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 @@ -7704,21 +8267,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; } @@ -7727,7 +8291,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -7735,14 +8299,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); } @@ -7792,23 +8356,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; } @@ -7828,13 +8393,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; @@ -7849,7 +8414,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(); @@ -7858,13 +8424,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) { @@ -7873,11 +8439,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) @@ -7888,6 +8454,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; @@ -7912,19 +8480,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 @@ -7935,7 +8499,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; } @@ -7945,7 +8509,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; } @@ -7958,21 +8522,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:"); @@ -8003,7 +8568,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; @@ -8013,13 +8578,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; @@ -8079,18 +8644,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); } @@ -8108,8 +8673,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); @@ -8122,6 +8687,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 existsAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8130,20 +8698,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 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 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. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -8156,10 +8721,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); } } @@ -8167,6 +8732,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 @@ -8184,21 +8750,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; } @@ -8207,21 +8774,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(existsAll_args.class, metaDataMap); } @@ -8229,8 +8796,8 @@ public class THBaseService { } public existsAll_args( - ByteBuffer table, - List tgets) + java.nio.ByteBuffer table, + java.util.List tgets) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -8245,7 +8812,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)); } @@ -8271,7 +8838,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); } @@ -8279,11 +8846,11 @@ public class THBaseService { * the table to check on */ public existsAll_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 existsAll_args setTable(ByteBuffer table) { + public existsAll_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -8307,13 +8874,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); } @@ -8321,14 +8889,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; } @@ -8348,13 +8917,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; @@ -8362,14 +8935,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(); @@ -8378,13 +8952,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) { @@ -8393,11 +8967,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 existsAll_args) @@ -8408,6 +8982,8 @@ public class THBaseService { 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(); @@ -8432,19 +9008,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 @@ -8455,7 +9029,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; } @@ -8465,7 +9039,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; } @@ -8478,21 +9052,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:"); @@ -8533,7 +9108,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) { @@ -8541,13 +9116,13 @@ 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; @@ -8571,8 +9146,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); - struct.tgets = new ArrayList(_list190.size); - TGet _elem191; + struct.tgets = new java.util.ArrayList(_list190.size); + @org.apache.thrift.annotation.Nullable TGet _elem191; for (int _i192 = 0; _i192 < _list190.size; ++_i192) { _elem191 = new TGet(); @@ -8624,17 +9199,17 @@ 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()); @@ -8647,13 +9222,13 @@ public class THBaseService { @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 _list195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tgets = new ArrayList(_list195.size); - TGet _elem196; + struct.tgets = new java.util.ArrayList(_list195.size); + @org.apache.thrift.annotation.Nullable TGet _elem196; for (int _i197 = 0; _i197 < _list195.size; ++_i197) { _elem196 = new TGet(); @@ -8665,6 +9240,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 existsAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8673,24 +9251,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 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. */ 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); } } @@ -8698,6 +9273,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 @@ -8715,21 +9291,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; } @@ -8738,21 +9315,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.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(existsAll_result.class, metaDataMap); } @@ -8760,7 +9337,7 @@ public class THBaseService { } public existsAll_result( - List success, + java.util.List success, TIOError io) { this(); @@ -8773,7 +9350,7 @@ public class THBaseService { */ public existsAll_result(existsAll_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + java.util.List __this__success = new java.util.ArrayList(other.success); this.success = __this__success; } if (other.isSetIo()) { @@ -8795,22 +9372,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; } @@ -8830,11 +9409,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; } @@ -8854,13 +9434,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; @@ -8875,7 +9455,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(); @@ -8884,13 +9465,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) { @@ -8899,11 +9480,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 existsAll_result) @@ -8914,6 +9495,8 @@ public class THBaseService { 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(); @@ -8938,19 +9521,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 @@ -8961,7 +9542,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; } @@ -8971,7 +9552,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; } @@ -8984,21 +9565,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:"); @@ -9033,7 +9615,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) { @@ -9041,13 +9623,13 @@ 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; @@ -9063,7 +9645,7 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list198 = iprot.readListBegin(); - struct.success = new ArrayList(_list198.size); + struct.success = new java.util.ArrayList(_list198.size); boolean _elem199; for (int _i200 = 0; _i200 < _list198.size; ++_i200) { @@ -9124,18 +9706,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); } @@ -9159,12 +9741,12 @@ 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 _list203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); - struct.success = new ArrayList(_list203.size); + struct.success = new java.util.ArrayList(_list203.size); boolean _elem204; for (int _i205 = 0; _i205 < _list203.size; ++_i205) { @@ -9182,6 +9764,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 { @@ -9190,20 +9775,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 { @@ -9216,10 +9798,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); } } @@ -9227,6 +9809,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 @@ -9244,21 +9827,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; } @@ -9267,20 +9851,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); } @@ -9288,7 +9872,7 @@ public class THBaseService { } public get_args( - ByteBuffer table, + java.nio.ByteBuffer table, TGet tget) { this(); @@ -9326,7 +9910,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); } @@ -9334,11 +9918,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; } @@ -9361,6 +9945,7 @@ public class THBaseService { /** * the TGet to fetch */ + @org.apache.thrift.annotation.Nullable public TGet getTget() { return this.tget; } @@ -9368,7 +9953,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; } @@ -9388,13 +9973,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; @@ -9409,7 +9998,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(); @@ -9418,13 +10008,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) { @@ -9433,11 +10023,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) @@ -9448,6 +10038,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(); @@ -9472,19 +10064,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 @@ -9495,7 +10085,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; } @@ -9505,7 +10095,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; } @@ -9518,21 +10108,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:"); @@ -9576,7 +10167,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) { @@ -9584,13 +10175,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; @@ -9650,24 +10241,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(); @@ -9676,6 +10267,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 { @@ -9684,24 +10278,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); } } @@ -9709,6 +10300,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 @@ -9726,21 +10318,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; } @@ -9749,20 +10342,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); } @@ -9800,11 +10393,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; } @@ -9824,11 +10418,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; } @@ -9848,7 +10443,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) { @@ -9869,7 +10464,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(); @@ -9878,13 +10474,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) { @@ -9893,11 +10489,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) @@ -9908,6 +10504,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(); @@ -9932,19 +10530,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 @@ -9955,7 +10551,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; } @@ -9965,7 +10561,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; } @@ -9978,21 +10574,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:"); @@ -10030,7 +10627,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) { @@ -10038,13 +10635,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; @@ -10105,18 +10702,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); } @@ -10134,8 +10731,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); @@ -10149,6 +10746,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 { @@ -10157,22 +10757,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 { @@ -10187,10 +10784,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); } } @@ -10198,6 +10795,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 @@ -10215,21 +10813,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; } @@ -10238,21 +10837,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); } @@ -10260,8 +10859,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); @@ -10276,7 +10875,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)); } @@ -10302,7 +10901,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); } @@ -10310,11 +10909,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; } @@ -10338,13 +10937,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); } @@ -10354,7 +10954,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; } @@ -10363,7 +10964,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; } @@ -10383,13 +10984,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; @@ -10397,14 +11002,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(); @@ -10413,13 +11019,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) { @@ -10428,11 +11034,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) @@ -10443,6 +11049,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(); @@ -10467,19 +11075,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 @@ -10490,7 +11096,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; } @@ -10500,7 +11106,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; } @@ -10513,21 +11119,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:"); @@ -10568,7 +11175,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) { @@ -10576,13 +11183,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; @@ -10606,8 +11213,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list206 = iprot.readListBegin(); - struct.tgets = new ArrayList(_list206.size); - TGet _elem207; + struct.tgets = new java.util.ArrayList(_list206.size); + @org.apache.thrift.annotation.Nullable TGet _elem207; for (int _i208 = 0; _i208 < _list206.size; ++_i208) { _elem207 = new TGet(); @@ -10659,17 +11266,17 @@ 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()); @@ -10682,13 +11289,13 @@ public class THBaseService { @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 _list211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tgets = new ArrayList(_list211.size); - TGet _elem212; + struct.tgets = new java.util.ArrayList(_list211.size); + @org.apache.thrift.annotation.Nullable TGet _elem212; for (int _i213 = 0; _i213 < _list211.size; ++_i213) { _elem212 = new TGet(); @@ -10700,6 +11307,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_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10708,24 +11318,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); } } @@ -10733,6 +11340,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 @@ -10750,21 +11358,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; } @@ -10773,21 +11382,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); } @@ -10795,7 +11404,7 @@ public class THBaseService { } public getMultiple_result( - List success, + java.util.List success, TIOError io) { this(); @@ -10808,7 +11417,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)); } @@ -10833,22 +11442,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; } @@ -10868,11 +11479,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; } @@ -10892,13 +11504,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; @@ -10913,7 +11525,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(); @@ -10922,13 +11535,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) { @@ -10937,11 +11550,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) @@ -10952,6 +11565,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(); @@ -10976,19 +11591,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 @@ -10999,7 +11612,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; } @@ -11009,7 +11622,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; } @@ -11022,21 +11635,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:"); @@ -11071,7 +11685,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) { @@ -11079,13 +11693,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; @@ -11101,8 +11715,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list214 = iprot.readListBegin(); - struct.success = new ArrayList(_list214.size); - TResult _elem215; + struct.success = new java.util.ArrayList(_list214.size); + @org.apache.thrift.annotation.Nullable TResult _elem215; for (int _i216 = 0; _i216 < _list214.size; ++_i216) { _elem215 = new TResult(); @@ -11163,18 +11777,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); } @@ -11198,13 +11812,13 @@ 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 _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list219.size); - TResult _elem220; + struct.success = new java.util.ArrayList(_list219.size); + @org.apache.thrift.annotation.Nullable TResult _elem220; for (int _i221 = 0; _i221 < _list219.size; ++_i221) { _elem220 = new TResult(); @@ -11222,6 +11836,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 { @@ -11230,20 +11847,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 { @@ -11256,10 +11870,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); } } @@ -11267,6 +11881,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 @@ -11284,21 +11899,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; } @@ -11307,20 +11923,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); } @@ -11328,7 +11944,7 @@ public class THBaseService { } public put_args( - ByteBuffer table, + java.nio.ByteBuffer table, TPut tput) { this(); @@ -11366,7 +11982,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); } @@ -11374,11 +11990,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; } @@ -11401,6 +12017,7 @@ public class THBaseService { /** * the TPut to put */ + @org.apache.thrift.annotation.Nullable public TPut getTput() { return this.tput; } @@ -11408,7 +12025,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; } @@ -11428,13 +12045,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; @@ -11449,7 +12070,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(); @@ -11458,13 +12080,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) { @@ -11473,11 +12095,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) @@ -11488,6 +12110,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(); @@ -11512,19 +12136,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 @@ -11535,7 +12157,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; } @@ -11545,7 +12167,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; } @@ -11558,21 +12180,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:"); @@ -11616,7 +12239,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) { @@ -11624,13 +12247,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; @@ -11690,24 +12313,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(); @@ -11716,6 +12339,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 { @@ -11723,22 +12349,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); } } @@ -11746,6 +12369,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 @@ -11761,21 +12385,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; } @@ -11784,18 +12409,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); } @@ -11827,11 +12452,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; } @@ -11851,7 +12477,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) { @@ -11864,30 +12490,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) @@ -11898,6 +12525,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(); @@ -11913,14 +12542,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 @@ -11931,7 +12559,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; } @@ -11944,21 +12572,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:"); @@ -11985,7 +12614,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) { @@ -11993,13 +12622,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; @@ -12046,18 +12675,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); } @@ -12069,8 +12698,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); @@ -12079,6 +12708,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 { @@ -12091,38 +12723,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 { @@ -12153,10 +12782,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); } } @@ -12164,6 +12793,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 @@ -12189,21 +12819,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; } @@ -12212,15 +12843,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, @@ -12233,7 +12864,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); } @@ -12241,11 +12872,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(); @@ -12303,7 +12934,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); } @@ -12311,11 +12942,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; } @@ -12343,7 +12974,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); } @@ -12351,11 +12982,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; } @@ -12383,7 +13014,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); } @@ -12391,11 +13022,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; } @@ -12423,7 +13054,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); } @@ -12431,11 +13062,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; } @@ -12465,7 +13096,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); } @@ -12475,11 +13106,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; } @@ -12502,6 +13133,7 @@ public class THBaseService { /** * the TPut to put if the check succeeds */ + @org.apache.thrift.annotation.Nullable public TPut getTput() { return this.tput; } @@ -12509,7 +13141,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; } @@ -12529,13 +13161,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; @@ -12543,7 +13179,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; @@ -12551,7 +13191,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; @@ -12559,7 +13203,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; @@ -12567,7 +13215,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; @@ -12582,7 +13234,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(); @@ -12603,13 +13256,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) { @@ -12626,11 +13279,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) @@ -12641,6 +13294,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(); @@ -12701,39 +13356,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 @@ -12744,7 +13393,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; } @@ -12754,7 +13403,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; } @@ -12764,7 +13413,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; } @@ -12774,7 +13423,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; } @@ -12784,7 +13433,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; } @@ -12794,7 +13443,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; } @@ -12807,21 +13456,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:"); @@ -12906,7 +13556,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) { @@ -12914,13 +13564,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; @@ -13032,23 +13682,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); } @@ -13060,7 +13710,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(); @@ -13072,7 +13722,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); @@ -13080,6 +13730,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 { @@ -13088,24 +13741,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); } } @@ -13113,6 +13763,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 @@ -13130,21 +13781,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; } @@ -13153,7 +13805,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -13161,14 +13813,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); } @@ -13218,23 +13870,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; } @@ -13254,13 +13907,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; @@ -13275,7 +13928,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(); @@ -13284,13 +13938,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) { @@ -13299,11 +13953,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) @@ -13314,6 +13968,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; @@ -13338,19 +13994,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 @@ -13361,7 +14013,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; } @@ -13371,7 +14023,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; } @@ -13384,21 +14036,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:"); @@ -13429,7 +14082,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; @@ -13439,13 +14092,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; @@ -13505,18 +14158,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); } @@ -13534,8 +14187,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); @@ -13548,6 +14201,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 { @@ -13556,20 +14212,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 { @@ -13582,10 +14235,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); } } @@ -13593,6 +14246,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 @@ -13610,21 +14264,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; } @@ -13633,21 +14288,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); } @@ -13655,8 +14310,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); @@ -13671,7 +14326,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)); } @@ -13697,7 +14352,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); } @@ -13705,11 +14360,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; } @@ -13733,13 +14388,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); } @@ -13747,14 +14403,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; } @@ -13774,13 +14431,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; @@ -13788,14 +14449,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(); @@ -13804,13 +14466,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) { @@ -13819,11 +14481,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) @@ -13834,6 +14496,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(); @@ -13858,19 +14522,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 @@ -13881,7 +14543,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; } @@ -13891,7 +14553,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; } @@ -13904,21 +14566,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:"); @@ -13959,7 +14622,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) { @@ -13967,13 +14630,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; @@ -13997,8 +14660,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); - struct.tputs = new ArrayList(_list222.size); - TPut _elem223; + struct.tputs = new java.util.ArrayList(_list222.size); + @org.apache.thrift.annotation.Nullable TPut _elem223; for (int _i224 = 0; _i224 < _list222.size; ++_i224) { _elem223 = new TPut(); @@ -14050,17 +14713,17 @@ 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()); @@ -14073,13 +14736,13 @@ public class THBaseService { @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 _list227 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tputs = new ArrayList(_list227.size); - TPut _elem228; + struct.tputs = new java.util.ArrayList(_list227.size); + @org.apache.thrift.annotation.Nullable TPut _elem228; for (int _i229 = 0; _i229 < _list227.size; ++_i229) { _elem228 = new TPut(); @@ -14091,6 +14754,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_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14098,22 +14764,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); } } @@ -14121,6 +14784,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 @@ -14136,21 +14800,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; } @@ -14159,18 +14824,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); } @@ -14202,11 +14867,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; } @@ -14226,7 +14892,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) { @@ -14239,30 +14905,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) @@ -14273,6 +14940,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(); @@ -14288,14 +14957,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 @@ -14306,7 +14974,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; } @@ -14319,21 +14987,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:"); @@ -14360,7 +15029,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) { @@ -14368,13 +15037,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; @@ -14421,18 +15090,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); } @@ -14444,8 +15113,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); @@ -14454,6 +15123,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 { @@ -14462,20 +15134,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 { @@ -14488,10 +15157,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); } } @@ -14499,6 +15168,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 @@ -14516,21 +15186,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; } @@ -14539,20 +15210,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); } @@ -14560,7 +15231,7 @@ public class THBaseService { } public deleteSingle_args( - ByteBuffer table, + java.nio.ByteBuffer table, TDelete tdelete) { this(); @@ -14598,7 +15269,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); } @@ -14606,11 +15277,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; } @@ -14633,6 +15304,7 @@ public class THBaseService { /** * the TDelete to delete */ + @org.apache.thrift.annotation.Nullable public TDelete getTdelete() { return this.tdelete; } @@ -14640,7 +15312,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; } @@ -14660,13 +15332,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; @@ -14681,7 +15357,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(); @@ -14690,13 +15367,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) { @@ -14705,11 +15382,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) @@ -14720,6 +15397,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(); @@ -14744,19 +15423,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 @@ -14767,7 +15444,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; } @@ -14777,7 +15454,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; } @@ -14790,21 +15467,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:"); @@ -14848,7 +15526,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) { @@ -14856,13 +15534,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; @@ -14922,24 +15600,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(); @@ -14948,6 +15626,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 { @@ -14955,22 +15636,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); } } @@ -14978,6 +15656,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 @@ -14993,21 +15672,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; } @@ -15016,18 +15696,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); } @@ -15059,11 +15739,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; } @@ -15083,7 +15764,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) { @@ -15096,30 +15777,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) @@ -15130,6 +15812,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(); @@ -15145,14 +15829,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 @@ -15163,7 +15846,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; } @@ -15176,21 +15859,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:"); @@ -15217,7 +15901,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) { @@ -15225,13 +15909,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; @@ -15278,18 +15962,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); } @@ -15301,8 +15985,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); @@ -15311,6 +15995,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 { @@ -15319,20 +16006,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 { @@ -15345,10 +16029,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); } } @@ -15356,6 +16040,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 @@ -15373,21 +16058,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; } @@ -15396,21 +16082,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); } @@ -15418,8 +16104,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); @@ -15434,7 +16120,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)); } @@ -15460,7 +16146,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); } @@ -15468,11 +16154,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; } @@ -15496,13 +16182,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); } @@ -15510,14 +16197,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; } @@ -15537,13 +16225,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; @@ -15551,14 +16243,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(); @@ -15567,13 +16260,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) { @@ -15582,11 +16275,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) @@ -15597,6 +16290,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(); @@ -15621,19 +16316,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 @@ -15644,7 +16337,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; } @@ -15654,7 +16347,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; } @@ -15667,21 +16360,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:"); @@ -15722,7 +16416,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) { @@ -15730,13 +16424,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; @@ -15760,8 +16454,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list230 = iprot.readListBegin(); - struct.tdeletes = new ArrayList(_list230.size); - TDelete _elem231; + struct.tdeletes = new java.util.ArrayList(_list230.size); + @org.apache.thrift.annotation.Nullable TDelete _elem231; for (int _i232 = 0; _i232 < _list230.size; ++_i232) { _elem231 = new TDelete(); @@ -15813,17 +16507,17 @@ 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()); @@ -15836,13 +16530,13 @@ public class THBaseService { @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 _list235 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tdeletes = new ArrayList(_list235.size); - TDelete _elem236; + struct.tdeletes = new java.util.ArrayList(_list235.size); + @org.apache.thrift.annotation.Nullable TDelete _elem236; for (int _i237 = 0; _i237 < _list235.size; ++_i237) { _elem236 = new TDelete(); @@ -15854,6 +16548,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_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15862,24 +16559,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); } } @@ -15887,6 +16581,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 @@ -15904,21 +16599,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; } @@ -15927,21 +16623,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); } @@ -15949,7 +16645,7 @@ public class THBaseService { } public deleteMultiple_result( - List success, + java.util.List success, TIOError io) { this(); @@ -15962,7 +16658,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)); } @@ -15987,22 +16683,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; } @@ -16022,11 +16720,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; } @@ -16046,13 +16745,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; @@ -16067,7 +16766,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(); @@ -16076,13 +16776,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) { @@ -16091,11 +16791,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) @@ -16106,6 +16806,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(); @@ -16130,19 +16832,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 @@ -16153,7 +16853,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; } @@ -16163,7 +16863,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; } @@ -16176,21 +16876,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:"); @@ -16225,7 +16926,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) { @@ -16233,13 +16934,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; @@ -16255,8 +16956,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list238 = iprot.readListBegin(); - struct.success = new ArrayList(_list238.size); - TDelete _elem239; + struct.success = new java.util.ArrayList(_list238.size); + @org.apache.thrift.annotation.Nullable TDelete _elem239; for (int _i240 = 0; _i240 < _list238.size; ++_i240) { _elem239 = new TDelete(); @@ -16317,18 +17018,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); } @@ -16352,13 +17053,13 @@ 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 _list243 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list243.size); - TDelete _elem244; + struct.success = new java.util.ArrayList(_list243.size); + @org.apache.thrift.annotation.Nullable TDelete _elem244; for (int _i245 = 0; _i245 < _list243.size; ++_i245) { _elem244 = new TDelete(); @@ -16376,6 +17077,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 { @@ -16388,38 +17092,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 { @@ -16450,10 +17151,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); } } @@ -16461,6 +17162,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 @@ -16486,21 +17188,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; } @@ -16509,15 +17212,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, @@ -16530,7 +17233,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); } @@ -16538,11 +17241,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(); @@ -16600,7 +17303,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); } @@ -16608,11 +17311,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; } @@ -16640,7 +17343,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); } @@ -16648,11 +17351,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; } @@ -16680,7 +17383,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); } @@ -16688,11 +17391,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; } @@ -16720,7 +17423,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); } @@ -16728,11 +17431,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; } @@ -16762,7 +17465,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); } @@ -16772,11 +17475,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; } @@ -16799,6 +17502,7 @@ public class THBaseService { /** * the TDelete to execute if the check succeeds */ + @org.apache.thrift.annotation.Nullable public TDelete getTdelete() { return this.tdelete; } @@ -16806,7 +17510,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; } @@ -16826,13 +17530,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; @@ -16840,7 +17548,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; @@ -16848,7 +17560,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; @@ -16856,7 +17572,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; @@ -16864,7 +17584,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; @@ -16879,7 +17603,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(); @@ -16900,13 +17625,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) { @@ -16923,11 +17648,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) @@ -16938,6 +17663,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(); @@ -16998,39 +17725,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 @@ -17041,7 +17762,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; } @@ -17051,7 +17772,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; } @@ -17061,7 +17782,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; } @@ -17071,7 +17792,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; } @@ -17081,7 +17802,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; } @@ -17091,7 +17812,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; } @@ -17104,21 +17825,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:"); @@ -17203,7 +17925,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) { @@ -17211,13 +17933,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; @@ -17329,23 +18051,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); } @@ -17357,7 +18079,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(); @@ -17369,7 +18091,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); @@ -17377,6 +18099,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 { @@ -17385,24 +18110,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); } } @@ -17410,6 +18132,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 @@ -17427,21 +18150,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; } @@ -17450,7 +18174,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -17458,14 +18182,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); } @@ -17515,23 +18239,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; } @@ -17551,13 +18276,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; @@ -17572,7 +18297,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(); @@ -17581,13 +18307,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) { @@ -17596,11 +18322,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) @@ -17611,6 +18337,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; @@ -17635,19 +18363,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 @@ -17658,7 +18382,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; } @@ -17668,7 +18392,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; } @@ -17681,21 +18405,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:"); @@ -17726,7 +18451,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; @@ -17736,13 +18461,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; @@ -17802,18 +18527,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); } @@ -17831,8 +18556,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); @@ -17845,6 +18570,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 { @@ -17853,20 +18581,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 { @@ -17879,10 +18604,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); } } @@ -17890,6 +18615,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 @@ -17907,21 +18633,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; } @@ -17930,20 +18657,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); } @@ -17951,7 +18678,7 @@ public class THBaseService { } public increment_args( - ByteBuffer table, + java.nio.ByteBuffer table, TIncrement tincrement) { this(); @@ -17989,7 +18716,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); } @@ -17997,11 +18724,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; } @@ -18024,6 +18751,7 @@ public class THBaseService { /** * the TIncrement to increment */ + @org.apache.thrift.annotation.Nullable public TIncrement getTincrement() { return this.tincrement; } @@ -18031,7 +18759,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; } @@ -18051,13 +18779,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; @@ -18072,7 +18804,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(); @@ -18081,13 +18814,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) { @@ -18096,11 +18829,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) @@ -18111,6 +18844,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(); @@ -18135,19 +18870,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 @@ -18158,7 +18891,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; } @@ -18168,7 +18901,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; } @@ -18181,21 +18914,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:"); @@ -18239,7 +18973,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) { @@ -18247,13 +18981,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; @@ -18313,24 +19047,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(); @@ -18339,6 +19073,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 { @@ -18347,24 +19084,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); } } @@ -18372,6 +19106,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 @@ -18389,21 +19124,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; } @@ -18412,20 +19148,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); } @@ -18463,11 +19199,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; } @@ -18487,11 +19224,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; } @@ -18511,7 +19249,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) { @@ -18532,7 +19270,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(); @@ -18541,13 +19280,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) { @@ -18556,11 +19295,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) @@ -18571,6 +19310,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(); @@ -18595,19 +19336,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 @@ -18618,7 +19357,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; } @@ -18628,7 +19367,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; } @@ -18641,21 +19380,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:"); @@ -18693,7 +19433,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) { @@ -18701,13 +19441,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; @@ -18768,18 +19508,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); } @@ -18797,8 +19537,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); @@ -18812,6 +19552,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 { @@ -18820,20 +19563,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 { @@ -18846,10 +19586,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); } } @@ -18857,6 +19597,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 @@ -18874,21 +19615,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; } @@ -18897,20 +19639,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); } @@ -18918,7 +19660,7 @@ public class THBaseService { } public append_args( - ByteBuffer table, + java.nio.ByteBuffer table, TAppend tappend) { this(); @@ -18956,7 +19698,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); } @@ -18964,11 +19706,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; } @@ -18991,6 +19733,7 @@ public class THBaseService { /** * the TAppend to append */ + @org.apache.thrift.annotation.Nullable public TAppend getTappend() { return this.tappend; } @@ -18998,7 +19741,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; } @@ -19018,13 +19761,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; @@ -19039,7 +19786,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(); @@ -19048,13 +19796,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) { @@ -19063,11 +19811,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) @@ -19078,6 +19826,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(); @@ -19102,19 +19852,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 @@ -19125,7 +19873,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; } @@ -19135,7 +19883,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; } @@ -19148,21 +19896,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:"); @@ -19206,7 +19955,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) { @@ -19214,13 +19963,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; @@ -19280,24 +20029,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(); @@ -19306,6 +20055,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 { @@ -19314,24 +20066,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); } } @@ -19339,6 +20088,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 @@ -19356,21 +20106,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; } @@ -19379,20 +20130,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); } @@ -19430,11 +20181,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; } @@ -19454,11 +20206,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; } @@ -19478,7 +20231,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) { @@ -19499,7 +20252,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(); @@ -19508,13 +20262,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) { @@ -19523,11 +20277,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) @@ -19538,6 +20292,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(); @@ -19562,19 +20318,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 @@ -19585,7 +20339,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; } @@ -19595,7 +20349,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; } @@ -19608,21 +20362,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:"); @@ -19660,7 +20415,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) { @@ -19668,13 +20423,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; @@ -19735,18 +20490,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); } @@ -19764,8 +20519,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); @@ -19779,6 +20534,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 { @@ -19787,20 +20545,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 { @@ -19813,10 +20568,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); } } @@ -19824,6 +20579,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 @@ -19841,21 +20597,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; } @@ -19864,20 +20621,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); } @@ -19885,7 +20642,7 @@ public class THBaseService { } public openScanner_args( - ByteBuffer table, + java.nio.ByteBuffer table, TScan tscan) { this(); @@ -19923,7 +20680,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); } @@ -19931,11 +20688,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; } @@ -19958,6 +20715,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ + @org.apache.thrift.annotation.Nullable public TScan getTscan() { return this.tscan; } @@ -19965,7 +20723,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; } @@ -19985,13 +20743,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; @@ -20006,7 +20768,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(); @@ -20015,13 +20778,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) { @@ -20030,11 +20793,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) @@ -20045,6 +20808,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(); @@ -20069,19 +20834,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 @@ -20092,7 +20855,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; } @@ -20102,7 +20865,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; } @@ -20115,21 +20878,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:"); @@ -20173,7 +20937,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) { @@ -20181,13 +20945,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; @@ -20247,24 +21011,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(); @@ -20273,6 +21037,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 { @@ -20281,24 +21048,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); } } @@ -20306,6 +21070,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 @@ -20323,21 +21088,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; } @@ -20346,7 +21112,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -20354,14 +21120,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); } @@ -20411,23 +21177,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; } @@ -20447,13 +21214,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; @@ -20468,7 +21235,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(); @@ -20477,13 +21245,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) { @@ -20492,11 +21260,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) @@ -20507,6 +21275,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; @@ -20531,19 +21301,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 @@ -20554,7 +21320,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; } @@ -20564,7 +21330,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; } @@ -20577,21 +21343,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:"); @@ -20622,7 +21389,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; @@ -20632,13 +21399,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; @@ -20698,18 +21465,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); } @@ -20727,8 +21494,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); @@ -20741,6 +21508,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 { @@ -20749,11 +21519,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. @@ -20775,10 +21542,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); } } @@ -20786,6 +21553,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 @@ -20803,21 +21571,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; } @@ -20826,7 +21595,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -20835,14 +21604,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); } @@ -20900,16 +21669,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); } /** @@ -20929,25 +21698,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; @@ -20955,14 +21724,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(); @@ -20971,13 +21741,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) { @@ -20986,11 +21756,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) @@ -21001,6 +21771,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; @@ -21025,19 +21797,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 @@ -21048,7 +21814,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; } @@ -21058,7 +21824,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; } @@ -21071,21 +21837,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:"); @@ -21113,7 +21880,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; @@ -21123,13 +21890,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; @@ -21187,19 +21954,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); } @@ -21211,10 +21978,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); @@ -21222,6 +21989,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 { @@ -21231,18 +22001,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 { @@ -21253,10 +22020,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); } } @@ -21264,6 +22031,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 @@ -21283,21 +22051,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; } @@ -21306,23 +22075,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); } @@ -21330,7 +22099,7 @@ public class THBaseService { } public getScannerRows_result( - List success, + java.util.List success, TIOError io, TIllegalArgument ia) { @@ -21345,7 +22114,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)); } @@ -21374,22 +22143,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; } @@ -21409,11 +22180,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; } @@ -21436,6 +22208,7 @@ public class THBaseService { /** * if the scannerId is invalid */ + @org.apache.thrift.annotation.Nullable public TIllegalArgument getIa() { return this.ia; } @@ -21443,7 +22216,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; } @@ -21463,13 +22236,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; @@ -21492,7 +22265,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(); @@ -21504,13 +22278,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) { @@ -21521,11 +22295,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) @@ -21536,6 +22310,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(); @@ -21569,24 +22345,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 @@ -21597,7 +22370,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; } @@ -21607,7 +22380,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; } @@ -21617,7 +22390,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; } @@ -21630,21 +22403,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:"); @@ -21687,7 +22461,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) { @@ -21695,13 +22469,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; @@ -21717,8 +22491,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list246 = iprot.readListBegin(); - struct.success = new ArrayList(_list246.size); - TResult _elem247; + struct.success = new java.util.ArrayList(_list246.size); + @org.apache.thrift.annotation.Nullable TResult _elem247; for (int _i248 = 0; _i248 < _list246.size; ++_i248) { _elem247 = new TResult(); @@ -21793,18 +22567,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); } @@ -21834,13 +22608,13 @@ 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 _list251 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list251.size); - TResult _elem252; + struct.success = new java.util.ArrayList(_list251.size); + @org.apache.thrift.annotation.Nullable TResult _elem252; for (int _i253 = 0; _i253 < _list251.size; ++_i253) { _elem252 = new TResult(); @@ -21863,6 +22637,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 { @@ -21870,11 +22647,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 * @@ -21888,10 +22662,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); } } @@ -21899,6 +22673,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 @@ -21914,21 +22689,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; } @@ -21937,7 +22713,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -21945,12 +22721,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); } @@ -22000,55 +22776,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) @@ -22059,6 +22836,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; @@ -22074,14 +22853,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 @@ -22092,7 +22868,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; } @@ -22105,21 +22881,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:"); @@ -22143,7 +22920,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; @@ -22153,13 +22930,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; @@ -22206,28 +22983,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 { @@ -22236,17 +23016,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 { @@ -22256,10 +23033,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); } } @@ -22267,6 +23044,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 @@ -22284,21 +23062,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; } @@ -22307,20 +23086,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); } @@ -22358,11 +23137,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; } @@ -22385,6 +23165,7 @@ public class THBaseService { /** * if the scannerId is invalid */ + @org.apache.thrift.annotation.Nullable public TIllegalArgument getIa() { return this.ia; } @@ -22392,7 +23173,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; } @@ -22412,7 +23193,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) { @@ -22433,7 +23214,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(); @@ -22442,13 +23224,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) { @@ -22457,11 +23239,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) @@ -22472,6 +23254,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(); @@ -22496,19 +23280,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 @@ -22519,7 +23301,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; } @@ -22529,7 +23311,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; } @@ -22542,21 +23324,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:"); @@ -22591,7 +23374,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) { @@ -22599,13 +23382,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; @@ -22666,18 +23449,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); } @@ -22695,8 +23478,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); @@ -22710,6 +23493,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 { @@ -22718,20 +23504,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 { @@ -22744,10 +23527,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); } } @@ -22755,6 +23538,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 @@ -22772,21 +23556,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; } @@ -22795,20 +23580,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); } @@ -22816,7 +23601,7 @@ public class THBaseService { } public mutateRow_args( - ByteBuffer table, + java.nio.ByteBuffer table, TRowMutations trowMutations) { this(); @@ -22854,7 +23639,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); } @@ -22862,11 +23647,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; } @@ -22889,6 +23674,7 @@ public class THBaseService { /** * mutations to apply */ + @org.apache.thrift.annotation.Nullable public TRowMutations getTrowMutations() { return this.trowMutations; } @@ -22896,7 +23682,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; } @@ -22916,13 +23702,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; @@ -22937,7 +23727,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(); @@ -22946,13 +23737,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) { @@ -22961,11 +23752,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) @@ -22976,6 +23767,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(); @@ -23000,19 +23793,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 @@ -23023,7 +23814,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; } @@ -23033,7 +23824,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; } @@ -23046,21 +23837,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:"); @@ -23104,7 +23896,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) { @@ -23112,13 +23904,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; @@ -23178,24 +23970,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(); @@ -23204,6 +23996,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 { @@ -23211,22 +24006,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); } } @@ -23234,6 +24026,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 @@ -23249,21 +24042,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; } @@ -23272,18 +24066,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); } @@ -23315,11 +24109,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; } @@ -23339,7 +24134,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) { @@ -23352,30 +24147,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) @@ -23386,6 +24182,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(); @@ -23401,14 +24199,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 @@ -23419,7 +24216,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; } @@ -23432,21 +24229,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:"); @@ -23473,7 +24271,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) { @@ -23481,13 +24279,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; @@ -23534,18 +24332,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); } @@ -23557,8 +24355,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); @@ -23567,6 +24365,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 { @@ -23576,20 +24377,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 */ @@ -23610,10 +24408,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); } } @@ -23621,6 +24419,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 @@ -23640,21 +24439,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; } @@ -23663,7 +24463,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -23671,16 +24471,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); } @@ -23690,7 +24490,7 @@ public class THBaseService { } public getScannerResults_args( - ByteBuffer table, + java.nio.ByteBuffer table, TScan tscan, int numRows) { @@ -23735,7 +24535,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); } @@ -23743,11 +24543,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; } @@ -23770,6 +24570,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ + @org.apache.thrift.annotation.Nullable public TScan getTscan() { return this.tscan; } @@ -23777,7 +24578,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; } @@ -23814,25 +24615,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; @@ -23848,14 +24653,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(); @@ -23867,13 +24673,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) { @@ -23884,11 +24690,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) @@ -23899,6 +24705,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(); @@ -23932,24 +24740,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 @@ -23960,7 +24763,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; } @@ -23970,7 +24773,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; } @@ -23980,7 +24783,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; } @@ -23993,21 +24796,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:"); @@ -24055,7 +24859,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; @@ -24065,13 +24869,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; @@ -24142,20 +24946,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); } @@ -24167,13 +24971,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); @@ -24181,6 +24985,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 { @@ -24189,24 +24996,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); } } @@ -24214,6 +25018,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 @@ -24231,21 +25036,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; } @@ -24254,21 +25060,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); } @@ -24276,7 +25082,7 @@ public class THBaseService { } public getScannerResults_result( - List success, + java.util.List success, TIOError io) { this(); @@ -24289,7 +25095,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)); } @@ -24314,22 +25120,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; } @@ -24349,11 +25157,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; } @@ -24373,13 +25182,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; @@ -24394,7 +25203,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(); @@ -24403,13 +25213,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) { @@ -24418,11 +25228,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) @@ -24433,6 +25243,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(); @@ -24457,19 +25269,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 @@ -24480,7 +25290,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; } @@ -24490,7 +25300,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; } @@ -24503,21 +25313,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:"); @@ -24552,7 +25363,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) { @@ -24560,13 +25371,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; @@ -24582,8 +25393,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list254 = iprot.readListBegin(); - struct.success = new ArrayList(_list254.size); - TResult _elem255; + struct.success = new java.util.ArrayList(_list254.size); + @org.apache.thrift.annotation.Nullable TResult _elem255; for (int _i256 = 0; _i256 < _list254.size; ++_i256) { _elem255 = new TResult(); @@ -24644,18 +25455,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); } @@ -24679,13 +25490,13 @@ 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 _list259 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list259.size); - TResult _elem260; + struct.success = new java.util.ArrayList(_list259.size); + @org.apache.thrift.annotation.Nullable TResult _elem260; for (int _i261 = 0; _i261 < _list259.size; ++_i261) { _elem260 = new TResult(); @@ -24703,6 +25514,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 { @@ -24712,14 +25526,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. */ @@ -24728,10 +25539,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); } } @@ -24739,6 +25550,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 @@ -24758,21 +25570,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; } @@ -24781,7 +25594,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -24789,16 +25602,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); } @@ -24806,8 +25619,8 @@ public class THBaseService { } public getRegionLocation_args( - ByteBuffer table, - ByteBuffer row, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, boolean reload) { this(); @@ -24848,16 +25661,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; } @@ -24882,16 +25695,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; } @@ -24922,25 +25735,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; @@ -24948,7 +25765,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; @@ -24956,14 +25777,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(); @@ -24975,13 +25797,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) { @@ -24992,11 +25814,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) @@ -25007,6 +25829,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(); @@ -25040,24 +25864,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 @@ -25068,7 +25887,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; } @@ -25078,7 +25897,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; } @@ -25088,7 +25907,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; } @@ -25101,21 +25920,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:"); @@ -25160,7 +25980,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; @@ -25170,13 +25990,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; @@ -25246,20 +26066,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); } @@ -25271,12 +26091,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); @@ -25284,6 +26104,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 { @@ -25292,24 +26115,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); } } @@ -25317,6 +26137,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 @@ -25334,21 +26155,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; } @@ -25357,20 +26179,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); } @@ -25408,11 +26230,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; } @@ -25432,11 +26255,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; } @@ -25456,7 +26280,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) { @@ -25477,7 +26301,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(); @@ -25486,13 +26311,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) { @@ -25501,11 +26326,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) @@ -25516,6 +26341,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(); @@ -25540,19 +26367,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 @@ -25563,7 +26388,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; } @@ -25573,7 +26398,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; } @@ -25586,21 +26411,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:"); @@ -25638,7 +26464,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) { @@ -25646,13 +26472,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; @@ -25713,18 +26539,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); } @@ -25742,8 +26568,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); @@ -25757,6 +26583,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 { @@ -25764,22 +26593,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); } } @@ -25787,6 +26613,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 @@ -25802,21 +26629,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; } @@ -25825,18 +26653,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); } @@ -25844,7 +26672,7 @@ public class THBaseService { } public getAllRegionLocations_args( - ByteBuffer table) + java.nio.ByteBuffer table) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -25873,16 +26701,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; } @@ -25902,43 +26730,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) @@ -25949,6 +26782,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(); @@ -25964,14 +26799,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 @@ -25982,7 +26816,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; } @@ -25995,21 +26829,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:"); @@ -26039,7 +26874,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) { @@ -26047,13 +26882,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; @@ -26099,28 +26934,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 { @@ -26129,24 +26967,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); } } @@ -26154,6 +26989,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 @@ -26171,21 +27007,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; } @@ -26194,21 +27031,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); } @@ -26216,7 +27053,7 @@ public class THBaseService { } public getAllRegionLocations_result( - List success, + java.util.List success, TIOError io) { this(); @@ -26229,7 +27066,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)); } @@ -26254,22 +27091,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; } @@ -26289,11 +27128,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; } @@ -26313,13 +27153,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; @@ -26334,7 +27174,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(); @@ -26343,13 +27184,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) { @@ -26358,11 +27199,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) @@ -26373,6 +27214,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(); @@ -26397,19 +27240,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 @@ -26420,7 +27261,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; } @@ -26430,7 +27271,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; } @@ -26443,21 +27284,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:"); @@ -26492,7 +27334,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) { @@ -26500,13 +27342,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; @@ -26522,8 +27364,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list262 = iprot.readListBegin(); - struct.success = new ArrayList(_list262.size); - THRegionLocation _elem263; + struct.success = new java.util.ArrayList(_list262.size); + @org.apache.thrift.annotation.Nullable THRegionLocation _elem263; for (int _i264 = 0; _i264 < _list262.size; ++_i264) { _elem263 = new THRegionLocation(); @@ -26584,18 +27426,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); } @@ -26619,13 +27461,13 @@ 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 _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list267.size); - THRegionLocation _elem268; + struct.success = new java.util.ArrayList(_list267.size); + @org.apache.thrift.annotation.Nullable THRegionLocation _elem268; for (int _i269 = 0; _i269 < _list267.size; ++_i269) { _elem268 = new THRegionLocation(); @@ -26643,6 +27485,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 { @@ -26656,43 +27501,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 { @@ -26728,10 +27570,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); } } @@ -26739,6 +27581,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 @@ -26766,21 +27609,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; } @@ -26789,15 +27633,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, @@ -26812,7 +27656,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); } @@ -26820,12 +27664,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(); @@ -26888,7 +27732,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); } @@ -26896,11 +27740,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; } @@ -26928,7 +27772,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); } @@ -26936,11 +27780,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; } @@ -26968,7 +27812,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); } @@ -26976,11 +27820,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; } @@ -27008,7 +27852,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); } @@ -27016,11 +27860,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; } @@ -27045,6 +27889,7 @@ public class THBaseService { * * @see TCompareOp */ + @org.apache.thrift.annotation.Nullable public TCompareOp getCompareOp() { return this.compareOp; } @@ -27054,7 +27899,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; } @@ -27083,7 +27928,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); } @@ -27092,11 +27937,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; } @@ -27119,6 +27964,7 @@ public class THBaseService { /** * row mutations to execute if the value matches */ + @org.apache.thrift.annotation.Nullable public TRowMutations getRowMutations() { return this.rowMutations; } @@ -27126,7 +27972,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; } @@ -27146,13 +27992,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; @@ -27160,7 +28010,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; @@ -27168,7 +28022,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; @@ -27176,7 +28034,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; @@ -27192,7 +28054,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; @@ -27207,7 +28073,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(); @@ -27231,13 +28098,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) { @@ -27256,11 +28123,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) @@ -27271,6 +28138,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(); @@ -27340,44 +28209,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 @@ -27388,7 +28250,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; } @@ -27398,7 +28260,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; } @@ -27408,7 +28270,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; } @@ -27418,7 +28280,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; } @@ -27428,7 +28290,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; } @@ -27438,7 +28300,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; } @@ -27448,7 +28310,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; } @@ -27461,21 +28323,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:"); @@ -27571,7 +28434,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) { @@ -27579,13 +28442,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; @@ -27710,24 +28573,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); } @@ -27739,7 +28602,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(); @@ -27753,7 +28616,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); @@ -27761,6 +28624,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 { @@ -27769,24 +28635,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); } } @@ -27794,6 +28657,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 @@ -27811,21 +28675,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; } @@ -27834,7 +28699,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -27842,14 +28707,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); } @@ -27899,23 +28764,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; } @@ -27935,13 +28801,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; @@ -27956,7 +28822,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(); @@ -27965,13 +28832,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) { @@ -27980,11 +28847,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) @@ -27995,6 +28862,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; @@ -28019,19 +28888,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 @@ -28042,7 +28907,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; } @@ -28052,7 +28917,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; } @@ -28065,21 +28930,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:"); @@ -28110,7 +28976,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; @@ -28120,13 +28986,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; @@ -28186,18 +29052,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); } @@ -28215,8 +29081,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); @@ -28229,6 +29095,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 getTableDescriptor_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -28236,16 +29105,13 @@ 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.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTableDescriptor_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableDescriptor_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableDescriptor_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableDescriptor_argsTupleSchemeFactory(); /** * the tablename of the table to get tableDescriptor */ - public TTableName table; // required + public @org.apache.thrift.annotation.Nullable TTableName 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 { @@ -28254,10 +29120,10 @@ public class THBaseService { */ 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); } } @@ -28265,6 +29131,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 @@ -28280,21 +29147,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; } @@ -28303,18 +29171,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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableDescriptor_args.class, metaDataMap); } @@ -28349,6 +29217,7 @@ public class THBaseService { /** * the tablename of the table to get tableDescriptor */ + @org.apache.thrift.annotation.Nullable public TTableName getTable() { return this.table; } @@ -28356,7 +29225,7 @@ public class THBaseService { /** * the tablename of the table to get tableDescriptor */ - public getTableDescriptor_args setTable(TTableName table) { + public getTableDescriptor_args setTable(@org.apache.thrift.annotation.Nullable TTableName table) { this.table = table; return this; } @@ -28376,7 +29245,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 TABLE: if (value == null) { @@ -28389,30 +29258,31 @@ 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(); } - 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 getTableDescriptor_args) @@ -28423,6 +29293,8 @@ public class THBaseService { public boolean equals(getTableDescriptor_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(); @@ -28438,14 +29310,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 @@ -28456,7 +29327,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; } @@ -28469,21 +29340,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("getTableDescriptor_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableDescriptor_args("); boolean first = true; sb.append("table:"); @@ -28516,7 +29388,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) { @@ -28524,13 +29396,13 @@ public class THBaseService { } } - private static class getTableDescriptor_argsStandardSchemeFactory implements SchemeFactory { + private static class getTableDescriptor_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptor_argsStandardScheme getScheme() { return new getTableDescriptor_argsStandardScheme(); } } - private static class getTableDescriptor_argsStandardScheme extends StandardScheme { + private static class getTableDescriptor_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableDescriptor_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -28577,29 +29449,32 @@ public class THBaseService { } - private static class getTableDescriptor_argsTupleSchemeFactory implements SchemeFactory { + private static class getTableDescriptor_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptor_argsTupleScheme getScheme() { return new getTableDescriptor_argsTupleScheme(); } } - private static class getTableDescriptor_argsTupleScheme extends TupleScheme { + private static class getTableDescriptor_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableDescriptor_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableDescriptor_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 = new TTableName(); struct.table.read(iprot); 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 getTableDescriptor_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -28608,24 +29483,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 getTableDescriptor_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableDescriptor_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableDescriptor_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableDescriptor_resultTupleSchemeFactory(); - public TTableDescriptor success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TTableDescriptor 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); } } @@ -28633,6 +29505,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 @@ -28650,21 +29523,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; } @@ -28673,20 +29547,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, TTableDescriptor.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(getTableDescriptor_result.class, metaDataMap); } @@ -28724,11 +29598,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TTableDescriptor getSuccess() { return this.success; } - public getTableDescriptor_result setSuccess(TTableDescriptor success) { + public getTableDescriptor_result setSuccess(@org.apache.thrift.annotation.Nullable TTableDescriptor success) { this.success = success; return this; } @@ -28748,11 +29623,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getTableDescriptor_result setIo(TIOError io) { + public getTableDescriptor_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -28772,7 +29648,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) { @@ -28793,7 +29669,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(); @@ -28802,13 +29679,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) { @@ -28817,11 +29694,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 getTableDescriptor_result) @@ -28832,6 +29709,8 @@ public class THBaseService { public boolean equals(getTableDescriptor_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(); @@ -28856,19 +29735,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 @@ -28879,7 +29756,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; } @@ -28889,7 +29766,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; } @@ -28902,21 +29779,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("getTableDescriptor_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableDescriptor_result("); boolean first = true; sb.append("success:"); @@ -28954,7 +29832,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) { @@ -28962,13 +29840,13 @@ public class THBaseService { } } - private static class getTableDescriptor_resultStandardSchemeFactory implements SchemeFactory { + private static class getTableDescriptor_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptor_resultStandardScheme getScheme() { return new getTableDescriptor_resultStandardScheme(); } } - private static class getTableDescriptor_resultStandardScheme extends StandardScheme { + private static class getTableDescriptor_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableDescriptor_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -29029,18 +29907,18 @@ public class THBaseService { } - private static class getTableDescriptor_resultTupleSchemeFactory implements SchemeFactory { + private static class getTableDescriptor_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptor_resultTupleScheme getScheme() { return new getTableDescriptor_resultTupleScheme(); } } - private static class getTableDescriptor_resultTupleScheme extends TupleScheme { + private static class getTableDescriptor_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableDescriptor_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); } @@ -29058,8 +29936,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableDescriptor_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 TTableDescriptor(); struct.success.read(iprot); @@ -29073,6 +29951,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 getTableDescriptors_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -29080,16 +29961,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("tables", org.apache.thrift.protocol.TType.LIST, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTableDescriptors_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableDescriptors_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableDescriptors_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableDescriptors_argsTupleSchemeFactory(); /** * the tablename list of the tables to get tableDescriptor */ - public List tables; // required + public @org.apache.thrift.annotation.Nullable java.util.List tables; // 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 { @@ -29098,10 +29976,10 @@ public class THBaseService { */ TABLES((short)1, "tables"); - 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); } } @@ -29109,6 +29987,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: // TABLES @@ -29124,21 +30003,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; } @@ -29147,19 +30027,19 @@ 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.TABLES, new org.apache.thrift.meta_data.FieldMetaData("tables", 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, TTableName.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableDescriptors_args.class, metaDataMap); } @@ -29167,7 +30047,7 @@ public class THBaseService { } public getTableDescriptors_args( - List tables) + java.util.List tables) { this(); this.tables = tables; @@ -29178,7 +30058,7 @@ public class THBaseService { */ public getTableDescriptors_args(getTableDescriptors_args other) { if (other.isSetTables()) { - List __this__tables = new ArrayList(other.tables.size()); + java.util.List __this__tables = new java.util.ArrayList(other.tables.size()); for (TTableName other_element : other.tables) { __this__tables.add(new TTableName(other_element)); } @@ -29199,13 +30079,14 @@ public class THBaseService { return (this.tables == null) ? 0 : this.tables.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getTablesIterator() { return (this.tables == null) ? null : this.tables.iterator(); } public void addToTables(TTableName elem) { if (this.tables == null) { - this.tables = new ArrayList(); + this.tables = new java.util.ArrayList(); } this.tables.add(elem); } @@ -29213,14 +30094,15 @@ public class THBaseService { /** * the tablename list of the tables to get tableDescriptor */ - public List getTables() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTables() { return this.tables; } /** * the tablename list of the tables to get tableDescriptor */ - public getTableDescriptors_args setTables(List tables) { + public getTableDescriptors_args setTables(@org.apache.thrift.annotation.Nullable java.util.List tables) { this.tables = tables; return this; } @@ -29240,43 +30122,44 @@ 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 TABLES: if (value == null) { unsetTables(); } else { - setTables((List)value); + setTables((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 TABLES: return getTables(); } - 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 TABLES: return isSetTables(); } - 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 getTableDescriptors_args) @@ -29287,6 +30170,8 @@ public class THBaseService { public boolean equals(getTableDescriptors_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_tables = true && this.isSetTables(); boolean that_present_tables = true && that.isSetTables(); @@ -29302,14 +30187,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_tables = true && (isSetTables()); - list.add(present_tables); - if (present_tables) - list.add(tables); + hashCode = hashCode * 8191 + ((isSetTables()) ? 131071 : 524287); + if (isSetTables()) + hashCode = hashCode * 8191 + tables.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -29320,7 +30204,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTables()).compareTo(other.isSetTables()); + lastComparison = java.lang.Boolean.valueOf(isSetTables()).compareTo(other.isSetTables()); if (lastComparison != 0) { return lastComparison; } @@ -29333,21 +30217,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("getTableDescriptors_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableDescriptors_args("); boolean first = true; sb.append("tables:"); @@ -29377,7 +30262,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) { @@ -29385,13 +30270,13 @@ public class THBaseService { } } - private static class getTableDescriptors_argsStandardSchemeFactory implements SchemeFactory { + private static class getTableDescriptors_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptors_argsStandardScheme getScheme() { return new getTableDescriptors_argsStandardScheme(); } } - private static class getTableDescriptors_argsStandardScheme extends StandardScheme { + private static class getTableDescriptors_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableDescriptors_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -29407,8 +30292,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list270 = iprot.readListBegin(); - struct.tables = new ArrayList(_list270.size); - TTableName _elem271; + struct.tables = new java.util.ArrayList(_list270.size); + @org.apache.thrift.annotation.Nullable TTableName _elem271; for (int _i272 = 0; _i272 < _list270.size; ++_i272) { _elem271 = new TTableName(); @@ -29455,17 +30340,17 @@ public class THBaseService { } - private static class getTableDescriptors_argsTupleSchemeFactory implements SchemeFactory { + private static class getTableDescriptors_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptors_argsTupleScheme getScheme() { return new getTableDescriptors_argsTupleScheme(); } } - private static class getTableDescriptors_argsTupleScheme extends TupleScheme { + private static class getTableDescriptors_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableDescriptors_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.tables.size()); for (TTableName _iter274 : struct.tables) @@ -29477,11 +30362,11 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableDescriptors_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList(_list275.size); - TTableName _elem276; + struct.tables = new java.util.ArrayList(_list275.size); + @org.apache.thrift.annotation.Nullable TTableName _elem276; for (int _i277 = 0; _i277 < _list275.size; ++_i277) { _elem276 = new TTableName(); @@ -29493,6 +30378,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 getTableDescriptors_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -29501,24 +30389,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 getTableDescriptors_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableDescriptors_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableDescriptors_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableDescriptors_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); } } @@ -29526,6 +30411,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 @@ -29543,21 +30429,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; } @@ -29566,21 +30453,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, TTableDescriptor.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(getTableDescriptors_result.class, metaDataMap); } @@ -29588,7 +30475,7 @@ public class THBaseService { } public getTableDescriptors_result( - List success, + java.util.List success, TIOError io) { this(); @@ -29601,7 +30488,7 @@ public class THBaseService { */ public getTableDescriptors_result(getTableDescriptors_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 (TTableDescriptor other_element : other.success) { __this__success.add(new TTableDescriptor(other_element)); } @@ -29626,22 +30513,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(TTableDescriptor 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 getTableDescriptors_result setSuccess(List success) { + public getTableDescriptors_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -29661,11 +30550,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getTableDescriptors_result setIo(TIOError io) { + public getTableDescriptors_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -29685,13 +30575,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; @@ -29706,7 +30596,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(); @@ -29715,13 +30606,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) { @@ -29730,11 +30621,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 getTableDescriptors_result) @@ -29745,6 +30636,8 @@ public class THBaseService { public boolean equals(getTableDescriptors_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(); @@ -29769,19 +30662,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 @@ -29792,7 +30683,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; } @@ -29802,7 +30693,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; } @@ -29815,21 +30706,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("getTableDescriptors_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableDescriptors_result("); boolean first = true; sb.append("success:"); @@ -29864,7 +30756,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) { @@ -29872,13 +30764,13 @@ public class THBaseService { } } - private static class getTableDescriptors_resultStandardSchemeFactory implements SchemeFactory { + private static class getTableDescriptors_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptors_resultStandardScheme getScheme() { return new getTableDescriptors_resultStandardScheme(); } } - private static class getTableDescriptors_resultStandardScheme extends StandardScheme { + private static class getTableDescriptors_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableDescriptors_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -29894,8 +30786,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(); - struct.success = new ArrayList(_list278.size); - TTableDescriptor _elem279; + struct.success = new java.util.ArrayList(_list278.size); + @org.apache.thrift.annotation.Nullable TTableDescriptor _elem279; for (int _i280 = 0; _i280 < _list278.size; ++_i280) { _elem279 = new TTableDescriptor(); @@ -29956,18 +30848,18 @@ public class THBaseService { } - private static class getTableDescriptors_resultTupleSchemeFactory implements SchemeFactory { + private static class getTableDescriptors_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptors_resultTupleScheme getScheme() { return new getTableDescriptors_resultTupleScheme(); } } - private static class getTableDescriptors_resultTupleScheme extends TupleScheme { + private static class getTableDescriptors_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableDescriptors_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); } @@ -29991,13 +30883,13 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableDescriptors_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); - TTableDescriptor _elem284; + struct.success = new java.util.ArrayList(_list283.size); + @org.apache.thrift.annotation.Nullable TTableDescriptor _elem284; for (int _i285 = 0; _i285 < _list283.size; ++_i285) { _elem284 = new TTableDescriptor(); @@ -30015,6 +30907,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 tableExists_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -30022,16 +30917,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new tableExists_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new tableExists_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new tableExists_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new tableExists_argsTupleSchemeFactory(); /** * the tablename of the tables to check */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName 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 { @@ -30040,10 +30932,10 @@ public class THBaseService { */ 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); } } @@ -30051,6 +30943,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_NAME @@ -30066,21 +30959,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; } @@ -30089,18 +30983,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(tableExists_args.class, metaDataMap); } @@ -30135,6 +31029,7 @@ public class THBaseService { /** * the tablename of the tables to check */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -30142,7 +31037,7 @@ public class THBaseService { /** * the tablename of the tables to check */ - public tableExists_args setTableName(TTableName tableName) { + public tableExists_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -30162,7 +31057,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 TABLE_NAME: if (value == null) { @@ -30175,30 +31070,31 @@ public class THBaseService { } } - 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 tableExists_args) @@ -30209,6 +31105,8 @@ public class THBaseService { public boolean equals(tableExists_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(); @@ -30224,14 +31122,13 @@ public class THBaseService { @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 @@ -30242,7 +31139,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -30255,21 +31152,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("tableExists_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("tableExists_args("); boolean first = true; sb.append("tableName:"); @@ -30299,7 +31197,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) { @@ -30307,13 +31205,13 @@ public class THBaseService { } } - private static class tableExists_argsStandardSchemeFactory implements SchemeFactory { + private static class tableExists_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public tableExists_argsStandardScheme getScheme() { return new tableExists_argsStandardScheme(); } } - private static class tableExists_argsStandardScheme extends StandardScheme { + private static class tableExists_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, tableExists_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -30360,18 +31258,18 @@ public class THBaseService { } - private static class tableExists_argsTupleSchemeFactory implements SchemeFactory { + private static class tableExists_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public tableExists_argsTupleScheme getScheme() { return new tableExists_argsTupleScheme(); } } - private static class tableExists_argsTupleScheme extends TupleScheme { + private static class tableExists_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, tableExists_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); } @@ -30383,8 +31281,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, tableExists_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 = new TTableName(); struct.tableName.read(iprot); @@ -30393,6 +31291,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 tableExists_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -30401,24 +31302,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 tableExists_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new tableExists_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new tableExists_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new tableExists_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); } } @@ -30426,6 +31324,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 @@ -30443,21 +31342,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; } @@ -30466,7 +31366,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -30474,14 +31374,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(tableExists_result.class, metaDataMap); } @@ -30531,23 +31431,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 tableExists_result setIo(TIOError io) { + public tableExists_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -30567,13 +31468,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; @@ -30588,7 +31489,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(); @@ -30597,13 +31499,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) { @@ -30612,11 +31514,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 tableExists_result) @@ -30627,6 +31529,8 @@ public class THBaseService { public boolean equals(tableExists_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -30651,19 +31555,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 @@ -30674,7 +31574,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; } @@ -30684,7 +31584,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; } @@ -30697,21 +31597,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("tableExists_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("tableExists_result("); boolean first = true; sb.append("success:"); @@ -30742,7 +31643,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; @@ -30752,13 +31653,13 @@ public class THBaseService { } } - private static class tableExists_resultStandardSchemeFactory implements SchemeFactory { + private static class tableExists_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public tableExists_resultStandardScheme getScheme() { return new tableExists_resultStandardScheme(); } } - private static class tableExists_resultStandardScheme extends StandardScheme { + private static class tableExists_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, tableExists_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -30818,18 +31719,18 @@ public class THBaseService { } - private static class tableExists_resultTupleSchemeFactory implements SchemeFactory { + private static class tableExists_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public tableExists_resultTupleScheme getScheme() { return new tableExists_resultTupleScheme(); } } - private static class tableExists_resultTupleScheme extends TupleScheme { + private static class tableExists_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, tableExists_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); } @@ -30847,8 +31748,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, tableExists_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); @@ -30861,6 +31762,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 getTableDescriptorsByPattern_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -30869,16 +31773,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField REGEX_FIELD_DESC = new org.apache.thrift.protocol.TField("regex", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField INCLUDE_SYS_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("includeSysTables", org.apache.thrift.protocol.TType.BOOL, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTableDescriptorsByPattern_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableDescriptorsByPattern_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableDescriptorsByPattern_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableDescriptorsByPattern_argsTupleSchemeFactory(); /** * The regular expression to match against */ - public String regex; // required + public @org.apache.thrift.annotation.Nullable java.lang.String regex; // required /** * set to false if match only against userspace tables */ @@ -30895,10 +31796,10 @@ public class THBaseService { */ INCLUDE_SYS_TABLES((short)2, "includeSysTables"); - 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); } } @@ -30906,6 +31807,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: // REGEX @@ -30923,21 +31825,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; } @@ -30946,7 +31849,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -30954,14 +31857,14 @@ public class THBaseService { // isset id assignments private static final int __INCLUDESYSTABLES_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.REGEX, new org.apache.thrift.meta_data.FieldMetaData("regex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.INCLUDE_SYS_TABLES, new org.apache.thrift.meta_data.FieldMetaData("includeSysTables", org.apache.thrift.TFieldRequirementType.REQUIRED, 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(getTableDescriptorsByPattern_args.class, metaDataMap); } @@ -30969,7 +31872,7 @@ public class THBaseService { } public getTableDescriptorsByPattern_args( - String regex, + java.lang.String regex, boolean includeSysTables) { this(); @@ -31003,14 +31906,15 @@ public class THBaseService { /** * The regular expression to match against */ - public String getRegex() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getRegex() { return this.regex; } /** * The regular expression to match against */ - public getTableDescriptorsByPattern_args setRegex(String regex) { + public getTableDescriptorsByPattern_args setRegex(@org.apache.thrift.annotation.Nullable java.lang.String regex) { this.regex = regex; return this; } @@ -31047,25 +31951,25 @@ public class THBaseService { } public void unsetIncludeSysTables() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID); } /** Returns true if field includeSysTables is set (has been assigned a value) and false otherwise */ public boolean isSetIncludeSysTables() { - return EncodingUtils.testBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID); } public void setIncludeSysTablesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __INCLUDESYSTABLES_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 REGEX: if (value == null) { unsetRegex(); } else { - setRegex((String)value); + setRegex((java.lang.String)value); } break; @@ -31073,14 +31977,15 @@ public class THBaseService { if (value == null) { unsetIncludeSysTables(); } else { - setIncludeSysTables((Boolean)value); + setIncludeSysTables((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 REGEX: return getRegex(); @@ -31089,13 +31994,13 @@ public class THBaseService { return isIncludeSysTables(); } - 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) { @@ -31104,11 +32009,11 @@ public class THBaseService { case INCLUDE_SYS_TABLES: return isSetIncludeSysTables(); } - 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 getTableDescriptorsByPattern_args) @@ -31119,6 +32024,8 @@ public class THBaseService { public boolean equals(getTableDescriptorsByPattern_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_regex = true && this.isSetRegex(); boolean that_present_regex = true && that.isSetRegex(); @@ -31143,19 +32050,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_regex = true && (isSetRegex()); - list.add(present_regex); - if (present_regex) - list.add(regex); + hashCode = hashCode * 8191 + ((isSetRegex()) ? 131071 : 524287); + if (isSetRegex()) + hashCode = hashCode * 8191 + regex.hashCode(); - boolean present_includeSysTables = true; - list.add(present_includeSysTables); - if (present_includeSysTables) - list.add(includeSysTables); + hashCode = hashCode * 8191 + ((includeSysTables) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -31166,7 +32069,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRegex()).compareTo(other.isSetRegex()); + lastComparison = java.lang.Boolean.valueOf(isSetRegex()).compareTo(other.isSetRegex()); if (lastComparison != 0) { return lastComparison; } @@ -31176,7 +32079,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIncludeSysTables()).compareTo(other.isSetIncludeSysTables()); + lastComparison = java.lang.Boolean.valueOf(isSetIncludeSysTables()).compareTo(other.isSetIncludeSysTables()); if (lastComparison != 0) { return lastComparison; } @@ -31189,21 +32092,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("getTableDescriptorsByPattern_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableDescriptorsByPattern_args("); boolean first = true; sb.append("regex:"); @@ -31235,7 +32139,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; @@ -31245,13 +32149,13 @@ public class THBaseService { } } - private static class getTableDescriptorsByPattern_argsStandardSchemeFactory implements SchemeFactory { + private static class getTableDescriptorsByPattern_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptorsByPattern_argsStandardScheme getScheme() { return new getTableDescriptorsByPattern_argsStandardScheme(); } } - private static class getTableDescriptorsByPattern_argsStandardScheme extends StandardScheme { + private static class getTableDescriptorsByPattern_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableDescriptorsByPattern_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -31311,19 +32215,19 @@ public class THBaseService { } - private static class getTableDescriptorsByPattern_argsTupleSchemeFactory implements SchemeFactory { + private static class getTableDescriptorsByPattern_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptorsByPattern_argsTupleScheme getScheme() { return new getTableDescriptorsByPattern_argsTupleScheme(); } } - private static class getTableDescriptorsByPattern_argsTupleScheme extends TupleScheme { + private static class getTableDescriptorsByPattern_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableDescriptorsByPattern_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBool(struct.includeSysTables); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetRegex()) { optionals.set(0); } @@ -31335,10 +32239,10 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableDescriptorsByPattern_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.includeSysTables = iprot.readBool(); struct.setIncludeSysTablesIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.regex = iprot.readString(); struct.setRegexIsSet(true); @@ -31346,6 +32250,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 getTableDescriptorsByPattern_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -31354,24 +32261,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 getTableDescriptorsByPattern_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableDescriptorsByPattern_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableDescriptorsByPattern_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableDescriptorsByPattern_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); } } @@ -31379,6 +32283,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 @@ -31396,21 +32301,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; } @@ -31419,21 +32325,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, TTableDescriptor.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(getTableDescriptorsByPattern_result.class, metaDataMap); } @@ -31441,7 +32347,7 @@ public class THBaseService { } public getTableDescriptorsByPattern_result( - List success, + java.util.List success, TIOError io) { this(); @@ -31454,7 +32360,7 @@ public class THBaseService { */ public getTableDescriptorsByPattern_result(getTableDescriptorsByPattern_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 (TTableDescriptor other_element : other.success) { __this__success.add(new TTableDescriptor(other_element)); } @@ -31479,22 +32385,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(TTableDescriptor 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 getTableDescriptorsByPattern_result setSuccess(List success) { + public getTableDescriptorsByPattern_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -31514,11 +32422,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getTableDescriptorsByPattern_result setIo(TIOError io) { + public getTableDescriptorsByPattern_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -31538,13 +32447,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; @@ -31559,7 +32468,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(); @@ -31568,13 +32478,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) { @@ -31583,11 +32493,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 getTableDescriptorsByPattern_result) @@ -31598,6 +32508,8 @@ public class THBaseService { public boolean equals(getTableDescriptorsByPattern_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(); @@ -31622,19 +32534,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 @@ -31645,7 +32555,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; } @@ -31655,7 +32565,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; } @@ -31668,21 +32578,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("getTableDescriptorsByPattern_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableDescriptorsByPattern_result("); boolean first = true; sb.append("success:"); @@ -31717,7 +32628,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) { @@ -31725,13 +32636,13 @@ public class THBaseService { } } - private static class getTableDescriptorsByPattern_resultStandardSchemeFactory implements SchemeFactory { + private static class getTableDescriptorsByPattern_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptorsByPattern_resultStandardScheme getScheme() { return new getTableDescriptorsByPattern_resultStandardScheme(); } } - private static class getTableDescriptorsByPattern_resultStandardScheme extends StandardScheme { + private static class getTableDescriptorsByPattern_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableDescriptorsByPattern_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -31747,8 +32658,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list286 = iprot.readListBegin(); - struct.success = new ArrayList(_list286.size); - TTableDescriptor _elem287; + struct.success = new java.util.ArrayList(_list286.size); + @org.apache.thrift.annotation.Nullable TTableDescriptor _elem287; for (int _i288 = 0; _i288 < _list286.size; ++_i288) { _elem287 = new TTableDescriptor(); @@ -31809,18 +32720,18 @@ public class THBaseService { } - private static class getTableDescriptorsByPattern_resultTupleSchemeFactory implements SchemeFactory { + private static class getTableDescriptorsByPattern_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptorsByPattern_resultTupleScheme getScheme() { return new getTableDescriptorsByPattern_resultTupleScheme(); } } - private static class getTableDescriptorsByPattern_resultTupleScheme extends TupleScheme { + private static class getTableDescriptorsByPattern_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableDescriptorsByPattern_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); } @@ -31844,13 +32755,13 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableDescriptorsByPattern_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 _list291 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list291.size); - TTableDescriptor _elem292; + struct.success = new java.util.ArrayList(_list291.size); + @org.apache.thrift.annotation.Nullable TTableDescriptor _elem292; for (int _i293 = 0; _i293 < _list291.size; ++_i293) { _elem292 = new TTableDescriptor(); @@ -31868,6 +32779,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 getTableDescriptorsByNamespace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -31875,16 +32789,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTableDescriptorsByNamespace_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableDescriptorsByNamespace_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableDescriptorsByNamespace_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableDescriptorsByNamespace_argsTupleSchemeFactory(); /** * The namesapce's name */ - public String name; // required + public @org.apache.thrift.annotation.Nullable java.lang.String name; // 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 { @@ -31893,10 +32804,10 @@ public class THBaseService { */ NAME((short)1, "name"); - 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); } } @@ -31904,6 +32815,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: // NAME @@ -31919,21 +32831,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; } @@ -31942,18 +32855,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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 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(getTableDescriptorsByNamespace_args.class, metaDataMap); } @@ -31961,7 +32874,7 @@ public class THBaseService { } public getTableDescriptorsByNamespace_args( - String name) + java.lang.String name) { this(); this.name = name; @@ -31988,14 +32901,15 @@ public class THBaseService { /** * The namesapce's name */ - public String getName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getName() { return this.name; } /** * The namesapce's name */ - public getTableDescriptorsByNamespace_args setName(String name) { + public getTableDescriptorsByNamespace_args setName(@org.apache.thrift.annotation.Nullable java.lang.String name) { this.name = name; return this; } @@ -32015,43 +32929,44 @@ 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 NAME: if (value == null) { unsetName(); } else { - setName((String)value); + setName((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 NAME: return getName(); } - 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 NAME: return isSetName(); } - 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 getTableDescriptorsByNamespace_args) @@ -32062,6 +32977,8 @@ public class THBaseService { public boolean equals(getTableDescriptorsByNamespace_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); @@ -32077,14 +32994,13 @@ public class THBaseService { @Override public int hashCode() { - List 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(); - return list.hashCode(); + return hashCode; } @Override @@ -32095,7 +33011,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } @@ -32108,21 +33024,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("getTableDescriptorsByNamespace_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableDescriptorsByNamespace_args("); boolean first = true; sb.append("name:"); @@ -32152,7 +33069,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) { @@ -32160,13 +33077,13 @@ public class THBaseService { } } - private static class getTableDescriptorsByNamespace_argsStandardSchemeFactory implements SchemeFactory { + private static class getTableDescriptorsByNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptorsByNamespace_argsStandardScheme getScheme() { return new getTableDescriptorsByNamespace_argsStandardScheme(); } } - private static class getTableDescriptorsByNamespace_argsStandardScheme extends StandardScheme { + private static class getTableDescriptorsByNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableDescriptorsByNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -32212,28 +33129,31 @@ public class THBaseService { } - private static class getTableDescriptorsByNamespace_argsTupleSchemeFactory implements SchemeFactory { + private static class getTableDescriptorsByNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptorsByNamespace_argsTupleScheme getScheme() { return new getTableDescriptorsByNamespace_argsTupleScheme(); } } - private static class getTableDescriptorsByNamespace_argsTupleScheme extends TupleScheme { + private static class getTableDescriptorsByNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableDescriptorsByNamespace_args 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.name); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableDescriptorsByNamespace_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(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 getTableDescriptorsByNamespace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -32242,24 +33162,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 getTableDescriptorsByNamespace_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableDescriptorsByNamespace_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableDescriptorsByNamespace_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableDescriptorsByNamespace_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); } } @@ -32267,6 +33184,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 @@ -32284,21 +33202,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; } @@ -32307,21 +33226,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, TTableDescriptor.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(getTableDescriptorsByNamespace_result.class, metaDataMap); } @@ -32329,7 +33248,7 @@ public class THBaseService { } public getTableDescriptorsByNamespace_result( - List success, + java.util.List success, TIOError io) { this(); @@ -32342,7 +33261,7 @@ public class THBaseService { */ public getTableDescriptorsByNamespace_result(getTableDescriptorsByNamespace_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 (TTableDescriptor other_element : other.success) { __this__success.add(new TTableDescriptor(other_element)); } @@ -32367,22 +33286,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(TTableDescriptor 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 getTableDescriptorsByNamespace_result setSuccess(List success) { + public getTableDescriptorsByNamespace_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -32402,11 +33323,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getTableDescriptorsByNamespace_result setIo(TIOError io) { + public getTableDescriptorsByNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -32426,13 +33348,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; @@ -32447,7 +33369,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(); @@ -32456,13 +33379,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) { @@ -32471,11 +33394,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 getTableDescriptorsByNamespace_result) @@ -32486,6 +33409,8 @@ public class THBaseService { public boolean equals(getTableDescriptorsByNamespace_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(); @@ -32510,19 +33435,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 @@ -32533,7 +33456,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; } @@ -32543,7 +33466,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; } @@ -32556,21 +33479,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("getTableDescriptorsByNamespace_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableDescriptorsByNamespace_result("); boolean first = true; sb.append("success:"); @@ -32605,7 +33529,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) { @@ -32613,13 +33537,13 @@ public class THBaseService { } } - private static class getTableDescriptorsByNamespace_resultStandardSchemeFactory implements SchemeFactory { + private static class getTableDescriptorsByNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptorsByNamespace_resultStandardScheme getScheme() { return new getTableDescriptorsByNamespace_resultStandardScheme(); } } - private static class getTableDescriptorsByNamespace_resultStandardScheme extends StandardScheme { + private static class getTableDescriptorsByNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableDescriptorsByNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -32635,8 +33559,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list294 = iprot.readListBegin(); - struct.success = new ArrayList(_list294.size); - TTableDescriptor _elem295; + struct.success = new java.util.ArrayList(_list294.size); + @org.apache.thrift.annotation.Nullable TTableDescriptor _elem295; for (int _i296 = 0; _i296 < _list294.size; ++_i296) { _elem295 = new TTableDescriptor(); @@ -32697,18 +33621,18 @@ public class THBaseService { } - private static class getTableDescriptorsByNamespace_resultTupleSchemeFactory implements SchemeFactory { + private static class getTableDescriptorsByNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableDescriptorsByNamespace_resultTupleScheme getScheme() { return new getTableDescriptorsByNamespace_resultTupleScheme(); } } - private static class getTableDescriptorsByNamespace_resultTupleScheme extends TupleScheme { + private static class getTableDescriptorsByNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableDescriptorsByNamespace_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); } @@ -32732,13 +33656,13 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableDescriptorsByNamespace_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 _list299 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list299.size); - TTableDescriptor _elem300; + struct.success = new java.util.ArrayList(_list299.size); + @org.apache.thrift.annotation.Nullable TTableDescriptor _elem300; for (int _i301 = 0; _i301 < _list299.size; ++_i301) { _elem300 = new TTableDescriptor(); @@ -32756,6 +33680,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 getTableNamesByPattern_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -32764,16 +33691,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField REGEX_FIELD_DESC = new org.apache.thrift.protocol.TField("regex", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField INCLUDE_SYS_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("includeSysTables", org.apache.thrift.protocol.TType.BOOL, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTableNamesByPattern_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableNamesByPattern_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableNamesByPattern_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableNamesByPattern_argsTupleSchemeFactory(); /** * The regular expression to match against */ - public String regex; // required + public @org.apache.thrift.annotation.Nullable java.lang.String regex; // required /** * set to false if match only against userspace tables */ @@ -32790,10 +33714,10 @@ public class THBaseService { */ INCLUDE_SYS_TABLES((short)2, "includeSysTables"); - 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); } } @@ -32801,6 +33725,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: // REGEX @@ -32818,21 +33743,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; } @@ -32841,7 +33767,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -32849,14 +33775,14 @@ public class THBaseService { // isset id assignments private static final int __INCLUDESYSTABLES_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.REGEX, new org.apache.thrift.meta_data.FieldMetaData("regex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.INCLUDE_SYS_TABLES, new org.apache.thrift.meta_data.FieldMetaData("includeSysTables", org.apache.thrift.TFieldRequirementType.REQUIRED, 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(getTableNamesByPattern_args.class, metaDataMap); } @@ -32864,7 +33790,7 @@ public class THBaseService { } public getTableNamesByPattern_args( - String regex, + java.lang.String regex, boolean includeSysTables) { this(); @@ -32898,14 +33824,15 @@ public class THBaseService { /** * The regular expression to match against */ - public String getRegex() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getRegex() { return this.regex; } /** * The regular expression to match against */ - public getTableNamesByPattern_args setRegex(String regex) { + public getTableNamesByPattern_args setRegex(@org.apache.thrift.annotation.Nullable java.lang.String regex) { this.regex = regex; return this; } @@ -32942,25 +33869,25 @@ public class THBaseService { } public void unsetIncludeSysTables() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID); } /** Returns true if field includeSysTables is set (has been assigned a value) and false otherwise */ public boolean isSetIncludeSysTables() { - return EncodingUtils.testBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID); } public void setIncludeSysTablesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INCLUDESYSTABLES_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __INCLUDESYSTABLES_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 REGEX: if (value == null) { unsetRegex(); } else { - setRegex((String)value); + setRegex((java.lang.String)value); } break; @@ -32968,14 +33895,15 @@ public class THBaseService { if (value == null) { unsetIncludeSysTables(); } else { - setIncludeSysTables((Boolean)value); + setIncludeSysTables((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 REGEX: return getRegex(); @@ -32984,13 +33912,13 @@ public class THBaseService { return isIncludeSysTables(); } - 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) { @@ -32999,11 +33927,11 @@ public class THBaseService { case INCLUDE_SYS_TABLES: return isSetIncludeSysTables(); } - 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 getTableNamesByPattern_args) @@ -33014,6 +33942,8 @@ public class THBaseService { public boolean equals(getTableNamesByPattern_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_regex = true && this.isSetRegex(); boolean that_present_regex = true && that.isSetRegex(); @@ -33038,19 +33968,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_regex = true && (isSetRegex()); - list.add(present_regex); - if (present_regex) - list.add(regex); + hashCode = hashCode * 8191 + ((isSetRegex()) ? 131071 : 524287); + if (isSetRegex()) + hashCode = hashCode * 8191 + regex.hashCode(); - boolean present_includeSysTables = true; - list.add(present_includeSysTables); - if (present_includeSysTables) - list.add(includeSysTables); + hashCode = hashCode * 8191 + ((includeSysTables) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -33061,7 +33987,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRegex()).compareTo(other.isSetRegex()); + lastComparison = java.lang.Boolean.valueOf(isSetRegex()).compareTo(other.isSetRegex()); if (lastComparison != 0) { return lastComparison; } @@ -33071,7 +33997,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIncludeSysTables()).compareTo(other.isSetIncludeSysTables()); + lastComparison = java.lang.Boolean.valueOf(isSetIncludeSysTables()).compareTo(other.isSetIncludeSysTables()); if (lastComparison != 0) { return lastComparison; } @@ -33084,21 +34010,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("getTableNamesByPattern_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableNamesByPattern_args("); boolean first = true; sb.append("regex:"); @@ -33130,7 +34057,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; @@ -33140,13 +34067,13 @@ public class THBaseService { } } - private static class getTableNamesByPattern_argsStandardSchemeFactory implements SchemeFactory { + private static class getTableNamesByPattern_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNamesByPattern_argsStandardScheme getScheme() { return new getTableNamesByPattern_argsStandardScheme(); } } - private static class getTableNamesByPattern_argsStandardScheme extends StandardScheme { + private static class getTableNamesByPattern_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNamesByPattern_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -33206,19 +34133,19 @@ public class THBaseService { } - private static class getTableNamesByPattern_argsTupleSchemeFactory implements SchemeFactory { + private static class getTableNamesByPattern_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNamesByPattern_argsTupleScheme getScheme() { return new getTableNamesByPattern_argsTupleScheme(); } } - private static class getTableNamesByPattern_argsTupleScheme extends TupleScheme { + private static class getTableNamesByPattern_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableNamesByPattern_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBool(struct.includeSysTables); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetRegex()) { optionals.set(0); } @@ -33230,10 +34157,10 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableNamesByPattern_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.includeSysTables = iprot.readBool(); struct.setIncludeSysTablesIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.regex = iprot.readString(); struct.setRegexIsSet(true); @@ -33241,6 +34168,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 getTableNamesByPattern_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -33249,24 +34179,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 getTableNamesByPattern_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableNamesByPattern_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableNamesByPattern_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableNamesByPattern_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); } } @@ -33274,6 +34201,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 @@ -33291,21 +34219,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; } @@ -33314,21 +34243,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, TTableName.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(getTableNamesByPattern_result.class, metaDataMap); } @@ -33336,7 +34265,7 @@ public class THBaseService { } public getTableNamesByPattern_result( - List success, + java.util.List success, TIOError io) { this(); @@ -33349,7 +34278,7 @@ public class THBaseService { */ public getTableNamesByPattern_result(getTableNamesByPattern_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 (TTableName other_element : other.success) { __this__success.add(new TTableName(other_element)); } @@ -33374,22 +34303,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(TTableName 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 getTableNamesByPattern_result setSuccess(List success) { + public getTableNamesByPattern_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -33409,11 +34340,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getTableNamesByPattern_result setIo(TIOError io) { + public getTableNamesByPattern_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -33433,13 +34365,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; @@ -33454,7 +34386,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(); @@ -33463,13 +34396,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) { @@ -33478,11 +34411,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 getTableNamesByPattern_result) @@ -33493,6 +34426,8 @@ public class THBaseService { public boolean equals(getTableNamesByPattern_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(); @@ -33517,19 +34452,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 @@ -33540,7 +34473,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; } @@ -33550,7 +34483,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; } @@ -33563,21 +34496,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("getTableNamesByPattern_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableNamesByPattern_result("); boolean first = true; sb.append("success:"); @@ -33612,7 +34546,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) { @@ -33620,13 +34554,13 @@ public class THBaseService { } } - private static class getTableNamesByPattern_resultStandardSchemeFactory implements SchemeFactory { + private static class getTableNamesByPattern_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNamesByPattern_resultStandardScheme getScheme() { return new getTableNamesByPattern_resultStandardScheme(); } } - private static class getTableNamesByPattern_resultStandardScheme extends StandardScheme { + private static class getTableNamesByPattern_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNamesByPattern_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -33642,8 +34576,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list302 = iprot.readListBegin(); - struct.success = new ArrayList(_list302.size); - TTableName _elem303; + struct.success = new java.util.ArrayList(_list302.size); + @org.apache.thrift.annotation.Nullable TTableName _elem303; for (int _i304 = 0; _i304 < _list302.size; ++_i304) { _elem303 = new TTableName(); @@ -33704,18 +34638,18 @@ public class THBaseService { } - private static class getTableNamesByPattern_resultTupleSchemeFactory implements SchemeFactory { + private static class getTableNamesByPattern_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNamesByPattern_resultTupleScheme getScheme() { return new getTableNamesByPattern_resultTupleScheme(); } } - private static class getTableNamesByPattern_resultTupleScheme extends TupleScheme { + private static class getTableNamesByPattern_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableNamesByPattern_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); } @@ -33739,13 +34673,13 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableNamesByPattern_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 _list307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list307.size); - TTableName _elem308; + struct.success = new java.util.ArrayList(_list307.size); + @org.apache.thrift.annotation.Nullable TTableName _elem308; for (int _i309 = 0; _i309 < _list307.size; ++_i309) { _elem308 = new TTableName(); @@ -33763,6 +34697,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 getTableNamesByNamespace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -33770,16 +34707,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTableNamesByNamespace_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableNamesByNamespace_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableNamesByNamespace_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableNamesByNamespace_argsTupleSchemeFactory(); /** * The namesapce's name */ - public String name; // required + public @org.apache.thrift.annotation.Nullable java.lang.String name; // 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 { @@ -33788,10 +34722,10 @@ public class THBaseService { */ NAME((short)1, "name"); - 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); } } @@ -33799,6 +34733,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: // NAME @@ -33814,21 +34749,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; } @@ -33837,18 +34773,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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 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(getTableNamesByNamespace_args.class, metaDataMap); } @@ -33856,7 +34792,7 @@ public class THBaseService { } public getTableNamesByNamespace_args( - String name) + java.lang.String name) { this(); this.name = name; @@ -33883,14 +34819,15 @@ public class THBaseService { /** * The namesapce's name */ - public String getName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getName() { return this.name; } /** * The namesapce's name */ - public getTableNamesByNamespace_args setName(String name) { + public getTableNamesByNamespace_args setName(@org.apache.thrift.annotation.Nullable java.lang.String name) { this.name = name; return this; } @@ -33910,43 +34847,44 @@ 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 NAME: if (value == null) { unsetName(); } else { - setName((String)value); + setName((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 NAME: return getName(); } - 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 NAME: return isSetName(); } - 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 getTableNamesByNamespace_args) @@ -33957,6 +34895,8 @@ public class THBaseService { public boolean equals(getTableNamesByNamespace_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); @@ -33972,14 +34912,13 @@ public class THBaseService { @Override public int hashCode() { - List 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(); - return list.hashCode(); + return hashCode; } @Override @@ -33990,7 +34929,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } @@ -34003,21 +34942,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("getTableNamesByNamespace_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableNamesByNamespace_args("); boolean first = true; sb.append("name:"); @@ -34047,7 +34987,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) { @@ -34055,13 +34995,13 @@ public class THBaseService { } } - private static class getTableNamesByNamespace_argsStandardSchemeFactory implements SchemeFactory { + private static class getTableNamesByNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNamesByNamespace_argsStandardScheme getScheme() { return new getTableNamesByNamespace_argsStandardScheme(); } } - private static class getTableNamesByNamespace_argsStandardScheme extends StandardScheme { + private static class getTableNamesByNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNamesByNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -34107,28 +35047,31 @@ public class THBaseService { } - private static class getTableNamesByNamespace_argsTupleSchemeFactory implements SchemeFactory { + private static class getTableNamesByNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNamesByNamespace_argsTupleScheme getScheme() { return new getTableNamesByNamespace_argsTupleScheme(); } } - private static class getTableNamesByNamespace_argsTupleScheme extends TupleScheme { + private static class getTableNamesByNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableNamesByNamespace_args 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.name); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableNamesByNamespace_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(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 getTableNamesByNamespace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -34137,24 +35080,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 getTableNamesByNamespace_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTableNamesByNamespace_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTableNamesByNamespace_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTableNamesByNamespace_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); } } @@ -34162,6 +35102,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 @@ -34179,21 +35120,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; } @@ -34202,21 +35144,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, TTableName.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(getTableNamesByNamespace_result.class, metaDataMap); } @@ -34224,7 +35166,7 @@ public class THBaseService { } public getTableNamesByNamespace_result( - List success, + java.util.List success, TIOError io) { this(); @@ -34237,7 +35179,7 @@ public class THBaseService { */ public getTableNamesByNamespace_result(getTableNamesByNamespace_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 (TTableName other_element : other.success) { __this__success.add(new TTableName(other_element)); } @@ -34262,22 +35204,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(TTableName 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 getTableNamesByNamespace_result setSuccess(List success) { + public getTableNamesByNamespace_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -34297,11 +35241,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getTableNamesByNamespace_result setIo(TIOError io) { + public getTableNamesByNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -34321,13 +35266,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; @@ -34342,7 +35287,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(); @@ -34351,13 +35297,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) { @@ -34366,11 +35312,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 getTableNamesByNamespace_result) @@ -34381,6 +35327,8 @@ public class THBaseService { public boolean equals(getTableNamesByNamespace_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(); @@ -34405,19 +35353,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 @@ -34428,7 +35374,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; } @@ -34438,7 +35384,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; } @@ -34451,21 +35397,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("getTableNamesByNamespace_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTableNamesByNamespace_result("); boolean first = true; sb.append("success:"); @@ -34500,7 +35447,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) { @@ -34508,13 +35455,13 @@ public class THBaseService { } } - private static class getTableNamesByNamespace_resultStandardSchemeFactory implements SchemeFactory { + private static class getTableNamesByNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNamesByNamespace_resultStandardScheme getScheme() { return new getTableNamesByNamespace_resultStandardScheme(); } } - private static class getTableNamesByNamespace_resultStandardScheme extends StandardScheme { + private static class getTableNamesByNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNamesByNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -34530,8 +35477,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list310 = iprot.readListBegin(); - struct.success = new ArrayList(_list310.size); - TTableName _elem311; + struct.success = new java.util.ArrayList(_list310.size); + @org.apache.thrift.annotation.Nullable TTableName _elem311; for (int _i312 = 0; _i312 < _list310.size; ++_i312) { _elem311 = new TTableName(); @@ -34592,18 +35539,18 @@ public class THBaseService { } - private static class getTableNamesByNamespace_resultTupleSchemeFactory implements SchemeFactory { + private static class getTableNamesByNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTableNamesByNamespace_resultTupleScheme getScheme() { return new getTableNamesByNamespace_resultTupleScheme(); } } - private static class getTableNamesByNamespace_resultTupleScheme extends TupleScheme { + private static class getTableNamesByNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTableNamesByNamespace_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); } @@ -34627,13 +35574,13 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableNamesByNamespace_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 _list315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list315.size); - TTableName _elem316; + struct.success = new java.util.ArrayList(_list315.size); + @org.apache.thrift.annotation.Nullable TTableName _elem316; for (int _i317 = 0; _i317 < _list315.size; ++_i317) { _elem316 = new TTableName(); @@ -34651,6 +35598,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 createTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -34659,20 +35609,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField SPLIT_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("splitKeys", 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(); /** * table descriptor for table */ - public TTableDescriptor desc; // required + public @org.apache.thrift.annotation.Nullable TTableDescriptor desc; // required /** * rray of split keys for the initial regions of the table */ - public List splitKeys; // required + public @org.apache.thrift.annotation.Nullable java.util.List splitKeys; // 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 { @@ -34685,10 +35632,10 @@ public class THBaseService { */ SPLIT_KEYS((short)2, "splitKeys"); - 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); } } @@ -34696,6 +35643,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: // DESC @@ -34713,21 +35661,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; } @@ -34736,21 +35685,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.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableDescriptor.class))); tmpMap.put(_Fields.SPLIT_KEYS, new org.apache.thrift.meta_data.FieldMetaData("splitKeys", 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 , true)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_args.class, metaDataMap); } @@ -34759,7 +35708,7 @@ public class THBaseService { public createTable_args( TTableDescriptor desc, - List splitKeys) + java.util.List splitKeys) { this(); this.desc = desc; @@ -34774,7 +35723,7 @@ public class THBaseService { this.desc = new TTableDescriptor(other.desc); } if (other.isSetSplitKeys()) { - List __this__splitKeys = new ArrayList(other.splitKeys); + java.util.List __this__splitKeys = new java.util.ArrayList(other.splitKeys); this.splitKeys = __this__splitKeys; } } @@ -34792,6 +35741,7 @@ public class THBaseService { /** * table descriptor for table */ + @org.apache.thrift.annotation.Nullable public TTableDescriptor getDesc() { return this.desc; } @@ -34799,7 +35749,7 @@ public class THBaseService { /** * table descriptor for table */ - public createTable_args setDesc(TTableDescriptor desc) { + public createTable_args setDesc(@org.apache.thrift.annotation.Nullable TTableDescriptor desc) { this.desc = desc; return this; } @@ -34823,13 +35773,14 @@ public class THBaseService { return (this.splitKeys == null) ? 0 : this.splitKeys.size(); } - public java.util.Iterator getSplitKeysIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSplitKeysIterator() { return (this.splitKeys == null) ? null : this.splitKeys.iterator(); } - public void addToSplitKeys(ByteBuffer elem) { + public void addToSplitKeys(java.nio.ByteBuffer elem) { if (this.splitKeys == null) { - this.splitKeys = new ArrayList(); + this.splitKeys = new java.util.ArrayList(); } this.splitKeys.add(elem); } @@ -34837,14 +35788,15 @@ public class THBaseService { /** * rray of split keys for the initial regions of the table */ - public List getSplitKeys() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSplitKeys() { return this.splitKeys; } /** * rray of split keys for the initial regions of the table */ - public createTable_args setSplitKeys(List splitKeys) { + public createTable_args setSplitKeys(@org.apache.thrift.annotation.Nullable java.util.List splitKeys) { this.splitKeys = splitKeys; return this; } @@ -34864,7 +35816,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 DESC: if (value == null) { @@ -34878,14 +35830,15 @@ public class THBaseService { if (value == null) { unsetSplitKeys(); } else { - setSplitKeys((List)value); + setSplitKeys((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 DESC: return getDesc(); @@ -34894,13 +35847,13 @@ public class THBaseService { return getSplitKeys(); } - 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) { @@ -34909,11 +35862,11 @@ public class THBaseService { case SPLIT_KEYS: return isSetSplitKeys(); } - 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) @@ -34924,6 +35877,8 @@ public class THBaseService { public boolean equals(createTable_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_desc = true && this.isSetDesc(); boolean that_present_desc = true && that.isSetDesc(); @@ -34948,19 +35903,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_desc = true && (isSetDesc()); - list.add(present_desc); - if (present_desc) - list.add(desc); + hashCode = hashCode * 8191 + ((isSetDesc()) ? 131071 : 524287); + if (isSetDesc()) + hashCode = hashCode * 8191 + desc.hashCode(); - boolean present_splitKeys = true && (isSetSplitKeys()); - list.add(present_splitKeys); - if (present_splitKeys) - list.add(splitKeys); + hashCode = hashCode * 8191 + ((isSetSplitKeys()) ? 131071 : 524287); + if (isSetSplitKeys()) + hashCode = hashCode * 8191 + splitKeys.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -34971,7 +35924,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + lastComparison = java.lang.Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); if (lastComparison != 0) { return lastComparison; } @@ -34981,7 +35934,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSplitKeys()).compareTo(other.isSetSplitKeys()); + lastComparison = java.lang.Boolean.valueOf(isSetSplitKeys()).compareTo(other.isSetSplitKeys()); if (lastComparison != 0) { return lastComparison; } @@ -34994,21 +35947,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("createTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_args("); boolean first = true; sb.append("desc:"); @@ -35049,7 +36003,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) { @@ -35057,13 +36011,13 @@ public class THBaseService { } } - 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; @@ -35088,8 +36042,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list318 = iprot.readListBegin(); - struct.splitKeys = new ArrayList(_list318.size); - ByteBuffer _elem319; + struct.splitKeys = new java.util.ArrayList(_list318.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem319; for (int _i320 = 0; _i320 < _list318.size; ++_i320) { _elem319 = iprot.readBinary(); @@ -35126,7 +36080,7 @@ public class THBaseService { oprot.writeFieldBegin(SPLIT_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.splitKeys.size())); - for (ByteBuffer _iter321 : struct.splitKeys) + for (java.nio.ByteBuffer _iter321 : struct.splitKeys) { oprot.writeBinary(_iter321); } @@ -35140,19 +36094,19 @@ public class THBaseService { } - 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; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.desc.write(oprot); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSplitKeys()) { optionals.set(0); } @@ -35160,7 +36114,7 @@ public class THBaseService { if (struct.isSetSplitKeys()) { { oprot.writeI32(struct.splitKeys.size()); - for (ByteBuffer _iter322 : struct.splitKeys) + for (java.nio.ByteBuffer _iter322 : struct.splitKeys) { oprot.writeBinary(_iter322); } @@ -35170,16 +36124,16 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.desc = new TTableDescriptor(); struct.desc.read(iprot); struct.setDescIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.splitKeys = new ArrayList(_list323.size); - ByteBuffer _elem324; + struct.splitKeys = new java.util.ArrayList(_list323.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem324; for (int _i325 = 0; _i325 < _list323.size; ++_i325) { _elem324 = iprot.readBinary(); @@ -35191,6 +36145,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 createTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -35198,22 +36155,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 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 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); } } @@ -35221,6 +36175,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 @@ -35236,21 +36191,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; } @@ -35259,18 +36215,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(createTable_result.class, metaDataMap); } @@ -35302,11 +36258,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public createTable_result setIo(TIOError io) { + public createTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -35326,7 +36283,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) { @@ -35339,30 +36296,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 createTable_result) @@ -35373,6 +36331,8 @@ public class THBaseService { 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(); @@ -35388,14 +36348,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 @@ -35406,7 +36365,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; } @@ -35419,21 +36378,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("createTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_result("); boolean first = true; sb.append("io:"); @@ -35460,7 +36420,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) { @@ -35468,13 +36428,13 @@ public class THBaseService { } } - 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; @@ -35521,18 +36481,18 @@ public class THBaseService { } - 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); } @@ -35544,8 +36504,8 @@ public class THBaseService { @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(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); @@ -35554,6 +36514,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 deleteTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -35561,16 +36524,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (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(); /** * the tablename to delete */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName 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 { @@ -35579,10 +36539,10 @@ public class THBaseService { */ 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); } } @@ -35590,6 +36550,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_NAME @@ -35605,21 +36566,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; } @@ -35628,18 +36590,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_args.class, metaDataMap); } @@ -35674,6 +36636,7 @@ public class THBaseService { /** * the tablename to delete */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -35681,7 +36644,7 @@ public class THBaseService { /** * the tablename to delete */ - public deleteTable_args setTableName(TTableName tableName) { + public deleteTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -35701,7 +36664,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 TABLE_NAME: if (value == null) { @@ -35714,30 +36677,31 @@ public class THBaseService { } } - 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) @@ -35748,6 +36712,8 @@ public class THBaseService { 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(); @@ -35763,14 +36729,13 @@ public class THBaseService { @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 @@ -35781,7 +36746,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -35794,21 +36759,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("deleteTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_args("); boolean first = true; sb.append("tableName:"); @@ -35841,7 +36807,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) { @@ -35849,13 +36815,13 @@ public class THBaseService { } } - 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; @@ -35902,29 +36868,32 @@ public class THBaseService { } - 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; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(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 deleteTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -35932,22 +36901,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 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 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); } } @@ -35955,6 +36921,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 @@ -35970,21 +36937,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; } @@ -35993,18 +36961,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(deleteTable_result.class, metaDataMap); } @@ -36036,11 +37004,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public deleteTable_result setIo(TIOError io) { + public deleteTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -36060,7 +37029,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) { @@ -36073,30 +37042,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 deleteTable_result) @@ -36107,6 +37077,8 @@ public class THBaseService { 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(); @@ -36122,14 +37094,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 @@ -36140,7 +37111,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; } @@ -36153,21 +37124,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("deleteTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_result("); boolean first = true; sb.append("io:"); @@ -36194,7 +37166,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) { @@ -36202,13 +37174,13 @@ public class THBaseService { } } - 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; @@ -36255,18 +37227,18 @@ public class THBaseService { } - 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); } @@ -36278,8 +37250,8 @@ public class THBaseService { @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 TIOError(); struct.io.read(iprot); @@ -36288,6 +37260,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 truncateTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -36296,16 +37271,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField PRESERVE_SPLITS_FIELD_DESC = new org.apache.thrift.protocol.TField("preserveSplits", org.apache.thrift.protocol.TType.BOOL, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new truncateTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncateTable_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new truncateTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new truncateTable_argsTupleSchemeFactory(); /** * the tablename to truncate */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName tableName; // required /** * whether to preserve previous splits */ @@ -36322,10 +37294,10 @@ public class THBaseService { */ PRESERVE_SPLITS((short)2, "preserveSplits"); - 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); } } @@ -36333,6 +37305,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_NAME @@ -36350,21 +37323,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; } @@ -36373,7 +37347,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -36381,14 +37355,14 @@ public class THBaseService { // isset id assignments private static final int __PRESERVESPLITS_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.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); tmpMap.put(_Fields.PRESERVE_SPLITS, new org.apache.thrift.meta_data.FieldMetaData("preserveSplits", org.apache.thrift.TFieldRequirementType.REQUIRED, 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(truncateTable_args.class, metaDataMap); } @@ -36430,6 +37404,7 @@ public class THBaseService { /** * the tablename to truncate */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -36437,7 +37412,7 @@ public class THBaseService { /** * the tablename to truncate */ - public truncateTable_args setTableName(TTableName tableName) { + public truncateTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -36474,19 +37449,19 @@ public class THBaseService { } public void unsetPreserveSplits() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID); } /** Returns true if field preserveSplits is set (has been assigned a value) and false otherwise */ public boolean isSetPreserveSplits() { - return EncodingUtils.testBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID); } public void setPreserveSplitsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PRESERVESPLITS_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) { @@ -36500,14 +37475,15 @@ public class THBaseService { if (value == null) { unsetPreserveSplits(); } else { - setPreserveSplits((Boolean)value); + setPreserveSplits((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_NAME: return getTableName(); @@ -36516,13 +37492,13 @@ public class THBaseService { return isPreserveSplits(); } - 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) { @@ -36531,11 +37507,11 @@ public class THBaseService { case PRESERVE_SPLITS: return isSetPreserveSplits(); } - 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 truncateTable_args) @@ -36546,6 +37522,8 @@ public class THBaseService { public boolean equals(truncateTable_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(); @@ -36570,19 +37548,15 @@ public class THBaseService { @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_preserveSplits = true; - list.add(present_preserveSplits); - if (present_preserveSplits) - list.add(preserveSplits); + hashCode = hashCode * 8191 + ((preserveSplits) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -36593,7 +37567,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -36603,7 +37577,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPreserveSplits()).compareTo(other.isSetPreserveSplits()); + lastComparison = java.lang.Boolean.valueOf(isSetPreserveSplits()).compareTo(other.isSetPreserveSplits()); if (lastComparison != 0) { return lastComparison; } @@ -36616,21 +37590,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("truncateTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_args("); boolean first = true; sb.append("tableName:"); @@ -36668,7 +37643,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; @@ -36678,13 +37653,13 @@ public class THBaseService { } } - private static class truncateTable_argsStandardSchemeFactory implements SchemeFactory { + private static class truncateTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public truncateTable_argsStandardScheme getScheme() { return new truncateTable_argsStandardScheme(); } } - private static class truncateTable_argsStandardScheme extends StandardScheme { + private static class truncateTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -36745,24 +37720,24 @@ public class THBaseService { } - private static class truncateTable_argsTupleSchemeFactory implements SchemeFactory { + private static class truncateTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public truncateTable_argsTupleScheme getScheme() { return new truncateTable_argsTupleScheme(); } } - private static class truncateTable_argsTupleScheme extends TupleScheme { + private static class truncateTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, truncateTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); oprot.writeBool(struct.preserveSplits); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, truncateTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); @@ -36771,6 +37746,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 truncateTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -36778,22 +37756,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 truncateTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncateTable_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new truncateTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new truncateTable_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); } } @@ -36801,6 +37776,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 @@ -36816,21 +37792,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; } @@ -36839,18 +37816,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(truncateTable_result.class, metaDataMap); } @@ -36882,11 +37859,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public truncateTable_result setIo(TIOError io) { + public truncateTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -36906,7 +37884,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) { @@ -36919,30 +37897,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 truncateTable_result) @@ -36953,6 +37932,8 @@ public class THBaseService { public boolean equals(truncateTable_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(); @@ -36968,14 +37949,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 @@ -36986,7 +37966,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; } @@ -36999,21 +37979,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("truncateTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_result("); boolean first = true; sb.append("io:"); @@ -37040,7 +38021,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) { @@ -37048,13 +38029,13 @@ public class THBaseService { } } - private static class truncateTable_resultStandardSchemeFactory implements SchemeFactory { + private static class truncateTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public truncateTable_resultStandardScheme getScheme() { return new truncateTable_resultStandardScheme(); } } - private static class truncateTable_resultStandardScheme extends StandardScheme { + private static class truncateTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -37101,18 +38082,18 @@ public class THBaseService { } - private static class truncateTable_resultTupleSchemeFactory implements SchemeFactory { + private static class truncateTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public truncateTable_resultTupleScheme getScheme() { return new truncateTable_resultTupleScheme(); } } - private static class truncateTable_resultTupleScheme extends TupleScheme { + private static class truncateTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, truncateTable_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); } @@ -37124,8 +38105,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, truncateTable_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); @@ -37134,6 +38115,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 enableTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -37141,16 +38125,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (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(); /** * the tablename to enable */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName 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 { @@ -37159,10 +38140,10 @@ public class THBaseService { */ 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); } } @@ -37170,6 +38151,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_NAME @@ -37185,21 +38167,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; } @@ -37208,18 +38191,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap); } @@ -37254,6 +38237,7 @@ public class THBaseService { /** * the tablename to enable */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -37261,7 +38245,7 @@ public class THBaseService { /** * the tablename to enable */ - public enableTable_args setTableName(TTableName tableName) { + public enableTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -37281,7 +38265,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 TABLE_NAME: if (value == null) { @@ -37294,30 +38278,31 @@ public class THBaseService { } } - 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) @@ -37328,6 +38313,8 @@ public class THBaseService { 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(); @@ -37343,14 +38330,13 @@ public class THBaseService { @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 @@ -37361,7 +38347,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -37374,21 +38360,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("enableTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_args("); boolean first = true; sb.append("tableName:"); @@ -37421,7 +38408,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) { @@ -37429,13 +38416,13 @@ public class THBaseService { } } - 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; @@ -37482,29 +38469,32 @@ public class THBaseService { } - 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; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(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 enableTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -37512,22 +38502,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 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 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); } } @@ -37535,6 +38522,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 @@ -37550,21 +38538,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; } @@ -37573,18 +38562,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(enableTable_result.class, metaDataMap); } @@ -37616,11 +38605,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public enableTable_result setIo(TIOError io) { + public enableTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -37640,7 +38630,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) { @@ -37653,30 +38643,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 enableTable_result) @@ -37687,6 +38678,8 @@ public class THBaseService { 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(); @@ -37702,14 +38695,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 @@ -37720,7 +38712,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; } @@ -37733,21 +38725,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("enableTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_result("); boolean first = true; sb.append("io:"); @@ -37774,7 +38767,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) { @@ -37782,13 +38775,13 @@ public class THBaseService { } } - 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; @@ -37835,18 +38828,18 @@ public class THBaseService { } - 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); } @@ -37858,8 +38851,8 @@ public class THBaseService { @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 TIOError(); struct.io.read(iprot); @@ -37868,6 +38861,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 disableTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -37875,16 +38871,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (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(); /** * the tablename to disable */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName 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 { @@ -37893,10 +38886,10 @@ public class THBaseService { */ 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); } } @@ -37904,6 +38897,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_NAME @@ -37919,21 +38913,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; } @@ -37942,18 +38937,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap); } @@ -37988,6 +38983,7 @@ public class THBaseService { /** * the tablename to disable */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -37995,7 +38991,7 @@ public class THBaseService { /** * the tablename to disable */ - public disableTable_args setTableName(TTableName tableName) { + public disableTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -38015,7 +39011,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 TABLE_NAME: if (value == null) { @@ -38028,30 +39024,31 @@ public class THBaseService { } } - 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) @@ -38062,6 +39059,8 @@ public class THBaseService { 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(); @@ -38077,14 +39076,13 @@ public class THBaseService { @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 @@ -38095,7 +39093,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -38108,21 +39106,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("disableTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_args("); boolean first = true; sb.append("tableName:"); @@ -38155,7 +39154,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) { @@ -38163,13 +39162,13 @@ public class THBaseService { } } - 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; @@ -38216,29 +39215,32 @@ public class THBaseService { } - 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; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(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 disableTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -38246,22 +39248,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 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 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); } } @@ -38269,6 +39268,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 @@ -38284,21 +39284,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; } @@ -38307,18 +39308,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(disableTable_result.class, metaDataMap); } @@ -38350,11 +39351,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public disableTable_result setIo(TIOError io) { + public disableTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -38374,7 +39376,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) { @@ -38387,30 +39389,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 disableTable_result) @@ -38421,6 +39424,8 @@ public class THBaseService { 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(); @@ -38436,14 +39441,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 @@ -38454,7 +39458,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; } @@ -38467,21 +39471,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("disableTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_result("); boolean first = true; sb.append("io:"); @@ -38508,7 +39513,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) { @@ -38516,13 +39521,13 @@ public class THBaseService { } } - 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; @@ -38569,18 +39574,18 @@ public class THBaseService { } - 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); } @@ -38592,8 +39597,8 @@ public class THBaseService { @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 TIOError(); struct.io.read(iprot); @@ -38602,6 +39607,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 isTableEnabled_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -38609,16 +39617,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (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(); /** * the tablename to check */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName 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 { @@ -38627,10 +39632,10 @@ public class THBaseService { */ 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); } } @@ -38638,6 +39643,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_NAME @@ -38653,21 +39659,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; } @@ -38676,18 +39683,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_args.class, metaDataMap); } @@ -38722,6 +39729,7 @@ public class THBaseService { /** * the tablename to check */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -38729,7 +39737,7 @@ public class THBaseService { /** * the tablename to check */ - public isTableEnabled_args setTableName(TTableName tableName) { + public isTableEnabled_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -38749,7 +39757,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 TABLE_NAME: if (value == null) { @@ -38762,30 +39770,31 @@ public class THBaseService { } } - 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) @@ -38796,6 +39805,8 @@ public class THBaseService { 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(); @@ -38811,14 +39822,13 @@ public class THBaseService { @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 @@ -38829,7 +39839,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -38842,21 +39852,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("isTableEnabled_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_args("); boolean first = true; sb.append("tableName:"); @@ -38889,7 +39900,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) { @@ -38897,13 +39908,13 @@ public class THBaseService { } } - 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; @@ -38950,29 +39961,32 @@ public class THBaseService { } - 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; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(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 isTableEnabled_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -38981,24 +39995,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 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 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); } } @@ -39006,6 +40017,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 @@ -39023,21 +40035,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; } @@ -39046,7 +40059,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -39054,14 +40067,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(isTableEnabled_result.class, metaDataMap); } @@ -39111,23 +40124,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 isTableEnabled_result setIo(TIOError io) { + public isTableEnabled_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -39147,13 +40161,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; @@ -39168,7 +40182,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(); @@ -39177,13 +40192,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) { @@ -39192,11 +40207,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 isTableEnabled_result) @@ -39207,6 +40222,8 @@ public class THBaseService { 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; @@ -39231,19 +40248,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 @@ -39254,7 +40267,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; } @@ -39264,7 +40277,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; } @@ -39277,21 +40290,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("isTableEnabled_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_result("); boolean first = true; sb.append("success:"); @@ -39322,7 +40336,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; @@ -39332,13 +40346,13 @@ public class THBaseService { } } - 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; @@ -39398,18 +40412,18 @@ public class THBaseService { } - 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); } @@ -39427,8 +40441,8 @@ public class THBaseService { @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); @@ -39441,6 +40455,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 isTableDisabled_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -39448,16 +40465,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new isTableDisabled_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isTableDisabled_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableDisabled_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableDisabled_argsTupleSchemeFactory(); /** * the tablename to check */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName 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 { @@ -39466,10 +40480,10 @@ public class THBaseService { */ 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); } } @@ -39477,6 +40491,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_NAME @@ -39492,21 +40507,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; } @@ -39515,18 +40531,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableDisabled_args.class, metaDataMap); } @@ -39561,6 +40577,7 @@ public class THBaseService { /** * the tablename to check */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -39568,7 +40585,7 @@ public class THBaseService { /** * the tablename to check */ - public isTableDisabled_args setTableName(TTableName tableName) { + public isTableDisabled_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -39588,7 +40605,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 TABLE_NAME: if (value == null) { @@ -39601,30 +40618,31 @@ public class THBaseService { } } - 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 isTableDisabled_args) @@ -39635,6 +40653,8 @@ public class THBaseService { public boolean equals(isTableDisabled_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(); @@ -39650,14 +40670,13 @@ public class THBaseService { @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 @@ -39668,7 +40687,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -39681,21 +40700,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("isTableDisabled_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_args("); boolean first = true; sb.append("tableName:"); @@ -39728,7 +40748,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) { @@ -39736,13 +40756,13 @@ public class THBaseService { } } - private static class isTableDisabled_argsStandardSchemeFactory implements SchemeFactory { + private static class isTableDisabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableDisabled_argsStandardScheme getScheme() { return new isTableDisabled_argsStandardScheme(); } } - private static class isTableDisabled_argsStandardScheme extends StandardScheme { + private static class isTableDisabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isTableDisabled_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -39789,29 +40809,32 @@ public class THBaseService { } - private static class isTableDisabled_argsTupleSchemeFactory implements SchemeFactory { + private static class isTableDisabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableDisabled_argsTupleScheme getScheme() { return new isTableDisabled_argsTupleScheme(); } } - private static class isTableDisabled_argsTupleScheme extends TupleScheme { + private static class isTableDisabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(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 isTableDisabled_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -39820,24 +40843,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 isTableDisabled_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isTableDisabled_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableDisabled_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableDisabled_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); } } @@ -39845,6 +40865,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 @@ -39862,21 +40883,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; } @@ -39885,7 +40907,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -39893,14 +40915,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(isTableDisabled_result.class, metaDataMap); } @@ -39950,23 +40972,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 isTableDisabled_result setIo(TIOError io) { + public isTableDisabled_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -39986,13 +41009,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; @@ -40007,7 +41030,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(); @@ -40016,13 +41040,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) { @@ -40031,11 +41055,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 isTableDisabled_result) @@ -40046,6 +41070,8 @@ public class THBaseService { public boolean equals(isTableDisabled_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -40070,19 +41096,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 @@ -40093,7 +41115,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; } @@ -40103,7 +41125,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; } @@ -40116,21 +41138,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("isTableDisabled_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_result("); boolean first = true; sb.append("success:"); @@ -40161,7 +41184,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; @@ -40171,13 +41194,13 @@ public class THBaseService { } } - private static class isTableDisabled_resultStandardSchemeFactory implements SchemeFactory { + private static class isTableDisabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableDisabled_resultStandardScheme getScheme() { return new isTableDisabled_resultStandardScheme(); } } - private static class isTableDisabled_resultStandardScheme extends StandardScheme { + private static class isTableDisabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isTableDisabled_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -40237,18 +41260,18 @@ public class THBaseService { } - private static class isTableDisabled_resultTupleSchemeFactory implements SchemeFactory { + private static class isTableDisabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableDisabled_resultTupleScheme getScheme() { return new isTableDisabled_resultTupleScheme(); } } - private static class isTableDisabled_resultTupleScheme extends TupleScheme { + private static class isTableDisabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_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); } @@ -40266,8 +41289,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_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); @@ -40280,6 +41303,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 isTableAvailable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -40287,16 +41313,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new isTableAvailable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isTableAvailable_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailable_argsTupleSchemeFactory(); /** * the tablename to check */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName 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 { @@ -40305,10 +41328,10 @@ public class THBaseService { */ 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); } } @@ -40316,6 +41339,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_NAME @@ -40331,21 +41355,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; } @@ -40354,18 +41379,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailable_args.class, metaDataMap); } @@ -40400,6 +41425,7 @@ public class THBaseService { /** * the tablename to check */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -40407,7 +41433,7 @@ public class THBaseService { /** * the tablename to check */ - public isTableAvailable_args setTableName(TTableName tableName) { + public isTableAvailable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -40427,7 +41453,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 TABLE_NAME: if (value == null) { @@ -40440,30 +41466,31 @@ public class THBaseService { } } - 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 isTableAvailable_args) @@ -40474,6 +41501,8 @@ public class THBaseService { public boolean equals(isTableAvailable_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(); @@ -40489,14 +41518,13 @@ public class THBaseService { @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 @@ -40507,7 +41535,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -40520,21 +41548,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("isTableAvailable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_args("); boolean first = true; sb.append("tableName:"); @@ -40567,7 +41596,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) { @@ -40575,13 +41604,13 @@ public class THBaseService { } } - private static class isTableAvailable_argsStandardSchemeFactory implements SchemeFactory { + private static class isTableAvailable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableAvailable_argsStandardScheme getScheme() { return new isTableAvailable_argsStandardScheme(); } } - private static class isTableAvailable_argsStandardScheme extends StandardScheme { + private static class isTableAvailable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -40628,29 +41657,32 @@ public class THBaseService { } - private static class isTableAvailable_argsTupleSchemeFactory implements SchemeFactory { + private static class isTableAvailable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableAvailable_argsTupleScheme getScheme() { return new isTableAvailable_argsTupleScheme(); } } - private static class isTableAvailable_argsTupleScheme extends TupleScheme { + private static class isTableAvailable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(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 isTableAvailable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -40659,24 +41691,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 isTableAvailable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isTableAvailable_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailable_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); } } @@ -40684,6 +41713,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 @@ -40701,21 +41731,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; } @@ -40724,7 +41755,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -40732,14 +41763,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(isTableAvailable_result.class, metaDataMap); } @@ -40789,23 +41820,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 isTableAvailable_result setIo(TIOError io) { + public isTableAvailable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -40825,13 +41857,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; @@ -40846,7 +41878,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(); @@ -40855,13 +41888,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) { @@ -40870,11 +41903,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 isTableAvailable_result) @@ -40885,6 +41918,8 @@ public class THBaseService { public boolean equals(isTableAvailable_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -40909,19 +41944,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 @@ -40932,7 +41963,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; } @@ -40942,7 +41973,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; } @@ -40955,21 +41986,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("isTableAvailable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_result("); boolean first = true; sb.append("success:"); @@ -41000,7 +42032,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; @@ -41010,13 +42042,13 @@ public class THBaseService { } } - private static class isTableAvailable_resultStandardSchemeFactory implements SchemeFactory { + private static class isTableAvailable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableAvailable_resultStandardScheme getScheme() { return new isTableAvailable_resultStandardScheme(); } } - private static class isTableAvailable_resultStandardScheme extends StandardScheme { + private static class isTableAvailable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -41076,18 +42108,18 @@ public class THBaseService { } - private static class isTableAvailable_resultTupleSchemeFactory implements SchemeFactory { + private static class isTableAvailable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableAvailable_resultTupleScheme getScheme() { return new isTableAvailable_resultTupleScheme(); } } - private static class isTableAvailable_resultTupleScheme extends TupleScheme { + private static class isTableAvailable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_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); } @@ -41105,8 +42137,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_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); @@ -41119,6 +42151,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 isTableAvailableWithSplit_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -41127,20 +42162,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField SPLIT_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("splitKeys", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new isTableAvailableWithSplit_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isTableAvailableWithSplit_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailableWithSplit_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailableWithSplit_argsTupleSchemeFactory(); /** * the tablename to check */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName tableName; // required /** * keys to check if the table has been created with all split keys */ - public List splitKeys; // required + public @org.apache.thrift.annotation.Nullable java.util.List splitKeys; // 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 { @@ -41153,10 +42185,10 @@ public class THBaseService { */ SPLIT_KEYS((short)2, "splitKeys"); - 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); } } @@ -41164,6 +42196,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_NAME @@ -41181,21 +42214,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; } @@ -41204,21 +42238,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); tmpMap.put(_Fields.SPLIT_KEYS, new org.apache.thrift.meta_data.FieldMetaData("splitKeys", 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 , true)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailableWithSplit_args.class, metaDataMap); } @@ -41227,7 +42261,7 @@ public class THBaseService { public isTableAvailableWithSplit_args( TTableName tableName, - List splitKeys) + java.util.List splitKeys) { this(); this.tableName = tableName; @@ -41242,7 +42276,7 @@ public class THBaseService { this.tableName = new TTableName(other.tableName); } if (other.isSetSplitKeys()) { - List __this__splitKeys = new ArrayList(other.splitKeys); + java.util.List __this__splitKeys = new java.util.ArrayList(other.splitKeys); this.splitKeys = __this__splitKeys; } } @@ -41260,6 +42294,7 @@ public class THBaseService { /** * the tablename to check */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -41267,7 +42302,7 @@ public class THBaseService { /** * the tablename to check */ - public isTableAvailableWithSplit_args setTableName(TTableName tableName) { + public isTableAvailableWithSplit_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -41291,13 +42326,14 @@ public class THBaseService { return (this.splitKeys == null) ? 0 : this.splitKeys.size(); } - public java.util.Iterator getSplitKeysIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSplitKeysIterator() { return (this.splitKeys == null) ? null : this.splitKeys.iterator(); } - public void addToSplitKeys(ByteBuffer elem) { + public void addToSplitKeys(java.nio.ByteBuffer elem) { if (this.splitKeys == null) { - this.splitKeys = new ArrayList(); + this.splitKeys = new java.util.ArrayList(); } this.splitKeys.add(elem); } @@ -41305,14 +42341,15 @@ public class THBaseService { /** * keys to check if the table has been created with all split keys */ - public List getSplitKeys() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSplitKeys() { return this.splitKeys; } /** * keys to check if the table has been created with all split keys */ - public isTableAvailableWithSplit_args setSplitKeys(List splitKeys) { + public isTableAvailableWithSplit_args setSplitKeys(@org.apache.thrift.annotation.Nullable java.util.List splitKeys) { this.splitKeys = splitKeys; return this; } @@ -41332,7 +42369,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 TABLE_NAME: if (value == null) { @@ -41346,14 +42383,15 @@ public class THBaseService { if (value == null) { unsetSplitKeys(); } else { - setSplitKeys((List)value); + setSplitKeys((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(); @@ -41362,13 +42400,13 @@ public class THBaseService { return getSplitKeys(); } - 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) { @@ -41377,11 +42415,11 @@ public class THBaseService { case SPLIT_KEYS: return isSetSplitKeys(); } - 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 isTableAvailableWithSplit_args) @@ -41392,6 +42430,8 @@ public class THBaseService { public boolean equals(isTableAvailableWithSplit_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(); @@ -41416,19 +42456,17 @@ public class THBaseService { @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_splitKeys = true && (isSetSplitKeys()); - list.add(present_splitKeys); - if (present_splitKeys) - list.add(splitKeys); + hashCode = hashCode * 8191 + ((isSetSplitKeys()) ? 131071 : 524287); + if (isSetSplitKeys()) + hashCode = hashCode * 8191 + splitKeys.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -41439,7 +42477,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -41449,7 +42487,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSplitKeys()).compareTo(other.isSetSplitKeys()); + lastComparison = java.lang.Boolean.valueOf(isSetSplitKeys()).compareTo(other.isSetSplitKeys()); if (lastComparison != 0) { return lastComparison; } @@ -41462,21 +42500,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("isTableAvailableWithSplit_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_args("); boolean first = true; sb.append("tableName:"); @@ -41517,7 +42556,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) { @@ -41525,13 +42564,13 @@ public class THBaseService { } } - private static class isTableAvailableWithSplit_argsStandardSchemeFactory implements SchemeFactory { + private static class isTableAvailableWithSplit_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableAvailableWithSplit_argsStandardScheme getScheme() { return new isTableAvailableWithSplit_argsStandardScheme(); } } - private static class isTableAvailableWithSplit_argsStandardScheme extends StandardScheme { + private static class isTableAvailableWithSplit_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -41556,8 +42595,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list326 = iprot.readListBegin(); - struct.splitKeys = new ArrayList(_list326.size); - ByteBuffer _elem327; + struct.splitKeys = new java.util.ArrayList(_list326.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem327; for (int _i328 = 0; _i328 < _list326.size; ++_i328) { _elem327 = iprot.readBinary(); @@ -41594,7 +42633,7 @@ public class THBaseService { oprot.writeFieldBegin(SPLIT_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.splitKeys.size())); - for (ByteBuffer _iter329 : struct.splitKeys) + for (java.nio.ByteBuffer _iter329 : struct.splitKeys) { oprot.writeBinary(_iter329); } @@ -41608,19 +42647,19 @@ public class THBaseService { } - private static class isTableAvailableWithSplit_argsTupleSchemeFactory implements SchemeFactory { + private static class isTableAvailableWithSplit_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableAvailableWithSplit_argsTupleScheme getScheme() { return new isTableAvailableWithSplit_argsTupleScheme(); } } - private static class isTableAvailableWithSplit_argsTupleScheme extends TupleScheme { + private static class isTableAvailableWithSplit_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSplitKeys()) { optionals.set(0); } @@ -41628,7 +42667,7 @@ public class THBaseService { if (struct.isSetSplitKeys()) { { oprot.writeI32(struct.splitKeys.size()); - for (ByteBuffer _iter330 : struct.splitKeys) + for (java.nio.ByteBuffer _iter330 : struct.splitKeys) { oprot.writeBinary(_iter330); } @@ -41638,16 +42677,16 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.splitKeys = new ArrayList(_list331.size); - ByteBuffer _elem332; + struct.splitKeys = 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(); @@ -41659,6 +42698,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 isTableAvailableWithSplit_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -41667,24 +42709,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 isTableAvailableWithSplit_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isTableAvailableWithSplit_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailableWithSplit_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailableWithSplit_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); } } @@ -41692,6 +42731,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 @@ -41709,21 +42749,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; } @@ -41732,7 +42773,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -41740,14 +42781,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(isTableAvailableWithSplit_result.class, metaDataMap); } @@ -41797,23 +42838,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 isTableAvailableWithSplit_result setIo(TIOError io) { + public isTableAvailableWithSplit_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -41833,13 +42875,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; @@ -41854,7 +42896,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(); @@ -41863,13 +42906,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) { @@ -41878,11 +42921,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 isTableAvailableWithSplit_result) @@ -41893,6 +42936,8 @@ public class THBaseService { public boolean equals(isTableAvailableWithSplit_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -41917,19 +42962,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 @@ -41940,7 +42981,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; } @@ -41950,7 +42991,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; } @@ -41963,21 +43004,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("isTableAvailableWithSplit_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_result("); boolean first = true; sb.append("success:"); @@ -42008,7 +43050,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; @@ -42018,13 +43060,13 @@ public class THBaseService { } } - private static class isTableAvailableWithSplit_resultStandardSchemeFactory implements SchemeFactory { + private static class isTableAvailableWithSplit_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableAvailableWithSplit_resultStandardScheme getScheme() { return new isTableAvailableWithSplit_resultStandardScheme(); } } - private static class isTableAvailableWithSplit_resultStandardScheme extends StandardScheme { + private static class isTableAvailableWithSplit_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -42084,18 +43126,18 @@ public class THBaseService { } - private static class isTableAvailableWithSplit_resultTupleSchemeFactory implements SchemeFactory { + private static class isTableAvailableWithSplit_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isTableAvailableWithSplit_resultTupleScheme getScheme() { return new isTableAvailableWithSplit_resultTupleScheme(); } } - private static class isTableAvailableWithSplit_resultTupleScheme extends TupleScheme { + private static class isTableAvailableWithSplit_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_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); } @@ -42113,8 +43155,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_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); @@ -42127,6 +43169,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 addColumnFamily_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -42135,20 +43180,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new addColumnFamily_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new addColumnFamily_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new addColumnFamily_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new addColumnFamily_argsTupleSchemeFactory(); /** * the tablename to add column family to */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName tableName; // required /** * column family descriptor of column family to be added */ - public TColumnFamilyDescriptor column; // required + public @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column; // 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 { @@ -42161,10 +43203,10 @@ public class THBaseService { */ COLUMN((short)2, "column"); - 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); } } @@ -42172,6 +43214,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_NAME @@ -42189,21 +43232,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; } @@ -42212,20 +43256,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TColumnFamilyDescriptor.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addColumnFamily_args.class, metaDataMap); } @@ -42266,6 +43310,7 @@ public class THBaseService { /** * the tablename to add column family to */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -42273,7 +43318,7 @@ public class THBaseService { /** * the tablename to add column family to */ - public addColumnFamily_args setTableName(TTableName tableName) { + public addColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -42296,6 +43341,7 @@ public class THBaseService { /** * column family descriptor of column family to be added */ + @org.apache.thrift.annotation.Nullable public TColumnFamilyDescriptor getColumn() { return this.column; } @@ -42303,7 +43349,7 @@ public class THBaseService { /** * column family descriptor of column family to be added */ - public addColumnFamily_args setColumn(TColumnFamilyDescriptor column) { + public addColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) { this.column = column; return this; } @@ -42323,7 +43369,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 TABLE_NAME: if (value == null) { @@ -42344,7 +43390,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_NAME: return getTableName(); @@ -42353,13 +43400,13 @@ public class THBaseService { return getColumn(); } - 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) { @@ -42368,11 +43415,11 @@ public class THBaseService { case COLUMN: return isSetColumn(); } - 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 addColumnFamily_args) @@ -42383,6 +43430,8 @@ public class THBaseService { public boolean equals(addColumnFamily_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(); @@ -42407,19 +43456,17 @@ public class THBaseService { @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_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(); - return list.hashCode(); + return hashCode; } @Override @@ -42430,7 +43477,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -42440,7 +43487,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -42453,21 +43500,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("addColumnFamily_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_args("); boolean first = true; sb.append("tableName:"); @@ -42514,7 +43562,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) { @@ -42522,13 +43570,13 @@ public class THBaseService { } } - private static class addColumnFamily_argsStandardSchemeFactory implements SchemeFactory { + private static class addColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public addColumnFamily_argsStandardScheme getScheme() { return new addColumnFamily_argsStandardScheme(); } } - private static class addColumnFamily_argsStandardScheme extends StandardScheme { + private static class addColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -42589,24 +43637,24 @@ public class THBaseService { } - private static class addColumnFamily_argsTupleSchemeFactory implements SchemeFactory { + private static class addColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public addColumnFamily_argsTupleScheme getScheme() { return new addColumnFamily_argsTupleScheme(); } } - private static class addColumnFamily_argsTupleScheme extends TupleScheme { + private static class addColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); struct.column.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); @@ -42616,6 +43664,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 addColumnFamily_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -42623,22 +43674,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 addColumnFamily_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new addColumnFamily_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new addColumnFamily_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new addColumnFamily_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); } } @@ -42646,6 +43694,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 @@ -42661,21 +43710,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; } @@ -42684,18 +43734,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(addColumnFamily_result.class, metaDataMap); } @@ -42727,11 +43777,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public addColumnFamily_result setIo(TIOError io) { + public addColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -42751,7 +43802,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) { @@ -42764,30 +43815,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 addColumnFamily_result) @@ -42798,6 +43850,8 @@ public class THBaseService { public boolean equals(addColumnFamily_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(); @@ -42813,14 +43867,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 @@ -42831,7 +43884,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; } @@ -42844,21 +43897,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("addColumnFamily_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_result("); boolean first = true; sb.append("io:"); @@ -42885,7 +43939,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) { @@ -42893,13 +43947,13 @@ public class THBaseService { } } - private static class addColumnFamily_resultStandardSchemeFactory implements SchemeFactory { + private static class addColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public addColumnFamily_resultStandardScheme getScheme() { return new addColumnFamily_resultStandardScheme(); } } - private static class addColumnFamily_resultStandardScheme extends StandardScheme { + private static class addColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -42946,18 +44000,18 @@ public class THBaseService { } - private static class addColumnFamily_resultTupleSchemeFactory implements SchemeFactory { + private static class addColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public addColumnFamily_resultTupleScheme getScheme() { return new addColumnFamily_resultTupleScheme(); } } - private static class addColumnFamily_resultTupleScheme extends TupleScheme { + private static class addColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_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); } @@ -42969,8 +44023,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_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); @@ -42979,6 +44033,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 deleteColumnFamily_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -42987,20 +44044,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); 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)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteColumnFamily_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteColumnFamily_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteColumnFamily_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteColumnFamily_argsTupleSchemeFactory(); /** * the tablename to delete column family from */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName tableName; // required /** * name of column family to be deleted */ - public ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // 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 { @@ -43013,10 +44067,10 @@ public class THBaseService { */ COLUMN((short)2, "column"); - 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); } } @@ -43024,6 +44078,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_NAME @@ -43041,21 +44096,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; } @@ -43064,20 +44120,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", 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(deleteColumnFamily_args.class, metaDataMap); } @@ -43086,7 +44142,7 @@ public class THBaseService { public deleteColumnFamily_args( TTableName tableName, - ByteBuffer column) + java.nio.ByteBuffer column) { this(); this.tableName = tableName; @@ -43118,6 +44174,7 @@ public class THBaseService { /** * the tablename to delete column family from */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -43125,7 +44182,7 @@ public class THBaseService { /** * the tablename to delete column family from */ - public deleteColumnFamily_args setTableName(TTableName tableName) { + public deleteColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -43153,7 +44210,7 @@ public class THBaseService { return column == null ? null : column.array(); } - public ByteBuffer bufferForColumn() { + public java.nio.ByteBuffer bufferForColumn() { return org.apache.thrift.TBaseHelper.copyBinary(column); } @@ -43161,11 +44218,11 @@ public class THBaseService { * name of column family to be deleted */ public deleteColumnFamily_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 deleteColumnFamily_args setColumn(ByteBuffer column) { + public deleteColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -43185,7 +44242,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 TABLE_NAME: if (value == null) { @@ -43199,14 +44256,19 @@ public class THBaseService { if (value == null) { unsetColumn(); } else { - setColumn((ByteBuffer)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((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(); @@ -43215,13 +44277,13 @@ public class THBaseService { return getColumn(); } - 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) { @@ -43230,11 +44292,11 @@ public class THBaseService { case COLUMN: return isSetColumn(); } - 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 deleteColumnFamily_args) @@ -43245,6 +44307,8 @@ public class THBaseService { public boolean equals(deleteColumnFamily_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(); @@ -43269,19 +44333,17 @@ public class THBaseService { @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_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(); - return list.hashCode(); + return hashCode; } @Override @@ -43292,7 +44354,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -43302,7 +44364,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -43315,21 +44377,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("deleteColumnFamily_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_args("); boolean first = true; sb.append("tableName:"); @@ -43373,7 +44436,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) { @@ -43381,13 +44444,13 @@ public class THBaseService { } } - private static class deleteColumnFamily_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteColumnFamily_argsStandardScheme getScheme() { return new deleteColumnFamily_argsStandardScheme(); } } - private static class deleteColumnFamily_argsStandardScheme extends StandardScheme { + private static class deleteColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -43447,24 +44510,24 @@ public class THBaseService { } - private static class deleteColumnFamily_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteColumnFamily_argsTupleScheme getScheme() { return new deleteColumnFamily_argsTupleScheme(); } } - private static class deleteColumnFamily_argsTupleScheme extends TupleScheme { + private static class deleteColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); oprot.writeBinary(struct.column); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); @@ -43473,6 +44536,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 deleteColumnFamily_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -43480,22 +44546,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 deleteColumnFamily_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteColumnFamily_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteColumnFamily_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteColumnFamily_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); } } @@ -43503,6 +44566,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 @@ -43518,21 +44582,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; } @@ -43541,18 +44606,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(deleteColumnFamily_result.class, metaDataMap); } @@ -43584,11 +44649,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public deleteColumnFamily_result setIo(TIOError io) { + public deleteColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -43608,7 +44674,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) { @@ -43621,30 +44687,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 deleteColumnFamily_result) @@ -43655,6 +44722,8 @@ public class THBaseService { public boolean equals(deleteColumnFamily_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(); @@ -43670,14 +44739,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 @@ -43688,7 +44756,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; } @@ -43701,21 +44769,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("deleteColumnFamily_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_result("); boolean first = true; sb.append("io:"); @@ -43742,7 +44811,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) { @@ -43750,13 +44819,13 @@ public class THBaseService { } } - private static class deleteColumnFamily_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteColumnFamily_resultStandardScheme getScheme() { return new deleteColumnFamily_resultStandardScheme(); } } - private static class deleteColumnFamily_resultStandardScheme extends StandardScheme { + private static class deleteColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -43803,18 +44872,18 @@ public class THBaseService { } - private static class deleteColumnFamily_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteColumnFamily_resultTupleScheme getScheme() { return new deleteColumnFamily_resultTupleScheme(); } } - private static class deleteColumnFamily_resultTupleScheme extends TupleScheme { + private static class deleteColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_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); } @@ -43826,8 +44895,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_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); @@ -43836,6 +44905,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 modifyColumnFamily_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -43844,20 +44916,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new modifyColumnFamily_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new modifyColumnFamily_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyColumnFamily_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyColumnFamily_argsTupleSchemeFactory(); /** * the tablename to modify column family */ - public TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable TTableName tableName; // required /** * column family descriptor of column family to be modified */ - public TColumnFamilyDescriptor column; // required + public @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column; // 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 { @@ -43870,10 +44939,10 @@ public class THBaseService { */ COLUMN((short)2, "column"); - 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); } } @@ -43881,6 +44950,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_NAME @@ -43898,21 +44968,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; } @@ -43921,20 +44992,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TColumnFamilyDescriptor.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyColumnFamily_args.class, metaDataMap); } @@ -43975,6 +45046,7 @@ public class THBaseService { /** * the tablename to modify column family */ + @org.apache.thrift.annotation.Nullable public TTableName getTableName() { return this.tableName; } @@ -43982,7 +45054,7 @@ public class THBaseService { /** * the tablename to modify column family */ - public modifyColumnFamily_args setTableName(TTableName tableName) { + public modifyColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -44005,6 +45077,7 @@ public class THBaseService { /** * column family descriptor of column family to be modified */ + @org.apache.thrift.annotation.Nullable public TColumnFamilyDescriptor getColumn() { return this.column; } @@ -44012,7 +45085,7 @@ public class THBaseService { /** * column family descriptor of column family to be modified */ - public modifyColumnFamily_args setColumn(TColumnFamilyDescriptor column) { + public modifyColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) { this.column = column; return this; } @@ -44032,7 +45105,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 TABLE_NAME: if (value == null) { @@ -44053,7 +45126,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_NAME: return getTableName(); @@ -44062,13 +45136,13 @@ public class THBaseService { return getColumn(); } - 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) { @@ -44077,11 +45151,11 @@ public class THBaseService { case COLUMN: return isSetColumn(); } - 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 modifyColumnFamily_args) @@ -44092,6 +45166,8 @@ public class THBaseService { public boolean equals(modifyColumnFamily_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(); @@ -44116,19 +45192,17 @@ public class THBaseService { @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_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(); - return list.hashCode(); + return hashCode; } @Override @@ -44139,7 +45213,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } @@ -44149,7 +45223,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } @@ -44162,21 +45236,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("modifyColumnFamily_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_args("); boolean first = true; sb.append("tableName:"); @@ -44223,7 +45298,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) { @@ -44231,13 +45306,13 @@ public class THBaseService { } } - private static class modifyColumnFamily_argsStandardSchemeFactory implements SchemeFactory { + private static class modifyColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyColumnFamily_argsStandardScheme getScheme() { return new modifyColumnFamily_argsStandardScheme(); } } - private static class modifyColumnFamily_argsStandardScheme extends StandardScheme { + private static class modifyColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -44298,24 +45373,24 @@ public class THBaseService { } - private static class modifyColumnFamily_argsTupleSchemeFactory implements SchemeFactory { + private static class modifyColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyColumnFamily_argsTupleScheme getScheme() { return new modifyColumnFamily_argsTupleScheme(); } } - private static class modifyColumnFamily_argsTupleScheme extends TupleScheme { + private static class modifyColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); struct.column.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); @@ -44325,6 +45400,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 modifyColumnFamily_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -44332,22 +45410,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 modifyColumnFamily_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new modifyColumnFamily_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyColumnFamily_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyColumnFamily_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); } } @@ -44355,6 +45430,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 @@ -44370,21 +45446,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; } @@ -44393,18 +45470,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(modifyColumnFamily_result.class, metaDataMap); } @@ -44436,11 +45513,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public modifyColumnFamily_result setIo(TIOError io) { + public modifyColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -44460,7 +45538,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) { @@ -44473,30 +45551,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 modifyColumnFamily_result) @@ -44507,6 +45586,8 @@ public class THBaseService { public boolean equals(modifyColumnFamily_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(); @@ -44522,14 +45603,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 @@ -44540,7 +45620,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; } @@ -44553,21 +45633,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("modifyColumnFamily_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_result("); boolean first = true; sb.append("io:"); @@ -44594,7 +45675,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) { @@ -44602,13 +45683,13 @@ public class THBaseService { } } - private static class modifyColumnFamily_resultStandardSchemeFactory implements SchemeFactory { + private static class modifyColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyColumnFamily_resultStandardScheme getScheme() { return new modifyColumnFamily_resultStandardScheme(); } } - private static class modifyColumnFamily_resultStandardScheme extends StandardScheme { + private static class modifyColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -44655,18 +45736,18 @@ public class THBaseService { } - private static class modifyColumnFamily_resultTupleSchemeFactory implements SchemeFactory { + private static class modifyColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyColumnFamily_resultTupleScheme getScheme() { return new modifyColumnFamily_resultTupleScheme(); } } - private static class modifyColumnFamily_resultTupleScheme extends TupleScheme { + private static class modifyColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_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); } @@ -44678,8 +45759,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_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); @@ -44688,6 +45769,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 modifyTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -44695,16 +45779,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new modifyTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new modifyTable_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyTable_argsTupleSchemeFactory(); /** * the descriptor of the table to modify */ - public TTableDescriptor desc; // required + public @org.apache.thrift.annotation.Nullable TTableDescriptor desc; // 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 { @@ -44713,10 +45794,10 @@ public class THBaseService { */ DESC((short)1, "desc"); - 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); } } @@ -44724,6 +45805,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: // DESC @@ -44739,21 +45821,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; } @@ -44762,18 +45845,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.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableDescriptor.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyTable_args.class, metaDataMap); } @@ -44808,6 +45891,7 @@ public class THBaseService { /** * the descriptor of the table to modify */ + @org.apache.thrift.annotation.Nullable public TTableDescriptor getDesc() { return this.desc; } @@ -44815,7 +45899,7 @@ public class THBaseService { /** * the descriptor of the table to modify */ - public modifyTable_args setDesc(TTableDescriptor desc) { + public modifyTable_args setDesc(@org.apache.thrift.annotation.Nullable TTableDescriptor desc) { this.desc = desc; return this; } @@ -44835,7 +45919,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 DESC: if (value == null) { @@ -44848,30 +45932,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case DESC: return getDesc(); } - 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 DESC: return isSetDesc(); } - 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 modifyTable_args) @@ -44882,6 +45967,8 @@ public class THBaseService { public boolean equals(modifyTable_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_desc = true && this.isSetDesc(); boolean that_present_desc = true && that.isSetDesc(); @@ -44897,14 +45984,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_desc = true && (isSetDesc()); - list.add(present_desc); - if (present_desc) - list.add(desc); + hashCode = hashCode * 8191 + ((isSetDesc()) ? 131071 : 524287); + if (isSetDesc()) + hashCode = hashCode * 8191 + desc.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -44915,7 +46001,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + lastComparison = java.lang.Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); if (lastComparison != 0) { return lastComparison; } @@ -44928,21 +46014,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("modifyTable_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_args("); boolean first = true; sb.append("desc:"); @@ -44975,7 +46062,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) { @@ -44983,13 +46070,13 @@ public class THBaseService { } } - private static class modifyTable_argsStandardSchemeFactory implements SchemeFactory { + private static class modifyTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyTable_argsStandardScheme getScheme() { return new modifyTable_argsStandardScheme(); } } - private static class modifyTable_argsStandardScheme extends StandardScheme { + private static class modifyTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -45036,29 +46123,32 @@ public class THBaseService { } - private static class modifyTable_argsTupleSchemeFactory implements SchemeFactory { + private static class modifyTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyTable_argsTupleScheme getScheme() { return new modifyTable_argsTupleScheme(); } } - private static class modifyTable_argsTupleScheme extends TupleScheme { + private static class modifyTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, modifyTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.desc.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyTable_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.desc = new TTableDescriptor(); struct.desc.read(iprot); struct.setDescIsSet(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 modifyTable_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -45066,22 +46156,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 modifyTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new modifyTable_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyTable_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); } } @@ -45089,6 +46176,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 @@ -45104,21 +46192,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; } @@ -45127,18 +46216,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(modifyTable_result.class, metaDataMap); } @@ -45170,11 +46259,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public modifyTable_result setIo(TIOError io) { + public modifyTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -45194,7 +46284,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) { @@ -45207,30 +46297,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 modifyTable_result) @@ -45241,6 +46332,8 @@ public class THBaseService { public boolean equals(modifyTable_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(); @@ -45256,14 +46349,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 @@ -45274,7 +46366,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; } @@ -45287,21 +46379,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("modifyTable_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_result("); boolean first = true; sb.append("io:"); @@ -45328,7 +46421,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) { @@ -45336,13 +46429,13 @@ public class THBaseService { } } - private static class modifyTable_resultStandardSchemeFactory implements SchemeFactory { + private static class modifyTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyTable_resultStandardScheme getScheme() { return new modifyTable_resultStandardScheme(); } } - private static class modifyTable_resultStandardScheme extends StandardScheme { + private static class modifyTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -45389,18 +46482,18 @@ public class THBaseService { } - private static class modifyTable_resultTupleSchemeFactory implements SchemeFactory { + private static class modifyTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyTable_resultTupleScheme getScheme() { return new modifyTable_resultTupleScheme(); } } - private static class modifyTable_resultTupleScheme extends TupleScheme { + private static class modifyTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, modifyTable_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); } @@ -45412,8 +46505,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyTable_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); @@ -45422,6 +46515,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 createNamespace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -45429,16 +46525,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField NAMESPACE_DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("namespaceDesc", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new createNamespace_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createNamespace_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createNamespace_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createNamespace_argsTupleSchemeFactory(); /** * descriptor which describes the new namespace */ - public TNamespaceDescriptor namespaceDesc; // required + public @org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc; // 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 { @@ -45447,10 +46540,10 @@ public class THBaseService { */ NAMESPACE_DESC((short)1, "namespaceDesc"); - 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); } } @@ -45458,6 +46551,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: // NAMESPACE_DESC @@ -45473,21 +46567,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; } @@ -45496,18 +46591,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.NAMESPACE_DESC, new org.apache.thrift.meta_data.FieldMetaData("namespaceDesc", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNamespaceDescriptor.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createNamespace_args.class, metaDataMap); } @@ -45542,6 +46637,7 @@ public class THBaseService { /** * descriptor which describes the new namespace */ + @org.apache.thrift.annotation.Nullable public TNamespaceDescriptor getNamespaceDesc() { return this.namespaceDesc; } @@ -45549,7 +46645,7 @@ public class THBaseService { /** * descriptor which describes the new namespace */ - public createNamespace_args setNamespaceDesc(TNamespaceDescriptor namespaceDesc) { + public createNamespace_args setNamespaceDesc(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc) { this.namespaceDesc = namespaceDesc; return this; } @@ -45569,7 +46665,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 NAMESPACE_DESC: if (value == null) { @@ -45582,30 +46678,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case NAMESPACE_DESC: return getNamespaceDesc(); } - 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 NAMESPACE_DESC: return isSetNamespaceDesc(); } - 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 createNamespace_args) @@ -45616,6 +46713,8 @@ public class THBaseService { public boolean equals(createNamespace_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_namespaceDesc = true && this.isSetNamespaceDesc(); boolean that_present_namespaceDesc = true && that.isSetNamespaceDesc(); @@ -45631,14 +46730,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_namespaceDesc = true && (isSetNamespaceDesc()); - list.add(present_namespaceDesc); - if (present_namespaceDesc) - list.add(namespaceDesc); + hashCode = hashCode * 8191 + ((isSetNamespaceDesc()) ? 131071 : 524287); + if (isSetNamespaceDesc()) + hashCode = hashCode * 8191 + namespaceDesc.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -45649,7 +46747,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNamespaceDesc()).compareTo(other.isSetNamespaceDesc()); + lastComparison = java.lang.Boolean.valueOf(isSetNamespaceDesc()).compareTo(other.isSetNamespaceDesc()); if (lastComparison != 0) { return lastComparison; } @@ -45662,21 +46760,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("createNamespace_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_args("); boolean first = true; sb.append("namespaceDesc:"); @@ -45709,7 +46808,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) { @@ -45717,13 +46816,13 @@ public class THBaseService { } } - private static class createNamespace_argsStandardSchemeFactory implements SchemeFactory { + private static class createNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createNamespace_argsStandardScheme getScheme() { return new createNamespace_argsStandardScheme(); } } - private static class createNamespace_argsStandardScheme extends StandardScheme { + private static class createNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -45770,29 +46869,32 @@ public class THBaseService { } - private static class createNamespace_argsTupleSchemeFactory implements SchemeFactory { + private static class createNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createNamespace_argsTupleScheme getScheme() { return new createNamespace_argsTupleScheme(); } } - private static class createNamespace_argsTupleScheme extends TupleScheme { + private static class createNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createNamespace_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.namespaceDesc.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, createNamespace_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.namespaceDesc = new TNamespaceDescriptor(); struct.namespaceDesc.read(iprot); struct.setNamespaceDescIsSet(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 createNamespace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -45800,22 +46902,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 createNamespace_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createNamespace_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createNamespace_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createNamespace_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); } } @@ -45823,6 +46922,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 @@ -45838,21 +46938,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; } @@ -45861,18 +46962,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(createNamespace_result.class, metaDataMap); } @@ -45904,11 +47005,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public createNamespace_result setIo(TIOError io) { + public createNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -45928,7 +47030,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) { @@ -45941,30 +47043,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 createNamespace_result) @@ -45975,6 +47078,8 @@ public class THBaseService { public boolean equals(createNamespace_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(); @@ -45990,14 +47095,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 @@ -46008,7 +47112,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; } @@ -46021,21 +47125,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("createNamespace_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_result("); boolean first = true; sb.append("io:"); @@ -46062,7 +47167,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) { @@ -46070,13 +47175,13 @@ public class THBaseService { } } - private static class createNamespace_resultStandardSchemeFactory implements SchemeFactory { + private static class createNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createNamespace_resultStandardScheme getScheme() { return new createNamespace_resultStandardScheme(); } } - private static class createNamespace_resultStandardScheme extends StandardScheme { + private static class createNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -46123,18 +47228,18 @@ public class THBaseService { } - private static class createNamespace_resultTupleSchemeFactory implements SchemeFactory { + private static class createNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createNamespace_resultTupleScheme getScheme() { return new createNamespace_resultTupleScheme(); } } - private static class createNamespace_resultTupleScheme extends TupleScheme { + private static class createNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createNamespace_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); } @@ -46146,8 +47251,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, createNamespace_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); @@ -46156,6 +47261,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 modifyNamespace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -46163,16 +47271,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField NAMESPACE_DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("namespaceDesc", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new modifyNamespace_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new modifyNamespace_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyNamespace_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyNamespace_argsTupleSchemeFactory(); /** * descriptor which describes the new namespace */ - public TNamespaceDescriptor namespaceDesc; // required + public @org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc; // 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 { @@ -46181,10 +47286,10 @@ public class THBaseService { */ NAMESPACE_DESC((short)1, "namespaceDesc"); - 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); } } @@ -46192,6 +47297,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: // NAMESPACE_DESC @@ -46207,21 +47313,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; } @@ -46230,18 +47337,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.NAMESPACE_DESC, new org.apache.thrift.meta_data.FieldMetaData("namespaceDesc", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNamespaceDescriptor.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyNamespace_args.class, metaDataMap); } @@ -46276,6 +47383,7 @@ public class THBaseService { /** * descriptor which describes the new namespace */ + @org.apache.thrift.annotation.Nullable public TNamespaceDescriptor getNamespaceDesc() { return this.namespaceDesc; } @@ -46283,7 +47391,7 @@ public class THBaseService { /** * descriptor which describes the new namespace */ - public modifyNamespace_args setNamespaceDesc(TNamespaceDescriptor namespaceDesc) { + public modifyNamespace_args setNamespaceDesc(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc) { this.namespaceDesc = namespaceDesc; return this; } @@ -46303,7 +47411,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 NAMESPACE_DESC: if (value == null) { @@ -46316,30 +47424,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case NAMESPACE_DESC: return getNamespaceDesc(); } - 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 NAMESPACE_DESC: return isSetNamespaceDesc(); } - 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 modifyNamespace_args) @@ -46350,6 +47459,8 @@ public class THBaseService { public boolean equals(modifyNamespace_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_namespaceDesc = true && this.isSetNamespaceDesc(); boolean that_present_namespaceDesc = true && that.isSetNamespaceDesc(); @@ -46365,14 +47476,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_namespaceDesc = true && (isSetNamespaceDesc()); - list.add(present_namespaceDesc); - if (present_namespaceDesc) - list.add(namespaceDesc); + hashCode = hashCode * 8191 + ((isSetNamespaceDesc()) ? 131071 : 524287); + if (isSetNamespaceDesc()) + hashCode = hashCode * 8191 + namespaceDesc.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -46383,7 +47493,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNamespaceDesc()).compareTo(other.isSetNamespaceDesc()); + lastComparison = java.lang.Boolean.valueOf(isSetNamespaceDesc()).compareTo(other.isSetNamespaceDesc()); if (lastComparison != 0) { return lastComparison; } @@ -46396,21 +47506,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("modifyNamespace_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyNamespace_args("); boolean first = true; sb.append("namespaceDesc:"); @@ -46443,7 +47554,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) { @@ -46451,13 +47562,13 @@ public class THBaseService { } } - private static class modifyNamespace_argsStandardSchemeFactory implements SchemeFactory { + private static class modifyNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyNamespace_argsStandardScheme getScheme() { return new modifyNamespace_argsStandardScheme(); } } - private static class modifyNamespace_argsStandardScheme extends StandardScheme { + private static class modifyNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -46504,29 +47615,32 @@ public class THBaseService { } - private static class modifyNamespace_argsTupleSchemeFactory implements SchemeFactory { + private static class modifyNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyNamespace_argsTupleScheme getScheme() { return new modifyNamespace_argsTupleScheme(); } } - private static class modifyNamespace_argsTupleScheme extends TupleScheme { + private static class modifyNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.namespaceDesc.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.namespaceDesc = new TNamespaceDescriptor(); struct.namespaceDesc.read(iprot); struct.setNamespaceDescIsSet(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 modifyNamespace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -46534,22 +47648,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 modifyNamespace_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new modifyNamespace_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyNamespace_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyNamespace_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); } } @@ -46557,6 +47668,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 @@ -46572,21 +47684,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; } @@ -46595,18 +47708,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(modifyNamespace_result.class, metaDataMap); } @@ -46638,11 +47751,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public modifyNamespace_result setIo(TIOError io) { + public modifyNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -46662,7 +47776,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) { @@ -46675,30 +47789,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 modifyNamespace_result) @@ -46709,6 +47824,8 @@ public class THBaseService { public boolean equals(modifyNamespace_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(); @@ -46724,14 +47841,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 @@ -46742,7 +47858,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; } @@ -46755,21 +47871,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("modifyNamespace_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyNamespace_result("); boolean first = true; sb.append("io:"); @@ -46796,7 +47913,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) { @@ -46804,13 +47921,13 @@ public class THBaseService { } } - private static class modifyNamespace_resultStandardSchemeFactory implements SchemeFactory { + private static class modifyNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyNamespace_resultStandardScheme getScheme() { return new modifyNamespace_resultStandardScheme(); } } - private static class modifyNamespace_resultStandardScheme extends StandardScheme { + private static class modifyNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -46857,18 +47974,18 @@ public class THBaseService { } - private static class modifyNamespace_resultTupleSchemeFactory implements SchemeFactory { + private static class modifyNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public modifyNamespace_resultTupleScheme getScheme() { return new modifyNamespace_resultTupleScheme(); } } - private static class modifyNamespace_resultTupleScheme extends TupleScheme { + private static class modifyNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_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); } @@ -46880,8 +47997,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_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); @@ -46890,6 +48007,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 deleteNamespace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -46897,16 +48017,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteNamespace_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteNamespace_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteNamespace_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteNamespace_argsTupleSchemeFactory(); /** * namespace name */ - public String name; // required + public @org.apache.thrift.annotation.Nullable java.lang.String name; // 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 { @@ -46915,10 +48032,10 @@ public class THBaseService { */ NAME((short)1, "name"); - 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); } } @@ -46926,6 +48043,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: // NAME @@ -46941,21 +48059,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; } @@ -46964,18 +48083,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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 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(deleteNamespace_args.class, metaDataMap); } @@ -46983,7 +48102,7 @@ public class THBaseService { } public deleteNamespace_args( - String name) + java.lang.String name) { this(); this.name = name; @@ -47010,14 +48129,15 @@ public class THBaseService { /** * namespace name */ - public String getName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getName() { return this.name; } /** * namespace name */ - public deleteNamespace_args setName(String name) { + public deleteNamespace_args setName(@org.apache.thrift.annotation.Nullable java.lang.String name) { this.name = name; return this; } @@ -47037,43 +48157,44 @@ 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 NAME: if (value == null) { unsetName(); } else { - setName((String)value); + setName((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 NAME: return getName(); } - 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 NAME: return isSetName(); } - 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 deleteNamespace_args) @@ -47084,6 +48205,8 @@ public class THBaseService { public boolean equals(deleteNamespace_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); @@ -47099,14 +48222,13 @@ public class THBaseService { @Override public int hashCode() { - List 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(); - return list.hashCode(); + return hashCode; } @Override @@ -47117,7 +48239,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } @@ -47130,21 +48252,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("deleteNamespace_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteNamespace_args("); boolean first = true; sb.append("name:"); @@ -47174,7 +48297,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) { @@ -47182,13 +48305,13 @@ public class THBaseService { } } - private static class deleteNamespace_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteNamespace_argsStandardScheme getScheme() { return new deleteNamespace_argsStandardScheme(); } } - private static class deleteNamespace_argsStandardScheme extends StandardScheme { + private static class deleteNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -47234,28 +48357,31 @@ public class THBaseService { } - private static class deleteNamespace_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteNamespace_argsTupleScheme getScheme() { return new deleteNamespace_argsTupleScheme(); } } - private static class deleteNamespace_argsTupleScheme extends TupleScheme { + private static class deleteNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_args 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.name); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(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 deleteNamespace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -47263,22 +48389,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 deleteNamespace_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteNamespace_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteNamespace_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteNamespace_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); } } @@ -47286,6 +48409,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 @@ -47301,21 +48425,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; } @@ -47324,18 +48449,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(deleteNamespace_result.class, metaDataMap); } @@ -47367,11 +48492,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public deleteNamespace_result setIo(TIOError io) { + public deleteNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -47391,7 +48517,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) { @@ -47404,30 +48530,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 deleteNamespace_result) @@ -47438,6 +48565,8 @@ public class THBaseService { public boolean equals(deleteNamespace_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(); @@ -47453,14 +48582,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 @@ -47471,7 +48599,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; } @@ -47484,21 +48612,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("deleteNamespace_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteNamespace_result("); boolean first = true; sb.append("io:"); @@ -47525,7 +48654,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) { @@ -47533,13 +48662,13 @@ public class THBaseService { } } - private static class deleteNamespace_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteNamespace_resultStandardScheme getScheme() { return new deleteNamespace_resultStandardScheme(); } } - private static class deleteNamespace_resultStandardScheme extends StandardScheme { + private static class deleteNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -47586,18 +48715,18 @@ public class THBaseService { } - private static class deleteNamespace_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteNamespace_resultTupleScheme getScheme() { return new deleteNamespace_resultTupleScheme(); } } - private static class deleteNamespace_resultTupleScheme extends TupleScheme { + private static class deleteNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_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); } @@ -47609,8 +48738,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_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); @@ -47619,6 +48748,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 getNamespaceDescriptor_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -47626,16 +48758,13 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getNamespaceDescriptor_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getNamespaceDescriptor_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getNamespaceDescriptor_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getNamespaceDescriptor_argsTupleSchemeFactory(); /** * name of namespace descriptor */ - public String name; // required + public @org.apache.thrift.annotation.Nullable java.lang.String name; // 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 { @@ -47644,10 +48773,10 @@ public class THBaseService { */ NAME((short)1, "name"); - 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); } } @@ -47655,6 +48784,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: // NAME @@ -47670,21 +48800,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; } @@ -47693,18 +48824,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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 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(getNamespaceDescriptor_args.class, metaDataMap); } @@ -47712,7 +48843,7 @@ public class THBaseService { } public getNamespaceDescriptor_args( - String name) + java.lang.String name) { this(); this.name = name; @@ -47739,14 +48870,15 @@ public class THBaseService { /** * name of namespace descriptor */ - public String getName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getName() { return this.name; } /** * name of namespace descriptor */ - public getNamespaceDescriptor_args setName(String name) { + public getNamespaceDescriptor_args setName(@org.apache.thrift.annotation.Nullable java.lang.String name) { this.name = name; return this; } @@ -47766,43 +48898,44 @@ 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 NAME: if (value == null) { unsetName(); } else { - setName((String)value); + setName((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 NAME: return getName(); } - 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 NAME: return isSetName(); } - 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 getNamespaceDescriptor_args) @@ -47813,6 +48946,8 @@ public class THBaseService { public boolean equals(getNamespaceDescriptor_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); @@ -47828,14 +48963,13 @@ public class THBaseService { @Override public int hashCode() { - List 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(); - return list.hashCode(); + return hashCode; } @Override @@ -47846,7 +48980,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } @@ -47859,21 +48993,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("getNamespaceDescriptor_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getNamespaceDescriptor_args("); boolean first = true; sb.append("name:"); @@ -47903,7 +49038,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) { @@ -47911,13 +49046,13 @@ public class THBaseService { } } - private static class getNamespaceDescriptor_argsStandardSchemeFactory implements SchemeFactory { + private static class getNamespaceDescriptor_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getNamespaceDescriptor_argsStandardScheme getScheme() { return new getNamespaceDescriptor_argsStandardScheme(); } } - private static class getNamespaceDescriptor_argsStandardScheme extends StandardScheme { + private static class getNamespaceDescriptor_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -47963,28 +49098,31 @@ public class THBaseService { } - private static class getNamespaceDescriptor_argsTupleSchemeFactory implements SchemeFactory { + private static class getNamespaceDescriptor_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getNamespaceDescriptor_argsTupleScheme getScheme() { return new getNamespaceDescriptor_argsTupleScheme(); } } - private static class getNamespaceDescriptor_argsTupleScheme extends TupleScheme { + private static class getNamespaceDescriptor_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_args 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.name); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(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 getNamespaceDescriptor_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -47993,24 +49131,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 getNamespaceDescriptor_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getNamespaceDescriptor_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getNamespaceDescriptor_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getNamespaceDescriptor_resultTupleSchemeFactory(); - public TNamespaceDescriptor success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TNamespaceDescriptor 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); } } @@ -48018,6 +49153,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 @@ -48035,21 +49171,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; } @@ -48058,20 +49195,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, TNamespaceDescriptor.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(getNamespaceDescriptor_result.class, metaDataMap); } @@ -48109,11 +49246,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TNamespaceDescriptor getSuccess() { return this.success; } - public getNamespaceDescriptor_result setSuccess(TNamespaceDescriptor success) { + public getNamespaceDescriptor_result setSuccess(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor success) { this.success = success; return this; } @@ -48133,11 +49271,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getNamespaceDescriptor_result setIo(TIOError io) { + public getNamespaceDescriptor_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -48157,7 +49296,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) { @@ -48178,7 +49317,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(); @@ -48187,13 +49327,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) { @@ -48202,11 +49342,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 getNamespaceDescriptor_result) @@ -48217,6 +49357,8 @@ public class THBaseService { public boolean equals(getNamespaceDescriptor_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(); @@ -48241,19 +49383,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 @@ -48264,7 +49404,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; } @@ -48274,7 +49414,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; } @@ -48287,21 +49427,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("getNamespaceDescriptor_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getNamespaceDescriptor_result("); boolean first = true; sb.append("success:"); @@ -48339,7 +49480,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) { @@ -48347,13 +49488,13 @@ public class THBaseService { } } - private static class getNamespaceDescriptor_resultStandardSchemeFactory implements SchemeFactory { + private static class getNamespaceDescriptor_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getNamespaceDescriptor_resultStandardScheme getScheme() { return new getNamespaceDescriptor_resultStandardScheme(); } } - private static class getNamespaceDescriptor_resultStandardScheme extends StandardScheme { + private static class getNamespaceDescriptor_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -48414,18 +49555,18 @@ public class THBaseService { } - private static class getNamespaceDescriptor_resultTupleSchemeFactory implements SchemeFactory { + private static class getNamespaceDescriptor_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getNamespaceDescriptor_resultTupleScheme getScheme() { return new getNamespaceDescriptor_resultTupleScheme(); } } - private static class getNamespaceDescriptor_resultTupleScheme extends TupleScheme { + private static class getNamespaceDescriptor_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_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); } @@ -48443,8 +49584,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_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 TNamespaceDescriptor(); struct.success.read(iprot); @@ -48458,27 +49599,27 @@ 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 listNamespaceDescriptors_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("listNamespaceDescriptors_args"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new listNamespaceDescriptors_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new listNamespaceDescriptors_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaceDescriptors_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaceDescriptors_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); } } @@ -48486,6 +49627,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) { default: @@ -48499,21 +49641,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; } @@ -48522,14 +49665,14 @@ public class THBaseService { 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(listNamespaceDescriptors_args.class, metaDataMap); } @@ -48550,30 +49693,31 @@ public class THBaseService { 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 listNamespaceDescriptors_args) @@ -48584,15 +49728,17 @@ public class THBaseService { public boolean equals(listNamespaceDescriptors_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 @@ -48606,21 +49752,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("listNamespaceDescriptors_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaceDescriptors_args("); boolean first = true; sb.append(")"); @@ -48640,7 +49787,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) { @@ -48648,13 +49795,13 @@ public class THBaseService { } } - private static class listNamespaceDescriptors_argsStandardSchemeFactory implements SchemeFactory { + private static class listNamespaceDescriptors_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public listNamespaceDescriptors_argsStandardScheme getScheme() { return new listNamespaceDescriptors_argsStandardScheme(); } } - private static class listNamespaceDescriptors_argsStandardScheme extends StandardScheme { + private static class listNamespaceDescriptors_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -48687,25 +49834,28 @@ public class THBaseService { } - private static class listNamespaceDescriptors_argsTupleSchemeFactory implements SchemeFactory { + private static class listNamespaceDescriptors_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public listNamespaceDescriptors_argsTupleScheme getScheme() { return new listNamespaceDescriptors_argsTupleScheme(); } } - private static class listNamespaceDescriptors_argsTupleScheme extends TupleScheme { + private static class listNamespaceDescriptors_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_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, listNamespaceDescriptors_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 listNamespaceDescriptors_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -48714,24 +49864,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 listNamespaceDescriptors_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new listNamespaceDescriptors_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaceDescriptors_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaceDescriptors_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); } } @@ -48739,6 +49886,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 @@ -48756,21 +49904,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; } @@ -48779,21 +49928,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, TNamespaceDescriptor.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(listNamespaceDescriptors_result.class, metaDataMap); } @@ -48801,7 +49950,7 @@ public class THBaseService { } public listNamespaceDescriptors_result( - List success, + java.util.List success, TIOError io) { this(); @@ -48814,7 +49963,7 @@ public class THBaseService { */ public listNamespaceDescriptors_result(listNamespaceDescriptors_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 (TNamespaceDescriptor other_element : other.success) { __this__success.add(new TNamespaceDescriptor(other_element)); } @@ -48839,22 +49988,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(TNamespaceDescriptor 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 listNamespaceDescriptors_result setSuccess(List success) { + public listNamespaceDescriptors_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -48874,11 +50025,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public listNamespaceDescriptors_result setIo(TIOError io) { + public listNamespaceDescriptors_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -48898,13 +50050,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; @@ -48919,7 +50071,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(); @@ -48928,13 +50081,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) { @@ -48943,11 +50096,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 listNamespaceDescriptors_result) @@ -48958,6 +50111,8 @@ public class THBaseService { public boolean equals(listNamespaceDescriptors_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(); @@ -48982,19 +50137,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 @@ -49005,7 +50158,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; } @@ -49015,7 +50168,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; } @@ -49028,21 +50181,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("listNamespaceDescriptors_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaceDescriptors_result("); boolean first = true; sb.append("success:"); @@ -49077,7 +50231,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) { @@ -49085,13 +50239,13 @@ public class THBaseService { } } - private static class listNamespaceDescriptors_resultStandardSchemeFactory implements SchemeFactory { + private static class listNamespaceDescriptors_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public listNamespaceDescriptors_resultStandardScheme getScheme() { return new listNamespaceDescriptors_resultStandardScheme(); } } - private static class listNamespaceDescriptors_resultStandardScheme extends StandardScheme { + private static class listNamespaceDescriptors_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -49107,8 +50261,8 @@ public class THBaseService { if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list334 = iprot.readListBegin(); - struct.success = new ArrayList(_list334.size); - TNamespaceDescriptor _elem335; + struct.success = new java.util.ArrayList(_list334.size); + @org.apache.thrift.annotation.Nullable TNamespaceDescriptor _elem335; for (int _i336 = 0; _i336 < _list334.size; ++_i336) { _elem335 = new TNamespaceDescriptor(); @@ -49169,18 +50323,18 @@ public class THBaseService { } - private static class listNamespaceDescriptors_resultTupleSchemeFactory implements SchemeFactory { + private static class listNamespaceDescriptors_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public listNamespaceDescriptors_resultTupleScheme getScheme() { return new listNamespaceDescriptors_resultTupleScheme(); } } - private static class listNamespaceDescriptors_resultTupleScheme extends TupleScheme { + private static class listNamespaceDescriptors_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_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); } @@ -49204,13 +50358,13 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_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 _list339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list339.size); - TNamespaceDescriptor _elem340; + struct.success = new java.util.ArrayList(_list339.size); + @org.apache.thrift.annotation.Nullable TNamespaceDescriptor _elem340; for (int _i341 = 0; _i341 < _list339.size; ++_i341) { _elem340 = new TNamespaceDescriptor(); @@ -49228,6 +50382,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 f74764824b..39ea075eb7 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 8263eb5e8a..0b155555de 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 86d2715c02..c952a61744 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 = "2019-01-03") -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-01-27") +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 9a91392434..3e9f3a851f 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 = "2019-01-03") -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-01-27") +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 6eaac6828a..c00008f075 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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"); @@ -52,21 +25,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 public boolean returnResults; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -82,10 +52,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); } } @@ -93,6 +63,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, @@ -168,7 +140,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); @@ -193,14 +165,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()) { @@ -232,16 +204,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; } @@ -304,18 +278,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; } @@ -339,6 +314,7 @@ public class TIncrement implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -436,7 +417,7 @@ public class TIncrement implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -460,14 +441,15 @@ public class TIncrement 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_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); - - boolean present_returnResults = true && (isSetReturnResults()); - list.add(present_returnResults); - if (present_returnResults) - list.add(returnResults); - - 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 + ((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(); + + hashCode = hashCode * 8191 + ((isSetReturnResults()) ? 131071 : 524287); + if (isSetReturnResults()) + hashCode = hashCode * 8191 + ((returnResults) ? 131071 : 524287); + + return hashCode; } @Override @@ -629,7 +607,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; @@ -826,8 +805,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(); @@ -845,9 +824,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(); @@ -923,7 +902,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()); @@ -958,17 +937,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()); @@ -977,7 +956,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()); @@ -1014,13 +993,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(); @@ -1029,13 +1008,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(); @@ -1061,5 +1040,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/TKeepDeletedCells.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TKeepDeletedCells.java index 24f4d09657..3e48f1b1cc 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TKeepDeletedCells.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TKeepDeletedCells.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.KeepDeletedCells */ +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public enum TKeepDeletedCells implements org.apache.thrift.TEnum { /** * Deleted Cells are not retained. @@ -52,6 +49,7 @@ public enum TKeepDeletedCells 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 TKeepDeletedCells findByValue(int value) { switch (value) { case 0: 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 39379d1d0a..cc92c9de52 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-01-27") 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("TNamespaceDescriptor"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CONFIGURATION_FIELD_DESC = new org.apache.thrift.protocol.TField("configuration", org.apache.thrift.protocol.TType.MAP, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TNamespaceDescriptorStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TNamespaceDescriptorTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TNamespaceDescriptorStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TNamespaceDescriptorTupleSchemeFactory(); - public String name; // required - public Map configuration; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String name; // required + public @org.apache.thrift.annotation.Nullable java.util.Map configuration; // 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 { NAME((short)1, "name"), CONFIGURATION((short)2, "configuration"); - 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); } } @@ -70,6 +40,7 @@ public class TNamespaceDescriptor 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.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CONFIGURATION, new org.apache.thrift.meta_data.FieldMetaData("configuration", org.apache.thrift.TFieldRequirementType.OPTIONAL, 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), 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(TNamespaceDescriptor.class, metaDataMap); } @@ -134,7 +106,7 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase __this__configuration = new HashMap(other.configuration); + java.util.Map __this__configuration = new java.util.HashMap(other.configuration); this.configuration = __this__configuration; } } @@ -163,11 +135,12 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase(); + this.configuration = new java.util.HashMap(); } this.configuration.put(key, val); } - public Map getConfiguration() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getConfiguration() { return this.configuration; } - public TNamespaceDescriptor setConfiguration(Map configuration) { + public TNamespaceDescriptor setConfiguration(@org.apache.thrift.annotation.Nullable java.util.Map configuration) { this.configuration = configuration; return this; } @@ -222,13 +196,13 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase)value); + setConfiguration((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 NAME: return getName(); @@ -252,13 +227,13 @@ public class TNamespaceDescriptor 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_configuration = true && (isSetConfiguration()); - list.add(present_configuration); - if (present_configuration) - list.add(configuration); + hashCode = hashCode * 8191 + ((isSetConfiguration()) ? 131071 : 524287); + if (isSetConfiguration()) + hashCode = hashCode * 8191 + configuration.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -329,7 +304,7 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase { + private static class TNamespaceDescriptorStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TNamespaceDescriptor struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -444,9 +420,9 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase(2*_map180.size); - String _key181; - String _val182; + struct.configuration = new java.util.HashMap(2*_map180.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key181; + @org.apache.thrift.annotation.Nullable java.lang.String _val182; for (int _i183 = 0; _i183 < _map180.size; ++_i183) { _key181 = iprot.readString(); @@ -485,7 +461,7 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase _iter184 : struct.configuration.entrySet()) + for (java.util.Map.Entry _iter184 : struct.configuration.entrySet()) { oprot.writeString(_iter184.getKey()); oprot.writeString(_iter184.getValue()); @@ -501,19 +477,19 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase { + private static class TNamespaceDescriptorTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TNamespaceDescriptor 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.name); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetConfiguration()) { optionals.set(0); } @@ -521,7 +497,7 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase _iter185 : struct.configuration.entrySet()) + for (java.util.Map.Entry _iter185 : struct.configuration.entrySet()) { oprot.writeString(_iter185.getKey()); oprot.writeString(_iter185.getValue()); @@ -532,16 +508,16 @@ public class TNamespaceDescriptor implements org.apache.thrift.TBase(2*_map186.size); - String _key187; - String _val188; + struct.configuration = new java.util.HashMap(2*_map186.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key187; + @org.apache.thrift.annotation.Nullable java.lang.String _val188; for (int _i189 = 0; _i189 < _map186.size; ++_i189) { _key187 = iprot.readString(); @@ -554,5 +530,8 @@ public class TNamespaceDescriptor 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/TPut.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java index f277d1fb55..a9a38294ed 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java @@ -1,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 Put operations for a single row. * @@ -46,7 +19,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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public class TPut implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPut"); @@ -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/TReadType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.java index 4a6cf3ebd5..7ab12d5a2d 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.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,7 @@ package org.apache.hadoop.hbase.thrift2.generated; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public enum TReadType implements org.apache.thrift.TEnum { DEFAULT(1), STREAM(2), @@ -33,6 +30,7 @@ public enum TReadType 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 TReadType findByValue(int value) { switch (value) { case 1: 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 3e668f2d82..687a9bec9f 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,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"}) /** * if no Result is found, row and columnValues will not be set. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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"); @@ -46,14 +19,11 @@ public class TResult implements org.apache.thrift.TBase, 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 public boolean stale; // optional public boolean partial; // optional @@ -64,10 +34,10 @@ public class TResult 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 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, @@ -141,7 +113,7 @@ public class TResult implements org.apache.thrift.TBase columnValues) + java.util.List columnValues) { this(); this.columnValues = columnValues; @@ -168,7 +140,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)); } @@ -197,16 +169,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; } @@ -276,16 +250,16 @@ public class TResult implements org.apache.thrift.TBase)value); + setColumnValues((java.util.List)value); } break; @@ -333,7 +311,7 @@ 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(); - boolean present_stale = true && (isSetStale()); - list.add(present_stale); - if (present_stale) - list.add(stale); + hashCode = hashCode * 8191 + ((isSetStale()) ? 131071 : 524287); + if (isSetStale()) + hashCode = hashCode * 8191 + ((stale) ? 131071 : 524287); - boolean present_partial = true && (isSetPartial()); - list.add(present_partial); - if (present_partial) - list.add(partial); + hashCode = hashCode * 8191 + ((isSetPartial()) ? 131071 : 524287); + if (isSetPartial()) + hashCode = hashCode * 8191 + ((partial) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -472,7 +449,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; @@ -621,8 +599,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(); @@ -702,17 +680,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) @@ -720,7 +698,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(); @@ -757,7 +735,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 82c1ef779f..9a178cddb9 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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; @@ -461,8 +441,8 @@ public class TRowMutations implements org.apache.thrift.TBase(_list134.size); - TMutation _elem135; + struct.mutations = new java.util.ArrayList(_list134.size); + @org.apache.thrift.annotation.Nullable TMutation _elem135; for (int _i136 = 0; _i136 < _list134.size; ++_i136) { _elem135 = new TMutation(); @@ -514,17 +494,17 @@ 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()); @@ -537,13 +517,13 @@ public class TRowMutations implements org.apache.thrift.TBase(_list139.size); - TMutation _elem140; + struct.mutations = new java.util.ArrayList(_list139.size); + @org.apache.thrift.annotation.Nullable TMutation _elem140; for (int _i141 = 0; _i141 < _list139.size; ++_i141) { _elem140 = new TMutation(); @@ -555,5 +535,8 @@ public class TRowMutations 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/TScan.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java index 6284b4af6a..d660656eaf 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 = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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"); @@ -61,38 +34,35 @@ public class TScan implements org.apache.thrift.TBase, jav private static final org.apache.thrift.protocol.TField TARGET_REPLICA_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("targetReplicaId", org.apache.thrift.protocol.TType.I32, (short)17); private static final org.apache.thrift.protocol.TField FILTER_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("filterBytes", org.apache.thrift.protocol.TType.STRING, (short)18); - 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 /** * * @see TReadType */ - public TReadType readType; // optional + public @org.apache.thrift.annotation.Nullable TReadType readType; // optional public int limit; // optional /** * * @see TConsistency */ - public TConsistency consistency; // optional + public @org.apache.thrift.annotation.Nullable TConsistency consistency; // optional public int targetReplicaId; // optional - public ByteBuffer filterBytes; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterBytes; // 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 { @@ -123,10 +93,10 @@ public class TScan implements org.apache.thrift.TBase, jav TARGET_REPLICA_ID((short)17, "targetReplicaId"), FILTER_BYTES((short)18, "filterBytes"); - 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); } } @@ -134,6 +104,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 @@ -183,21 +154,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; } @@ -206,7 +178,7 @@ public class TScan implements org.apache.thrift.TBase, jav return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -221,9 +193,9 @@ public class TScan implements org.apache.thrift.TBase, jav private static final int __TARGETREPLICAID_ISSET_ID = 6; 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.READ_TYPE,_Fields.LIMIT,_Fields.CONSISTENCY,_Fields.TARGET_REPLICA_ID,_Fields.FILTER_BYTES}; - 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, @@ -265,7 +237,7 @@ public class TScan implements org.apache.thrift.TBase, jav new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.FILTER_BYTES, new org.apache.thrift.meta_data.FieldMetaData("filterBytes", org.apache.thrift.TFieldRequirementType.OPTIONAL, 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(TScan.class, metaDataMap); } @@ -286,7 +258,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)); } @@ -302,7 +274,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()) { @@ -311,13 +283,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); @@ -376,16 +348,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; } @@ -410,16 +382,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; } @@ -443,22 +415,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; } @@ -489,16 +463,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() { @@ -512,23 +486,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; } @@ -553,16 +528,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; } @@ -593,34 +568,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; } @@ -640,11 +616,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; } @@ -675,16 +652,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() { @@ -698,34 +675,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; } @@ -749,6 +727,7 @@ public class TScan implements org.apache.thrift.TBase, jav * * @see TReadType */ + @org.apache.thrift.annotation.Nullable public TReadType getReadType() { return this.readType; } @@ -757,7 +736,7 @@ public class TScan implements org.apache.thrift.TBase, jav * * @see TReadType */ - public TScan setReadType(TReadType readType) { + public TScan setReadType(@org.apache.thrift.annotation.Nullable TReadType readType) { this.readType = readType; return this; } @@ -788,22 +767,23 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetLimit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); } /** Returns true if field limit is set (has been assigned a value) and false otherwise */ public boolean isSetLimit() { - return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); } public void setLimitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); } /** * * @see TConsistency */ + @org.apache.thrift.annotation.Nullable public TConsistency getConsistency() { return this.consistency; } @@ -812,7 +792,7 @@ public class TScan implements org.apache.thrift.TBase, jav * * @see TConsistency */ - public TScan setConsistency(TConsistency consistency) { + public TScan setConsistency(@org.apache.thrift.annotation.Nullable TConsistency consistency) { this.consistency = consistency; return this; } @@ -843,16 +823,16 @@ public class TScan implements org.apache.thrift.TBase, jav } public void unsetTargetReplicaId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID); } /** Returns true if field targetReplicaId is set (has been assigned a value) and false otherwise */ public boolean isSetTargetReplicaId() { - return EncodingUtils.testBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID); } public void setTargetReplicaIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TARGETREPLICAID_ISSET_ID, value); } public byte[] getFilterBytes() { @@ -860,16 +840,16 @@ public class TScan implements org.apache.thrift.TBase, jav return filterBytes == null ? null : filterBytes.array(); } - public ByteBuffer bufferForFilterBytes() { + public java.nio.ByteBuffer bufferForFilterBytes() { return org.apache.thrift.TBaseHelper.copyBinary(filterBytes); } public TScan setFilterBytes(byte[] filterBytes) { - this.filterBytes = filterBytes == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterBytes, filterBytes.length)); + this.filterBytes = filterBytes == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(filterBytes.clone()); return this; } - public TScan setFilterBytes(ByteBuffer filterBytes) { + public TScan setFilterBytes(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterBytes) { this.filterBytes = org.apache.thrift.TBaseHelper.copyBinary(filterBytes); return this; } @@ -889,13 +869,17 @@ public class TScan implements org.apache.thrift.TBase, jav } } - 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; @@ -903,7 +887,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; @@ -911,7 +899,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -919,7 +907,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetCaching(); } else { - setCaching((Integer)value); + setCaching((java.lang.Integer)value); } break; @@ -927,7 +915,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetMaxVersions(); } else { - setMaxVersions((Integer)value); + setMaxVersions((java.lang.Integer)value); } break; @@ -943,7 +931,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; @@ -951,7 +943,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetBatchSize(); } else { - setBatchSize((Integer)value); + setBatchSize((java.lang.Integer)value); } break; @@ -959,7 +951,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; @@ -975,7 +967,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetReversed(); } else { - setReversed((Boolean)value); + setReversed((java.lang.Boolean)value); } break; @@ -983,7 +975,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetCacheBlocks(); } else { - setCacheBlocks((Boolean)value); + setCacheBlocks((java.lang.Boolean)value); } break; @@ -991,7 +983,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetColFamTimeRangeMap(); } else { - setColFamTimeRangeMap((Map)value); + setColFamTimeRangeMap((java.util.Map)value); } break; @@ -1007,7 +999,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetLimit(); } else { - setLimit((Integer)value); + setLimit((java.lang.Integer)value); } break; @@ -1023,7 +1015,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetTargetReplicaId(); } else { - setTargetReplicaId((Integer)value); + setTargetReplicaId((java.lang.Integer)value); } break; @@ -1031,14 +1023,19 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetFilterBytes(); } else { - setFilterBytes((ByteBuffer)value); + if (value instanceof byte[]) { + setFilterBytes((byte[])value); + } else { + setFilterBytes((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 START_ROW: return getStartRow(); @@ -1095,13 +1092,13 @@ public class TScan implements org.apache.thrift.TBase, jav return getFilterBytes(); } - 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) { @@ -1142,11 +1139,11 @@ public class TScan implements org.apache.thrift.TBase, jav case FILTER_BYTES: return isSetFilterBytes(); } - 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) @@ -1157,6 +1154,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(); @@ -1325,99 +1324,81 @@ 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_readType = true && (isSetReadType()); - list.add(present_readType); - if (present_readType) - list.add(readType.getValue()); - - boolean present_limit = true && (isSetLimit()); - list.add(present_limit); - if (present_limit) - list.add(limit); - - boolean present_consistency = true && (isSetConsistency()); - list.add(present_consistency); - if (present_consistency) - list.add(consistency.getValue()); - - boolean present_targetReplicaId = true && (isSetTargetReplicaId()); - list.add(present_targetReplicaId); - if (present_targetReplicaId) - list.add(targetReplicaId); - - boolean present_filterBytes = true && (isSetFilterBytes()); - list.add(present_filterBytes); - if (present_filterBytes) - list.add(filterBytes); - - 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 + ((isSetReadType()) ? 131071 : 524287); + if (isSetReadType()) + hashCode = hashCode * 8191 + readType.getValue(); + + hashCode = hashCode * 8191 + ((isSetLimit()) ? 131071 : 524287); + if (isSetLimit()) + hashCode = hashCode * 8191 + limit; + + hashCode = hashCode * 8191 + ((isSetConsistency()) ? 131071 : 524287); + if (isSetConsistency()) + hashCode = hashCode * 8191 + consistency.getValue(); + + hashCode = hashCode * 8191 + ((isSetTargetReplicaId()) ? 131071 : 524287); + if (isSetTargetReplicaId()) + hashCode = hashCode * 8191 + targetReplicaId; + + hashCode = hashCode * 8191 + ((isSetFilterBytes()) ? 131071 : 524287); + if (isSetFilterBytes()) + hashCode = hashCode * 8191 + filterBytes.hashCode(); + + return hashCode; } @Override @@ -1428,7 +1409,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; } @@ -1438,7 +1419,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; } @@ -1448,7 +1429,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; } @@ -1458,7 +1439,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; } @@ -1468,7 +1449,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; } @@ -1478,7 +1459,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; } @@ -1488,7 +1469,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; } @@ -1498,7 +1479,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; } @@ -1508,7 +1489,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; } @@ -1518,7 +1499,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; } @@ -1528,7 +1509,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; } @@ -1538,7 +1519,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; } @@ -1548,7 +1529,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; } @@ -1558,7 +1539,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReadType()).compareTo(other.isSetReadType()); + lastComparison = java.lang.Boolean.valueOf(isSetReadType()).compareTo(other.isSetReadType()); if (lastComparison != 0) { return lastComparison; } @@ -1568,7 +1549,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + lastComparison = java.lang.Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); if (lastComparison != 0) { return lastComparison; } @@ -1578,7 +1559,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency()).compareTo(other.isSetConsistency()); + lastComparison = java.lang.Boolean.valueOf(isSetConsistency()).compareTo(other.isSetConsistency()); if (lastComparison != 0) { return lastComparison; } @@ -1588,7 +1569,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTargetReplicaId()).compareTo(other.isSetTargetReplicaId()); + lastComparison = java.lang.Boolean.valueOf(isSetTargetReplicaId()).compareTo(other.isSetTargetReplicaId()); if (lastComparison != 0) { return lastComparison; } @@ -1598,7 +1579,7 @@ public class TScan implements org.apache.thrift.TBase, jav return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterBytes()).compareTo(other.isSetFilterBytes()); + lastComparison = java.lang.Boolean.valueOf(isSetFilterBytes()).compareTo(other.isSetFilterBytes()); if (lastComparison != 0) { return lastComparison; } @@ -1611,21 +1592,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()) { @@ -1802,7 +1784,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; @@ -1812,13 +1794,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; @@ -1850,8 +1832,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(); @@ -1910,9 +1892,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(); @@ -1955,9 +1937,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(); @@ -2089,7 +2071,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()); @@ -2121,7 +2103,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); @@ -2168,18 +2150,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); } @@ -2268,7 +2250,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()); @@ -2287,7 +2269,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); @@ -2313,8 +2295,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(18); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(18); if (incoming.get(0)) { struct.startRow = iprot.readBinary(); struct.setStartRowIsSet(true); @@ -2326,8 +2308,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(); @@ -2361,9 +2343,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(); @@ -2389,9 +2371,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(); @@ -2425,5 +2407,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 a19503becb..5a7d1425d4 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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/TTableDescriptor.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableDescriptor.java index 288709e4d3..4ea2374c65 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableDescriptor.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableDescriptor.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"}) /** * Thrift wrapper around * org.apache.hadoop.hbase.client.TableDescriptor */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public class TTableDescriptor 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("TTableDescriptor"); @@ -47,20 +20,17 @@ public class TTableDescriptor implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TTableDescriptorStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TTableDescriptorTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TTableDescriptorStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TTableDescriptorTupleSchemeFactory(); - public TTableName tableName; // required - public List columns; // optional - public Map attributes; // optional + public @org.apache.thrift.annotation.Nullable TTableName tableName; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // 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 { @@ -73,10 +43,10 @@ public class TTableDescriptor 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 TTableDescriptor 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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -149,7 +121,7 @@ public class TTableDescriptor 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 (TColumnFamilyDescriptor other_element : other.columns) { __this__columns.add(new TColumnFamilyDescriptor(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()) { @@ -198,11 +170,12 @@ public class TTableDescriptor implements org.apache.thrift.TBase getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumnFamilyDescriptor 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 TTableDescriptor setColumns(List columns) { + public TTableDescriptor setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -265,18 +240,19 @@ public class TTableDescriptor 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 TTableDescriptor setAttributes(Map attributes) { + public TTableDescriptor setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -300,6 +276,7 @@ public class TTableDescriptor implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -350,7 +327,7 @@ public class TTableDescriptor implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -365,7 +342,8 @@ public class TTableDescriptor implements org.apache.thrift.TBase 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_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(); - return list.hashCode(); + return hashCode; } @Override @@ -489,7 +465,7 @@ public class TTableDescriptor implements org.apache.thrift.TBase { + private static class TTableDescriptorStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TTableDescriptor struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -648,8 +625,8 @@ public class TTableDescriptor implements org.apache.thrift.TBase(_list162.size); - TColumnFamilyDescriptor _elem163; + struct.columns = new java.util.ArrayList(_list162.size); + @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor _elem163; for (int _i164 = 0; _i164 < _list162.size; ++_i164) { _elem163 = new TColumnFamilyDescriptor(); @@ -667,9 +644,9 @@ public class TTableDescriptor implements org.apache.thrift.TBase(2*_map165.size); - ByteBuffer _key166; - ByteBuffer _val167; + struct.attributes = new java.util.HashMap(2*_map165.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key166; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val167; for (int _i168 = 0; _i168 < _map165.size; ++_i168) { _key166 = iprot.readBinary(); @@ -730,7 +707,7 @@ public class TTableDescriptor implements org.apache.thrift.TBase _iter170 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter170 : struct.attributes.entrySet()) { oprot.writeBinary(_iter170.getKey()); oprot.writeBinary(_iter170.getValue()); @@ -753,19 +730,19 @@ public class TTableDescriptor implements org.apache.thrift.TBase { + private static class TTableDescriptorTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TTableDescriptor struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetColumns()) { optionals.set(0); } @@ -788,7 +765,7 @@ public class TTableDescriptor implements org.apache.thrift.TBase _iter172 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter172 : struct.attributes.entrySet()) { oprot.writeBinary(_iter172.getKey()); oprot.writeBinary(_iter172.getValue()); @@ -802,16 +779,16 @@ public class TTableDescriptor implements org.apache.thrift.TBase(_list173.size); - TColumnFamilyDescriptor _elem174; + struct.columns = new java.util.ArrayList(_list173.size); + @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor _elem174; for (int _i175 = 0; _i175 < _list173.size; ++_i175) { _elem174 = new TColumnFamilyDescriptor(); @@ -824,9 +801,9 @@ public class TTableDescriptor implements org.apache.thrift.TBase(2*_map176.size); - ByteBuffer _key177; - ByteBuffer _val178; + struct.attributes = new java.util.HashMap(2*_map176.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key177; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val178; for (int _i179 = 0; _i179 < _map176.size; ++_i179) { _key177 = iprot.readBinary(); @@ -843,5 +820,8 @@ public class TTableDescriptor 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/TTableName.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableName.java index 21b0bffb10..de550d7d7c 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableName.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableName.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"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Thrift wrapper around * org.apache.hadoop.hbase.TableName */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-01-03") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") public class TTableName 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("TTableName"); private static final org.apache.thrift.protocol.TField NS_FIELD_DESC = new org.apache.thrift.protocol.TField("ns", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifier", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TTableNameStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TTableNameTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TTableNameStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TTableNameTupleSchemeFactory(); /** * namespace name */ - public ByteBuffer ns; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer ns; // optional /** * tablename */ - public ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // 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 { @@ -71,10 +41,10 @@ public class TTableName 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); } } @@ -82,6 +52,7 @@ public class TTableName 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.NS, new org.apache.thrift.meta_data.FieldMetaData("ns", org.apache.thrift.TFieldRequirementType.OPTIONAL, 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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TTableName.class, metaDataMap); } @@ -144,7 +116,7 @@ public class TTableName implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_ns = true && (isSetNs()); - list.add(present_ns); - if (present_ns) - list.add(ns); + hashCode = hashCode * 8191 + ((isSetNs()) ? 131071 : 524287); + if (isSetNs()) + hashCode = hashCode * 8191 + ns.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(); - return list.hashCode(); + return hashCode; } @Override @@ -359,7 +340,7 @@ public class TTableName implements org.apache.thrift.TBase { + private static class TTableNameStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TTableName struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -511,19 +493,19 @@ public class TTableName implements org.apache.thrift.TBase { + private static class TTableNameTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TTableName 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.qualifier); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNs()) { optionals.set(0); } @@ -535,10 +517,10 @@ public class TTableName 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 fe2ef49f25..a6161ec734 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 = "2019-01-03") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-27") 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 250fa6b111..0769380496 100755 --- a/pom.xml +++ b/pom.xml @@ -1580,7 +1580,7 @@ 2.5.0 0.5.0 thrift - 0.9.3 + 0.12.0 3.4.10 0.9.94 -- 2.17.1