From 5f9496796016ffeabf93cd0c2abe5ee3a9b089b9 Mon Sep 17 00:00:00 2001 From: zhangduo Date: Mon, 28 Jan 2019 20:17:35 +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 | 237 +- .../thrift2/generated/TAuthorization.java | 150 +- .../thrift2/generated/TCellVisibility.java | 129 +- .../hbase/thrift2/generated/TColumn.java | 176 +- .../thrift2/generated/TColumnIncrement.java | 178 +- .../hbase/thrift2/generated/TColumnValue.java | 226 +- .../hbase/thrift2/generated/TCompareOp.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 | 292 +- .../thrift2/generated/THBaseService.java | 7029 ++++--- .../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 | 237 +- .../hbase/thrift2/generated/TMutation.java | 101 +- .../hadoop/hbase/thrift2/generated/TPut.java | 268 +- .../hbase/thrift2/generated/TReadType.java | 8 +- .../hbase/thrift2/generated/TResult.java | 167 +- .../thrift2/generated/TRowMutations.java | 193 +- .../hadoop/hbase/thrift2/generated/TScan.java | 473 +- .../hbase/thrift2/generated/TServerName.java | 165 +- .../hbase/thrift2/generated/TTimeRange.java | 137 +- pom.xml | 2 +- 40 files changed, 15694 insertions(+), 14500 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 68361c114f..714e91c821 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java @@ -1,65 +1,35 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * An AlreadyExists exceptions signals that a table with the specified * name already exists */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") -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-28") +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 a2920eac02..73134edd89 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java @@ -1,67 +1,37 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A BatchMutation object is used to apply a number of Mutations to a single row. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 32523774a1..bba4842b19 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java @@ -1,45 +1,18 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * An HColumnDescriptor contains information about a column family * such as the number of versions, compression settings, etc. It is * used as input when creating a table or adding a column. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 f77ce143f2..915b0b42b7 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 558f3e1cc1..d96d1d12e3 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java @@ -1,66 +1,36 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * An IOError exception signals that an error occurred communicating * to the Hbase master or an Hbase region server. Also used to return * more general Hbase error conditions. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") -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-28") +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 bd296cca3d..4fafc7b320 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java @@ -1,65 +1,35 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * An IllegalArgument exception indicates an illegal or invalid * argument was passed into a procedure. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") -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-28") +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 216df2d197..0e0c2f670f 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java @@ -1,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A Mutation object is used to either update or delete a column-value. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 439d71e31c..6b68c722f2 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java @@ -1,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * An Append object is used to specify the parameters for performing the append operation. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 37021c0ecc..c8123dd2be 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java @@ -1,59 +1,29 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * TCell - Used to transport a cell value (byte[]) and the timestamp it was * stored with together as a result for get and getRow methods. This promotes * the timestamp of a cell to a first-class value, making it easy to take * note of temporal data. Cell is used all the way from HStore up to HTable. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 77e875da2d..35afe4345d 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java @@ -1,67 +1,37 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Holds column name and the cell. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 22b5f79c6f..2a028b5181 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java @@ -1,44 +1,17 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * For increments that are not incrementColumnValue * equivalents. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 a1dab6b01a..02b66353eb 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java @@ -1,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A TRegionInfo contains information about an HTable region. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 418f503451..cb31a8e557 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java @@ -1,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Holds row name and then a map of columns to cells. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 3faadd9ee5..57519ede4f 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java @@ -1,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A Scan object is used to specify scanner parameters when opening a scanner. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 e0e3074e28..93effc78b0 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TAppend implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAppend"); @@ -44,21 +17,18 @@ public class TAppend implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TAppendStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TAppendTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TAppendStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TAppendTupleSchemeFactory(); - public ByteBuffer row; // required - public List columns; // required - public Map attributes; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional /** * * @see TDurability */ - public TDurability durability; // optional - public TCellVisibility cellVisibility; // optional + public @org.apache.thrift.annotation.Nullable TDurability durability; // optional + public @org.apache.thrift.annotation.Nullable TCellVisibility cellVisibility; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -72,10 +42,10 @@ public class TAppend implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -83,6 +53,7 @@ public class TAppend implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -152,7 +124,7 @@ public class TAppend implements org.apache.thrift.TBase columns) + java.nio.ByteBuffer row, + java.util.List columns) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -176,14 +148,14 @@ public class TAppend implements org.apache.thrift.TBase __this__columns = new ArrayList(other.columns.size()); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); for (TColumnValue other_element : other.columns) { __this__columns.add(new TColumnValue(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -212,16 +184,16 @@ public class TAppend implements org.apache.thrift.TBase getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumnValue elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TAppend setColumns(List columns) { + public TAppend setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -284,18 +258,19 @@ public class TAppend implements org.apache.thrift.TBase(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TAppend setAttributes(Map attributes) { + public TAppend setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -319,6 +294,7 @@ public class TAppend implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -393,7 +374,7 @@ public class TAppend implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -416,7 +397,8 @@ public class TAppend implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - boolean present_durability = true && (isSetDurability()); - list.add(present_durability); - if (present_durability) - list.add(durability.getValue()); + hashCode = hashCode * 8191 + ((isSetDurability()) ? 131071 : 524287); + if (isSetDurability()) + hashCode = hashCode * 8191 + durability.getValue(); - boolean present_cellVisibility = true && (isSetCellVisibility()); - list.add(present_cellVisibility); - if (present_cellVisibility) - list.add(cellVisibility); + hashCode = hashCode * 8191 + ((isSetCellVisibility()) ? 131071 : 524287); + if (isSetCellVisibility()) + hashCode = hashCode * 8191 + cellVisibility.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -559,7 +538,7 @@ public class TAppend implements org.apache.thrift.TBase { + private static class TAppendStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TAppend struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -738,8 +718,8 @@ public class TAppend implements org.apache.thrift.TBase(_list88.size); - TColumnValue _elem89; + struct.columns = new java.util.ArrayList(_list88.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem89; for (int _i90 = 0; _i90 < _list88.size; ++_i90) { _elem89 = new TColumnValue(); @@ -757,9 +737,9 @@ public class TAppend implements org.apache.thrift.TBase(2*_map91.size); - ByteBuffer _key92; - ByteBuffer _val93; + struct.attributes = new java.util.HashMap(2*_map91.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key92; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val93; for (int _i94 = 0; _i94 < _map91.size; ++_i94) { _key92 = iprot.readBinary(); @@ -827,7 +807,7 @@ public class TAppend implements org.apache.thrift.TBase _iter96 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter96 : struct.attributes.entrySet()) { oprot.writeBinary(_iter96.getKey()); oprot.writeBinary(_iter96.getValue()); @@ -857,17 +837,17 @@ public class TAppend implements org.apache.thrift.TBase { + private static class TAppendTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TAppend struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.columns.size()); @@ -876,7 +856,7 @@ public class TAppend implements org.apache.thrift.TBase _iter98 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter98 : struct.attributes.entrySet()) { oprot.writeBinary(_iter98.getKey()); oprot.writeBinary(_iter98.getValue()); @@ -907,13 +887,13 @@ public class TAppend implements org.apache.thrift.TBase(_list99.size); - TColumnValue _elem100; + struct.columns = new java.util.ArrayList(_list99.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem100; for (int _i101 = 0; _i101 < _list99.size; ++_i101) { _elem100 = new TColumnValue(); @@ -922,13 +902,13 @@ public class TAppend implements org.apache.thrift.TBase(2*_map102.size); - ByteBuffer _key103; - ByteBuffer _val104; + struct.attributes = new java.util.HashMap(2*_map102.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key103; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val104; for (int _i105 = 0; _i105 < _map102.size; ++_i105) { _key103 = iprot.readBinary(); @@ -950,5 +930,8 @@ public class TAppend implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java index 6c355a65b1..ae1b9e1490 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java @@ -1,61 +1,31 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TAuthorization implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAuthorization"); private static final org.apache.thrift.protocol.TField LABELS_FIELD_DESC = new org.apache.thrift.protocol.TField("labels", org.apache.thrift.protocol.TType.LIST, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TAuthorizationStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TAuthorizationTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TAuthorizationStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TAuthorizationTupleSchemeFactory(); - public List labels; // optional + public @org.apache.thrift.annotation.Nullable java.util.List labels; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { LABELS((short)1, "labels"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class TAuthorization implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LABELS, new org.apache.thrift.meta_data.FieldMetaData("labels", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TAuthorization.class, metaDataMap); } @@ -126,7 +98,7 @@ public class TAuthorization implements org.apache.thrift.TBase __this__labels = new ArrayList(other.labels); + java.util.List __this__labels = new java.util.ArrayList(other.labels); this.labels = __this__labels; } } @@ -144,22 +116,24 @@ public class TAuthorization implements org.apache.thrift.TBase getLabelsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getLabelsIterator() { return (this.labels == null) ? null : this.labels.iterator(); } - public void addToLabels(String elem) { + public void addToLabels(java.lang.String elem) { if (this.labels == null) { - this.labels = new ArrayList(); + this.labels = new java.util.ArrayList(); } this.labels.add(elem); } - public List getLabels() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLabels() { return this.labels; } - public TAuthorization setLabels(List labels) { + public TAuthorization setLabels(@org.apache.thrift.annotation.Nullable java.util.List labels) { this.labels = labels; return this; } @@ -179,43 +153,44 @@ public class TAuthorization implements org.apache.thrift.TBase)value); + setLabels((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LABELS: return getLabels(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case LABELS: return isSetLabels(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TAuthorization) @@ -226,6 +201,8 @@ public class TAuthorization implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_labels = true && (isSetLabels()); - list.add(present_labels); - if (present_labels) - list.add(labels); + hashCode = hashCode * 8191 + ((isSetLabels()) ? 131071 : 524287); + if (isSetLabels()) + hashCode = hashCode * 8191 + labels.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -259,7 +235,7 @@ public class TAuthorization implements org.apache.thrift.TBase { + private static class TAuthorizationStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TAuthorization struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -345,8 +322,8 @@ public class TAuthorization implements org.apache.thrift.TBase(_list8.size); - String _elem9; + struct.labels = new java.util.ArrayList(_list8.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem9; for (int _i10 = 0; _i10 < _list8.size; ++_i10) { _elem9 = iprot.readString(); @@ -379,7 +356,7 @@ public class TAuthorization implements org.apache.thrift.TBase { + private static class TAuthorizationTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TAuthorization struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLabels()) { optionals.set(0); } @@ -413,7 +390,7 @@ public class TAuthorization implements org.apache.thrift.TBase(_list13.size); - String _elem14; + struct.labels = new java.util.ArrayList(_list13.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem14; for (int _i15 = 0; _i15 < _list13.size; ++_i15) { _elem14 = iprot.readString(); @@ -441,5 +418,8 @@ public class TAuthorization implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java index 7da4dda48b..27e3ef39f9 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java @@ -1,61 +1,31 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 d0d336c063..aa64e0fce7 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java @@ -1,45 +1,18 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Addresses a single cell or multiple cells * in a HBase table by column family and optionally * a column qualifier and timestamp */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn"); @@ -47,14 +20,11 @@ public class TColumn implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TColumnStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TColumnTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TColumnStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TColumnTupleSchemeFactory(); - public ByteBuffer family; // required - public ByteBuffer qualifier; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // optional public long timestamp; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -63,10 +33,10 @@ public class TColumn implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -74,6 +44,7 @@ public class TColumn implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumn.class, metaDataMap); } @@ -142,7 +114,7 @@ public class TColumn implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - return list.hashCode(); + return hashCode; } @Override @@ -399,7 +379,7 @@ public class TColumn implements org.apache.thrift.TBase { + private static class TColumnStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TColumn struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -582,19 +563,19 @@ public class TColumn implements org.apache.thrift.TBase { + private static class TColumnTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.family); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetQualifier()) { optionals.set(0); } @@ -612,10 +593,10 @@ public class TColumn implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java index 2fb3f762a7..e8672d3ee6 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java @@ -1,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Represents a single cell and the amount to increment it by */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 3ceb4c019e..cdb9537fcb 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java @@ -1,43 +1,16 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Represents a single cell and its value. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TColumnValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnValue"); @@ -47,17 +20,14 @@ public class TColumnValue implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TColumnValueStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TColumnValueTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TColumnValueStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TColumnValueTupleSchemeFactory(); - public ByteBuffer family; // required - public ByteBuffer qualifier; // required - public ByteBuffer value; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required public long timestamp; // optional - public ByteBuffer tags; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer tags; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -67,10 +37,10 @@ public class TColumnValue implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -78,6 +48,7 @@ public class TColumnValue implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -146,7 +118,7 @@ public class TColumnValue implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_tags = true && (isSetTags()); - list.add(present_tags); - if (present_tags) - list.add(tags); + hashCode = hashCode * 8191 + ((isSetTags()) ? 131071 : 524287); + if (isSetTags()) + hashCode = hashCode * 8191 + tags.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -545,7 +531,7 @@ public class TColumnValue implements org.apache.thrift.TBase { + private static class TColumnValueStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TColumnValue struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -796,21 +783,21 @@ public class TColumnValue implements org.apache.thrift.TBase { + private static class TColumnValueTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumnValue struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); oprot.writeBinary(struct.value); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } @@ -828,14 +815,14 @@ public class TColumnValue implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java index efbba09cbe..67c339d431 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-28") public enum TCompareOp implements org.apache.thrift.TEnum { LESS(0), LESS_OR_EQUAL(1), @@ -41,6 +38,7 @@ public enum TCompareOp implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static TCompareOp findByValue(int value) { switch (value) { case 0: diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java index 8f7f119363..8c555e810a 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java @@ -1,39 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Used to perform Delete operations on a single row. * @@ -60,7 +33,7 @@ import org.slf4j.LoggerFactory; * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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..d56f1ce621 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-28") 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 c1144f307a..3946bc3234 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-28") public enum TDurability implements org.apache.thrift.TEnum { SKIP_WAL(1), ASYNC_WAL(2), @@ -41,6 +38,7 @@ public enum TDurability implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static TDurability findByValue(int value) { switch (value) { case 1: diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java index a493bd95d9..ba891b2e6f 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java @@ -1,39 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Used to perform Get operations on a single row. * @@ -47,7 +20,7 @@ import org.slf4j.LoggerFactory; * If you specify a time range and a timestamp the range is ignored. * Timestamps on TColumns are ignored. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TGet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGet"); @@ -60,20 +33,17 @@ public class TGet implements org.apache.thrift.TBase, java.i private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)7); private static final org.apache.thrift.protocol.TField AUTHORIZATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("authorizations", org.apache.thrift.protocol.TType.STRUCT, (short)8); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TGetStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TGetTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TGetStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TGetTupleSchemeFactory(); - public ByteBuffer row; // required - public List columns; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // optional public long timestamp; // optional - public TTimeRange timeRange; // optional + public @org.apache.thrift.annotation.Nullable TTimeRange timeRange; // optional public int maxVersions; // optional - public ByteBuffer filterString; // optional - public Map attributes; // optional - public TAuthorization authorizations; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterString; // optional + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional + public @org.apache.thrift.annotation.Nullable TAuthorization authorizations; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -86,10 +56,10 @@ public class TGet implements org.apache.thrift.TBase, java.i ATTRIBUTES((short)7, "attributes"), AUTHORIZATIONS((short)8, "authorizations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -97,6 +67,7 @@ public class TGet implements org.apache.thrift.TBase, java.i /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ROW @@ -126,21 +97,22 @@ public class TGet implements org.apache.thrift.TBase, java.i */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -149,7 +121,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -159,9 +131,9 @@ public class TGet implements org.apache.thrift.TBase, java.i private static final int __MAXVERSIONS_ISSET_ID = 1; private byte __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.COLUMNS,_Fields.TIMESTAMP,_Fields.TIME_RANGE,_Fields.MAX_VERSIONS,_Fields.FILTER_STRING,_Fields.ATTRIBUTES,_Fields.AUTHORIZATIONS}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -181,7 +153,7 @@ public class TGet implements org.apache.thrift.TBase, java.i new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))); tmpMap.put(_Fields.AUTHORIZATIONS, new org.apache.thrift.meta_data.FieldMetaData("authorizations", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorization.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TGet.class, metaDataMap); } @@ -189,7 +161,7 @@ public class TGet implements org.apache.thrift.TBase, java.i } public TGet( - ByteBuffer row) + java.nio.ByteBuffer row) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -204,7 +176,7 @@ public class TGet implements org.apache.thrift.TBase, java.i this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -219,7 +191,7 @@ public class TGet implements org.apache.thrift.TBase, java.i this.filterString = org.apache.thrift.TBaseHelper.copyBinary(other.filterString); } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetAuthorizations()) { @@ -250,16 +222,16 @@ public class TGet implements org.apache.thrift.TBase, java.i return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } public TGet setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public TGet setRow(ByteBuffer row) { + public TGet setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -283,22 +255,24 @@ public class TGet implements org.apache.thrift.TBase, java.i return (this.columns == null) ? 0 : this.columns.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumn elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TGet setColumns(List columns) { + public TGet setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -329,23 +303,24 @@ public class TGet implements org.apache.thrift.TBase, java.i } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TTimeRange getTimeRange() { return this.timeRange; } - public TGet setTimeRange(TTimeRange timeRange) { + public TGet setTimeRange(@org.apache.thrift.annotation.Nullable TTimeRange timeRange) { this.timeRange = timeRange; return this; } @@ -376,16 +351,16 @@ public class TGet implements org.apache.thrift.TBase, java.i } public void unsetMaxVersions() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); } /** Returns true if field maxVersions is set (has been assigned a value) and false otherwise */ public boolean isSetMaxVersions() { - return EncodingUtils.testBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID); } public void setMaxVersionsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MAXVERSIONS_ISSET_ID, value); } public byte[] getFilterString() { @@ -393,16 +368,16 @@ public class TGet implements org.apache.thrift.TBase, java.i return filterString == null ? null : filterString.array(); } - public ByteBuffer bufferForFilterString() { + public java.nio.ByteBuffer bufferForFilterString() { return org.apache.thrift.TBaseHelper.copyBinary(filterString); } public TGet setFilterString(byte[] filterString) { - this.filterString = filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(filterString, filterString.length)); + this.filterString = filterString == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(filterString.clone()); return this; } - public TGet setFilterString(ByteBuffer filterString) { + public TGet setFilterString(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer filterString) { this.filterString = org.apache.thrift.TBaseHelper.copyBinary(filterString); return this; } @@ -426,18 +401,19 @@ public class TGet implements org.apache.thrift.TBase, java.i return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TGet setAttributes(Map attributes) { + public TGet setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -457,11 +433,12 @@ public class TGet implements org.apache.thrift.TBase, java.i } } + @org.apache.thrift.annotation.Nullable public TAuthorization getAuthorizations() { return this.authorizations; } - public TGet setAuthorizations(TAuthorization authorizations) { + public TGet setAuthorizations(@org.apache.thrift.annotation.Nullable TAuthorization authorizations) { this.authorizations = authorizations; return this; } @@ -481,13 +458,17 @@ public class TGet implements org.apache.thrift.TBase, java.i } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case ROW: if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -495,7 +476,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -503,7 +484,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -519,7 +500,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetMaxVersions(); } else { - setMaxVersions((Integer)value); + setMaxVersions((java.lang.Integer)value); } break; @@ -527,7 +508,11 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetFilterString(); } else { - setFilterString((ByteBuffer)value); + if (value instanceof byte[]) { + setFilterString((byte[])value); + } else { + setFilterString((java.nio.ByteBuffer)value); + } } break; @@ -535,7 +520,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; @@ -550,7 +535,8 @@ public class TGet implements org.apache.thrift.TBase, java.i } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -577,13 +563,13 @@ public class TGet implements org.apache.thrift.TBase, java.i return getAuthorizations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -604,11 +590,11 @@ public class TGet implements org.apache.thrift.TBase, java.i case AUTHORIZATIONS: return isSetAuthorizations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TGet) @@ -619,6 +605,8 @@ public class TGet implements org.apache.thrift.TBase, java.i public boolean equals(TGet that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); @@ -697,49 +685,41 @@ public class TGet implements org.apache.thrift.TBase, java.i @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); - boolean present_timeRange = true && (isSetTimeRange()); - list.add(present_timeRange); - if (present_timeRange) - list.add(timeRange); + hashCode = hashCode * 8191 + ((isSetTimeRange()) ? 131071 : 524287); + if (isSetTimeRange()) + hashCode = hashCode * 8191 + timeRange.hashCode(); - boolean present_maxVersions = true && (isSetMaxVersions()); - list.add(present_maxVersions); - if (present_maxVersions) - list.add(maxVersions); + hashCode = hashCode * 8191 + ((isSetMaxVersions()) ? 131071 : 524287); + if (isSetMaxVersions()) + hashCode = hashCode * 8191 + maxVersions; - boolean present_filterString = true && (isSetFilterString()); - list.add(present_filterString); - if (present_filterString) - list.add(filterString); + hashCode = hashCode * 8191 + ((isSetFilterString()) ? 131071 : 524287); + if (isSetFilterString()) + hashCode = hashCode * 8191 + filterString.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - boolean present_authorizations = true && (isSetAuthorizations()); - list.add(present_authorizations); - if (present_authorizations) - list.add(authorizations); + hashCode = hashCode * 8191 + ((isSetAuthorizations()) ? 131071 : 524287); + if (isSetAuthorizations()) + hashCode = hashCode * 8191 + authorizations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -750,7 +730,7 @@ public class TGet implements org.apache.thrift.TBase, java.i int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -760,7 +740,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } @@ -770,7 +750,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -780,7 +760,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimeRange()).compareTo(other.isSetTimeRange()); + lastComparison = java.lang.Boolean.valueOf(isSetTimeRange()).compareTo(other.isSetTimeRange()); if (lastComparison != 0) { return lastComparison; } @@ -790,7 +770,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); + lastComparison = java.lang.Boolean.valueOf(isSetMaxVersions()).compareTo(other.isSetMaxVersions()); if (lastComparison != 0) { return lastComparison; } @@ -800,7 +780,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); + lastComparison = java.lang.Boolean.valueOf(isSetFilterString()).compareTo(other.isSetFilterString()); if (lastComparison != 0) { return lastComparison; } @@ -810,7 +790,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -820,7 +800,7 @@ public class TGet implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthorizations()).compareTo(other.isSetAuthorizations()); + lastComparison = java.lang.Boolean.valueOf(isSetAuthorizations()).compareTo(other.isSetAuthorizations()); if (lastComparison != 0) { return lastComparison; } @@ -833,21 +813,22 @@ public class TGet implements org.apache.thrift.TBase, java.i return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TGet("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TGet("); boolean first = true; sb.append("row:"); @@ -945,7 +926,7 @@ public class TGet implements org.apache.thrift.TBase, java.i } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -955,13 +936,13 @@ public class TGet implements org.apache.thrift.TBase, java.i } } - private static class TGetStandardSchemeFactory implements SchemeFactory { + private static class TGetStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TGetStandardScheme getScheme() { return new TGetStandardScheme(); } } - private static class TGetStandardScheme extends StandardScheme { + private static class TGetStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TGet struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -985,8 +966,8 @@ public class TGet implements org.apache.thrift.TBase, java.i if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); - struct.columns = new ArrayList(_list16.size); - TColumn _elem17; + struct.columns = new java.util.ArrayList(_list16.size); + @org.apache.thrift.annotation.Nullable TColumn _elem17; for (int _i18 = 0; _i18 < _list16.size; ++_i18) { _elem17 = new TColumn(); @@ -1037,9 +1018,9 @@ public class TGet implements org.apache.thrift.TBase, java.i if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map19 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map19.size); - ByteBuffer _key20; - ByteBuffer _val21; + struct.attributes = new java.util.HashMap(2*_map19.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key20; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val21; for (int _i22 = 0; _i22 < _map19.size; ++_i22) { _key20 = iprot.readBinary(); @@ -1125,7 +1106,7 @@ public class TGet implements org.apache.thrift.TBase, java.i oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter24 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter24 : struct.attributes.entrySet()) { oprot.writeBinary(_iter24.getKey()); oprot.writeBinary(_iter24.getValue()); @@ -1148,19 +1129,19 @@ public class TGet implements org.apache.thrift.TBase, java.i } - private static class TGetTupleSchemeFactory implements SchemeFactory { + private static class TGetTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TGetTupleScheme getScheme() { return new TGetTupleScheme(); } } - private static class TGetTupleScheme extends TupleScheme { + private static class TGetTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TGet struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetColumns()) { optionals.set(0); } @@ -1207,7 +1188,7 @@ public class TGet implements org.apache.thrift.TBase, java.i if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter26 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter26 : struct.attributes.entrySet()) { oprot.writeBinary(_iter26.getKey()); oprot.writeBinary(_iter26.getValue()); @@ -1221,15 +1202,15 @@ public class TGet implements org.apache.thrift.TBase, java.i @Override public void read(org.apache.thrift.protocol.TProtocol prot, TGet struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); - BitSet incoming = iprot.readBitSet(7); + java.util.BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list27 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.columns = new ArrayList(_list27.size); - TColumn _elem28; + struct.columns = new java.util.ArrayList(_list27.size); + @org.apache.thrift.annotation.Nullable TColumn _elem28; for (int _i29 = 0; _i29 < _list27.size; ++_i29) { _elem28 = new TColumn(); @@ -1259,9 +1240,9 @@ public class TGet implements org.apache.thrift.TBase, java.i if (incoming.get(5)) { { org.apache.thrift.protocol.TMap _map30 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.attributes = new HashMap(2*_map30.size); - ByteBuffer _key31; - ByteBuffer _val32; + struct.attributes = new java.util.HashMap(2*_map30.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key31; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val32; for (int _i33 = 0; _i33 < _map30.size; ++_i33) { _key31 = iprot.readBinary(); @@ -1279,5 +1260,8 @@ public class TGet implements org.apache.thrift.TBase, java.i } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java index ae7c9d67e5..b6da2af3e5 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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,51 +253,51 @@ public class THBaseService { * * @param rowMutations row mutations to execute if the value matches */ - public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations) throws TIOError, org.apache.thrift.TException; + public boolean checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.ByteBuffer value, TRowMutations rowMutations) throws TIOError, org.apache.thrift.TException; } public interface AsyncIface { - public void exists(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void exists(java.nio.ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void existsAll(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void existsAll(java.nio.ByteBuffer table, java.util.List tgets, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void get(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get(java.nio.ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getMultiple(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getMultiple(java.nio.ByteBuffer table, java.util.List tgets, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void put(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void put(java.nio.ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void checkAndPut(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void putMultiple(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void putMultiple(java.nio.ByteBuffer table, java.util.List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteSingle(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteSingle(java.nio.ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteMultiple(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteMultiple(java.nio.ByteBuffer table, java.util.List tdeletes, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void checkAndDelete(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void increment(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void increment(java.nio.ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append(java.nio.ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void openScanner(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void openScanner(java.nio.ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getScannerRows(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getScannerRows(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void closeScanner(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void closeScanner(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void mutateRow(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void mutateRow(java.nio.ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getScannerResults(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getScannerResults(java.nio.ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getRegionLocation(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllRegionLocations(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllRegionLocations(java.nio.ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -348,13 +321,13 @@ public class THBaseService { super(iprot, oprot); } - public boolean exists(ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException + public boolean exists(java.nio.ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException { send_exists(table, tget); return recv_exists(); } - public void send_exists(ByteBuffer table, TGet tget) throws org.apache.thrift.TException + public void send_exists(java.nio.ByteBuffer table, TGet tget) throws org.apache.thrift.TException { exists_args args = new exists_args(); args.setTable(table); @@ -375,13 +348,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "exists failed: unknown result"); } - public List existsAll(ByteBuffer table, List tgets) throws TIOError, org.apache.thrift.TException + public java.util.List existsAll(java.nio.ByteBuffer table, java.util.List tgets) throws TIOError, org.apache.thrift.TException { send_existsAll(table, tgets); return recv_existsAll(); } - public void send_existsAll(ByteBuffer table, List tgets) throws org.apache.thrift.TException + public void send_existsAll(java.nio.ByteBuffer table, java.util.List tgets) throws org.apache.thrift.TException { existsAll_args args = new existsAll_args(); args.setTable(table); @@ -389,7 +362,7 @@ public class THBaseService { sendBase("existsAll", args); } - public List recv_existsAll() throws TIOError, org.apache.thrift.TException + public java.util.List recv_existsAll() throws TIOError, org.apache.thrift.TException { existsAll_result result = new existsAll_result(); receiveBase(result, "existsAll"); @@ -402,13 +375,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "existsAll failed: unknown result"); } - public TResult get(ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException + public TResult get(java.nio.ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException { send_get(table, tget); return recv_get(); } - public void send_get(ByteBuffer table, TGet tget) throws org.apache.thrift.TException + public void send_get(java.nio.ByteBuffer table, TGet tget) throws org.apache.thrift.TException { get_args args = new get_args(); args.setTable(table); @@ -429,13 +402,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get failed: unknown result"); } - public List getMultiple(ByteBuffer table, List tgets) throws TIOError, org.apache.thrift.TException + public java.util.List getMultiple(java.nio.ByteBuffer table, java.util.List tgets) throws TIOError, org.apache.thrift.TException { send_getMultiple(table, tgets); return recv_getMultiple(); } - public void send_getMultiple(ByteBuffer table, List tgets) throws org.apache.thrift.TException + public void send_getMultiple(java.nio.ByteBuffer table, java.util.List tgets) throws org.apache.thrift.TException { getMultiple_args args = new getMultiple_args(); args.setTable(table); @@ -443,7 +416,7 @@ public class THBaseService { sendBase("getMultiple", args); } - public List recv_getMultiple() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getMultiple() throws TIOError, org.apache.thrift.TException { getMultiple_result result = new getMultiple_result(); receiveBase(result, "getMultiple"); @@ -456,13 +429,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMultiple failed: unknown result"); } - public void put(ByteBuffer table, TPut tput) throws TIOError, org.apache.thrift.TException + public void put(java.nio.ByteBuffer table, TPut tput) throws TIOError, org.apache.thrift.TException { send_put(table, tput); recv_put(); } - public void send_put(ByteBuffer table, TPut tput) throws org.apache.thrift.TException + public void send_put(java.nio.ByteBuffer table, TPut tput) throws org.apache.thrift.TException { put_args args = new put_args(); args.setTable(table); @@ -480,13 +453,13 @@ public class THBaseService { return; } - public boolean checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput) throws TIOError, org.apache.thrift.TException + public boolean checkAndPut(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TPut tput) throws TIOError, org.apache.thrift.TException { send_checkAndPut(table, row, family, qualifier, value, tput); return recv_checkAndPut(); } - public void send_checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput) throws org.apache.thrift.TException + public void send_checkAndPut(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TPut tput) throws org.apache.thrift.TException { checkAndPut_args args = new checkAndPut_args(); args.setTable(table); @@ -511,13 +484,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkAndPut failed: unknown result"); } - public void putMultiple(ByteBuffer table, List tputs) throws TIOError, org.apache.thrift.TException + public void putMultiple(java.nio.ByteBuffer table, java.util.List tputs) throws TIOError, org.apache.thrift.TException { send_putMultiple(table, tputs); recv_putMultiple(); } - public void send_putMultiple(ByteBuffer table, List tputs) throws org.apache.thrift.TException + public void send_putMultiple(java.nio.ByteBuffer table, java.util.List tputs) throws org.apache.thrift.TException { putMultiple_args args = new putMultiple_args(); args.setTable(table); @@ -535,13 +508,13 @@ public class THBaseService { return; } - public void deleteSingle(ByteBuffer table, TDelete tdelete) throws TIOError, org.apache.thrift.TException + public void deleteSingle(java.nio.ByteBuffer table, TDelete tdelete) throws TIOError, org.apache.thrift.TException { send_deleteSingle(table, tdelete); recv_deleteSingle(); } - public void send_deleteSingle(ByteBuffer table, TDelete tdelete) throws org.apache.thrift.TException + public void send_deleteSingle(java.nio.ByteBuffer table, TDelete tdelete) throws org.apache.thrift.TException { deleteSingle_args args = new deleteSingle_args(); args.setTable(table); @@ -559,13 +532,13 @@ public class THBaseService { return; } - public List deleteMultiple(ByteBuffer table, List tdeletes) throws TIOError, org.apache.thrift.TException + public java.util.List deleteMultiple(java.nio.ByteBuffer table, java.util.List tdeletes) throws TIOError, org.apache.thrift.TException { send_deleteMultiple(table, tdeletes); return recv_deleteMultiple(); } - public void send_deleteMultiple(ByteBuffer table, List tdeletes) throws org.apache.thrift.TException + public void send_deleteMultiple(java.nio.ByteBuffer table, java.util.List tdeletes) throws org.apache.thrift.TException { deleteMultiple_args args = new deleteMultiple_args(); args.setTable(table); @@ -573,7 +546,7 @@ public class THBaseService { sendBase("deleteMultiple", args); } - public List recv_deleteMultiple() throws TIOError, org.apache.thrift.TException + public java.util.List recv_deleteMultiple() throws TIOError, org.apache.thrift.TException { deleteMultiple_result result = new deleteMultiple_result(); receiveBase(result, "deleteMultiple"); @@ -586,13 +559,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteMultiple failed: unknown result"); } - public boolean checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete) throws TIOError, org.apache.thrift.TException + public boolean checkAndDelete(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TDelete tdelete) throws TIOError, org.apache.thrift.TException { send_checkAndDelete(table, row, family, qualifier, value, tdelete); return recv_checkAndDelete(); } - public void send_checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete) throws org.apache.thrift.TException + public void send_checkAndDelete(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TDelete tdelete) throws org.apache.thrift.TException { checkAndDelete_args args = new checkAndDelete_args(); args.setTable(table); @@ -617,13 +590,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkAndDelete failed: unknown result"); } - public TResult increment(ByteBuffer table, TIncrement tincrement) throws TIOError, org.apache.thrift.TException + public TResult increment(java.nio.ByteBuffer table, TIncrement tincrement) throws TIOError, org.apache.thrift.TException { send_increment(table, tincrement); return recv_increment(); } - public void send_increment(ByteBuffer table, TIncrement tincrement) throws org.apache.thrift.TException + public void send_increment(java.nio.ByteBuffer table, TIncrement tincrement) throws org.apache.thrift.TException { increment_args args = new increment_args(); args.setTable(table); @@ -644,13 +617,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "increment failed: unknown result"); } - public TResult append(ByteBuffer table, TAppend tappend) throws TIOError, org.apache.thrift.TException + public TResult append(java.nio.ByteBuffer table, TAppend tappend) throws TIOError, org.apache.thrift.TException { send_append(table, tappend); return recv_append(); } - public void send_append(ByteBuffer table, TAppend tappend) throws org.apache.thrift.TException + public void send_append(java.nio.ByteBuffer table, TAppend tappend) throws org.apache.thrift.TException { append_args args = new append_args(); args.setTable(table); @@ -671,13 +644,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "append failed: unknown result"); } - public int openScanner(ByteBuffer table, TScan tscan) throws TIOError, org.apache.thrift.TException + public int openScanner(java.nio.ByteBuffer table, TScan tscan) throws TIOError, org.apache.thrift.TException { send_openScanner(table, tscan); return recv_openScanner(); } - public void send_openScanner(ByteBuffer table, TScan tscan) throws org.apache.thrift.TException + public void send_openScanner(java.nio.ByteBuffer table, TScan tscan) throws org.apache.thrift.TException { openScanner_args args = new openScanner_args(); args.setTable(table); @@ -698,7 +671,7 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "openScanner failed: unknown result"); } - public List getScannerRows(int scannerId, int numRows) throws TIOError, TIllegalArgument, org.apache.thrift.TException + public java.util.List getScannerRows(int scannerId, int numRows) throws TIOError, TIllegalArgument, org.apache.thrift.TException { send_getScannerRows(scannerId, numRows); return recv_getScannerRows(); @@ -712,7 +685,7 @@ public class THBaseService { sendBase("getScannerRows", args); } - public List recv_getScannerRows() throws TIOError, TIllegalArgument, org.apache.thrift.TException + public java.util.List recv_getScannerRows() throws TIOError, TIllegalArgument, org.apache.thrift.TException { getScannerRows_result result = new getScannerRows_result(); receiveBase(result, "getScannerRows"); @@ -754,13 +727,13 @@ public class THBaseService { return; } - public void mutateRow(ByteBuffer table, TRowMutations trowMutations) throws TIOError, org.apache.thrift.TException + public void mutateRow(java.nio.ByteBuffer table, TRowMutations trowMutations) throws TIOError, org.apache.thrift.TException { send_mutateRow(table, trowMutations); recv_mutateRow(); } - public void send_mutateRow(ByteBuffer table, TRowMutations trowMutations) throws org.apache.thrift.TException + public void send_mutateRow(java.nio.ByteBuffer table, TRowMutations trowMutations) throws org.apache.thrift.TException { mutateRow_args args = new mutateRow_args(); args.setTable(table); @@ -778,13 +751,13 @@ public class THBaseService { return; } - public List getScannerResults(ByteBuffer table, TScan tscan, int numRows) throws TIOError, org.apache.thrift.TException + public java.util.List getScannerResults(java.nio.ByteBuffer table, TScan tscan, int numRows) throws TIOError, org.apache.thrift.TException { send_getScannerResults(table, tscan, numRows); return recv_getScannerResults(); } - public void send_getScannerResults(ByteBuffer table, TScan tscan, int numRows) throws org.apache.thrift.TException + public void send_getScannerResults(java.nio.ByteBuffer table, TScan tscan, int numRows) throws org.apache.thrift.TException { getScannerResults_args args = new getScannerResults_args(); args.setTable(table); @@ -793,7 +766,7 @@ public class THBaseService { sendBase("getScannerResults", args); } - public List recv_getScannerResults() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getScannerResults() throws TIOError, org.apache.thrift.TException { getScannerResults_result result = new getScannerResults_result(); receiveBase(result, "getScannerResults"); @@ -806,13 +779,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScannerResults failed: unknown result"); } - public THRegionLocation getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload) throws TIOError, org.apache.thrift.TException + public THRegionLocation getRegionLocation(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload) throws TIOError, org.apache.thrift.TException { send_getRegionLocation(table, row, reload); return recv_getRegionLocation(); } - public void send_getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload) throws org.apache.thrift.TException + public void send_getRegionLocation(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload) throws org.apache.thrift.TException { getRegionLocation_args args = new getRegionLocation_args(); args.setTable(table); @@ -834,20 +807,20 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRegionLocation failed: unknown result"); } - public List getAllRegionLocations(ByteBuffer table) throws TIOError, org.apache.thrift.TException + public java.util.List getAllRegionLocations(java.nio.ByteBuffer table) throws TIOError, org.apache.thrift.TException { send_getAllRegionLocations(table); return recv_getAllRegionLocations(); } - public void send_getAllRegionLocations(ByteBuffer table) throws org.apache.thrift.TException + public void send_getAllRegionLocations(java.nio.ByteBuffer table) throws org.apache.thrift.TException { getAllRegionLocations_args args = new getAllRegionLocations_args(); args.setTable(table); sendBase("getAllRegionLocations", args); } - public List recv_getAllRegionLocations() throws TIOError, org.apache.thrift.TException + public java.util.List recv_getAllRegionLocations() throws TIOError, org.apache.thrift.TException { getAllRegionLocations_result result = new getAllRegionLocations_result(); receiveBase(result, "getAllRegionLocations"); @@ -860,13 +833,13 @@ public class THBaseService { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllRegionLocations failed: unknown result"); } - public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations) throws TIOError, org.apache.thrift.TException + public boolean checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.ByteBuffer value, TRowMutations rowMutations) throws TIOError, org.apache.thrift.TException { send_checkAndMutate(table, row, family, qualifier, compareOp, value, rowMutations); return recv_checkAndMutate(); } - public void send_checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations) throws org.apache.thrift.TException + public void send_checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.ByteBuffer value, TRowMutations rowMutations) throws org.apache.thrift.TException { checkAndMutate_args args = new checkAndMutate_args(); args.setTable(table); @@ -910,17 +883,17 @@ public class THBaseService { super(protocolFactory, clientManager, transport); } - public void exists(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void exists(java.nio.ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); exists_call method_call = new exists_call(table, tget, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class exists_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class exists_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; private TGet tget; - public exists_call(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public exists_call(java.nio.ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tget = tget; @@ -935,9 +908,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public boolean getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.Boolean getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -945,17 +918,17 @@ public class THBaseService { } } - public void existsAll(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void existsAll(java.nio.ByteBuffer table, java.util.List tgets, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); existsAll_call method_call = new existsAll_call(table, tgets, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class existsAll_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private List tgets; - public existsAll_call(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public static class existsAll_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; + private java.util.List tgets; + public existsAll_call(java.nio.ByteBuffer table, java.util.List tgets, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tgets = tgets; @@ -970,9 +943,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -980,17 +953,17 @@ public class THBaseService { } } - public void get(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get(java.nio.ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_call method_call = new get_call(table, tget, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class get_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class get_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; private TGet tget; - public get_call(ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_call(java.nio.ByteBuffer table, TGet tget, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tget = tget; @@ -1007,7 +980,7 @@ public class THBaseService { public TResult getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1015,17 +988,17 @@ public class THBaseService { } } - public void getMultiple(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getMultiple(java.nio.ByteBuffer table, java.util.List tgets, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getMultiple_call method_call = new getMultiple_call(table, tgets, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getMultiple_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private List tgets; - public getMultiple_call(ByteBuffer table, List tgets, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public static class getMultiple_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; + private java.util.List tgets; + public getMultiple_call(java.nio.ByteBuffer table, java.util.List tgets, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tgets = tgets; @@ -1040,9 +1013,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1050,17 +1023,17 @@ public class THBaseService { } } - public void put(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void put(java.nio.ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); put_call method_call = new put_call(table, tput, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class put_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class put_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; private TPut tput; - public put_call(ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public put_call(java.nio.ByteBuffer table, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tput = tput; @@ -1075,31 +1048,31 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, org.apache.thrift.TException { + public Void getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - (new Client(prot)).recv_put(); + return null; } } - public void checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void checkAndPut(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); checkAndPut_call method_call = new checkAndPut_call(table, row, family, qualifier, value, tput, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class checkAndPut_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private ByteBuffer row; - private ByteBuffer family; - private ByteBuffer qualifier; - private ByteBuffer value; + public static class checkAndPut_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer family; + private java.nio.ByteBuffer qualifier; + private java.nio.ByteBuffer value; private TPut tput; - public checkAndPut_call(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public checkAndPut_call(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TPut tput, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.row = row; @@ -1122,9 +1095,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public boolean getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.Boolean getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1132,17 +1105,17 @@ public class THBaseService { } } - public void putMultiple(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void putMultiple(java.nio.ByteBuffer table, java.util.List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); putMultiple_call method_call = new putMultiple_call(table, tputs, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class putMultiple_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private List tputs; - public putMultiple_call(ByteBuffer table, List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public static class putMultiple_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.util.List tputs; + public putMultiple_call(java.nio.ByteBuffer table, java.util.List tputs, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tputs = tputs; @@ -1157,27 +1130,27 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, org.apache.thrift.TException { + public Void getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - (new Client(prot)).recv_putMultiple(); + return null; } } - public void deleteSingle(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteSingle(java.nio.ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteSingle_call method_call = new deleteSingle_call(table, tdelete, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class deleteSingle_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class deleteSingle_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; private TDelete tdelete; - public deleteSingle_call(ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public deleteSingle_call(java.nio.ByteBuffer table, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tdelete = tdelete; @@ -1192,27 +1165,27 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, org.apache.thrift.TException { + public Void getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - (new Client(prot)).recv_deleteSingle(); + return null; } } - public void deleteMultiple(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteMultiple(java.nio.ByteBuffer table, java.util.List tdeletes, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); deleteMultiple_call method_call = new deleteMultiple_call(table, tdeletes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class deleteMultiple_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private List tdeletes; - public deleteMultiple_call(ByteBuffer table, List tdeletes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public static class deleteMultiple_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; + private java.util.List tdeletes; + public deleteMultiple_call(java.nio.ByteBuffer table, java.util.List tdeletes, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tdeletes = tdeletes; @@ -1227,9 +1200,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1237,21 +1210,21 @@ public class THBaseService { } } - public void checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void checkAndDelete(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); checkAndDelete_call method_call = new checkAndDelete_call(table, row, family, qualifier, value, tdelete, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class checkAndDelete_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private ByteBuffer row; - private ByteBuffer family; - private ByteBuffer qualifier; - private ByteBuffer value; + public static class checkAndDelete_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer family; + private java.nio.ByteBuffer qualifier; + private java.nio.ByteBuffer value; private TDelete tdelete; - public checkAndDelete_call(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public checkAndDelete_call(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, java.nio.ByteBuffer value, TDelete tdelete, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.row = row; @@ -1274,9 +1247,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public boolean getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.Boolean getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1284,17 +1257,17 @@ public class THBaseService { } } - public void increment(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void increment(java.nio.ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); increment_call method_call = new increment_call(table, tincrement, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; private TIncrement tincrement; - public increment_call(ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public increment_call(java.nio.ByteBuffer table, TIncrement tincrement, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tincrement = tincrement; @@ -1311,7 +1284,7 @@ public class THBaseService { public TResult getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1319,17 +1292,17 @@ public class THBaseService { } } - public void append(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append(java.nio.ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_call method_call = new append_call(table, tappend, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class append_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class append_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; private TAppend tappend; - public append_call(ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public append_call(java.nio.ByteBuffer table, TAppend tappend, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tappend = tappend; @@ -1346,7 +1319,7 @@ public class THBaseService { public TResult getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1354,17 +1327,17 @@ public class THBaseService { } } - public void openScanner(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void openScanner(java.nio.ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); openScanner_call method_call = new openScanner_call(table, tscan, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class openScanner_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class openScanner_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; private TScan tscan; - public openScanner_call(ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public openScanner_call(java.nio.ByteBuffer table, TScan tscan, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tscan = tscan; @@ -1379,9 +1352,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public int getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.Integer getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1389,17 +1362,17 @@ public class THBaseService { } } - public void getScannerRows(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getScannerRows(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getScannerRows_call method_call = new getScannerRows_call(scannerId, numRows, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getScannerRows_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getScannerRows_call extends org.apache.thrift.async.TAsyncMethodCall> { private int scannerId; private int numRows; - public getScannerRows_call(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getScannerRows_call(int scannerId, int numRows, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.scannerId = scannerId; this.numRows = numRows; @@ -1414,9 +1387,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, TIllegalArgument, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, TIllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1424,16 +1397,16 @@ public class THBaseService { } } - public void closeScanner(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void closeScanner(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); closeScanner_call method_call = new closeScanner_call(scannerId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class closeScanner_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class closeScanner_call extends org.apache.thrift.async.TAsyncMethodCall { private int scannerId; - public closeScanner_call(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public closeScanner_call(int scannerId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.scannerId = scannerId; } @@ -1446,27 +1419,27 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, TIllegalArgument, org.apache.thrift.TException { + public Void getResult() throws TIOError, TIllegalArgument, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - (new Client(prot)).recv_closeScanner(); + return null; } } - public void mutateRow(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void mutateRow(java.nio.ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); mutateRow_call method_call = new mutateRow_call(table, trowMutations, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; private TRowMutations trowMutations; - public mutateRow_call(ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public mutateRow_call(java.nio.ByteBuffer table, TRowMutations trowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.trowMutations = trowMutations; @@ -1481,28 +1454,28 @@ public class THBaseService { prot.writeMessageEnd(); } - public void getResult() throws TIOError, org.apache.thrift.TException { + public Void getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - (new Client(prot)).recv_mutateRow(); + return null; } } - public void getScannerResults(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getScannerResults(java.nio.ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getScannerResults_call method_call = new getScannerResults_call(table, tscan, numRows, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getScannerResults_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; + public static class getScannerResults_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; private TScan tscan; private int numRows; - public getScannerResults_call(ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getScannerResults_call(java.nio.ByteBuffer table, TScan tscan, int numRows, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.tscan = tscan; @@ -1519,9 +1492,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1529,18 +1502,18 @@ public class THBaseService { } } - public void getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getRegionLocation(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getRegionLocation_call method_call = new getRegionLocation_call(table, row, reload, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getRegionLocation_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private ByteBuffer row; + public static class getRegionLocation_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.nio.ByteBuffer row; private boolean reload; - public getRegionLocation_call(ByteBuffer table, ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getRegionLocation_call(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.row = row; @@ -1559,7 +1532,7 @@ public class THBaseService { public THRegionLocation getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1567,16 +1540,16 @@ public class THBaseService { } } - public void getAllRegionLocations(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllRegionLocations(java.nio.ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getAllRegionLocations_call method_call = new getAllRegionLocations_call(table, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getAllRegionLocations_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - public getAllRegionLocations_call(ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public static class getAllRegionLocations_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.nio.ByteBuffer table; + public getAllRegionLocations_call(java.nio.ByteBuffer table, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; } @@ -1589,9 +1562,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public List getResult() throws TIOError, org.apache.thrift.TException { + public java.util.List getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1599,22 +1572,22 @@ public class THBaseService { } } - public void checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void checkAndMutate(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); checkAndMutate_call method_call = new checkAndMutate_call(table, row, family, qualifier, compareOp, value, rowMutations, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class checkAndMutate_call extends org.apache.thrift.async.TAsyncMethodCall { - private ByteBuffer table; - private ByteBuffer row; - private ByteBuffer family; - private ByteBuffer qualifier; + public static class checkAndMutate_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.nio.ByteBuffer table; + private java.nio.ByteBuffer row; + private java.nio.ByteBuffer family; + private java.nio.ByteBuffer qualifier; private TCompareOp compareOp; - private ByteBuffer value; + private java.nio.ByteBuffer value; private TRowMutations rowMutations; - public checkAndMutate_call(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, TCompareOp compareOp, ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public checkAndMutate_call(java.nio.ByteBuffer table, java.nio.ByteBuffer row, java.nio.ByteBuffer family, java.nio.ByteBuffer qualifier, TCompareOp compareOp, java.nio.ByteBuffer value, TRowMutations rowMutations, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.table = table; this.row = row; @@ -1639,9 +1612,9 @@ public class THBaseService { prot.writeMessageEnd(); } - public boolean getResult() throws TIOError, org.apache.thrift.TException { + public java.lang.Boolean getResult() throws TIOError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); @@ -1652,16 +1625,16 @@ public class THBaseService { } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("exists", new exists()); processMap.put("existsAll", new existsAll()); processMap.put("get", new get()); @@ -1698,6 +1671,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public exists_result getResult(I iface, exists_args args) throws org.apache.thrift.TException { exists_result result = new exists_result(); try { @@ -1723,6 +1701,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public existsAll_result getResult(I iface, existsAll_args args) throws org.apache.thrift.TException { existsAll_result result = new existsAll_result(); try { @@ -1733,6 +1716,7 @@ public class THBaseService { return result; } } + public static class get extends org.apache.thrift.ProcessFunction { public get() { super("get"); @@ -1746,6 +1730,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public get_result getResult(I iface, get_args args) throws org.apache.thrift.TException { get_result result = new get_result(); try { @@ -1770,6 +1759,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getMultiple_result getResult(I iface, getMultiple_args args) throws org.apache.thrift.TException { getMultiple_result result = new getMultiple_result(); try { @@ -1794,6 +1788,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public put_result getResult(I iface, put_args args) throws org.apache.thrift.TException { put_result result = new put_result(); try { @@ -1818,6 +1817,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public checkAndPut_result getResult(I iface, checkAndPut_args args) throws org.apache.thrift.TException { checkAndPut_result result = new checkAndPut_result(); try { @@ -1843,6 +1847,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public putMultiple_result getResult(I iface, putMultiple_args args) throws org.apache.thrift.TException { putMultiple_result result = new putMultiple_result(); try { @@ -1867,6 +1876,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteSingle_result getResult(I iface, deleteSingle_args args) throws org.apache.thrift.TException { deleteSingle_result result = new deleteSingle_result(); try { @@ -1891,6 +1905,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteMultiple_result getResult(I iface, deleteMultiple_args args) throws org.apache.thrift.TException { deleteMultiple_result result = new deleteMultiple_result(); try { @@ -1915,6 +1934,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public checkAndDelete_result getResult(I iface, checkAndDelete_args args) throws org.apache.thrift.TException { checkAndDelete_result result = new checkAndDelete_result(); try { @@ -1940,6 +1964,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public increment_result getResult(I iface, increment_args args) throws org.apache.thrift.TException { increment_result result = new increment_result(); try { @@ -1964,6 +1993,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public append_result getResult(I iface, append_args args) throws org.apache.thrift.TException { append_result result = new append_result(); try { @@ -1988,6 +2022,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public openScanner_result getResult(I iface, openScanner_args args) throws org.apache.thrift.TException { openScanner_result result = new openScanner_result(); try { @@ -2013,6 +2052,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getScannerRows_result getResult(I iface, getScannerRows_args args) throws org.apache.thrift.TException { getScannerRows_result result = new getScannerRows_result(); try { @@ -2039,6 +2083,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public closeScanner_result getResult(I iface, closeScanner_args args) throws org.apache.thrift.TException { closeScanner_result result = new closeScanner_result(); try { @@ -2065,6 +2114,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public mutateRow_result getResult(I iface, mutateRow_args args) throws org.apache.thrift.TException { mutateRow_result result = new mutateRow_result(); try { @@ -2089,6 +2143,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getScannerResults_result getResult(I iface, getScannerResults_args args) throws org.apache.thrift.TException { getScannerResults_result result = new getScannerResults_result(); try { @@ -2113,6 +2172,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getRegionLocation_result getResult(I iface, getRegionLocation_args args) throws org.apache.thrift.TException { getRegionLocation_result result = new getRegionLocation_result(); try { @@ -2137,6 +2201,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getAllRegionLocations_result getResult(I iface, getAllRegionLocations_args args) throws org.apache.thrift.TException { getAllRegionLocations_result result = new getAllRegionLocations_result(); try { @@ -2161,6 +2230,11 @@ public class THBaseService { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public checkAndMutate_result getResult(I iface, checkAndMutate_args args) throws org.apache.thrift.TException { checkAndMutate_result result = new checkAndMutate_result(); try { @@ -2176,17 +2250,18 @@ public class THBaseService { } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("exists", new exists()); + processMap.put("existsAll", new existsAll()); processMap.put("get", new get()); processMap.put("getMultiple", new getMultiple()); processMap.put("put", new put()); @@ -2208,7 +2283,7 @@ public class THBaseService { return processMap; } - public static class exists extends org.apache.thrift.AsyncProcessFunction { + public static class exists extends org.apache.thrift.AsyncProcessFunction { public exists() { super("exists"); } @@ -2217,42 +2292,50 @@ public class THBaseService { return new exists_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Boolean o) { exists_result result = new exists_result(); result.success = o; result.setSuccessIsSet(true); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; exists_result result = new exists_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.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(); } }; } @@ -2261,11 +2344,76 @@ public class THBaseService { return false; } - public void start(I iface, exists_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, exists_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.exists(args.table, args.tget,resultHandler); } } + public static class existsAll extends org.apache.thrift.AsyncProcessFunction> { + public existsAll() { + super("existsAll"); + } + + public existsAll_args getEmptyArgsInstance() { + return new existsAll_args(); + } + + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { + existsAll_result result = new existsAll_result(); + result.success = o; + try { + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); + } + } + public void onError(java.lang.Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TSerializable msg; + existsAll_result result = new existsAll_result(); + if (e instanceof TIOError) { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); + } + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, existsAll_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { + iface.existsAll(args.table, args.tgets,resultHandler); + } + } + public static class get extends org.apache.thrift.AsyncProcessFunction { public get() { super("get"); @@ -2275,41 +2423,49 @@ public class THBaseService { return new get_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(TResult o) { get_result result = new get_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; get_result result = new get_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2318,12 +2474,12 @@ public class THBaseService { return false; } - public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.get(args.table, args.tget,resultHandler); } } - public static class getMultiple extends org.apache.thrift.AsyncProcessFunction> { + public static class getMultiple extends org.apache.thrift.AsyncProcessFunction> { public getMultiple() { super("getMultiple"); } @@ -2332,41 +2488,49 @@ public class THBaseService { return new getMultiple_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getMultiple_result result = new getMultiple_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getMultiple_result result = new getMultiple_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.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(); } }; } @@ -2375,7 +2539,7 @@ public class THBaseService { return false; } - public void start(I iface, getMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getMultiple(args.table, args.tgets,resultHandler); } } @@ -2389,40 +2553,48 @@ public class THBaseService { return new put_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { put_result result = new put_result(); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; put_result result = new put_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2431,12 +2603,12 @@ public class THBaseService { return false; } - public void start(I iface, put_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, put_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.put(args.table, args.tput,resultHandler); } } - public static class checkAndPut extends org.apache.thrift.AsyncProcessFunction { + public static class checkAndPut extends org.apache.thrift.AsyncProcessFunction { public checkAndPut() { super("checkAndPut"); } @@ -2445,42 +2617,50 @@ public class THBaseService { return new checkAndPut_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Boolean o) { checkAndPut_result result = new checkAndPut_result(); result.success = o; result.setSuccessIsSet(true); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; checkAndPut_result result = new checkAndPut_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.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(); } }; } @@ -2489,7 +2669,7 @@ public class THBaseService { return false; } - public void start(I iface, checkAndPut_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, checkAndPut_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.checkAndPut(args.table, args.row, args.family, args.qualifier, args.value, args.tput,resultHandler); } } @@ -2503,40 +2683,48 @@ public class THBaseService { return new putMultiple_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { putMultiple_result result = new putMultiple_result(); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; putMultiple_result result = new putMultiple_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2545,7 +2733,7 @@ public class THBaseService { return false; } - public void start(I iface, putMultiple_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, putMultiple_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.putMultiple(args.table, args.tputs,resultHandler); } } @@ -2559,40 +2747,48 @@ public class THBaseService { return new deleteSingle_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { deleteSingle_result result = new deleteSingle_result(); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteSingle_result result = new deleteSingle_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.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(); } }; } @@ -2601,12 +2797,12 @@ public class THBaseService { return false; } - public void start(I iface, deleteSingle_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteSingle_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteSingle(args.table, args.tdelete,resultHandler); } } - public static class deleteMultiple extends org.apache.thrift.AsyncProcessFunction> { + public static class deleteMultiple extends org.apache.thrift.AsyncProcessFunction> { public deleteMultiple() { super("deleteMultiple"); } @@ -2615,41 +2811,49 @@ public class THBaseService { return new deleteMultiple_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { deleteMultiple_result result = new deleteMultiple_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteMultiple_result result = new deleteMultiple_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2658,12 +2862,12 @@ public class THBaseService { return false; } - public void start(I iface, deleteMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, deleteMultiple_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.deleteMultiple(args.table, args.tdeletes,resultHandler); } } - public static class checkAndDelete extends org.apache.thrift.AsyncProcessFunction { + public static class checkAndDelete extends org.apache.thrift.AsyncProcessFunction { public checkAndDelete() { super("checkAndDelete"); } @@ -2672,42 +2876,50 @@ public class THBaseService { return new checkAndDelete_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Boolean o) { checkAndDelete_result result = new checkAndDelete_result(); result.success = o; result.setSuccessIsSet(true); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; checkAndDelete_result result = new checkAndDelete_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.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(); } }; } @@ -2716,7 +2928,7 @@ public class THBaseService { return false; } - public void start(I iface, checkAndDelete_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, checkAndDelete_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.checkAndDelete(args.table, args.row, args.family, args.qualifier, args.value, args.tdelete,resultHandler); } } @@ -2730,41 +2942,49 @@ public class THBaseService { return new increment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(TResult o) { increment_result result = new increment_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; increment_result result = new increment_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2773,7 +2993,7 @@ public class THBaseService { return false; } - public void start(I iface, increment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, increment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.increment(args.table, args.tincrement,resultHandler); } } @@ -2787,41 +3007,49 @@ public class THBaseService { return new append_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(TResult o) { append_result result = new append_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; append_result result = new append_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.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(); } }; } @@ -2830,12 +3058,12 @@ public class THBaseService { return false; } - public void start(I iface, append_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, append_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.append(args.table, args.tappend,resultHandler); } } - public static class openScanner extends org.apache.thrift.AsyncProcessFunction { + public static class openScanner extends org.apache.thrift.AsyncProcessFunction { public openScanner() { super("openScanner"); } @@ -2844,42 +3072,50 @@ public class THBaseService { return new openScanner_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Integer o) { openScanner_result result = new openScanner_result(); result.success = o; result.setSuccessIsSet(true); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; openScanner_result result = new openScanner_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2888,12 +3124,12 @@ public class THBaseService { return false; } - public void start(I iface, openScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, openScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.openScanner(args.table, args.tscan,resultHandler); } } - public static class getScannerRows extends org.apache.thrift.AsyncProcessFunction> { + public static class getScannerRows extends org.apache.thrift.AsyncProcessFunction> { public getScannerRows() { super("getScannerRows"); } @@ -2902,46 +3138,53 @@ public class THBaseService { return new getScannerRows_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getScannerRows_result result = new getScannerRows_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getScannerRows_result result = new getScannerRows_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else if (e instanceof TIllegalArgument) { - result.ia = (TIllegalArgument) e; - result.setIaIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof TIllegalArgument) { + result.ia = (TIllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.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(); } }; } @@ -2950,7 +3193,7 @@ public class THBaseService { return false; } - public void start(I iface, getScannerRows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getScannerRows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getScannerRows(args.scannerId, args.numRows,resultHandler); } } @@ -2964,45 +3207,52 @@ public class THBaseService { return new closeScanner_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { closeScanner_result result = new closeScanner_result(); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; closeScanner_result result = new closeScanner_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else if (e instanceof TIllegalArgument) { - result.ia = (TIllegalArgument) e; - result.setIaIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof TIllegalArgument) { + result.ia = (TIllegalArgument) e; + result.setIaIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3011,7 +3261,7 @@ public class THBaseService { return false; } - public void start(I iface, closeScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, closeScanner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.closeScanner(args.scannerId,resultHandler); } } @@ -3025,40 +3275,48 @@ public class THBaseService { return new mutateRow_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { mutateRow_result result = new mutateRow_result(); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; mutateRow_result result = new mutateRow_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.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(); } }; } @@ -3067,12 +3325,12 @@ public class THBaseService { return false; } - public void start(I iface, mutateRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, mutateRow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.mutateRow(args.table, args.trowMutations,resultHandler); } } - public static class getScannerResults extends org.apache.thrift.AsyncProcessFunction> { + public static class getScannerResults extends org.apache.thrift.AsyncProcessFunction> { public getScannerResults() { super("getScannerResults"); } @@ -3081,41 +3339,49 @@ public class THBaseService { return new getScannerResults_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getScannerResults_result result = new getScannerResults_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getScannerResults_result result = new getScannerResults_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.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(); } }; } @@ -3124,7 +3390,7 @@ public class THBaseService { return false; } - public void start(I iface, getScannerResults_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getScannerResults_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getScannerResults(args.table, args.tscan, args.numRows,resultHandler); } } @@ -3138,41 +3404,49 @@ public class THBaseService { return new getRegionLocation_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(THRegionLocation o) { getRegionLocation_result result = new getRegionLocation_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getRegionLocation_result result = new getRegionLocation_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.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(); } }; } @@ -3181,12 +3455,12 @@ public class THBaseService { return false; } - public void start(I iface, getRegionLocation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getRegionLocation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getRegionLocation(args.table, args.row, args.reload,resultHandler); } } - public static class getAllRegionLocations extends org.apache.thrift.AsyncProcessFunction> { + public static class getAllRegionLocations extends org.apache.thrift.AsyncProcessFunction> { public getAllRegionLocations() { super("getAllRegionLocations"); } @@ -3195,41 +3469,49 @@ public class THBaseService { return new getAllRegionLocations_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getAllRegionLocations_result result = new getAllRegionLocations_result(); result.success = o; try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getAllRegionLocations_result result = new getAllRegionLocations_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3238,12 +3520,12 @@ public class THBaseService { return false; } - public void start(I iface, getAllRegionLocations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getAllRegionLocations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getAllRegionLocations(args.table,resultHandler); } } - public static class checkAndMutate extends org.apache.thrift.AsyncProcessFunction { + public static class checkAndMutate extends org.apache.thrift.AsyncProcessFunction { public checkAndMutate() { super("checkAndMutate"); } @@ -3252,42 +3534,50 @@ public class THBaseService { return new checkAndMutate_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Boolean o) { checkAndMutate_result result = new checkAndMutate_result(); result.success = o; result.setSuccessIsSet(true); try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; checkAndMutate_result result = new checkAndMutate_result(); if (e instanceof TIOError) { - result.io = (TIOError) e; - result.setIoIsSet(true); - msg = result; - } - else - { + result.io = (TIOError) e; + result.setIoIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3296,7 +3586,7 @@ public class THBaseService { return false; } - public void start(I iface, checkAndMutate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, checkAndMutate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.checkAndMutate(args.table, args.row, args.family, args.qualifier, args.compareOp, args.value, args.rowMutations,resultHandler); } } @@ -3309,20 +3599,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TGET_FIELD_DESC = new org.apache.thrift.protocol.TField("tget", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new exists_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exists_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new exists_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new exists_argsTupleSchemeFactory(); /** * the table to check on */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TGet to check for */ - public TGet tget; // required + public @org.apache.thrift.annotation.Nullable TGet tget; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -3335,10 +3622,10 @@ public class THBaseService { */ TGET((short)2, "tget"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -3346,6 +3633,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -3363,21 +3651,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -3386,20 +3675,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TGET, new org.apache.thrift.meta_data.FieldMetaData("tget", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_args.class, metaDataMap); } @@ -3407,7 +3696,7 @@ public class THBaseService { } public exists_args( - ByteBuffer table, + java.nio.ByteBuffer table, TGet tget) { this(); @@ -3445,7 +3734,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -3453,11 +3742,11 @@ public class THBaseService { * the table to check on */ public exists_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public exists_args setTable(ByteBuffer table) { + public exists_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -3480,6 +3769,7 @@ public class THBaseService { /** * the TGet to check for */ + @org.apache.thrift.annotation.Nullable public TGet getTget() { return this.tget; } @@ -3487,7 +3777,7 @@ public class THBaseService { /** * the TGet to check for */ - public exists_args setTget(TGet tget) { + public exists_args setTget(@org.apache.thrift.annotation.Nullable TGet tget) { this.tget = tget; return this; } @@ -3507,13 +3797,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -3528,7 +3822,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -3537,13 +3832,13 @@ public class THBaseService { return getTget(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -3552,11 +3847,11 @@ public class THBaseService { case TGET: return isSetTget(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof exists_args) @@ -3567,6 +3862,8 @@ public class THBaseService { public boolean equals(exists_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -3591,19 +3888,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tget = true && (isSetTget()); - list.add(present_tget); - if (present_tget) - list.add(tget); + hashCode = hashCode * 8191 + ((isSetTget()) ? 131071 : 524287); + if (isSetTget()) + hashCode = hashCode * 8191 + tget.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -3614,7 +3909,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -3624,7 +3919,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); + lastComparison = java.lang.Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); if (lastComparison != 0) { return lastComparison; } @@ -3637,21 +3932,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("exists_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("exists_args("); boolean first = true; sb.append("table:"); @@ -3695,7 +3991,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -3703,13 +3999,13 @@ public class THBaseService { } } - private static class exists_argsStandardSchemeFactory implements SchemeFactory { + private static class exists_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public exists_argsStandardScheme getScheme() { return new exists_argsStandardScheme(); } } - private static class exists_argsStandardScheme extends StandardScheme { + private static class exists_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, exists_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -3769,24 +4065,24 @@ public class THBaseService { } - private static class exists_argsTupleSchemeFactory implements SchemeFactory { + private static class exists_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public exists_argsTupleScheme getScheme() { return new exists_argsTupleScheme(); } } - private static class exists_argsTupleScheme extends TupleScheme { + private static class exists_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tget.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, exists_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tget = new TGet(); @@ -3795,6 +4091,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class exists_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -3803,24 +4102,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new exists_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exists_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new exists_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new exists_resultTupleSchemeFactory(); public boolean success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -3828,6 +4124,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -3845,21 +4142,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -3868,7 +4166,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -3876,14 +4174,14 @@ public class THBaseService { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exists_result.class, metaDataMap); } @@ -3933,23 +4231,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public exists_result setIo(TIOError io) { + public exists_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -3969,13 +4268,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -3990,7 +4289,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -3999,13 +4299,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -4014,11 +4314,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof exists_result) @@ -4029,6 +4329,8 @@ public class THBaseService { public boolean equals(exists_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -4053,19 +4355,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -4076,7 +4374,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -4086,7 +4384,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -4099,21 +4397,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("exists_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("exists_result("); boolean first = true; sb.append("success:"); @@ -4144,7 +4443,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -4154,13 +4453,13 @@ public class THBaseService { } } - private static class exists_resultStandardSchemeFactory implements SchemeFactory { + private static class exists_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public exists_resultStandardScheme getScheme() { return new exists_resultStandardScheme(); } } - private static class exists_resultStandardScheme extends StandardScheme { + private static class exists_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, exists_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -4220,18 +4519,18 @@ public class THBaseService { } - private static class exists_resultTupleSchemeFactory implements SchemeFactory { + private static class exists_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public exists_resultTupleScheme getScheme() { return new exists_resultTupleScheme(); } } - private static class exists_resultTupleScheme extends TupleScheme { + private static class exists_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -4249,8 +4548,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -4263,47 +4562,44 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } - public static class existsAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class existsAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("existsAll_args"); - private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short) 1); - private static final org.apache.thrift.protocol.TField TGETS_FIELD_DESC = new org.apache.thrift.protocol.TField("tgets", org.apache.thrift.protocol.TType.LIST, (short) 2); + private static final 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. - */ + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** * the table to check on */ - TABLE((short) 1, "table"), + TABLE((short)1, "table"), /** * a list of TGets to check for */ - TGETS((short) 2, "tgets"); + TGETS((short)2, "tgets"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -4311,8 +4607,9 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { - switch (fieldId) { + switch(fieldId) { case 1: // TABLE return TABLE; case 2: // TGETS @@ -4328,21 +4625,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -4351,22 +4649,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_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))); + 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); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class)))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(existsAll_args.class, metaDataMap); } @@ -4374,10 +4671,11 @@ public class THBaseService { } public existsAll_args( - ByteBuffer table, - List tgets) { + java.nio.ByteBuffer table, + java.util.List tgets) + { this(); - this.table = table; + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); this.tgets = tgets; } @@ -4387,10 +4685,9 @@ public class THBaseService { public existsAll_args(existsAll_args other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); - ; } if (other.isSetTgets()) { - List __this__tgets = new ArrayList(); + java.util.List __this__tgets = new java.util.ArrayList(other.tgets.size()); for (TGet other_element : other.tgets) { __this__tgets.add(new TGet(other_element)); } @@ -4416,20 +4713,20 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { - return table; + public java.nio.ByteBuffer bufferForTable() { + return org.apache.thrift.TBaseHelper.copyBinary(table); } /** * the table to check on */ public existsAll_args setTable(byte[] table) { - setTable(table == null ? (ByteBuffer) null : ByteBuffer.wrap(table)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public existsAll_args setTable(ByteBuffer table) { - this.table = table; + public existsAll_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { + this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -4437,9 +4734,7 @@ public class THBaseService { this.table = null; } - /** - * Returns true if field table is set (has been assigned a value) and false otherwise - */ + /** Returns true if field table is set (has been assigned a value) and false otherwise */ public boolean isSetTable() { return this.table != null; } @@ -4454,13 +4749,14 @@ public class THBaseService { return (this.tgets == null) ? 0 : this.tgets.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getTgetsIterator() { return (this.tgets == null) ? null : this.tgets.iterator(); } public void addToTgets(TGet elem) { if (this.tgets == null) { - this.tgets = new ArrayList(); + this.tgets = new java.util.ArrayList(); } this.tgets.add(elem); } @@ -4468,14 +4764,15 @@ public class THBaseService { /** * a list of TGets to check for */ - public List getTgets() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTgets() { return this.tgets; } /** * a list of TGets to check for */ - public existsAll_args setTgets(List tgets) { + public existsAll_args setTgets(@org.apache.thrift.annotation.Nullable java.util.List tgets) { this.tgets = tgets; return this; } @@ -4484,9 +4781,7 @@ public class THBaseService { this.tgets = null; } - /** - * Returns true if field tgets is set (has been assigned a value) and false otherwise - */ + /** Returns true if field tgets is set (has been assigned a value) and false otherwise */ public boolean isSetTgets() { return this.tgets != null; } @@ -4497,68 +4792,73 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case TABLE: - if (value == null) { - unsetTable(); + case TABLE: + if (value == null) { + unsetTable(); + } else { + if (value instanceof byte[]) { + setTable((byte[])value); } else { - setTable((ByteBuffer) value); + setTable((java.nio.ByteBuffer)value); } - break; + } + break; - case TGETS: - if (value == null) { - unsetTgets(); - } else { - setTgets((List) value); - } - break; + case TGETS: + if (value == null) { + unsetTgets(); + } else { + setTgets((java.util.List)value); + } + break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case TABLE: - return getTable(); + case TABLE: + return getTable(); - case TGETS: - return getTgets(); + case TGETS: + return getTgets(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } - /** - * Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise - */ + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { - case TABLE: - return isSetTable(); - case TGETS: - return isSetTgets(); + case TABLE: + return isSetTable(); + case TGETS: + return isSetTgets(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof existsAll_args) - return this.equals((existsAll_args) that); + return this.equals((existsAll_args)that); return false; } public boolean equals(existsAll_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -4583,33 +4883,43 @@ public class THBaseService { @Override public int hashCode() { - return 0; + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); + + hashCode = hashCode * 8191 + ((isSetTgets()) ? 131071 : 524287); + if (isSetTgets()) + hashCode = hashCode * 8191 + tgets.hashCode(); + + return hashCode; } + @Override public int compareTo(existsAll_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - existsAll_args typedOther = (existsAll_args) other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTgets()).compareTo(typedOther.isSetTgets()); + lastComparison = java.lang.Boolean.valueOf(isSetTgets()).compareTo(other.isSetTgets()); if (lastComparison != 0) { return lastComparison; } if (isSetTgets()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tgets, typedOther.tgets); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tgets, other.tgets); if (lastComparison != 0) { return lastComparison; } @@ -4617,21 +4927,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("existsAll_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("existsAll_args("); boolean first = true; sb.append("table:"); @@ -4672,7 +4983,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -4680,18 +4991,19 @@ public class THBaseService { } } - private static class existsAll_argsStandardSchemeFactory implements SchemeFactory { + private static class existsAll_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public existsAll_argsStandardScheme getScheme() { return new existsAll_argsStandardScheme(); } } - private static class existsAll_argsStandardScheme extends StandardScheme { + private static class existsAll_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, existsAll_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); - while (true) { + while (true) + { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; @@ -4708,13 +5020,14 @@ public class THBaseService { case 2: // TGETS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list132 = iprot.readListBegin(); - struct.tgets = new ArrayList(_list132.size); - for (int _i133 = 0; _i133 < _list132.size; ++_i133) { - TGet _elem134; // required - _elem134 = new TGet(); - _elem134.read(iprot); - struct.tgets.add(_elem134); + org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); + struct.tgets = new java.util.ArrayList(_list142.size); + @org.apache.thrift.annotation.Nullable TGet _elem143; + for (int _i144 = 0; _i144 < _list142.size; ++_i144) + { + _elem143 = new TGet(); + _elem143.read(iprot); + struct.tgets.add(_elem143); } iprot.readListEnd(); } @@ -4747,8 +5060,9 @@ public class THBaseService { oprot.writeFieldBegin(TGETS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tgets.size())); - for (TGet _iter135 : struct.tgets) { - _iter135.write(oprot); + for (TGet _iter145 : struct.tgets) + { + _iter145.write(oprot); } oprot.writeListEnd(); } @@ -4760,74 +5074,73 @@ public class THBaseService { } - private static class existsAll_argsTupleSchemeFactory implements SchemeFactory { + private static class existsAll_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public existsAll_argsTupleScheme getScheme() { return new existsAll_argsTupleScheme(); } } - private static class existsAll_argsTupleScheme extends TupleScheme { + private static class existsAll_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, existsAll_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); { oprot.writeI32(struct.tgets.size()); - for (TGet _iter136 : struct.tgets) { - _iter136.write(oprot); + for (TGet _iter146 : struct.tgets) + { + _iter146.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, existsAll_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); { - org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tgets = new ArrayList(_list137.size); - for (int _i138 = 0; _i138 < _list137.size; ++_i138) { - TGet _elem139; // required - _elem139 = new TGet(); - _elem139.read(iprot); - struct.tgets.add(_elem139); + org.apache.thrift.protocol.TList _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tgets = new java.util.ArrayList(_list147.size); + @org.apache.thrift.annotation.Nullable TGet _elem148; + for (int _i149 = 0; _i149 < _list147.size; ++_i149) + { + _elem148 = new TGet(); + _elem148.read(iprot); + struct.tgets.add(_elem148); } } struct.setTgetsIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } - public static class existsAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class existsAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("existsAll_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short) 0); - private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short) 1); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - static { - schemes.put(StandardScheme.class, new existsAll_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new existsAll_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new existsAll_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new existsAll_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required - /** - * The set of fields this struct contains, along with convenience methods for finding and manipulating them. - */ + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short) 0, "success"), - IO((short) 1, "io"); + SUCCESS((short)0, "success"), + IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -4835,8 +5148,9 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { - switch (fieldId) { + switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // IO @@ -4852,21 +5166,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -4875,22 +5190,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_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)))); + 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); } @@ -4898,8 +5212,9 @@ public class THBaseService { } public existsAll_result( - List success, - TIOError io) { + java.util.List success, + TIOError io) + { this(); this.success = success; this.io = io; @@ -4910,10 +5225,7 @@ public class THBaseService { */ public existsAll_result(existsAll_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (Boolean other_element : other.success) { - __this__success.add(other_element); - } + java.util.List __this__success = new java.util.ArrayList(other.success); this.success = __this__success; } if (other.isSetIo()) { @@ -4935,22 +5247,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(boolean elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public existsAll_result setSuccess(List success) { + public existsAll_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -4959,9 +5273,7 @@ public class THBaseService { this.success = null; } - /** - * Returns true if field success is set (has been assigned a value) and false otherwise - */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -4972,11 +5284,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public existsAll_result setIo(TIOError io) { + public existsAll_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -4985,9 +5298,7 @@ public class THBaseService { this.io = null; } - /** - * Returns true if field io is set (has been assigned a value) and false otherwise - */ + /** Returns true if field io is set (has been assigned a value) and false otherwise */ public boolean isSetIo() { return this.io != null; } @@ -4998,68 +5309,69 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List) value); - } - break; + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((java.util.List)value); + } + break; - case IO: - if (value == null) { - unsetIo(); - } else { - setIo((TIOError) value); - } - break; + case IO: + if (value == null) { + unsetIo(); + } else { + setIo((TIOError)value); + } + break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case SUCCESS: + return getSuccess(); - case IO: - return getIo(); + case IO: + return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } - /** - * Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise - */ + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { - case SUCCESS: - return isSetSuccess(); - case IO: - return isSetIo(); + case SUCCESS: + return isSetSuccess(); + case IO: + return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof existsAll_result) - return this.equals((existsAll_result) that); + return this.equals((existsAll_result)that); return false; } public boolean equals(existsAll_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -5084,33 +5396,43 @@ public class THBaseService { @Override public int hashCode() { - return 0; + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); + + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); + + return hashCode; } + @Override public int compareTo(existsAll_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - existsAll_result typedOther = (existsAll_result) other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); if (lastComparison != 0) { return lastComparison; } @@ -5118,21 +5440,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } + scheme(oprot).write(oprot, this); + } @Override - public String toString() { - StringBuilder sb = new StringBuilder("existsAll_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("existsAll_result("); boolean first = true; sb.append("success:"); @@ -5167,7 +5490,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -5175,18 +5498,19 @@ public class THBaseService { } } - private static class existsAll_resultStandardSchemeFactory implements SchemeFactory { + private static class existsAll_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public existsAll_resultStandardScheme getScheme() { return new existsAll_resultStandardScheme(); } } - private static class existsAll_resultStandardScheme extends StandardScheme { + private static class existsAll_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, existsAll_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); - while (true) { + while (true) + { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; @@ -5195,12 +5519,13 @@ public class THBaseService { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list140 = iprot.readListBegin(); - struct.success = new ArrayList(_list140.size); - for (int _i141 = 0; _i141 < _list140.size; ++_i141) { - boolean _elem142; // required - _elem142 = iprot.readBool(); - struct.success.add(_elem142); + org.apache.thrift.protocol.TList _list150 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list150.size); + boolean _elem151; + for (int _i152 = 0; _i152 < _list150.size; ++_i152) + { + _elem151 = iprot.readBool(); + struct.success.add(_elem151); } iprot.readListEnd(); } @@ -5237,8 +5562,9 @@ public class THBaseService { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, struct.success.size())); - for (boolean _iter143 : struct.success) { - oprot.writeBool(_iter143); + for (boolean _iter153 : struct.success) + { + oprot.writeBool(_iter153); } oprot.writeListEnd(); } @@ -5255,18 +5581,18 @@ public class THBaseService { } - private static class existsAll_resultTupleSchemeFactory implements SchemeFactory { + private static class existsAll_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public existsAll_resultTupleScheme getScheme() { return new existsAll_resultTupleScheme(); } } - private static class existsAll_resultTupleScheme extends TupleScheme { + private static class existsAll_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, existsAll_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -5277,8 +5603,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (boolean _iter144 : struct.success) { - oprot.writeBool(_iter144); + for (boolean _iter154 : struct.success) + { + oprot.writeBool(_iter154); } } } @@ -5289,16 +5616,17 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, existsAll_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); - struct.success = new ArrayList(_list145.size); - for (int _i146 = 0; _i146 < _list145.size; ++_i146) { - boolean _elem147; // required - _elem147 = iprot.readBool(); - struct.success.add(_elem147); + org.apache.thrift.protocol.TList _list155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); + struct.success = new java.util.ArrayList(_list155.size); + boolean _elem156; + for (int _i157 = 0; _i157 < _list155.size; ++_i157) + { + _elem156 = iprot.readBool(); + struct.success.add(_elem156); } } struct.setSuccessIsSet(true); @@ -5311,6 +5639,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class get_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -5319,20 +5650,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TGET_FIELD_DESC = new org.apache.thrift.protocol.TField("tget", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new get_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_argsTupleSchemeFactory(); /** * the table to get from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TGet to fetch */ - public TGet tget; // required + public @org.apache.thrift.annotation.Nullable TGet tget; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -5345,10 +5673,10 @@ public class THBaseService { */ TGET((short)2, "tget"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -5356,6 +5684,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -5373,21 +5702,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -5396,20 +5726,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TGET, new org.apache.thrift.meta_data.FieldMetaData("tget", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); } @@ -5417,7 +5747,7 @@ public class THBaseService { } public get_args( - ByteBuffer table, + java.nio.ByteBuffer table, TGet tget) { this(); @@ -5455,7 +5785,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -5463,11 +5793,11 @@ public class THBaseService { * the table to get from */ public get_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public get_args setTable(ByteBuffer table) { + public get_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -5490,6 +5820,7 @@ public class THBaseService { /** * the TGet to fetch */ + @org.apache.thrift.annotation.Nullable public TGet getTget() { return this.tget; } @@ -5497,7 +5828,7 @@ public class THBaseService { /** * the TGet to fetch */ - public get_args setTget(TGet tget) { + public get_args setTget(@org.apache.thrift.annotation.Nullable TGet tget) { this.tget = tget; return this; } @@ -5517,13 +5848,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -5538,7 +5873,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -5547,13 +5883,13 @@ public class THBaseService { return getTget(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -5562,11 +5898,11 @@ public class THBaseService { case TGET: return isSetTget(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof get_args) @@ -5577,6 +5913,8 @@ public class THBaseService { public boolean equals(get_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -5601,19 +5939,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tget = true && (isSetTget()); - list.add(present_tget); - if (present_tget) - list.add(tget); + hashCode = hashCode * 8191 + ((isSetTget()) ? 131071 : 524287); + if (isSetTget()) + hashCode = hashCode * 8191 + tget.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -5624,7 +5960,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -5634,7 +5970,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); + lastComparison = java.lang.Boolean.valueOf(isSetTget()).compareTo(other.isSetTget()); if (lastComparison != 0) { return lastComparison; } @@ -5647,21 +5983,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("get_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("get_args("); boolean first = true; sb.append("table:"); @@ -5705,7 +6042,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -5713,13 +6050,13 @@ public class THBaseService { } } - private static class get_argsStandardSchemeFactory implements SchemeFactory { + private static class get_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_argsStandardScheme getScheme() { return new get_argsStandardScheme(); } } - private static class get_argsStandardScheme extends StandardScheme { + private static class get_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, get_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -5779,24 +6116,24 @@ public class THBaseService { } - private static class get_argsTupleSchemeFactory implements SchemeFactory { + private static class get_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_argsTupleScheme getScheme() { return new get_argsTupleScheme(); } } - private static class get_argsTupleScheme extends TupleScheme { + private static class get_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tget.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tget = new TGet(); @@ -5805,6 +6142,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class get_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -5813,24 +6153,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new get_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new get_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new get_resultTupleSchemeFactory(); - public TResult success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TResult success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -5838,6 +6175,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -5855,21 +6193,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -5878,20 +6217,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); } @@ -5929,11 +6268,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TResult getSuccess() { return this.success; } - public get_result setSuccess(TResult success) { + public get_result setSuccess(@org.apache.thrift.annotation.Nullable TResult success) { this.success = success; return this; } @@ -5953,11 +6293,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public get_result setIo(TIOError io) { + public get_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -5977,7 +6318,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -5998,7 +6339,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -6007,13 +6349,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -6022,11 +6364,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof get_result) @@ -6037,6 +6379,8 @@ public class THBaseService { public boolean equals(get_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -6061,19 +6405,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -6084,7 +6426,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -6094,7 +6436,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -6107,21 +6449,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("get_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("get_result("); boolean first = true; sb.append("success:"); @@ -6159,7 +6502,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -6167,13 +6510,13 @@ public class THBaseService { } } - private static class get_resultStandardSchemeFactory implements SchemeFactory { + private static class get_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_resultStandardScheme getScheme() { return new get_resultStandardScheme(); } } - private static class get_resultStandardScheme extends StandardScheme { + private static class get_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, get_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -6234,18 +6577,18 @@ public class THBaseService { } - private static class get_resultTupleSchemeFactory implements SchemeFactory { + private static class get_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public get_resultTupleScheme getScheme() { return new get_resultTupleScheme(); } } - private static class get_resultTupleScheme extends TupleScheme { + private static class get_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -6263,8 +6606,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); @@ -6278,6 +6621,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -6286,22 +6632,19 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TGETS_FIELD_DESC = new org.apache.thrift.protocol.TField("tgets", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getMultiple_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMultiple_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getMultiple_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getMultiple_argsTupleSchemeFactory(); /** * the table to get from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * a list of TGets to fetch, the Result list * will have the Results at corresponding positions * or null if there was an error */ - public List tgets; // required + public @org.apache.thrift.annotation.Nullable java.util.List tgets; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -6316,10 +6659,10 @@ public class THBaseService { */ TGETS((short)2, "tgets"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -6327,6 +6670,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -6344,21 +6688,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -6367,21 +6712,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TGETS, new org.apache.thrift.meta_data.FieldMetaData("tgets", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGet.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMultiple_args.class, metaDataMap); } @@ -6389,8 +6734,8 @@ public class THBaseService { } public getMultiple_args( - ByteBuffer table, - List tgets) + java.nio.ByteBuffer table, + java.util.List tgets) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -6405,7 +6750,7 @@ public class THBaseService { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } if (other.isSetTgets()) { - List __this__tgets = new ArrayList(other.tgets.size()); + java.util.List __this__tgets = new java.util.ArrayList(other.tgets.size()); for (TGet other_element : other.tgets) { __this__tgets.add(new TGet(other_element)); } @@ -6431,7 +6776,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -6439,11 +6784,11 @@ public class THBaseService { * the table to get from */ public getMultiple_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public getMultiple_args setTable(ByteBuffer table) { + public getMultiple_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -6467,13 +6812,14 @@ public class THBaseService { return (this.tgets == null) ? 0 : this.tgets.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getTgetsIterator() { return (this.tgets == null) ? null : this.tgets.iterator(); } public void addToTgets(TGet elem) { if (this.tgets == null) { - this.tgets = new ArrayList(); + this.tgets = new java.util.ArrayList(); } this.tgets.add(elem); } @@ -6483,7 +6829,8 @@ public class THBaseService { * will have the Results at corresponding positions * or null if there was an error */ - public List getTgets() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTgets() { return this.tgets; } @@ -6492,7 +6839,7 @@ public class THBaseService { * will have the Results at corresponding positions * or null if there was an error */ - public getMultiple_args setTgets(List tgets) { + public getMultiple_args setTgets(@org.apache.thrift.annotation.Nullable java.util.List tgets) { this.tgets = tgets; return this; } @@ -6512,13 +6859,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -6526,14 +6877,15 @@ public class THBaseService { if (value == null) { unsetTgets(); } else { - setTgets((List)value); + setTgets((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -6542,13 +6894,13 @@ public class THBaseService { return getTgets(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -6557,11 +6909,11 @@ public class THBaseService { case TGETS: return isSetTgets(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getMultiple_args) @@ -6572,6 +6924,8 @@ public class THBaseService { public boolean equals(getMultiple_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -6596,19 +6950,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tgets = true && (isSetTgets()); - list.add(present_tgets); - if (present_tgets) - list.add(tgets); + hashCode = hashCode * 8191 + ((isSetTgets()) ? 131071 : 524287); + if (isSetTgets()) + hashCode = hashCode * 8191 + tgets.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -6619,7 +6971,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -6629,7 +6981,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTgets()).compareTo(other.isSetTgets()); + lastComparison = java.lang.Boolean.valueOf(isSetTgets()).compareTo(other.isSetTgets()); if (lastComparison != 0) { return lastComparison; } @@ -6642,21 +6994,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getMultiple_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getMultiple_args("); boolean first = true; sb.append("table:"); @@ -6697,7 +7050,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -6705,13 +7058,13 @@ public class THBaseService { } } - private static class getMultiple_argsStandardSchemeFactory implements SchemeFactory { + private static class getMultiple_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getMultiple_argsStandardScheme getScheme() { return new getMultiple_argsStandardScheme(); } } - private static class getMultiple_argsStandardScheme extends StandardScheme { + private static class getMultiple_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -6734,14 +7087,14 @@ public class THBaseService { case 2: // TGETS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list132 = iprot.readListBegin(); - struct.tgets = new ArrayList(_list132.size); - TGet _elem133; - for (int _i134 = 0; _i134 < _list132.size; ++_i134) + org.apache.thrift.protocol.TList _list158 = iprot.readListBegin(); + struct.tgets = new java.util.ArrayList(_list158.size); + @org.apache.thrift.annotation.Nullable TGet _elem159; + for (int _i160 = 0; _i160 < _list158.size; ++_i160) { - _elem133 = new TGet(); - _elem133.read(iprot); - struct.tgets.add(_elem133); + _elem159 = new TGet(); + _elem159.read(iprot); + struct.tgets.add(_elem159); } iprot.readListEnd(); } @@ -6774,9 +7127,9 @@ public class THBaseService { oprot.writeFieldBegin(TGETS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tgets.size())); - for (TGet _iter135 : struct.tgets) + for (TGet _iter161 : struct.tgets) { - _iter135.write(oprot); + _iter161.write(oprot); } oprot.writeListEnd(); } @@ -6788,47 +7141,50 @@ public class THBaseService { } - private static class getMultiple_argsTupleSchemeFactory implements SchemeFactory { + private static class getMultiple_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getMultiple_argsTupleScheme getScheme() { return new getMultiple_argsTupleScheme(); } } - private static class getMultiple_argsTupleScheme extends TupleScheme { + private static class getMultiple_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); { oprot.writeI32(struct.tgets.size()); - for (TGet _iter136 : struct.tgets) + for (TGet _iter162 : struct.tgets) { - _iter136.write(oprot); + _iter162.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); { - org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tgets = new ArrayList(_list137.size); - TGet _elem138; - for (int _i139 = 0; _i139 < _list137.size; ++_i139) + org.apache.thrift.protocol.TList _list163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tgets = new java.util.ArrayList(_list163.size); + @org.apache.thrift.annotation.Nullable TGet _elem164; + for (int _i165 = 0; _i165 < _list163.size; ++_i165) { - _elem138 = new TGet(); - _elem138.read(iprot); - struct.tgets.add(_elem138); + _elem164 = new TGet(); + _elem164.read(iprot); + struct.tgets.add(_elem164); } } struct.setTgetsIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -6837,24 +7193,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getMultiple_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMultiple_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getMultiple_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getMultiple_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -6862,6 +7215,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -6879,21 +7233,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -6902,21 +7257,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMultiple_result.class, metaDataMap); } @@ -6924,7 +7279,7 @@ public class THBaseService { } public getMultiple_result( - List success, + java.util.List success, TIOError io) { this(); @@ -6937,7 +7292,7 @@ public class THBaseService { */ public getMultiple_result(getMultiple_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } @@ -6962,22 +7317,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getMultiple_result setSuccess(List success) { + public getMultiple_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -6997,11 +7354,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getMultiple_result setIo(TIOError io) { + public getMultiple_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -7021,13 +7379,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -7042,7 +7400,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -7051,13 +7410,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -7066,11 +7425,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getMultiple_result) @@ -7081,6 +7440,8 @@ public class THBaseService { public boolean equals(getMultiple_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -7105,19 +7466,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -7128,7 +7487,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -7138,7 +7497,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -7151,21 +7510,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getMultiple_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getMultiple_result("); boolean first = true; sb.append("success:"); @@ -7200,7 +7560,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -7208,13 +7568,13 @@ public class THBaseService { } } - private static class getMultiple_resultStandardSchemeFactory implements SchemeFactory { + private static class getMultiple_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getMultiple_resultStandardScheme getScheme() { return new getMultiple_resultStandardScheme(); } } - private static class getMultiple_resultStandardScheme extends StandardScheme { + private static class getMultiple_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7229,14 +7589,14 @@ public class THBaseService { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list140 = iprot.readListBegin(); - struct.success = new ArrayList(_list140.size); - TResult _elem141; - for (int _i142 = 0; _i142 < _list140.size; ++_i142) + org.apache.thrift.protocol.TList _list166 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list166.size); + @org.apache.thrift.annotation.Nullable TResult _elem167; + for (int _i168 = 0; _i168 < _list166.size; ++_i168) { - _elem141 = new TResult(); - _elem141.read(iprot); - struct.success.add(_elem141); + _elem167 = new TResult(); + _elem167.read(iprot); + struct.success.add(_elem167); } iprot.readListEnd(); } @@ -7273,9 +7633,9 @@ public class THBaseService { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TResult _iter143 : struct.success) + for (TResult _iter169 : struct.success) { - _iter143.write(oprot); + _iter169.write(oprot); } oprot.writeListEnd(); } @@ -7292,18 +7652,18 @@ public class THBaseService { } - private static class getMultiple_resultTupleSchemeFactory implements SchemeFactory { + private static class getMultiple_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getMultiple_resultTupleScheme getScheme() { return new getMultiple_resultTupleScheme(); } } - private static class getMultiple_resultTupleScheme extends TupleScheme { + private static class getMultiple_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getMultiple_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -7314,9 +7674,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TResult _iter144 : struct.success) + for (TResult _iter170 : struct.success) { - _iter144.write(oprot); + _iter170.write(oprot); } } } @@ -7327,18 +7687,18 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getMultiple_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list145.size); - TResult _elem146; - for (int _i147 = 0; _i147 < _list145.size; ++_i147) + org.apache.thrift.protocol.TList _list171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list171.size); + @org.apache.thrift.annotation.Nullable TResult _elem172; + for (int _i173 = 0; _i173 < _list171.size; ++_i173) { - _elem146 = new TResult(); - _elem146.read(iprot); - struct.success.add(_elem146); + _elem172 = new TResult(); + _elem172.read(iprot); + struct.success.add(_elem172); } } struct.setSuccessIsSet(true); @@ -7351,6 +7711,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class put_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -7359,20 +7722,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("tput", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new put_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new put_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new put_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new put_argsTupleSchemeFactory(); /** * the table to put data in */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TPut to put */ - public TPut tput; // required + public @org.apache.thrift.annotation.Nullable TPut tput; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -7385,10 +7745,10 @@ public class THBaseService { */ TPUT((short)2, "tput"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7396,6 +7756,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -7413,21 +7774,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7436,20 +7798,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TPUT, new org.apache.thrift.meta_data.FieldMetaData("tput", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_args.class, metaDataMap); } @@ -7457,7 +7819,7 @@ public class THBaseService { } public put_args( - ByteBuffer table, + java.nio.ByteBuffer table, TPut tput) { this(); @@ -7495,7 +7857,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -7503,11 +7865,11 @@ public class THBaseService { * the table to put data in */ public put_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public put_args setTable(ByteBuffer table) { + public put_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -7530,6 +7892,7 @@ public class THBaseService { /** * the TPut to put */ + @org.apache.thrift.annotation.Nullable public TPut getTput() { return this.tput; } @@ -7537,7 +7900,7 @@ public class THBaseService { /** * the TPut to put */ - public put_args setTput(TPut tput) { + public put_args setTput(@org.apache.thrift.annotation.Nullable TPut tput) { this.tput = tput; return this; } @@ -7557,13 +7920,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -7578,7 +7945,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -7587,13 +7955,13 @@ public class THBaseService { return getTput(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -7602,11 +7970,11 @@ public class THBaseService { case TPUT: return isSetTput(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof put_args) @@ -7617,6 +7985,8 @@ public class THBaseService { public boolean equals(put_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -7641,19 +8011,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tput = true && (isSetTput()); - list.add(present_tput); - if (present_tput) - list.add(tput); + hashCode = hashCode * 8191 + ((isSetTput()) ? 131071 : 524287); + if (isSetTput()) + hashCode = hashCode * 8191 + tput.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -7664,7 +8032,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -7674,7 +8042,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); + lastComparison = java.lang.Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); if (lastComparison != 0) { return lastComparison; } @@ -7687,21 +8055,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("put_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("put_args("); boolean first = true; sb.append("table:"); @@ -7745,7 +8114,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -7753,13 +8122,13 @@ public class THBaseService { } } - private static class put_argsStandardSchemeFactory implements SchemeFactory { + private static class put_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public put_argsStandardScheme getScheme() { return new put_argsStandardScheme(); } } - private static class put_argsStandardScheme extends StandardScheme { + private static class put_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, put_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7819,24 +8188,24 @@ public class THBaseService { } - private static class put_argsTupleSchemeFactory implements SchemeFactory { + private static class put_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public put_argsTupleScheme getScheme() { return new put_argsTupleScheme(); } } - private static class put_argsTupleScheme extends TupleScheme { + private static class put_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tput.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, put_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tput = new TPut(); @@ -7845,6 +8214,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class put_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -7852,22 +8224,19 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new put_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new put_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new put_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new put_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7875,6 +8244,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -7890,21 +8260,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7913,18 +8284,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_result.class, metaDataMap); } @@ -7956,11 +8327,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public put_result setIo(TIOError io) { + public put_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -7980,7 +8352,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -7993,30 +8365,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof put_result) @@ -8027,6 +8400,8 @@ public class THBaseService { public boolean equals(put_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -8042,14 +8417,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8060,7 +8434,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -8073,21 +8447,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("put_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("put_result("); boolean first = true; sb.append("io:"); @@ -8114,7 +8489,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -8122,13 +8497,13 @@ public class THBaseService { } } - private static class put_resultStandardSchemeFactory implements SchemeFactory { + private static class put_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public put_resultStandardScheme getScheme() { return new put_resultStandardScheme(); } } - private static class put_resultStandardScheme extends StandardScheme { + private static class put_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, put_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8175,18 +8550,18 @@ public class THBaseService { } - private static class put_resultTupleSchemeFactory implements SchemeFactory { + private static class put_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public put_resultTupleScheme getScheme() { return new put_resultTupleScheme(); } } - private static class put_resultTupleScheme extends TupleScheme { + private static class put_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -8198,8 +8573,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -8208,6 +8583,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndPut_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8220,38 +8598,35 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)5); private static final org.apache.thrift.protocol.TField TPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("tput", org.apache.thrift.protocol.TType.STRUCT, (short)6); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new checkAndPut_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndPut_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndPut_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndPut_argsTupleSchemeFactory(); /** * to check in and put to */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * row to check */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column family to check */ - public ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required /** * column qualifier to check */ - public ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // required /** * the expected value, if not provided the * check is for the non-existence of the * column in question */ - public ByteBuffer value; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required /** * the TPut to put if the check succeeds */ - public TPut tput; // required + public @org.apache.thrift.annotation.Nullable TPut tput; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -8282,10 +8657,10 @@ public class THBaseService { */ TPUT((short)6, "tput"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8293,6 +8668,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -8318,21 +8694,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8341,15 +8718,15 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -8362,7 +8739,7 @@ public class THBaseService { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TPUT, new org.apache.thrift.meta_data.FieldMetaData("tput", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_args.class, metaDataMap); } @@ -8370,11 +8747,11 @@ public class THBaseService { } public checkAndPut_args( - ByteBuffer table, - ByteBuffer row, - ByteBuffer family, - ByteBuffer qualifier, - ByteBuffer value, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, + java.nio.ByteBuffer family, + java.nio.ByteBuffer qualifier, + java.nio.ByteBuffer value, TPut tput) { this(); @@ -8432,7 +8809,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -8440,11 +8817,11 @@ public class THBaseService { * to check in and put to */ public checkAndPut_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public checkAndPut_args setTable(ByteBuffer table) { + public checkAndPut_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -8472,7 +8849,7 @@ public class THBaseService { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -8480,11 +8857,11 @@ public class THBaseService { * row to check */ public checkAndPut_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public checkAndPut_args setRow(ByteBuffer row) { + public checkAndPut_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -8512,7 +8889,7 @@ public class THBaseService { return family == null ? null : family.array(); } - public ByteBuffer bufferForFamily() { + public java.nio.ByteBuffer bufferForFamily() { return org.apache.thrift.TBaseHelper.copyBinary(family); } @@ -8520,11 +8897,11 @@ public class THBaseService { * column family to check */ public checkAndPut_args setFamily(byte[] family) { - this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + this.family = family == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(family.clone()); return this; } - public checkAndPut_args setFamily(ByteBuffer family) { + public checkAndPut_args setFamily(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family) { this.family = org.apache.thrift.TBaseHelper.copyBinary(family); return this; } @@ -8552,7 +8929,7 @@ public class THBaseService { return qualifier == null ? null : qualifier.array(); } - public ByteBuffer bufferForQualifier() { + public java.nio.ByteBuffer bufferForQualifier() { return org.apache.thrift.TBaseHelper.copyBinary(qualifier); } @@ -8560,11 +8937,11 @@ public class THBaseService { * column qualifier to check */ public checkAndPut_args setQualifier(byte[] qualifier) { - this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + this.qualifier = qualifier == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(qualifier.clone()); return this; } - public checkAndPut_args setQualifier(ByteBuffer qualifier) { + public checkAndPut_args setQualifier(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); return this; } @@ -8594,7 +8971,7 @@ public class THBaseService { return value == null ? null : value.array(); } - public ByteBuffer bufferForValue() { + public java.nio.ByteBuffer bufferForValue() { return org.apache.thrift.TBaseHelper.copyBinary(value); } @@ -8604,11 +8981,11 @@ public class THBaseService { * column in question */ public checkAndPut_args setValue(byte[] value) { - this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone()); return this; } - public checkAndPut_args setValue(ByteBuffer value) { + public checkAndPut_args setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) { this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -8631,6 +9008,7 @@ public class THBaseService { /** * the TPut to put if the check succeeds */ + @org.apache.thrift.annotation.Nullable public TPut getTput() { return this.tput; } @@ -8638,7 +9016,7 @@ public class THBaseService { /** * the TPut to put if the check succeeds */ - public checkAndPut_args setTput(TPut tput) { + public checkAndPut_args setTput(@org.apache.thrift.annotation.Nullable TPut tput) { this.tput = tput; return this; } @@ -8658,13 +9036,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -8672,7 +9054,11 @@ public class THBaseService { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -8680,7 +9066,11 @@ public class THBaseService { if (value == null) { unsetFamily(); } else { - setFamily((ByteBuffer)value); + if (value instanceof byte[]) { + setFamily((byte[])value); + } else { + setFamily((java.nio.ByteBuffer)value); + } } break; @@ -8688,7 +9078,11 @@ public class THBaseService { if (value == null) { unsetQualifier(); } else { - setQualifier((ByteBuffer)value); + if (value instanceof byte[]) { + setQualifier((byte[])value); + } else { + setQualifier((java.nio.ByteBuffer)value); + } } break; @@ -8696,7 +9090,11 @@ public class THBaseService { if (value == null) { unsetValue(); } else { - setValue((ByteBuffer)value); + if (value instanceof byte[]) { + setValue((byte[])value); + } else { + setValue((java.nio.ByteBuffer)value); + } } break; @@ -8711,7 +9109,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -8732,13 +9131,13 @@ public class THBaseService { return getTput(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -8755,11 +9154,11 @@ public class THBaseService { case TPUT: return isSetTput(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndPut_args) @@ -8770,6 +9169,8 @@ public class THBaseService { public boolean equals(checkAndPut_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -8830,39 +9231,33 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_tput = true && (isSetTput()); - list.add(present_tput); - if (present_tput) - list.add(tput); + hashCode = hashCode * 8191 + ((isSetTput()) ? 131071 : 524287); + if (isSetTput()) + hashCode = hashCode * 8191 + tput.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8873,7 +9268,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -8883,7 +9278,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -8893,7 +9288,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + lastComparison = java.lang.Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } @@ -8903,7 +9298,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + lastComparison = java.lang.Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } @@ -8913,7 +9308,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -8923,7 +9318,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); + lastComparison = java.lang.Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); if (lastComparison != 0) { return lastComparison; } @@ -8936,21 +9331,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndPut_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndPut_args("); boolean first = true; sb.append("table:"); @@ -9035,7 +9431,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -9043,13 +9439,13 @@ public class THBaseService { } } - private static class checkAndPut_argsStandardSchemeFactory implements SchemeFactory { + private static class checkAndPut_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_argsStandardScheme getScheme() { return new checkAndPut_argsStandardScheme(); } } - private static class checkAndPut_argsStandardScheme extends StandardScheme { + private static class checkAndPut_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9161,23 +9557,23 @@ public class THBaseService { } - private static class checkAndPut_argsTupleSchemeFactory implements SchemeFactory { + private static class checkAndPut_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_argsTupleScheme getScheme() { return new checkAndPut_argsTupleScheme(); } } - private static class checkAndPut_argsTupleScheme extends TupleScheme { + private static class checkAndPut_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); oprot.writeBinary(struct.row); oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); struct.tput.write(oprot); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -9189,7 +9585,7 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.row = iprot.readBinary(); @@ -9201,7 +9597,7 @@ public class THBaseService { struct.tput = new TPut(); struct.tput.read(iprot); struct.setTputIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.value = iprot.readBinary(); struct.setValueIsSet(true); @@ -9209,6 +9605,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndPut_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9217,24 +9616,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new checkAndPut_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndPut_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndPut_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndPut_resultTupleSchemeFactory(); public boolean success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9242,6 +9638,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -9259,21 +9656,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -9282,7 +9680,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -9290,14 +9688,14 @@ public class THBaseService { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_result.class, metaDataMap); } @@ -9347,23 +9745,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public checkAndPut_result setIo(TIOError io) { + public checkAndPut_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -9383,13 +9782,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -9404,7 +9803,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -9413,13 +9813,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -9428,11 +9828,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndPut_result) @@ -9443,6 +9843,8 @@ public class THBaseService { public boolean equals(checkAndPut_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -9467,19 +9869,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -9490,7 +9888,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -9500,7 +9898,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -9513,21 +9911,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndPut_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndPut_result("); boolean first = true; sb.append("success:"); @@ -9558,7 +9957,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -9568,13 +9967,13 @@ public class THBaseService { } } - private static class checkAndPut_resultStandardSchemeFactory implements SchemeFactory { + private static class checkAndPut_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_resultStandardScheme getScheme() { return new checkAndPut_resultStandardScheme(); } } - private static class checkAndPut_resultStandardScheme extends StandardScheme { + private static class checkAndPut_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9634,18 +10033,18 @@ public class THBaseService { } - private static class checkAndPut_resultTupleSchemeFactory implements SchemeFactory { + private static class checkAndPut_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndPut_resultTupleScheme getScheme() { return new checkAndPut_resultTupleScheme(); } } - private static class checkAndPut_resultTupleScheme extends TupleScheme { + private static class checkAndPut_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -9663,8 +10062,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -9677,6 +10076,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class putMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9685,20 +10087,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("tputs", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new putMultiple_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new putMultiple_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new putMultiple_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new putMultiple_argsTupleSchemeFactory(); /** * the table to put data in */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * a list of TPuts to commit */ - public List tputs; // required + public @org.apache.thrift.annotation.Nullable java.util.List tputs; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -9711,10 +10110,10 @@ public class THBaseService { */ TPUTS((short)2, "tputs"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9722,6 +10121,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -9739,21 +10139,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -9762,21 +10163,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TPUTS, new org.apache.thrift.meta_data.FieldMetaData("tputs", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putMultiple_args.class, metaDataMap); } @@ -9784,8 +10185,8 @@ public class THBaseService { } public putMultiple_args( - ByteBuffer table, - List tputs) + java.nio.ByteBuffer table, + java.util.List tputs) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -9800,7 +10201,7 @@ public class THBaseService { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } if (other.isSetTputs()) { - List __this__tputs = new ArrayList(other.tputs.size()); + java.util.List __this__tputs = new java.util.ArrayList(other.tputs.size()); for (TPut other_element : other.tputs) { __this__tputs.add(new TPut(other_element)); } @@ -9826,7 +10227,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -9834,11 +10235,11 @@ public class THBaseService { * the table to put data in */ public putMultiple_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public putMultiple_args setTable(ByteBuffer table) { + public putMultiple_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -9862,13 +10263,14 @@ public class THBaseService { return (this.tputs == null) ? 0 : this.tputs.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getTputsIterator() { return (this.tputs == null) ? null : this.tputs.iterator(); } public void addToTputs(TPut elem) { if (this.tputs == null) { - this.tputs = new ArrayList(); + this.tputs = new java.util.ArrayList(); } this.tputs.add(elem); } @@ -9876,14 +10278,15 @@ public class THBaseService { /** * a list of TPuts to commit */ - public List getTputs() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTputs() { return this.tputs; } /** * a list of TPuts to commit */ - public putMultiple_args setTputs(List tputs) { + public putMultiple_args setTputs(@org.apache.thrift.annotation.Nullable java.util.List tputs) { this.tputs = tputs; return this; } @@ -9903,13 +10306,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -9917,14 +10324,15 @@ public class THBaseService { if (value == null) { unsetTputs(); } else { - setTputs((List)value); + setTputs((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -9933,13 +10341,13 @@ public class THBaseService { return getTputs(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -9948,11 +10356,11 @@ public class THBaseService { case TPUTS: return isSetTputs(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof putMultiple_args) @@ -9963,6 +10371,8 @@ public class THBaseService { public boolean equals(putMultiple_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -9987,19 +10397,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tputs = true && (isSetTputs()); - list.add(present_tputs); - if (present_tputs) - list.add(tputs); + hashCode = hashCode * 8191 + ((isSetTputs()) ? 131071 : 524287); + if (isSetTputs()) + hashCode = hashCode * 8191 + tputs.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10010,7 +10418,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -10020,7 +10428,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTputs()).compareTo(other.isSetTputs()); + lastComparison = java.lang.Boolean.valueOf(isSetTputs()).compareTo(other.isSetTputs()); if (lastComparison != 0) { return lastComparison; } @@ -10033,21 +10441,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("putMultiple_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("putMultiple_args("); boolean first = true; sb.append("table:"); @@ -10088,7 +10497,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10096,13 +10505,13 @@ public class THBaseService { } } - private static class putMultiple_argsStandardSchemeFactory implements SchemeFactory { + private static class putMultiple_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public putMultiple_argsStandardScheme getScheme() { return new putMultiple_argsStandardScheme(); } } - private static class putMultiple_argsStandardScheme extends StandardScheme { + private static class putMultiple_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, putMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -10125,14 +10534,14 @@ public class THBaseService { case 2: // TPUTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); - struct.tputs = new ArrayList(_list148.size); - TPut _elem149; - for (int _i150 = 0; _i150 < _list148.size; ++_i150) + org.apache.thrift.protocol.TList _list174 = iprot.readListBegin(); + struct.tputs = new java.util.ArrayList(_list174.size); + @org.apache.thrift.annotation.Nullable TPut _elem175; + for (int _i176 = 0; _i176 < _list174.size; ++_i176) { - _elem149 = new TPut(); - _elem149.read(iprot); - struct.tputs.add(_elem149); + _elem175 = new TPut(); + _elem175.read(iprot); + struct.tputs.add(_elem175); } iprot.readListEnd(); } @@ -10165,9 +10574,9 @@ public class THBaseService { oprot.writeFieldBegin(TPUTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tputs.size())); - for (TPut _iter151 : struct.tputs) + for (TPut _iter177 : struct.tputs) { - _iter151.write(oprot); + _iter177.write(oprot); } oprot.writeListEnd(); } @@ -10179,47 +10588,50 @@ public class THBaseService { } - private static class putMultiple_argsTupleSchemeFactory implements SchemeFactory { + private static class putMultiple_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public putMultiple_argsTupleScheme getScheme() { return new putMultiple_argsTupleScheme(); } } - private static class putMultiple_argsTupleScheme extends TupleScheme { + private static class putMultiple_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, putMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); { oprot.writeI32(struct.tputs.size()); - for (TPut _iter152 : struct.tputs) + for (TPut _iter178 : struct.tputs) { - _iter152.write(oprot); + _iter178.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, putMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); { - org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tputs = new ArrayList(_list153.size); - TPut _elem154; - for (int _i155 = 0; _i155 < _list153.size; ++_i155) + org.apache.thrift.protocol.TList _list179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tputs = new java.util.ArrayList(_list179.size); + @org.apache.thrift.annotation.Nullable TPut _elem180; + for (int _i181 = 0; _i181 < _list179.size; ++_i181) { - _elem154 = new TPut(); - _elem154.read(iprot); - struct.tputs.add(_elem154); + _elem180 = new TPut(); + _elem180.read(iprot); + struct.tputs.add(_elem180); } } struct.setTputsIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class putMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10227,22 +10639,19 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new putMultiple_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new putMultiple_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new putMultiple_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new putMultiple_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10250,6 +10659,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -10265,21 +10675,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10288,18 +10699,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putMultiple_result.class, metaDataMap); } @@ -10331,11 +10742,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public putMultiple_result setIo(TIOError io) { + public putMultiple_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -10355,7 +10767,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -10368,30 +10780,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof putMultiple_result) @@ -10402,6 +10815,8 @@ public class THBaseService { public boolean equals(putMultiple_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -10417,14 +10832,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10435,7 +10849,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -10448,21 +10862,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("putMultiple_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("putMultiple_result("); boolean first = true; sb.append("io:"); @@ -10489,7 +10904,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10497,13 +10912,13 @@ public class THBaseService { } } - private static class putMultiple_resultStandardSchemeFactory implements SchemeFactory { + private static class putMultiple_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public putMultiple_resultStandardScheme getScheme() { return new putMultiple_resultStandardScheme(); } } - private static class putMultiple_resultStandardScheme extends StandardScheme { + private static class putMultiple_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, putMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -10550,18 +10965,18 @@ public class THBaseService { } - private static class putMultiple_resultTupleSchemeFactory implements SchemeFactory { + private static class putMultiple_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public putMultiple_resultTupleScheme getScheme() { return new putMultiple_resultTupleScheme(); } } - private static class putMultiple_resultTupleScheme extends TupleScheme { + private static class putMultiple_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, putMultiple_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -10573,8 +10988,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, putMultiple_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -10583,6 +10998,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteSingle_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10591,20 +11009,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TDELETE_FIELD_DESC = new org.apache.thrift.protocol.TField("tdelete", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteSingle_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteSingle_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteSingle_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteSingle_argsTupleSchemeFactory(); /** * the table to delete from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TDelete to delete */ - public TDelete tdelete; // required + public @org.apache.thrift.annotation.Nullable TDelete tdelete; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -10617,10 +11032,10 @@ public class THBaseService { */ TDELETE((short)2, "tdelete"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10628,6 +11043,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -10645,21 +11061,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10668,20 +11085,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TDELETE, new org.apache.thrift.meta_data.FieldMetaData("tdelete", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSingle_args.class, metaDataMap); } @@ -10689,7 +11106,7 @@ public class THBaseService { } public deleteSingle_args( - ByteBuffer table, + java.nio.ByteBuffer table, TDelete tdelete) { this(); @@ -10727,7 +11144,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -10735,11 +11152,11 @@ public class THBaseService { * the table to delete from */ public deleteSingle_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public deleteSingle_args setTable(ByteBuffer table) { + public deleteSingle_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -10762,6 +11179,7 @@ public class THBaseService { /** * the TDelete to delete */ + @org.apache.thrift.annotation.Nullable public TDelete getTdelete() { return this.tdelete; } @@ -10769,7 +11187,7 @@ public class THBaseService { /** * the TDelete to delete */ - public deleteSingle_args setTdelete(TDelete tdelete) { + public deleteSingle_args setTdelete(@org.apache.thrift.annotation.Nullable TDelete tdelete) { this.tdelete = tdelete; return this; } @@ -10789,13 +11207,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -10810,7 +11232,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -10819,13 +11242,13 @@ public class THBaseService { return getTdelete(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -10834,11 +11257,11 @@ public class THBaseService { case TDELETE: return isSetTdelete(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteSingle_args) @@ -10849,6 +11272,8 @@ public class THBaseService { public boolean equals(deleteSingle_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -10873,19 +11298,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tdelete = true && (isSetTdelete()); - list.add(present_tdelete); - if (present_tdelete) - list.add(tdelete); + hashCode = hashCode * 8191 + ((isSetTdelete()) ? 131071 : 524287); + if (isSetTdelete()) + hashCode = hashCode * 8191 + tdelete.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10896,7 +11319,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -10906,7 +11329,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); + lastComparison = java.lang.Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); if (lastComparison != 0) { return lastComparison; } @@ -10919,21 +11342,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteSingle_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteSingle_args("); boolean first = true; sb.append("table:"); @@ -10977,7 +11401,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10985,13 +11409,13 @@ public class THBaseService { } } - private static class deleteSingle_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteSingle_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteSingle_argsStandardScheme getScheme() { return new deleteSingle_argsStandardScheme(); } } - private static class deleteSingle_argsStandardScheme extends StandardScheme { + private static class deleteSingle_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteSingle_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11051,24 +11475,24 @@ public class THBaseService { } - private static class deleteSingle_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteSingle_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteSingle_argsTupleScheme getScheme() { return new deleteSingle_argsTupleScheme(); } } - private static class deleteSingle_argsTupleScheme extends TupleScheme { + private static class deleteSingle_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteSingle_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tdelete.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteSingle_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tdelete = new TDelete(); @@ -11077,6 +11501,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteSingle_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11084,22 +11511,19 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteSingle_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteSingle_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteSingle_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteSingle_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11107,6 +11531,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -11122,21 +11547,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11145,18 +11571,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSingle_result.class, metaDataMap); } @@ -11188,11 +11614,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public deleteSingle_result setIo(TIOError io) { + public deleteSingle_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -11212,7 +11639,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -11225,30 +11652,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteSingle_result) @@ -11259,6 +11687,8 @@ public class THBaseService { public boolean equals(deleteSingle_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -11274,14 +11704,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11292,7 +11721,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -11305,21 +11734,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteSingle_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteSingle_result("); boolean first = true; sb.append("io:"); @@ -11346,7 +11776,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11354,13 +11784,13 @@ public class THBaseService { } } - private static class deleteSingle_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteSingle_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteSingle_resultStandardScheme getScheme() { return new deleteSingle_resultStandardScheme(); } } - private static class deleteSingle_resultStandardScheme extends StandardScheme { + private static class deleteSingle_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteSingle_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11407,18 +11837,18 @@ public class THBaseService { } - private static class deleteSingle_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteSingle_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteSingle_resultTupleScheme getScheme() { return new deleteSingle_resultTupleScheme(); } } - private static class deleteSingle_resultTupleScheme extends TupleScheme { + private static class deleteSingle_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteSingle_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -11430,8 +11860,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteSingle_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -11440,6 +11870,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteMultiple_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11448,20 +11881,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TDELETES_FIELD_DESC = new org.apache.thrift.protocol.TField("tdeletes", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteMultiple_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteMultiple_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteMultiple_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteMultiple_argsTupleSchemeFactory(); /** * the table to delete from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * list of TDeletes to delete */ - public List tdeletes; // required + public @org.apache.thrift.annotation.Nullable java.util.List tdeletes; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -11474,10 +11904,10 @@ public class THBaseService { */ TDELETES((short)2, "tdeletes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11485,6 +11915,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -11502,21 +11933,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11525,21 +11957,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TDELETES, new org.apache.thrift.meta_data.FieldMetaData("tdeletes", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteMultiple_args.class, metaDataMap); } @@ -11547,8 +11979,8 @@ public class THBaseService { } public deleteMultiple_args( - ByteBuffer table, - List tdeletes) + java.nio.ByteBuffer table, + java.util.List tdeletes) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -11563,7 +11995,7 @@ public class THBaseService { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } if (other.isSetTdeletes()) { - List __this__tdeletes = new ArrayList(other.tdeletes.size()); + java.util.List __this__tdeletes = new java.util.ArrayList(other.tdeletes.size()); for (TDelete other_element : other.tdeletes) { __this__tdeletes.add(new TDelete(other_element)); } @@ -11589,7 +12021,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -11597,11 +12029,11 @@ public class THBaseService { * the table to delete from */ public deleteMultiple_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public deleteMultiple_args setTable(ByteBuffer table) { + public deleteMultiple_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -11625,13 +12057,14 @@ public class THBaseService { return (this.tdeletes == null) ? 0 : this.tdeletes.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getTdeletesIterator() { return (this.tdeletes == null) ? null : this.tdeletes.iterator(); } public void addToTdeletes(TDelete elem) { if (this.tdeletes == null) { - this.tdeletes = new ArrayList(); + this.tdeletes = new java.util.ArrayList(); } this.tdeletes.add(elem); } @@ -11639,14 +12072,15 @@ public class THBaseService { /** * list of TDeletes to delete */ - public List getTdeletes() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTdeletes() { return this.tdeletes; } /** * list of TDeletes to delete */ - public deleteMultiple_args setTdeletes(List tdeletes) { + public deleteMultiple_args setTdeletes(@org.apache.thrift.annotation.Nullable java.util.List tdeletes) { this.tdeletes = tdeletes; return this; } @@ -11666,13 +12100,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -11680,14 +12118,15 @@ public class THBaseService { if (value == null) { unsetTdeletes(); } else { - setTdeletes((List)value); + setTdeletes((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -11696,13 +12135,13 @@ public class THBaseService { return getTdeletes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -11711,11 +12150,11 @@ public class THBaseService { case TDELETES: return isSetTdeletes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteMultiple_args) @@ -11726,6 +12165,8 @@ public class THBaseService { public boolean equals(deleteMultiple_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -11750,19 +12191,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tdeletes = true && (isSetTdeletes()); - list.add(present_tdeletes); - if (present_tdeletes) - list.add(tdeletes); + hashCode = hashCode * 8191 + ((isSetTdeletes()) ? 131071 : 524287); + if (isSetTdeletes()) + hashCode = hashCode * 8191 + tdeletes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11773,7 +12212,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -11783,7 +12222,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdeletes()).compareTo(other.isSetTdeletes()); + lastComparison = java.lang.Boolean.valueOf(isSetTdeletes()).compareTo(other.isSetTdeletes()); if (lastComparison != 0) { return lastComparison; } @@ -11796,21 +12235,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteMultiple_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteMultiple_args("); boolean first = true; sb.append("table:"); @@ -11851,7 +12291,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11859,13 +12299,13 @@ public class THBaseService { } } - private static class deleteMultiple_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteMultiple_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteMultiple_argsStandardScheme getScheme() { return new deleteMultiple_argsStandardScheme(); } } - private static class deleteMultiple_argsStandardScheme extends StandardScheme { + private static class deleteMultiple_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteMultiple_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11888,14 +12328,14 @@ public class THBaseService { case 2: // TDELETES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); - struct.tdeletes = new ArrayList(_list156.size); - TDelete _elem157; - for (int _i158 = 0; _i158 < _list156.size; ++_i158) + org.apache.thrift.protocol.TList _list182 = iprot.readListBegin(); + struct.tdeletes = new java.util.ArrayList(_list182.size); + @org.apache.thrift.annotation.Nullable TDelete _elem183; + for (int _i184 = 0; _i184 < _list182.size; ++_i184) { - _elem157 = new TDelete(); - _elem157.read(iprot); - struct.tdeletes.add(_elem157); + _elem183 = new TDelete(); + _elem183.read(iprot); + struct.tdeletes.add(_elem183); } iprot.readListEnd(); } @@ -11928,9 +12368,9 @@ public class THBaseService { oprot.writeFieldBegin(TDELETES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tdeletes.size())); - for (TDelete _iter159 : struct.tdeletes) + for (TDelete _iter185 : struct.tdeletes) { - _iter159.write(oprot); + _iter185.write(oprot); } oprot.writeListEnd(); } @@ -11942,47 +12382,50 @@ public class THBaseService { } - private static class deleteMultiple_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteMultiple_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteMultiple_argsTupleScheme getScheme() { return new deleteMultiple_argsTupleScheme(); } } - private static class deleteMultiple_argsTupleScheme extends TupleScheme { + private static class deleteMultiple_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); { oprot.writeI32(struct.tdeletes.size()); - for (TDelete _iter160 : struct.tdeletes) + for (TDelete _iter186 : struct.tdeletes) { - _iter160.write(oprot); + _iter186.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); { - org.apache.thrift.protocol.TList _list161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tdeletes = new ArrayList(_list161.size); - TDelete _elem162; - for (int _i163 = 0; _i163 < _list161.size; ++_i163) + org.apache.thrift.protocol.TList _list187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tdeletes = new java.util.ArrayList(_list187.size); + @org.apache.thrift.annotation.Nullable TDelete _elem188; + for (int _i189 = 0; _i189 < _list187.size; ++_i189) { - _elem162 = new TDelete(); - _elem162.read(iprot); - struct.tdeletes.add(_elem162); + _elem188 = new TDelete(); + _elem188.read(iprot); + struct.tdeletes.add(_elem188); } } struct.setTdeletesIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteMultiple_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11991,24 +12434,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteMultiple_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteMultiple_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteMultiple_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteMultiple_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12016,6 +12456,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -12033,21 +12474,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12056,21 +12498,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteMultiple_result.class, metaDataMap); } @@ -12078,7 +12520,7 @@ public class THBaseService { } public deleteMultiple_result( - List success, + java.util.List success, TIOError io) { this(); @@ -12091,7 +12533,7 @@ public class THBaseService { */ public deleteMultiple_result(deleteMultiple_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TDelete other_element : other.success) { __this__success.add(new TDelete(other_element)); } @@ -12116,22 +12558,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TDelete elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public deleteMultiple_result setSuccess(List success) { + public deleteMultiple_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -12151,11 +12595,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public deleteMultiple_result setIo(TIOError io) { + public deleteMultiple_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -12175,13 +12620,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -12196,7 +12641,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -12205,13 +12651,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -12220,11 +12666,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof deleteMultiple_result) @@ -12235,6 +12681,8 @@ public class THBaseService { public boolean equals(deleteMultiple_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -12259,19 +12707,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12282,7 +12728,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -12292,7 +12738,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -12305,21 +12751,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteMultiple_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteMultiple_result("); boolean first = true; sb.append("success:"); @@ -12354,7 +12801,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12362,13 +12809,13 @@ public class THBaseService { } } - private static class deleteMultiple_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteMultiple_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteMultiple_resultStandardScheme getScheme() { return new deleteMultiple_resultStandardScheme(); } } - private static class deleteMultiple_resultStandardScheme extends StandardScheme { + private static class deleteMultiple_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteMultiple_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12383,14 +12830,14 @@ public class THBaseService { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list164 = iprot.readListBegin(); - struct.success = new ArrayList(_list164.size); - TDelete _elem165; - for (int _i166 = 0; _i166 < _list164.size; ++_i166) + org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list190.size); + @org.apache.thrift.annotation.Nullable TDelete _elem191; + for (int _i192 = 0; _i192 < _list190.size; ++_i192) { - _elem165 = new TDelete(); - _elem165.read(iprot); - struct.success.add(_elem165); + _elem191 = new TDelete(); + _elem191.read(iprot); + struct.success.add(_elem191); } iprot.readListEnd(); } @@ -12427,9 +12874,9 @@ public class THBaseService { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TDelete _iter167 : struct.success) + for (TDelete _iter193 : struct.success) { - _iter167.write(oprot); + _iter193.write(oprot); } oprot.writeListEnd(); } @@ -12446,18 +12893,18 @@ public class THBaseService { } - private static class deleteMultiple_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteMultiple_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteMultiple_resultTupleScheme getScheme() { return new deleteMultiple_resultTupleScheme(); } } - private static class deleteMultiple_resultTupleScheme extends TupleScheme { + private static class deleteMultiple_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -12468,9 +12915,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TDelete _iter168 : struct.success) + for (TDelete _iter194 : struct.success) { - _iter168.write(oprot); + _iter194.write(oprot); } } } @@ -12481,18 +12928,18 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list169.size); - TDelete _elem170; - for (int _i171 = 0; _i171 < _list169.size; ++_i171) + org.apache.thrift.protocol.TList _list195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list195.size); + @org.apache.thrift.annotation.Nullable TDelete _elem196; + for (int _i197 = 0; _i197 < _list195.size; ++_i197) { - _elem170 = new TDelete(); - _elem170.read(iprot); - struct.success.add(_elem170); + _elem196 = new TDelete(); + _elem196.read(iprot); + struct.success.add(_elem196); } } struct.setSuccessIsSet(true); @@ -12505,6 +12952,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndDelete_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12517,38 +12967,35 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)5); private static final org.apache.thrift.protocol.TField TDELETE_FIELD_DESC = new org.apache.thrift.protocol.TField("tdelete", org.apache.thrift.protocol.TType.STRUCT, (short)6); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new checkAndDelete_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndDelete_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndDelete_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndDelete_argsTupleSchemeFactory(); /** * to check in and delete from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * row to check */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column family to check */ - public ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required /** * column qualifier to check */ - public ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // required /** * the expected value, if not provided the * check is for the non-existence of the * column in question */ - public ByteBuffer value; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required /** * the TDelete to execute if the check succeeds */ - public TDelete tdelete; // required + public @org.apache.thrift.annotation.Nullable TDelete tdelete; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -12579,10 +13026,10 @@ public class THBaseService { */ TDELETE((short)6, "tdelete"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12590,6 +13037,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -12615,21 +13063,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12638,15 +13087,15 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -12659,7 +13108,7 @@ public class THBaseService { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TDELETE, new org.apache.thrift.meta_data.FieldMetaData("tdelete", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndDelete_args.class, metaDataMap); } @@ -12667,11 +13116,11 @@ public class THBaseService { } public checkAndDelete_args( - ByteBuffer table, - ByteBuffer row, - ByteBuffer family, - ByteBuffer qualifier, - ByteBuffer value, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, + java.nio.ByteBuffer family, + java.nio.ByteBuffer qualifier, + java.nio.ByteBuffer value, TDelete tdelete) { this(); @@ -12729,7 +13178,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -12737,11 +13186,11 @@ public class THBaseService { * to check in and delete from */ public checkAndDelete_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public checkAndDelete_args setTable(ByteBuffer table) { + public checkAndDelete_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -12769,7 +13218,7 @@ public class THBaseService { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -12777,11 +13226,11 @@ public class THBaseService { * row to check */ public checkAndDelete_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public checkAndDelete_args setRow(ByteBuffer row) { + public checkAndDelete_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -12809,7 +13258,7 @@ public class THBaseService { return family == null ? null : family.array(); } - public ByteBuffer bufferForFamily() { + public java.nio.ByteBuffer bufferForFamily() { return org.apache.thrift.TBaseHelper.copyBinary(family); } @@ -12817,11 +13266,11 @@ public class THBaseService { * column family to check */ public checkAndDelete_args setFamily(byte[] family) { - this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + this.family = family == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(family.clone()); return this; } - public checkAndDelete_args setFamily(ByteBuffer family) { + public checkAndDelete_args setFamily(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family) { this.family = org.apache.thrift.TBaseHelper.copyBinary(family); return this; } @@ -12849,7 +13298,7 @@ public class THBaseService { return qualifier == null ? null : qualifier.array(); } - public ByteBuffer bufferForQualifier() { + public java.nio.ByteBuffer bufferForQualifier() { return org.apache.thrift.TBaseHelper.copyBinary(qualifier); } @@ -12857,11 +13306,11 @@ public class THBaseService { * column qualifier to check */ public checkAndDelete_args setQualifier(byte[] qualifier) { - this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + this.qualifier = qualifier == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(qualifier.clone()); return this; } - public checkAndDelete_args setQualifier(ByteBuffer qualifier) { + public checkAndDelete_args setQualifier(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); return this; } @@ -12891,7 +13340,7 @@ public class THBaseService { return value == null ? null : value.array(); } - public ByteBuffer bufferForValue() { + public java.nio.ByteBuffer bufferForValue() { return org.apache.thrift.TBaseHelper.copyBinary(value); } @@ -12901,11 +13350,11 @@ public class THBaseService { * column in question */ public checkAndDelete_args setValue(byte[] value) { - this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone()); return this; } - public checkAndDelete_args setValue(ByteBuffer value) { + public checkAndDelete_args setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) { this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -12928,6 +13377,7 @@ public class THBaseService { /** * the TDelete to execute if the check succeeds */ + @org.apache.thrift.annotation.Nullable public TDelete getTdelete() { return this.tdelete; } @@ -12935,7 +13385,7 @@ public class THBaseService { /** * the TDelete to execute if the check succeeds */ - public checkAndDelete_args setTdelete(TDelete tdelete) { + public checkAndDelete_args setTdelete(@org.apache.thrift.annotation.Nullable TDelete tdelete) { this.tdelete = tdelete; return this; } @@ -12955,13 +13405,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -12969,7 +13423,11 @@ public class THBaseService { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -12977,7 +13435,11 @@ public class THBaseService { if (value == null) { unsetFamily(); } else { - setFamily((ByteBuffer)value); + if (value instanceof byte[]) { + setFamily((byte[])value); + } else { + setFamily((java.nio.ByteBuffer)value); + } } break; @@ -12985,7 +13447,11 @@ public class THBaseService { if (value == null) { unsetQualifier(); } else { - setQualifier((ByteBuffer)value); + if (value instanceof byte[]) { + setQualifier((byte[])value); + } else { + setQualifier((java.nio.ByteBuffer)value); + } } break; @@ -12993,7 +13459,11 @@ public class THBaseService { if (value == null) { unsetValue(); } else { - setValue((ByteBuffer)value); + if (value instanceof byte[]) { + setValue((byte[])value); + } else { + setValue((java.nio.ByteBuffer)value); + } } break; @@ -13008,7 +13478,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -13029,13 +13500,13 @@ public class THBaseService { return getTdelete(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -13052,11 +13523,11 @@ public class THBaseService { case TDELETE: return isSetTdelete(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndDelete_args) @@ -13067,6 +13538,8 @@ public class THBaseService { public boolean equals(checkAndDelete_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -13127,39 +13600,33 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_tdelete = true && (isSetTdelete()); - list.add(present_tdelete); - if (present_tdelete) - list.add(tdelete); + hashCode = hashCode * 8191 + ((isSetTdelete()) ? 131071 : 524287); + if (isSetTdelete()) + hashCode = hashCode * 8191 + tdelete.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13170,7 +13637,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -13180,7 +13647,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -13190,7 +13657,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + lastComparison = java.lang.Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } @@ -13200,7 +13667,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + lastComparison = java.lang.Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } @@ -13210,7 +13677,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -13220,7 +13687,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); + lastComparison = java.lang.Boolean.valueOf(isSetTdelete()).compareTo(other.isSetTdelete()); if (lastComparison != 0) { return lastComparison; } @@ -13233,21 +13700,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndDelete_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndDelete_args("); boolean first = true; sb.append("table:"); @@ -13332,7 +13800,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13340,13 +13808,13 @@ public class THBaseService { } } - private static class checkAndDelete_argsStandardSchemeFactory implements SchemeFactory { + private static class checkAndDelete_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndDelete_argsStandardScheme getScheme() { return new checkAndDelete_argsStandardScheme(); } } - private static class checkAndDelete_argsStandardScheme extends StandardScheme { + private static class checkAndDelete_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndDelete_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13458,23 +13926,23 @@ public class THBaseService { } - private static class checkAndDelete_argsTupleSchemeFactory implements SchemeFactory { + private static class checkAndDelete_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndDelete_argsTupleScheme getScheme() { return new checkAndDelete_argsTupleScheme(); } } - private static class checkAndDelete_argsTupleScheme extends TupleScheme { + private static class checkAndDelete_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); oprot.writeBinary(struct.row); oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); struct.tdelete.write(oprot); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -13486,7 +13954,7 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.row = iprot.readBinary(); @@ -13498,7 +13966,7 @@ public class THBaseService { struct.tdelete = new TDelete(); struct.tdelete.read(iprot); struct.setTdeleteIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.value = iprot.readBinary(); struct.setValueIsSet(true); @@ -13506,6 +13974,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndDelete_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13514,24 +13985,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new checkAndDelete_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndDelete_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndDelete_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndDelete_resultTupleSchemeFactory(); public boolean success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -13539,6 +14007,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -13556,21 +14025,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -13579,7 +14049,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -13587,14 +14057,14 @@ public class THBaseService { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndDelete_result.class, metaDataMap); } @@ -13644,23 +14114,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public checkAndDelete_result setIo(TIOError io) { + public checkAndDelete_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -13680,13 +14151,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -13701,7 +14172,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -13710,13 +14182,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -13725,11 +14197,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndDelete_result) @@ -13740,6 +14212,8 @@ public class THBaseService { public boolean equals(checkAndDelete_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -13764,19 +14238,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13787,7 +14257,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -13797,7 +14267,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -13810,21 +14280,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndDelete_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndDelete_result("); boolean first = true; sb.append("success:"); @@ -13855,7 +14326,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -13865,13 +14336,13 @@ public class THBaseService { } } - private static class checkAndDelete_resultStandardSchemeFactory implements SchemeFactory { + private static class checkAndDelete_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndDelete_resultStandardScheme getScheme() { return new checkAndDelete_resultStandardScheme(); } } - private static class checkAndDelete_resultStandardScheme extends StandardScheme { + private static class checkAndDelete_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndDelete_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13931,18 +14402,18 @@ public class THBaseService { } - private static class checkAndDelete_resultTupleSchemeFactory implements SchemeFactory { + private static class checkAndDelete_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndDelete_resultTupleScheme getScheme() { return new checkAndDelete_resultTupleScheme(); } } - private static class checkAndDelete_resultTupleScheme extends TupleScheme { + private static class checkAndDelete_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -13960,8 +14431,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -13974,6 +14445,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class increment_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13982,20 +14456,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TINCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("tincrement", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new increment_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new increment_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new increment_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new increment_argsTupleSchemeFactory(); /** * the table to increment the value on */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TIncrement to increment */ - public TIncrement tincrement; // required + public @org.apache.thrift.annotation.Nullable TIncrement tincrement; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -14008,10 +14479,10 @@ public class THBaseService { */ TINCREMENT((short)2, "tincrement"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14019,6 +14490,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -14036,21 +14508,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14059,20 +14532,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TINCREMENT, new org.apache.thrift.meta_data.FieldMetaData("tincrement", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_args.class, metaDataMap); } @@ -14080,7 +14553,7 @@ public class THBaseService { } public increment_args( - ByteBuffer table, + java.nio.ByteBuffer table, TIncrement tincrement) { this(); @@ -14118,7 +14591,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -14126,11 +14599,11 @@ public class THBaseService { * the table to increment the value on */ public increment_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public increment_args setTable(ByteBuffer table) { + public increment_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -14153,6 +14626,7 @@ public class THBaseService { /** * the TIncrement to increment */ + @org.apache.thrift.annotation.Nullable public TIncrement getTincrement() { return this.tincrement; } @@ -14160,7 +14634,7 @@ public class THBaseService { /** * the TIncrement to increment */ - public increment_args setTincrement(TIncrement tincrement) { + public increment_args setTincrement(@org.apache.thrift.annotation.Nullable TIncrement tincrement) { this.tincrement = tincrement; return this; } @@ -14180,13 +14654,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -14201,7 +14679,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -14210,13 +14689,13 @@ public class THBaseService { return getTincrement(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14225,11 +14704,11 @@ public class THBaseService { case TINCREMENT: return isSetTincrement(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof increment_args) @@ -14240,6 +14719,8 @@ public class THBaseService { public boolean equals(increment_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -14264,19 +14745,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tincrement = true && (isSetTincrement()); - list.add(present_tincrement); - if (present_tincrement) - list.add(tincrement); + hashCode = hashCode * 8191 + ((isSetTincrement()) ? 131071 : 524287); + if (isSetTincrement()) + hashCode = hashCode * 8191 + tincrement.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14287,7 +14766,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -14297,7 +14776,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTincrement()).compareTo(other.isSetTincrement()); + lastComparison = java.lang.Boolean.valueOf(isSetTincrement()).compareTo(other.isSetTincrement()); if (lastComparison != 0) { return lastComparison; } @@ -14310,21 +14789,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("increment_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("increment_args("); boolean first = true; sb.append("table:"); @@ -14368,7 +14848,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14376,13 +14856,13 @@ public class THBaseService { } } - private static class increment_argsStandardSchemeFactory implements SchemeFactory { + private static class increment_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_argsStandardScheme getScheme() { return new increment_argsStandardScheme(); } } - private static class increment_argsStandardScheme extends StandardScheme { + private static class increment_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, increment_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14442,24 +14922,24 @@ public class THBaseService { } - private static class increment_argsTupleSchemeFactory implements SchemeFactory { + private static class increment_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_argsTupleScheme getScheme() { return new increment_argsTupleScheme(); } } - private static class increment_argsTupleScheme extends TupleScheme { + private static class increment_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tincrement.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tincrement = new TIncrement(); @@ -14468,6 +14948,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class increment_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14476,24 +14959,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new increment_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new increment_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new increment_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new increment_resultTupleSchemeFactory(); - public TResult success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TResult success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14501,6 +14981,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -14518,21 +14999,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14541,20 +15023,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_result.class, metaDataMap); } @@ -14592,11 +15074,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TResult getSuccess() { return this.success; } - public increment_result setSuccess(TResult success) { + public increment_result setSuccess(@org.apache.thrift.annotation.Nullable TResult success) { this.success = success; return this; } @@ -14616,11 +15099,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public increment_result setIo(TIOError io) { + public increment_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -14640,7 +15124,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -14661,7 +15145,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -14670,13 +15155,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14685,11 +15170,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof increment_result) @@ -14700,6 +15185,8 @@ public class THBaseService { public boolean equals(increment_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -14724,19 +15211,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14747,7 +15232,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -14757,7 +15242,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -14770,21 +15255,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("increment_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("increment_result("); boolean first = true; sb.append("success:"); @@ -14822,7 +15308,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14830,13 +15316,13 @@ public class THBaseService { } } - private static class increment_resultStandardSchemeFactory implements SchemeFactory { + private static class increment_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_resultStandardScheme getScheme() { return new increment_resultStandardScheme(); } } - private static class increment_resultStandardScheme extends StandardScheme { + private static class increment_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, increment_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14897,18 +15383,18 @@ public class THBaseService { } - private static class increment_resultTupleSchemeFactory implements SchemeFactory { + private static class increment_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public increment_resultTupleScheme getScheme() { return new increment_resultTupleScheme(); } } - private static class increment_resultTupleScheme extends TupleScheme { + private static class increment_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -14926,8 +15412,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); @@ -14941,6 +15427,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class append_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14949,20 +15438,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TAPPEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tappend", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new append_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new append_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new append_argsTupleSchemeFactory(); /** * the table to append the value on */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the TAppend to append */ - public TAppend tappend; // required + public @org.apache.thrift.annotation.Nullable TAppend tappend; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -14975,10 +15461,10 @@ public class THBaseService { */ TAPPEND((short)2, "tappend"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14986,6 +15472,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -15003,21 +15490,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15026,20 +15514,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TAPPEND, new org.apache.thrift.meta_data.FieldMetaData("tappend", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAppend.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_args.class, metaDataMap); } @@ -15047,7 +15535,7 @@ public class THBaseService { } public append_args( - ByteBuffer table, + java.nio.ByteBuffer table, TAppend tappend) { this(); @@ -15085,7 +15573,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -15093,11 +15581,11 @@ public class THBaseService { * the table to append the value on */ public append_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public append_args setTable(ByteBuffer table) { + public append_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -15120,6 +15608,7 @@ public class THBaseService { /** * the TAppend to append */ + @org.apache.thrift.annotation.Nullable public TAppend getTappend() { return this.tappend; } @@ -15127,7 +15616,7 @@ public class THBaseService { /** * the TAppend to append */ - public append_args setTappend(TAppend tappend) { + public append_args setTappend(@org.apache.thrift.annotation.Nullable TAppend tappend) { this.tappend = tappend; return this; } @@ -15147,13 +15636,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -15168,7 +15661,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -15177,13 +15671,13 @@ public class THBaseService { return getTappend(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -15192,11 +15686,11 @@ public class THBaseService { case TAPPEND: return isSetTappend(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof append_args) @@ -15207,6 +15701,8 @@ public class THBaseService { public boolean equals(append_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -15231,19 +15727,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tappend = true && (isSetTappend()); - list.add(present_tappend); - if (present_tappend) - list.add(tappend); + hashCode = hashCode * 8191 + ((isSetTappend()) ? 131071 : 524287); + if (isSetTappend()) + hashCode = hashCode * 8191 + tappend.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15254,7 +15748,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -15264,7 +15758,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTappend()).compareTo(other.isSetTappend()); + lastComparison = java.lang.Boolean.valueOf(isSetTappend()).compareTo(other.isSetTappend()); if (lastComparison != 0) { return lastComparison; } @@ -15277,21 +15771,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("append_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("append_args("); boolean first = true; sb.append("table:"); @@ -15335,7 +15830,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -15343,13 +15838,13 @@ public class THBaseService { } } - private static class append_argsStandardSchemeFactory implements SchemeFactory { + private static class append_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_argsStandardScheme getScheme() { return new append_argsStandardScheme(); } } - private static class append_argsStandardScheme extends StandardScheme { + private static class append_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, append_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15409,24 +15904,24 @@ public class THBaseService { } - private static class append_argsTupleSchemeFactory implements SchemeFactory { + private static class append_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_argsTupleScheme getScheme() { return new append_argsTupleScheme(); } } - private static class append_argsTupleScheme extends TupleScheme { + private static class append_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tappend.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tappend = new TAppend(); @@ -15435,6 +15930,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class append_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15443,24 +15941,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new append_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new append_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new append_resultTupleSchemeFactory(); - public TResult success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TResult success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15468,6 +15963,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -15485,21 +15981,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15508,20 +16005,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_result.class, metaDataMap); } @@ -15559,11 +16056,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TResult getSuccess() { return this.success; } - public append_result setSuccess(TResult success) { + public append_result setSuccess(@org.apache.thrift.annotation.Nullable TResult success) { this.success = success; return this; } @@ -15583,11 +16081,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public append_result setIo(TIOError io) { + public append_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -15607,7 +16106,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -15628,7 +16127,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -15637,13 +16137,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -15652,11 +16152,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof append_result) @@ -15667,6 +16167,8 @@ public class THBaseService { public boolean equals(append_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -15691,19 +16193,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15714,7 +16214,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -15724,7 +16224,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -15737,21 +16237,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("append_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("append_result("); boolean first = true; sb.append("success:"); @@ -15789,7 +16290,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -15797,13 +16298,13 @@ public class THBaseService { } } - private static class append_resultStandardSchemeFactory implements SchemeFactory { + private static class append_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_resultStandardScheme getScheme() { return new append_resultStandardScheme(); } } - private static class append_resultStandardScheme extends StandardScheme { + private static class append_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, append_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15864,18 +16365,18 @@ public class THBaseService { } - private static class append_resultTupleSchemeFactory implements SchemeFactory { + private static class append_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public append_resultTupleScheme getScheme() { return new append_resultTupleScheme(); } } - private static class append_resultTupleScheme extends TupleScheme { + private static class append_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -15893,8 +16394,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); @@ -15908,6 +16409,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class openScanner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15916,20 +16420,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TSCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("tscan", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new openScanner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new openScanner_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new openScanner_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new openScanner_argsTupleSchemeFactory(); /** * the table to get the Scanner for */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the scan object to get a Scanner for */ - public TScan tscan; // required + public @org.apache.thrift.annotation.Nullable TScan tscan; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -15942,10 +16443,10 @@ public class THBaseService { */ TSCAN((short)2, "tscan"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15953,6 +16454,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -15970,21 +16472,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15993,20 +16496,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TSCAN, new org.apache.thrift.meta_data.FieldMetaData("tscan", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openScanner_args.class, metaDataMap); } @@ -16014,7 +16517,7 @@ public class THBaseService { } public openScanner_args( - ByteBuffer table, + java.nio.ByteBuffer table, TScan tscan) { this(); @@ -16052,7 +16555,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -16060,11 +16563,11 @@ public class THBaseService { * the table to get the Scanner for */ public openScanner_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public openScanner_args setTable(ByteBuffer table) { + public openScanner_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -16087,6 +16590,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ + @org.apache.thrift.annotation.Nullable public TScan getTscan() { return this.tscan; } @@ -16094,7 +16598,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ - public openScanner_args setTscan(TScan tscan) { + public openScanner_args setTscan(@org.apache.thrift.annotation.Nullable TScan tscan) { this.tscan = tscan; return this; } @@ -16114,13 +16618,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -16135,7 +16643,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -16144,13 +16653,13 @@ public class THBaseService { return getTscan(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -16159,11 +16668,11 @@ public class THBaseService { case TSCAN: return isSetTscan(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof openScanner_args) @@ -16174,6 +16683,8 @@ public class THBaseService { public boolean equals(openScanner_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -16198,19 +16709,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tscan = true && (isSetTscan()); - list.add(present_tscan); - if (present_tscan) - list.add(tscan); + hashCode = hashCode * 8191 + ((isSetTscan()) ? 131071 : 524287); + if (isSetTscan()) + hashCode = hashCode * 8191 + tscan.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16221,7 +16730,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -16231,7 +16740,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); + lastComparison = java.lang.Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); if (lastComparison != 0) { return lastComparison; } @@ -16244,21 +16753,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("openScanner_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("openScanner_args("); boolean first = true; sb.append("table:"); @@ -16302,7 +16812,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -16310,13 +16820,13 @@ public class THBaseService { } } - private static class openScanner_argsStandardSchemeFactory implements SchemeFactory { + private static class openScanner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public openScanner_argsStandardScheme getScheme() { return new openScanner_argsStandardScheme(); } } - private static class openScanner_argsStandardScheme extends StandardScheme { + private static class openScanner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, openScanner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16376,24 +16886,24 @@ public class THBaseService { } - private static class openScanner_argsTupleSchemeFactory implements SchemeFactory { + private static class openScanner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public openScanner_argsTupleScheme getScheme() { return new openScanner_argsTupleScheme(); } } - private static class openScanner_argsTupleScheme extends TupleScheme { + private static class openScanner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, openScanner_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tscan.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, openScanner_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tscan = new TScan(); @@ -16402,6 +16912,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class openScanner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16410,24 +16923,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new openScanner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new openScanner_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new openScanner_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new openScanner_resultTupleSchemeFactory(); public int success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16435,6 +16945,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -16452,21 +16963,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16475,7 +16987,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -16483,14 +16995,14 @@ public class THBaseService { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openScanner_result.class, metaDataMap); } @@ -16540,23 +17052,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public openScanner_result setIo(TIOError io) { + public openScanner_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -16576,13 +17089,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -16597,7 +17110,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -16606,13 +17120,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -16621,11 +17135,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof openScanner_result) @@ -16636,6 +17150,8 @@ public class THBaseService { public boolean equals(openScanner_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -16660,19 +17176,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16683,7 +17195,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -16693,7 +17205,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -16706,21 +17218,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("openScanner_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("openScanner_result("); boolean first = true; sb.append("success:"); @@ -16751,7 +17264,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -16761,13 +17274,13 @@ public class THBaseService { } } - private static class openScanner_resultStandardSchemeFactory implements SchemeFactory { + private static class openScanner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public openScanner_resultStandardScheme getScheme() { return new openScanner_resultStandardScheme(); } } - private static class openScanner_resultStandardScheme extends StandardScheme { + private static class openScanner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, openScanner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16827,18 +17340,18 @@ public class THBaseService { } - private static class openScanner_resultTupleSchemeFactory implements SchemeFactory { + private static class openScanner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public openScanner_resultTupleScheme getScheme() { return new openScanner_resultTupleScheme(); } } - private static class openScanner_resultTupleScheme extends TupleScheme { + private static class openScanner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, openScanner_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -16856,8 +17369,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, openScanner_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -16870,6 +17383,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getScannerRows_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16878,11 +17394,8 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SCANNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("scannerId", org.apache.thrift.protocol.TType.I32, (short)1); private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getScannerRows_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerRows_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getScannerRows_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getScannerRows_argsTupleSchemeFactory(); /** * the Id of the Scanner to return rows from. This is an Id returned from the openScanner function. @@ -16904,10 +17417,10 @@ public class THBaseService { */ NUM_ROWS((short)2, "numRows"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16915,6 +17428,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SCANNER_ID @@ -16932,21 +17446,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16955,7 +17470,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -16964,14 +17479,14 @@ public class THBaseService { private static final int __SCANNERID_ISSET_ID = 0; private static final int __NUMROWS_ISSET_ID = 1; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SCANNER_ID, new org.apache.thrift.meta_data.FieldMetaData("scannerId", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.NUM_ROWS, new org.apache.thrift.meta_data.FieldMetaData("numRows", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerRows_args.class, metaDataMap); } @@ -17029,16 +17544,16 @@ public class THBaseService { } public void unsetScannerId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); } /** Returns true if field scannerId is set (has been assigned a value) and false otherwise */ public boolean isSetScannerId() { - return EncodingUtils.testBit(__isset_bitfield, __SCANNERID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SCANNERID_ISSET_ID); } public void setScannerIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); } /** @@ -17058,25 +17573,25 @@ public class THBaseService { } public void unsetNumRows() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); } /** Returns true if field numRows is set (has been assigned a value) and false otherwise */ public boolean isSetNumRows() { - return EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); } public void setNumRowsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SCANNER_ID: if (value == null) { unsetScannerId(); } else { - setScannerId((Integer)value); + setScannerId((java.lang.Integer)value); } break; @@ -17084,14 +17599,15 @@ public class THBaseService { if (value == null) { unsetNumRows(); } else { - setNumRows((Integer)value); + setNumRows((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SCANNER_ID: return getScannerId(); @@ -17100,13 +17616,13 @@ public class THBaseService { return getNumRows(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -17115,11 +17631,11 @@ public class THBaseService { case NUM_ROWS: return isSetNumRows(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getScannerRows_args) @@ -17130,6 +17646,8 @@ public class THBaseService { public boolean equals(getScannerRows_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_scannerId = true; boolean that_present_scannerId = true; @@ -17154,19 +17672,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_scannerId = true; - list.add(present_scannerId); - if (present_scannerId) - list.add(scannerId); + hashCode = hashCode * 8191 + scannerId; - boolean present_numRows = true; - list.add(present_numRows); - if (present_numRows) - list.add(numRows); + hashCode = hashCode * 8191 + numRows; - return list.hashCode(); + return hashCode; } @Override @@ -17177,7 +17689,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); + lastComparison = java.lang.Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); if (lastComparison != 0) { return lastComparison; } @@ -17187,7 +17699,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); + lastComparison = java.lang.Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); if (lastComparison != 0) { return lastComparison; } @@ -17200,21 +17712,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getScannerRows_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getScannerRows_args("); boolean first = true; sb.append("scannerId:"); @@ -17242,7 +17755,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -17252,13 +17765,13 @@ public class THBaseService { } } - private static class getScannerRows_argsStandardSchemeFactory implements SchemeFactory { + private static class getScannerRows_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerRows_argsStandardScheme getScheme() { return new getScannerRows_argsStandardScheme(); } } - private static class getScannerRows_argsStandardScheme extends StandardScheme { + private static class getScannerRows_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerRows_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17316,19 +17829,19 @@ public class THBaseService { } - private static class getScannerRows_argsTupleSchemeFactory implements SchemeFactory { + private static class getScannerRows_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerRows_argsTupleScheme getScheme() { return new getScannerRows_argsTupleScheme(); } } - private static class getScannerRows_argsTupleScheme extends TupleScheme { + private static class getScannerRows_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.scannerId); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNumRows()) { optionals.set(0); } @@ -17340,10 +17853,10 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getScannerRows_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.scannerId = iprot.readI32(); struct.setScannerIdIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.numRows = iprot.readI32(); struct.setNumRowsIsSet(true); @@ -17351,6 +17864,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getScannerRows_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17360,18 +17876,15 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getScannerRows_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerRows_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getScannerRows_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getScannerRows_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** * if the scannerId is invalid */ - public TIllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable TIllegalArgument ia; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -17382,10 +17895,10 @@ public class THBaseService { */ IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -17393,6 +17906,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -17412,21 +17926,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -17435,23 +17950,23 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerRows_result.class, metaDataMap); } @@ -17459,7 +17974,7 @@ public class THBaseService { } public getScannerRows_result( - List success, + java.util.List success, TIOError io, TIllegalArgument ia) { @@ -17474,7 +17989,7 @@ public class THBaseService { */ public getScannerRows_result(getScannerRows_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } @@ -17503,22 +18018,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getScannerRows_result setSuccess(List success) { + public getScannerRows_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -17538,11 +18055,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getScannerRows_result setIo(TIOError io) { + public getScannerRows_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -17565,6 +18083,7 @@ public class THBaseService { /** * if the scannerId is invalid */ + @org.apache.thrift.annotation.Nullable public TIllegalArgument getIa() { return this.ia; } @@ -17572,7 +18091,7 @@ public class THBaseService { /** * if the scannerId is invalid */ - public getScannerRows_result setIa(TIllegalArgument ia) { + public getScannerRows_result setIa(@org.apache.thrift.annotation.Nullable TIllegalArgument ia) { this.ia = ia; return this; } @@ -17592,13 +18111,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -17621,7 +18140,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -17633,13 +18153,13 @@ public class THBaseService { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -17650,11 +18170,11 @@ public class THBaseService { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getScannerRows_result) @@ -17665,6 +18185,8 @@ public class THBaseService { public boolean equals(getScannerRows_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -17698,24 +18220,21 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -17726,7 +18245,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -17736,7 +18255,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -17746,7 +18265,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -17759,21 +18278,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getScannerRows_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getScannerRows_result("); boolean first = true; sb.append("success:"); @@ -17816,7 +18336,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -17824,13 +18344,13 @@ public class THBaseService { } } - private static class getScannerRows_resultStandardSchemeFactory implements SchemeFactory { + private static class getScannerRows_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerRows_resultStandardScheme getScheme() { return new getScannerRows_resultStandardScheme(); } } - private static class getScannerRows_resultStandardScheme extends StandardScheme { + private static class getScannerRows_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerRows_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17845,14 +18365,14 @@ public class THBaseService { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list172 = iprot.readListBegin(); - struct.success = new ArrayList(_list172.size); - TResult _elem173; - for (int _i174 = 0; _i174 < _list172.size; ++_i174) + org.apache.thrift.protocol.TList _list198 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list198.size); + @org.apache.thrift.annotation.Nullable TResult _elem199; + for (int _i200 = 0; _i200 < _list198.size; ++_i200) { - _elem173 = new TResult(); - _elem173.read(iprot); - struct.success.add(_elem173); + _elem199 = new TResult(); + _elem199.read(iprot); + struct.success.add(_elem199); } iprot.readListEnd(); } @@ -17898,9 +18418,9 @@ public class THBaseService { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TResult _iter175 : struct.success) + for (TResult _iter201 : struct.success) { - _iter175.write(oprot); + _iter201.write(oprot); } oprot.writeListEnd(); } @@ -17922,18 +18442,18 @@ public class THBaseService { } - private static class getScannerRows_resultTupleSchemeFactory implements SchemeFactory { + private static class getScannerRows_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerRows_resultTupleScheme getScheme() { return new getScannerRows_resultTupleScheme(); } } - private static class getScannerRows_resultTupleScheme extends TupleScheme { + private static class getScannerRows_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -17947,9 +18467,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TResult _iter176 : struct.success) + for (TResult _iter202 : struct.success) { - _iter176.write(oprot); + _iter202.write(oprot); } } } @@ -17963,18 +18483,18 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list177.size); - TResult _elem178; - for (int _i179 = 0; _i179 < _list177.size; ++_i179) + org.apache.thrift.protocol.TList _list203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list203.size); + @org.apache.thrift.annotation.Nullable TResult _elem204; + for (int _i205 = 0; _i205 < _list203.size; ++_i205) { - _elem178 = new TResult(); - _elem178.read(iprot); - struct.success.add(_elem178); + _elem204 = new TResult(); + _elem204.read(iprot); + struct.success.add(_elem204); } } struct.setSuccessIsSet(true); @@ -17992,6 +18512,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class closeScanner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17999,11 +18522,8 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SCANNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("scannerId", org.apache.thrift.protocol.TType.I32, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new closeScanner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new closeScanner_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new closeScanner_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new closeScanner_argsTupleSchemeFactory(); /** * the Id of the Scanner to close * @@ -18017,10 +18537,10 @@ public class THBaseService { */ SCANNER_ID((short)1, "scannerId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18028,6 +18548,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SCANNER_ID @@ -18043,21 +18564,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18066,7 +18588,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -18074,12 +18596,12 @@ public class THBaseService { // isset id assignments private static final int __SCANNERID_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SCANNER_ID, new org.apache.thrift.meta_data.FieldMetaData("scannerId", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeScanner_args.class, metaDataMap); } @@ -18129,55 +18651,56 @@ public class THBaseService { } public void unsetScannerId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SCANNERID_ISSET_ID); } /** Returns true if field scannerId is set (has been assigned a value) and false otherwise */ public boolean isSetScannerId() { - return EncodingUtils.testBit(__isset_bitfield, __SCANNERID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SCANNERID_ISSET_ID); } public void setScannerIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SCANNERID_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SCANNER_ID: if (value == null) { unsetScannerId(); } else { - setScannerId((Integer)value); + setScannerId((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SCANNER_ID: return getScannerId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SCANNER_ID: return isSetScannerId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof closeScanner_args) @@ -18188,6 +18711,8 @@ public class THBaseService { public boolean equals(closeScanner_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_scannerId = true; boolean that_present_scannerId = true; @@ -18203,14 +18728,11 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_scannerId = true; - list.add(present_scannerId); - if (present_scannerId) - list.add(scannerId); + hashCode = hashCode * 8191 + scannerId; - return list.hashCode(); + return hashCode; } @Override @@ -18221,7 +18743,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); + lastComparison = java.lang.Boolean.valueOf(isSetScannerId()).compareTo(other.isSetScannerId()); if (lastComparison != 0) { return lastComparison; } @@ -18234,21 +18756,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("closeScanner_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("closeScanner_args("); boolean first = true; sb.append("scannerId:"); @@ -18272,7 +18795,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -18282,13 +18805,13 @@ public class THBaseService { } } - private static class closeScanner_argsStandardSchemeFactory implements SchemeFactory { + private static class closeScanner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public closeScanner_argsStandardScheme getScheme() { return new closeScanner_argsStandardScheme(); } } - private static class closeScanner_argsStandardScheme extends StandardScheme { + private static class closeScanner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, closeScanner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18335,28 +18858,31 @@ public class THBaseService { } - private static class closeScanner_argsTupleSchemeFactory implements SchemeFactory { + private static class closeScanner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public closeScanner_argsTupleScheme getScheme() { return new closeScanner_argsTupleScheme(); } } - private static class closeScanner_argsTupleScheme extends TupleScheme { + private static class closeScanner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, closeScanner_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.scannerId); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeScanner_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.scannerId = iprot.readI32(); struct.setScannerIdIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class closeScanner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18365,17 +18891,14 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new closeScanner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new closeScanner_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new closeScanner_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new closeScanner_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** * if the scannerId is invalid */ - public TIllegalArgument ia; // required + public @org.apache.thrift.annotation.Nullable TIllegalArgument ia; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -18385,10 +18908,10 @@ public class THBaseService { */ IA((short)2, "ia"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18396,6 +18919,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -18413,21 +18937,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18436,20 +18961,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIllegalArgument.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeScanner_result.class, metaDataMap); } @@ -18487,11 +19012,12 @@ public class THBaseService { this.ia = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public closeScanner_result setIo(TIOError io) { + public closeScanner_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -18514,6 +19040,7 @@ public class THBaseService { /** * if the scannerId is invalid */ + @org.apache.thrift.annotation.Nullable public TIllegalArgument getIa() { return this.ia; } @@ -18521,7 +19048,7 @@ public class THBaseService { /** * if the scannerId is invalid */ - public closeScanner_result setIa(TIllegalArgument ia) { + public closeScanner_result setIa(@org.apache.thrift.annotation.Nullable TIllegalArgument ia) { this.ia = ia; return this; } @@ -18541,7 +19068,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -18562,7 +19089,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); @@ -18571,13 +19099,13 @@ public class THBaseService { return getIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -18586,11 +19114,11 @@ public class THBaseService { case IA: return isSetIa(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof closeScanner_result) @@ -18601,6 +19129,8 @@ public class THBaseService { public boolean equals(closeScanner_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -18625,19 +19155,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - boolean present_ia = true && (isSetIa()); - list.add(present_ia); - if (present_ia) - list.add(ia); + hashCode = hashCode * 8191 + ((isSetIa()) ? 131071 : 524287); + if (isSetIa()) + hashCode = hashCode * 8191 + ia.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -18648,7 +19176,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -18658,7 +19186,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); + lastComparison = java.lang.Boolean.valueOf(isSetIa()).compareTo(other.isSetIa()); if (lastComparison != 0) { return lastComparison; } @@ -18671,21 +19199,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("closeScanner_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("closeScanner_result("); boolean first = true; sb.append("io:"); @@ -18720,7 +19249,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -18728,13 +19257,13 @@ public class THBaseService { } } - private static class closeScanner_resultStandardSchemeFactory implements SchemeFactory { + private static class closeScanner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public closeScanner_resultStandardScheme getScheme() { return new closeScanner_resultStandardScheme(); } } - private static class closeScanner_resultStandardScheme extends StandardScheme { + private static class closeScanner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, closeScanner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18795,18 +19324,18 @@ public class THBaseService { } - private static class closeScanner_resultTupleSchemeFactory implements SchemeFactory { + private static class closeScanner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public closeScanner_resultTupleScheme getScheme() { return new closeScanner_resultTupleScheme(); } } - private static class closeScanner_resultTupleScheme extends TupleScheme { + private static class closeScanner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, closeScanner_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -18824,8 +19353,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeScanner_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -18839,6 +19368,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRow_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18847,20 +19379,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TROW_MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("trowMutations", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new mutateRow_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRow_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRow_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRow_argsTupleSchemeFactory(); /** * table to apply the mutations */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * mutations to apply */ - public TRowMutations trowMutations; // required + public @org.apache.thrift.annotation.Nullable TRowMutations trowMutations; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -18873,10 +19402,10 @@ public class THBaseService { */ TROW_MUTATIONS((short)2, "trowMutations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18884,6 +19413,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -18901,21 +19431,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18924,20 +19455,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TROW_MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("trowMutations", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowMutations.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_args.class, metaDataMap); } @@ -18945,7 +19476,7 @@ public class THBaseService { } public mutateRow_args( - ByteBuffer table, + java.nio.ByteBuffer table, TRowMutations trowMutations) { this(); @@ -18983,7 +19514,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -18991,11 +19522,11 @@ public class THBaseService { * table to apply the mutations */ public mutateRow_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public mutateRow_args setTable(ByteBuffer table) { + public mutateRow_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -19018,6 +19549,7 @@ public class THBaseService { /** * mutations to apply */ + @org.apache.thrift.annotation.Nullable public TRowMutations getTrowMutations() { return this.trowMutations; } @@ -19025,7 +19557,7 @@ public class THBaseService { /** * mutations to apply */ - public mutateRow_args setTrowMutations(TRowMutations trowMutations) { + public mutateRow_args setTrowMutations(@org.apache.thrift.annotation.Nullable TRowMutations trowMutations) { this.trowMutations = trowMutations; return this; } @@ -19045,13 +19577,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -19066,7 +19602,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -19075,13 +19612,13 @@ public class THBaseService { return getTrowMutations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -19090,11 +19627,11 @@ public class THBaseService { case TROW_MUTATIONS: return isSetTrowMutations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRow_args) @@ -19105,6 +19642,8 @@ public class THBaseService { public boolean equals(mutateRow_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -19129,19 +19668,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_trowMutations = true && (isSetTrowMutations()); - list.add(present_trowMutations); - if (present_trowMutations) - list.add(trowMutations); + hashCode = hashCode * 8191 + ((isSetTrowMutations()) ? 131071 : 524287); + if (isSetTrowMutations()) + hashCode = hashCode * 8191 + trowMutations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -19152,7 +19689,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -19162,7 +19699,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTrowMutations()).compareTo(other.isSetTrowMutations()); + lastComparison = java.lang.Boolean.valueOf(isSetTrowMutations()).compareTo(other.isSetTrowMutations()); if (lastComparison != 0) { return lastComparison; } @@ -19175,21 +19712,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRow_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRow_args("); boolean first = true; sb.append("table:"); @@ -19233,7 +19771,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -19241,13 +19779,13 @@ public class THBaseService { } } - private static class mutateRow_argsStandardSchemeFactory implements SchemeFactory { + private static class mutateRow_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_argsStandardScheme getScheme() { return new mutateRow_argsStandardScheme(); } } - private static class mutateRow_argsStandardScheme extends StandardScheme { + private static class mutateRow_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19307,24 +19845,24 @@ public class THBaseService { } - private static class mutateRow_argsTupleSchemeFactory implements SchemeFactory { + private static class mutateRow_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_argsTupleScheme getScheme() { return new mutateRow_argsTupleScheme(); } } - private static class mutateRow_argsTupleScheme extends TupleScheme { + private static class mutateRow_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.trowMutations.write(oprot); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.trowMutations = new TRowMutations(); @@ -19333,6 +19871,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class mutateRow_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -19340,22 +19881,19 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new mutateRow_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new mutateRow_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mutateRow_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mutateRow_resultTupleSchemeFactory(); - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -19363,6 +19901,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // IO @@ -19378,21 +19917,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -19401,18 +19941,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_result.class, metaDataMap); } @@ -19444,11 +19984,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public mutateRow_result setIo(TIOError io) { + public mutateRow_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -19468,7 +20009,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case IO: if (value == null) { @@ -19481,30 +20022,31 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IO: return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof mutateRow_result) @@ -19515,6 +20057,8 @@ public class THBaseService { public boolean equals(mutateRow_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); @@ -19530,14 +20074,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -19548,7 +20091,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -19561,21 +20104,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("mutateRow_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("mutateRow_result("); boolean first = true; sb.append("io:"); @@ -19602,7 +20146,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -19610,13 +20154,13 @@ public class THBaseService { } } - private static class mutateRow_resultStandardSchemeFactory implements SchemeFactory { + private static class mutateRow_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_resultStandardScheme getScheme() { return new mutateRow_resultStandardScheme(); } } - private static class mutateRow_resultStandardScheme extends StandardScheme { + private static class mutateRow_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19663,18 +20207,18 @@ public class THBaseService { } - private static class mutateRow_resultTupleSchemeFactory implements SchemeFactory { + private static class mutateRow_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public mutateRow_resultTupleScheme getScheme() { return new mutateRow_resultTupleScheme(); } } - private static class mutateRow_resultTupleScheme extends TupleScheme { + private static class mutateRow_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { optionals.set(0); } @@ -19686,8 +20230,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.io = new TIOError(); struct.io.read(iprot); @@ -19696,6 +20240,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getScannerResults_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -19705,20 +20252,17 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TSCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("tscan", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getScannerResults_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerResults_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getScannerResults_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getScannerResults_argsTupleSchemeFactory(); /** * the table to get the Scanner for */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * the scan object to get a Scanner for */ - public TScan tscan; // required + public @org.apache.thrift.annotation.Nullable TScan tscan; // required /** * number of rows to return */ @@ -19739,10 +20283,10 @@ public class THBaseService { */ NUM_ROWS((short)3, "numRows"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -19750,6 +20294,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -19769,21 +20314,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -19792,7 +20338,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -19800,16 +20346,16 @@ public class THBaseService { // isset id assignments private static final int __NUMROWS_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.TSCAN, new org.apache.thrift.meta_data.FieldMetaData("tscan", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class))); tmpMap.put(_Fields.NUM_ROWS, new org.apache.thrift.meta_data.FieldMetaData("numRows", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerResults_args.class, metaDataMap); } @@ -19819,7 +20365,7 @@ public class THBaseService { } public getScannerResults_args( - ByteBuffer table, + java.nio.ByteBuffer table, TScan tscan, int numRows) { @@ -19864,7 +20410,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -19872,11 +20418,11 @@ public class THBaseService { * the table to get the Scanner for */ public getScannerResults_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public getScannerResults_args setTable(ByteBuffer table) { + public getScannerResults_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -19899,6 +20445,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ + @org.apache.thrift.annotation.Nullable public TScan getTscan() { return this.tscan; } @@ -19906,7 +20453,7 @@ public class THBaseService { /** * the scan object to get a Scanner for */ - public getScannerResults_args setTscan(TScan tscan) { + public getScannerResults_args setTscan(@org.apache.thrift.annotation.Nullable TScan tscan) { this.tscan = tscan; return this; } @@ -19943,25 +20490,29 @@ public class THBaseService { } public void unsetNumRows() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __NUMROWS_ISSET_ID); } /** Returns true if field numRows is set (has been assigned a value) and false otherwise */ public boolean isSetNumRows() { - return EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMROWS_ISSET_ID); } public void setNumRowsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __NUMROWS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -19977,14 +20528,15 @@ public class THBaseService { if (value == null) { unsetNumRows(); } else { - setNumRows((Integer)value); + setNumRows((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -19996,13 +20548,13 @@ public class THBaseService { return getNumRows(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -20013,11 +20565,11 @@ public class THBaseService { case NUM_ROWS: return isSetNumRows(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getScannerResults_args) @@ -20028,6 +20580,8 @@ public class THBaseService { public boolean equals(getScannerResults_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -20061,24 +20615,19 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_tscan = true && (isSetTscan()); - list.add(present_tscan); - if (present_tscan) - list.add(tscan); + hashCode = hashCode * 8191 + ((isSetTscan()) ? 131071 : 524287); + if (isSetTscan()) + hashCode = hashCode * 8191 + tscan.hashCode(); - boolean present_numRows = true; - list.add(present_numRows); - if (present_numRows) - list.add(numRows); + hashCode = hashCode * 8191 + numRows; - return list.hashCode(); + return hashCode; } @Override @@ -20089,7 +20638,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -20099,7 +20648,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); + lastComparison = java.lang.Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); if (lastComparison != 0) { return lastComparison; } @@ -20109,7 +20658,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); + lastComparison = java.lang.Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); if (lastComparison != 0) { return lastComparison; } @@ -20122,21 +20671,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getScannerResults_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getScannerResults_args("); boolean first = true; sb.append("table:"); @@ -20184,7 +20734,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -20194,13 +20744,13 @@ public class THBaseService { } } - private static class getScannerResults_argsStandardSchemeFactory implements SchemeFactory { + private static class getScannerResults_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerResults_argsStandardScheme getScheme() { return new getScannerResults_argsStandardScheme(); } } - private static class getScannerResults_argsStandardScheme extends StandardScheme { + private static class getScannerResults_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerResults_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20271,20 +20821,20 @@ public class THBaseService { } - private static class getScannerResults_argsTupleSchemeFactory implements SchemeFactory { + private static class getScannerResults_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerResults_argsTupleScheme getScheme() { return new getScannerResults_argsTupleScheme(); } } - private static class getScannerResults_argsTupleScheme extends TupleScheme { + private static class getScannerResults_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tscan.write(oprot); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNumRows()) { optionals.set(0); } @@ -20296,13 +20846,13 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tscan = new TScan(); struct.tscan.read(iprot); struct.setTscanIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.numRows = iprot.readI32(); struct.setNumRowsIsSet(true); @@ -20310,6 +20860,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getScannerResults_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20318,24 +20871,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getScannerResults_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getScannerResults_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getScannerResults_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getScannerResults_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20343,6 +20893,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -20360,21 +20911,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20383,21 +20935,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TResult.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScannerResults_result.class, metaDataMap); } @@ -20405,7 +20957,7 @@ public class THBaseService { } public getScannerResults_result( - List success, + java.util.List success, TIOError io) { this(); @@ -20418,7 +20970,7 @@ public class THBaseService { */ public getScannerResults_result(getScannerResults_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } @@ -20443,22 +20995,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(TResult elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getScannerResults_result setSuccess(List success) { + public getScannerResults_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -20478,11 +21032,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getScannerResults_result setIo(TIOError io) { + public getScannerResults_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -20502,13 +21057,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -20523,7 +21078,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -20532,13 +21088,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -20547,11 +21103,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getScannerResults_result) @@ -20562,6 +21118,8 @@ public class THBaseService { public boolean equals(getScannerResults_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -20586,19 +21144,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -20609,7 +21165,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -20619,7 +21175,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -20632,21 +21188,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getScannerResults_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getScannerResults_result("); boolean first = true; sb.append("success:"); @@ -20681,7 +21238,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -20689,13 +21246,13 @@ public class THBaseService { } } - private static class getScannerResults_resultStandardSchemeFactory implements SchemeFactory { + private static class getScannerResults_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerResults_resultStandardScheme getScheme() { return new getScannerResults_resultStandardScheme(); } } - private static class getScannerResults_resultStandardScheme extends StandardScheme { + private static class getScannerResults_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getScannerResults_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20710,14 +21267,14 @@ public class THBaseService { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list180 = iprot.readListBegin(); - struct.success = new ArrayList(_list180.size); - TResult _elem181; - for (int _i182 = 0; _i182 < _list180.size; ++_i182) + org.apache.thrift.protocol.TList _list206 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list206.size); + @org.apache.thrift.annotation.Nullable TResult _elem207; + for (int _i208 = 0; _i208 < _list206.size; ++_i208) { - _elem181 = new TResult(); - _elem181.read(iprot); - struct.success.add(_elem181); + _elem207 = new TResult(); + _elem207.read(iprot); + struct.success.add(_elem207); } iprot.readListEnd(); } @@ -20754,9 +21311,9 @@ public class THBaseService { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TResult _iter183 : struct.success) + for (TResult _iter209 : struct.success) { - _iter183.write(oprot); + _iter209.write(oprot); } oprot.writeListEnd(); } @@ -20773,18 +21330,18 @@ public class THBaseService { } - private static class getScannerResults_resultTupleSchemeFactory implements SchemeFactory { + private static class getScannerResults_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getScannerResults_resultTupleScheme getScheme() { return new getScannerResults_resultTupleScheme(); } } - private static class getScannerResults_resultTupleScheme extends TupleScheme { + private static class getScannerResults_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerResults_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -20795,9 +21352,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TResult _iter184 : struct.success) + for (TResult _iter210 : struct.success) { - _iter184.write(oprot); + _iter210.write(oprot); } } } @@ -20808,18 +21365,18 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list185.size); - TResult _elem186; - for (int _i187 = 0; _i187 < _list185.size; ++_i187) + org.apache.thrift.protocol.TList _list211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list211.size); + @org.apache.thrift.annotation.Nullable TResult _elem212; + for (int _i213 = 0; _i213 < _list211.size; ++_i213) { - _elem186 = new TResult(); - _elem186.read(iprot); - struct.success.add(_elem186); + _elem212 = new TResult(); + _elem212.read(iprot); + struct.success.add(_elem212); } } struct.setSuccessIsSet(true); @@ -20832,6 +21389,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRegionLocation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20841,14 +21401,11 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField RELOAD_FIELD_DESC = new org.apache.thrift.protocol.TField("reload", org.apache.thrift.protocol.TType.BOOL, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRegionLocation_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRegionLocation_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRegionLocation_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRegionLocation_argsTupleSchemeFactory(); - public ByteBuffer table; // required - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required public boolean reload; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -20857,10 +21414,10 @@ public class THBaseService { ROW((short)2, "row"), RELOAD((short)3, "reload"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20868,6 +21425,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -20887,21 +21445,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20910,7 +21469,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -20918,16 +21477,16 @@ public class THBaseService { // isset id assignments private static final int __RELOAD_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.RELOAD, new org.apache.thrift.meta_data.FieldMetaData("reload", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionLocation_args.class, metaDataMap); } @@ -20935,8 +21494,8 @@ public class THBaseService { } public getRegionLocation_args( - ByteBuffer table, - ByteBuffer row, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, boolean reload) { this(); @@ -20977,16 +21536,16 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } public getRegionLocation_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public getRegionLocation_args setTable(ByteBuffer table) { + public getRegionLocation_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -21011,16 +21570,16 @@ public class THBaseService { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } public getRegionLocation_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public getRegionLocation_args setRow(ByteBuffer row) { + public getRegionLocation_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -21051,25 +21610,29 @@ public class THBaseService { } public void unsetReload() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RELOAD_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __RELOAD_ISSET_ID); } /** Returns true if field reload is set (has been assigned a value) and false otherwise */ public boolean isSetReload() { - return EncodingUtils.testBit(__isset_bitfield, __RELOAD_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __RELOAD_ISSET_ID); } public void setReloadIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RELOAD_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __RELOAD_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -21077,7 +21640,11 @@ public class THBaseService { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -21085,14 +21652,15 @@ public class THBaseService { if (value == null) { unsetReload(); } else { - setReload((Boolean)value); + setReload((java.lang.Boolean)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -21104,13 +21672,13 @@ public class THBaseService { return isReload(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21121,11 +21689,11 @@ public class THBaseService { case RELOAD: return isSetReload(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRegionLocation_args) @@ -21136,6 +21704,8 @@ public class THBaseService { public boolean equals(getRegionLocation_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -21169,24 +21739,19 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_reload = true; - list.add(present_reload); - if (present_reload) - list.add(reload); + hashCode = hashCode * 8191 + ((reload) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -21197,7 +21762,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -21207,7 +21772,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -21217,7 +21782,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReload()).compareTo(other.isSetReload()); + lastComparison = java.lang.Boolean.valueOf(isSetReload()).compareTo(other.isSetReload()); if (lastComparison != 0) { return lastComparison; } @@ -21230,21 +21795,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRegionLocation_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRegionLocation_args("); boolean first = true; sb.append("table:"); @@ -21289,7 +21855,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -21299,13 +21865,13 @@ public class THBaseService { } } - private static class getRegionLocation_argsStandardSchemeFactory implements SchemeFactory { + private static class getRegionLocation_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionLocation_argsStandardScheme getScheme() { return new getRegionLocation_argsStandardScheme(); } } - private static class getRegionLocation_argsStandardScheme extends StandardScheme { + private static class getRegionLocation_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionLocation_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21375,20 +21941,20 @@ public class THBaseService { } - private static class getRegionLocation_argsTupleSchemeFactory implements SchemeFactory { + private static class getRegionLocation_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionLocation_argsTupleScheme getScheme() { return new getRegionLocation_argsTupleScheme(); } } - private static class getRegionLocation_argsTupleScheme extends TupleScheme { + private static class getRegionLocation_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); oprot.writeBinary(struct.row); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetReload()) { optionals.set(0); } @@ -21400,12 +21966,12 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.row = iprot.readBinary(); struct.setRowIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.reload = iprot.readBool(); struct.setReloadIsSet(true); @@ -21413,6 +21979,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getRegionLocation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21421,24 +21990,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getRegionLocation_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getRegionLocation_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getRegionLocation_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getRegionLocation_resultTupleSchemeFactory(); - public THRegionLocation success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable THRegionLocation success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21446,6 +22012,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -21463,21 +22030,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21486,20 +22054,20 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, THRegionLocation.class))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionLocation_result.class, metaDataMap); } @@ -21537,11 +22105,12 @@ public class THBaseService { this.io = null; } + @org.apache.thrift.annotation.Nullable public THRegionLocation getSuccess() { return this.success; } - public getRegionLocation_result setSuccess(THRegionLocation success) { + public getRegionLocation_result setSuccess(@org.apache.thrift.annotation.Nullable THRegionLocation success) { this.success = success; return this; } @@ -21561,11 +22130,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getRegionLocation_result setIo(TIOError io) { + public getRegionLocation_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -21585,7 +22155,7 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -21606,7 +22176,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -21615,13 +22186,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21630,11 +22201,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getRegionLocation_result) @@ -21645,6 +22216,8 @@ public class THBaseService { public boolean equals(getRegionLocation_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -21669,19 +22242,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -21692,7 +22263,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -21702,7 +22273,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -21715,21 +22286,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getRegionLocation_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getRegionLocation_result("); boolean first = true; sb.append("success:"); @@ -21767,7 +22339,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -21775,13 +22347,13 @@ public class THBaseService { } } - private static class getRegionLocation_resultStandardSchemeFactory implements SchemeFactory { + private static class getRegionLocation_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionLocation_resultStandardScheme getScheme() { return new getRegionLocation_resultStandardScheme(); } } - private static class getRegionLocation_resultStandardScheme extends StandardScheme { + private static class getRegionLocation_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionLocation_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21842,18 +22414,18 @@ public class THBaseService { } - private static class getRegionLocation_resultTupleSchemeFactory implements SchemeFactory { + private static class getRegionLocation_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getRegionLocation_resultTupleScheme getScheme() { return new getRegionLocation_resultTupleScheme(); } } - private static class getRegionLocation_resultTupleScheme extends TupleScheme { + private static class getRegionLocation_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -21871,8 +22443,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new THRegionLocation(); struct.success.read(iprot); @@ -21886,6 +22458,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getAllRegionLocations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21893,22 +22468,19 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getAllRegionLocations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllRegionLocations_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAllRegionLocations_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAllRegionLocations_argsTupleSchemeFactory(); - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TABLE((short)1, "table"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21916,6 +22488,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -21931,21 +22504,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21954,18 +22528,18 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllRegionLocations_args.class, metaDataMap); } @@ -21973,7 +22547,7 @@ public class THBaseService { } public getAllRegionLocations_args( - ByteBuffer table) + java.nio.ByteBuffer table) { this(); this.table = org.apache.thrift.TBaseHelper.copyBinary(table); @@ -22002,16 +22576,16 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } public getAllRegionLocations_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public getAllRegionLocations_args setTable(ByteBuffer table) { + public getAllRegionLocations_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -22031,43 +22605,48 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TABLE: return isSetTable(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getAllRegionLocations_args) @@ -22078,6 +22657,8 @@ public class THBaseService { public boolean equals(getAllRegionLocations_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -22093,14 +22674,13 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -22111,7 +22691,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -22124,21 +22704,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getAllRegionLocations_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getAllRegionLocations_args("); boolean first = true; sb.append("table:"); @@ -22168,7 +22749,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22176,13 +22757,13 @@ public class THBaseService { } } - private static class getAllRegionLocations_argsStandardSchemeFactory implements SchemeFactory { + private static class getAllRegionLocations_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllRegionLocations_argsStandardScheme getScheme() { return new getAllRegionLocations_argsStandardScheme(); } } - private static class getAllRegionLocations_argsStandardScheme extends StandardScheme { + private static class getAllRegionLocations_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22228,28 +22809,31 @@ public class THBaseService { } - private static class getAllRegionLocations_argsTupleSchemeFactory implements SchemeFactory { + private static class getAllRegionLocations_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllRegionLocations_argsTupleScheme getScheme() { return new getAllRegionLocations_argsTupleScheme(); } } - private static class getAllRegionLocations_argsTupleScheme extends TupleScheme { + private static class getAllRegionLocations_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getAllRegionLocations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22258,24 +22842,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getAllRegionLocations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllRegionLocations_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAllRegionLocations_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAllRegionLocations_resultTupleSchemeFactory(); - public List success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22283,6 +22864,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -22300,21 +22882,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22323,21 +22906,21 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, THRegionLocation.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllRegionLocations_result.class, metaDataMap); } @@ -22345,7 +22928,7 @@ public class THBaseService { } public getAllRegionLocations_result( - List success, + java.util.List success, TIOError io) { this(); @@ -22358,7 +22941,7 @@ public class THBaseService { */ public getAllRegionLocations_result(getAllRegionLocations_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (THRegionLocation other_element : other.success) { __this__success.add(new THRegionLocation(other_element)); } @@ -22383,22 +22966,24 @@ public class THBaseService { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(THRegionLocation elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getAllRegionLocations_result setSuccess(List success) { + public getAllRegionLocations_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -22418,11 +23003,12 @@ public class THBaseService { } } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public getAllRegionLocations_result setIo(TIOError io) { + public getAllRegionLocations_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -22442,13 +23028,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -22463,7 +23049,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -22472,13 +23059,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -22487,11 +23074,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof getAllRegionLocations_result) @@ -22502,6 +23089,8 @@ public class THBaseService { public boolean equals(getAllRegionLocations_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -22526,19 +23115,17 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -22549,7 +23136,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -22559,7 +23146,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -22572,21 +23159,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getAllRegionLocations_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getAllRegionLocations_result("); boolean first = true; sb.append("success:"); @@ -22621,7 +23209,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22629,13 +23217,13 @@ public class THBaseService { } } - private static class getAllRegionLocations_resultStandardSchemeFactory implements SchemeFactory { + private static class getAllRegionLocations_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllRegionLocations_resultStandardScheme getScheme() { return new getAllRegionLocations_resultStandardScheme(); } } - private static class getAllRegionLocations_resultStandardScheme extends StandardScheme { + private static class getAllRegionLocations_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22650,14 +23238,14 @@ public class THBaseService { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list188 = iprot.readListBegin(); - struct.success = new ArrayList(_list188.size); - THRegionLocation _elem189; - for (int _i190 = 0; _i190 < _list188.size; ++_i190) + org.apache.thrift.protocol.TList _list214 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list214.size); + @org.apache.thrift.annotation.Nullable THRegionLocation _elem215; + for (int _i216 = 0; _i216 < _list214.size; ++_i216) { - _elem189 = new THRegionLocation(); - _elem189.read(iprot); - struct.success.add(_elem189); + _elem215 = new THRegionLocation(); + _elem215.read(iprot); + struct.success.add(_elem215); } iprot.readListEnd(); } @@ -22694,9 +23282,9 @@ public class THBaseService { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (THRegionLocation _iter191 : struct.success) + for (THRegionLocation _iter217 : struct.success) { - _iter191.write(oprot); + _iter217.write(oprot); } oprot.writeListEnd(); } @@ -22713,18 +23301,18 @@ public class THBaseService { } - private static class getAllRegionLocations_resultTupleSchemeFactory implements SchemeFactory { + private static class getAllRegionLocations_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllRegionLocations_resultTupleScheme getScheme() { return new getAllRegionLocations_resultTupleScheme(); } } - private static class getAllRegionLocations_resultTupleScheme extends TupleScheme { + private static class getAllRegionLocations_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -22735,9 +23323,9 @@ public class THBaseService { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (THRegionLocation _iter192 : struct.success) + for (THRegionLocation _iter218 : struct.success) { - _iter192.write(oprot); + _iter218.write(oprot); } } } @@ -22748,18 +23336,18 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list193.size); - THRegionLocation _elem194; - for (int _i195 = 0; _i195 < _list193.size; ++_i195) + org.apache.thrift.protocol.TList _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list219.size); + @org.apache.thrift.annotation.Nullable THRegionLocation _elem220; + for (int _i221 = 0; _i221 < _list219.size; ++_i221) { - _elem194 = new THRegionLocation(); - _elem194.read(iprot); - struct.success.add(_elem194); + _elem220 = new THRegionLocation(); + _elem220.read(iprot); + struct.success.add(_elem220); } } struct.setSuccessIsSet(true); @@ -22772,6 +23360,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndMutate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22785,43 +23376,40 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)6); private static final org.apache.thrift.protocol.TField ROW_MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("rowMutations", org.apache.thrift.protocol.TType.STRUCT, (short)7); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new checkAndMutate_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndMutate_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndMutate_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndMutate_argsTupleSchemeFactory(); /** * to check in and delete from */ - public ByteBuffer table; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table; // required /** * row to check */ - public ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required /** * column family to check */ - public ByteBuffer family; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family; // required /** * column qualifier to check */ - public ByteBuffer qualifier; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier; // required /** * comparison to make on the value * * @see TCompareOp */ - public TCompareOp compareOp; // required + public @org.apache.thrift.annotation.Nullable TCompareOp compareOp; // required /** * the expected value to be compared against, if not provided the * check is for the non-existence of the column in question */ - public ByteBuffer value; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // required /** * row mutations to execute if the value matches */ - public TRowMutations rowMutations; // required + public @org.apache.thrift.annotation.Nullable TRowMutations rowMutations; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -22857,10 +23445,10 @@ public class THBaseService { */ ROW_MUTATIONS((short)7, "rowMutations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22868,6 +23456,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE @@ -22895,21 +23484,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22918,15 +23508,15 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -22941,7 +23531,7 @@ public class THBaseService { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.ROW_MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("rowMutations", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowMutations.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndMutate_args.class, metaDataMap); } @@ -22949,12 +23539,12 @@ public class THBaseService { } public checkAndMutate_args( - ByteBuffer table, - ByteBuffer row, - ByteBuffer family, - ByteBuffer qualifier, + java.nio.ByteBuffer table, + java.nio.ByteBuffer row, + java.nio.ByteBuffer family, + java.nio.ByteBuffer qualifier, TCompareOp compareOp, - ByteBuffer value, + java.nio.ByteBuffer value, TRowMutations rowMutations) { this(); @@ -23017,7 +23607,7 @@ public class THBaseService { return table == null ? null : table.array(); } - public ByteBuffer bufferForTable() { + public java.nio.ByteBuffer bufferForTable() { return org.apache.thrift.TBaseHelper.copyBinary(table); } @@ -23025,11 +23615,11 @@ public class THBaseService { * to check in and delete from */ public checkAndMutate_args setTable(byte[] table) { - this.table = table == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(table, table.length)); + this.table = table == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(table.clone()); return this; } - public checkAndMutate_args setTable(ByteBuffer table) { + public checkAndMutate_args setTable(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer table) { this.table = org.apache.thrift.TBaseHelper.copyBinary(table); return this; } @@ -23057,7 +23647,7 @@ public class THBaseService { return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } @@ -23065,11 +23655,11 @@ public class THBaseService { * row to check */ public checkAndMutate_args setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public checkAndMutate_args setRow(ByteBuffer row) { + public checkAndMutate_args setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -23097,7 +23687,7 @@ public class THBaseService { return family == null ? null : family.array(); } - public ByteBuffer bufferForFamily() { + public java.nio.ByteBuffer bufferForFamily() { return org.apache.thrift.TBaseHelper.copyBinary(family); } @@ -23105,11 +23695,11 @@ public class THBaseService { * column family to check */ public checkAndMutate_args setFamily(byte[] family) { - this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); + this.family = family == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(family.clone()); return this; } - public checkAndMutate_args setFamily(ByteBuffer family) { + public checkAndMutate_args setFamily(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer family) { this.family = org.apache.thrift.TBaseHelper.copyBinary(family); return this; } @@ -23137,7 +23727,7 @@ public class THBaseService { return qualifier == null ? null : qualifier.array(); } - public ByteBuffer bufferForQualifier() { + public java.nio.ByteBuffer bufferForQualifier() { return org.apache.thrift.TBaseHelper.copyBinary(qualifier); } @@ -23145,11 +23735,11 @@ public class THBaseService { * column qualifier to check */ public checkAndMutate_args setQualifier(byte[] qualifier) { - this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); + this.qualifier = qualifier == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(qualifier.clone()); return this; } - public checkAndMutate_args setQualifier(ByteBuffer qualifier) { + public checkAndMutate_args setQualifier(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer qualifier) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); return this; } @@ -23174,6 +23764,7 @@ public class THBaseService { * * @see TCompareOp */ + @org.apache.thrift.annotation.Nullable public TCompareOp getCompareOp() { return this.compareOp; } @@ -23183,7 +23774,7 @@ public class THBaseService { * * @see TCompareOp */ - public checkAndMutate_args setCompareOp(TCompareOp compareOp) { + public checkAndMutate_args setCompareOp(@org.apache.thrift.annotation.Nullable TCompareOp compareOp) { this.compareOp = compareOp; return this; } @@ -23212,7 +23803,7 @@ public class THBaseService { return value == null ? null : value.array(); } - public ByteBuffer bufferForValue() { + public java.nio.ByteBuffer bufferForValue() { return org.apache.thrift.TBaseHelper.copyBinary(value); } @@ -23221,11 +23812,11 @@ public class THBaseService { * check is for the non-existence of the column in question */ public checkAndMutate_args setValue(byte[] value) { - this.value = value == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(value, value.length)); + this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone()); return this; } - public checkAndMutate_args setValue(ByteBuffer value) { + public checkAndMutate_args setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) { this.value = org.apache.thrift.TBaseHelper.copyBinary(value); return this; } @@ -23248,6 +23839,7 @@ public class THBaseService { /** * row mutations to execute if the value matches */ + @org.apache.thrift.annotation.Nullable public TRowMutations getRowMutations() { return this.rowMutations; } @@ -23255,7 +23847,7 @@ public class THBaseService { /** * row mutations to execute if the value matches */ - public checkAndMutate_args setRowMutations(TRowMutations rowMutations) { + public checkAndMutate_args setRowMutations(@org.apache.thrift.annotation.Nullable TRowMutations rowMutations) { this.rowMutations = rowMutations; return this; } @@ -23275,13 +23867,17 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { - setTable((ByteBuffer)value); + if (value instanceof byte[]) { + setTable((byte[])value); + } else { + setTable((java.nio.ByteBuffer)value); + } } break; @@ -23289,7 +23885,11 @@ public class THBaseService { if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -23297,7 +23897,11 @@ public class THBaseService { if (value == null) { unsetFamily(); } else { - setFamily((ByteBuffer)value); + if (value instanceof byte[]) { + setFamily((byte[])value); + } else { + setFamily((java.nio.ByteBuffer)value); + } } break; @@ -23305,7 +23909,11 @@ public class THBaseService { if (value == null) { unsetQualifier(); } else { - setQualifier((ByteBuffer)value); + if (value instanceof byte[]) { + setQualifier((byte[])value); + } else { + setQualifier((java.nio.ByteBuffer)value); + } } break; @@ -23321,7 +23929,11 @@ public class THBaseService { if (value == null) { unsetValue(); } else { - setValue((ByteBuffer)value); + if (value instanceof byte[]) { + setValue((byte[])value); + } else { + setValue((java.nio.ByteBuffer)value); + } } break; @@ -23336,7 +23948,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); @@ -23360,13 +23973,13 @@ public class THBaseService { return getRowMutations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -23385,11 +23998,11 @@ public class THBaseService { case ROW_MUTATIONS: return isSetRowMutations(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndMutate_args) @@ -23400,6 +24013,8 @@ public class THBaseService { public boolean equals(checkAndMutate_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); @@ -23469,44 +24084,37 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_table = true && (isSetTable()); - list.add(present_table); - if (present_table) - list.add(table); + hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); + if (isSetTable()) + hashCode = hashCode * 8191 + table.hashCode(); - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_family = true && (isSetFamily()); - list.add(present_family); - if (present_family) - list.add(family); + hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); + if (isSetFamily()) + hashCode = hashCode * 8191 + family.hashCode(); - boolean present_qualifier = true && (isSetQualifier()); - list.add(present_qualifier); - if (present_qualifier) - list.add(qualifier); + hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); + if (isSetQualifier()) + hashCode = hashCode * 8191 + qualifier.hashCode(); - boolean present_compareOp = true && (isSetCompareOp()); - list.add(present_compareOp); - if (present_compareOp) - list.add(compareOp.getValue()); + hashCode = hashCode * 8191 + ((isSetCompareOp()) ? 131071 : 524287); + if (isSetCompareOp()) + hashCode = hashCode * 8191 + compareOp.getValue(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_rowMutations = true && (isSetRowMutations()); - list.add(present_rowMutations); - if (present_rowMutations) - list.add(rowMutations); + hashCode = hashCode * 8191 + ((isSetRowMutations()) ? 131071 : 524287); + if (isSetRowMutations()) + hashCode = hashCode * 8191 + rowMutations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -23517,7 +24125,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); + lastComparison = java.lang.Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } @@ -23527,7 +24135,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -23537,7 +24145,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); + lastComparison = java.lang.Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); if (lastComparison != 0) { return lastComparison; } @@ -23547,7 +24155,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); + lastComparison = java.lang.Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } @@ -23557,7 +24165,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompareOp()).compareTo(other.isSetCompareOp()); + lastComparison = java.lang.Boolean.valueOf(isSetCompareOp()).compareTo(other.isSetCompareOp()); if (lastComparison != 0) { return lastComparison; } @@ -23567,7 +24175,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = java.lang.Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } @@ -23577,7 +24185,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRowMutations()).compareTo(other.isSetRowMutations()); + lastComparison = java.lang.Boolean.valueOf(isSetRowMutations()).compareTo(other.isSetRowMutations()); if (lastComparison != 0) { return lastComparison; } @@ -23590,21 +24198,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndMutate_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndMutate_args("); boolean first = true; sb.append("table:"); @@ -23700,7 +24309,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -23708,13 +24317,13 @@ public class THBaseService { } } - private static class checkAndMutate_argsStandardSchemeFactory implements SchemeFactory { + private static class checkAndMutate_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndMutate_argsStandardScheme getScheme() { return new checkAndMutate_argsStandardScheme(); } } - private static class checkAndMutate_argsStandardScheme extends StandardScheme { + private static class checkAndMutate_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndMutate_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -23839,24 +24448,24 @@ public class THBaseService { } - private static class checkAndMutate_argsTupleSchemeFactory implements SchemeFactory { + private static class checkAndMutate_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndMutate_argsTupleScheme getScheme() { return new checkAndMutate_argsTupleScheme(); } } - private static class checkAndMutate_argsTupleScheme extends TupleScheme { + private static class checkAndMutate_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.table); oprot.writeBinary(struct.row); oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); oprot.writeI32(struct.compareOp.getValue()); struct.rowMutations.write(oprot); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -23868,7 +24477,7 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.row = iprot.readBinary(); @@ -23882,7 +24491,7 @@ public class THBaseService { struct.rowMutations = new TRowMutations(); struct.rowMutations.read(iprot); struct.setRowMutationsIsSet(true); - BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.value = iprot.readBinary(); struct.setValueIsSet(true); @@ -23890,6 +24499,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class checkAndMutate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -23898,24 +24510,21 @@ public class THBaseService { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new checkAndMutate_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new checkAndMutate_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new checkAndMutate_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new checkAndMutate_resultTupleSchemeFactory(); public boolean success; // required - public TIOError io; // required + public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IO((short)1, "io"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23923,6 +24532,7 @@ public class THBaseService { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -23940,21 +24550,22 @@ public class THBaseService { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23963,7 +24574,7 @@ public class THBaseService { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -23971,14 +24582,14 @@ public class THBaseService { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndMutate_result.class, metaDataMap); } @@ -24028,23 +24639,24 @@ public class THBaseService { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public checkAndMutate_result setIo(TIOError io) { + public checkAndMutate_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -24064,13 +24676,13 @@ public class THBaseService { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -24085,7 +24697,8 @@ public class THBaseService { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -24094,13 +24707,13 @@ public class THBaseService { return getIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -24109,11 +24722,11 @@ public class THBaseService { case IO: return isSetIo(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof checkAndMutate_result) @@ -24124,6 +24737,8 @@ public class THBaseService { public boolean equals(checkAndMutate_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -24148,19 +24763,15 @@ public class THBaseService { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_io = true && (isSetIo()); - list.add(present_io); - if (present_io) - list.add(io); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -24171,7 +24782,7 @@ public class THBaseService { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -24181,7 +24792,7 @@ public class THBaseService { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; } @@ -24194,21 +24805,22 @@ public class THBaseService { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("checkAndMutate_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("checkAndMutate_result("); boolean first = true; sb.append("success:"); @@ -24239,7 +24851,7 @@ public class THBaseService { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -24249,13 +24861,13 @@ public class THBaseService { } } - private static class checkAndMutate_resultStandardSchemeFactory implements SchemeFactory { + private static class checkAndMutate_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndMutate_resultStandardScheme getScheme() { return new checkAndMutate_resultStandardScheme(); } } - private static class checkAndMutate_resultStandardScheme extends StandardScheme { + private static class checkAndMutate_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndMutate_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24315,18 +24927,18 @@ public class THBaseService { } - private static class checkAndMutate_resultTupleSchemeFactory implements SchemeFactory { + private static class checkAndMutate_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public checkAndMutate_resultTupleScheme getScheme() { return new checkAndMutate_resultTupleScheme(); } } - private static class checkAndMutate_resultTupleScheme extends TupleScheme { + private static class checkAndMutate_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -24344,8 +24956,8 @@ public class THBaseService { @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkAndMutate_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -24358,6 +24970,9 @@ public class THBaseService { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java index 129ab2e96e..329b0274b0 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 94b25ff687..864e6853b4 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java @@ -1,64 +1,34 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 2e50d3d6c1..b692562c45 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java @@ -1,66 +1,36 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A TIOError exception signals that an error occurred communicating * to the HBase master or a HBase region server. Also used to return * more general HBase error conditions. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") -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-28") +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 9387429f73..d0a1592463 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java @@ -1,65 +1,35 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A TIllegalArgument exception indicates an illegal or invalid * argument was passed into a procedure. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") -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-28") +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 8d62eb5022..f1418c260e 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java @@ -1,39 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Used to perform Increment operations for a single row. * @@ -41,7 +14,7 @@ import org.slf4j.LoggerFactory; * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TIncrement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIncrement"); @@ -51,21 +24,18 @@ public class TIncrement implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TIncrementStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TIncrementTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TIncrementStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TIncrementTupleSchemeFactory(); - public ByteBuffer row; // required - public List columns; // required - public Map attributes; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columns; // required + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional /** * * @see TDurability */ - public TDurability durability; // optional - public TCellVisibility cellVisibility; // optional + public @org.apache.thrift.annotation.Nullable TDurability durability; // optional + public @org.apache.thrift.annotation.Nullable TCellVisibility cellVisibility; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -79,10 +49,10 @@ public class TIncrement implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -90,6 +60,7 @@ public class TIncrement implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -159,7 +131,7 @@ public class TIncrement implements org.apache.thrift.TBase columns) + java.nio.ByteBuffer row, + java.util.List columns) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -183,14 +155,14 @@ public class TIncrement implements org.apache.thrift.TBase __this__columns = new ArrayList(other.columns.size()); + java.util.List __this__columns = new java.util.ArrayList(other.columns.size()); for (TColumnIncrement other_element : other.columns) { __this__columns.add(new TColumnIncrement(other_element)); } this.columns = __this__columns; } if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -219,16 +191,16 @@ public class TIncrement implements org.apache.thrift.TBase getColumnsIterator() { return (this.columns == null) ? null : this.columns.iterator(); } public void addToColumns(TColumnIncrement elem) { if (this.columns == null) { - this.columns = new ArrayList(); + this.columns = new java.util.ArrayList(); } this.columns.add(elem); } - public List getColumns() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumns() { return this.columns; } - public TIncrement setColumns(List columns) { + public TIncrement setColumns(@org.apache.thrift.annotation.Nullable java.util.List columns) { this.columns = columns; return this; } @@ -291,18 +265,19 @@ public class TIncrement implements org.apache.thrift.TBase(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TIncrement setAttributes(Map attributes) { + public TIncrement setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -326,6 +301,7 @@ public class TIncrement implements org.apache.thrift.TBase)value); + setColumns((java.util.List)value); } break; @@ -400,7 +381,7 @@ public class TIncrement implements org.apache.thrift.TBase)value); + setAttributes((java.util.Map)value); } break; @@ -423,7 +404,8 @@ public class TIncrement implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columns = true && (isSetColumns()); - list.add(present_columns); - if (present_columns) - list.add(columns); + hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); + if (isSetColumns()) + hashCode = hashCode * 8191 + columns.hashCode(); - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); - boolean present_durability = true && (isSetDurability()); - list.add(present_durability); - if (present_durability) - list.add(durability.getValue()); + hashCode = hashCode * 8191 + ((isSetDurability()) ? 131071 : 524287); + if (isSetDurability()) + hashCode = hashCode * 8191 + durability.getValue(); - boolean present_cellVisibility = true && (isSetCellVisibility()); - list.add(present_cellVisibility); - if (present_cellVisibility) - list.add(cellVisibility); + hashCode = hashCode * 8191 + ((isSetCellVisibility()) ? 131071 : 524287); + if (isSetCellVisibility()) + hashCode = hashCode * 8191 + cellVisibility.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -566,7 +545,7 @@ public class TIncrement implements org.apache.thrift.TBase { + private static class TIncrementStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TIncrement struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -745,8 +725,8 @@ public class TIncrement implements org.apache.thrift.TBase(_list70.size); - TColumnIncrement _elem71; + struct.columns = new java.util.ArrayList(_list70.size); + @org.apache.thrift.annotation.Nullable TColumnIncrement _elem71; for (int _i72 = 0; _i72 < _list70.size; ++_i72) { _elem71 = new TColumnIncrement(); @@ -764,9 +744,9 @@ public class TIncrement implements org.apache.thrift.TBase(2*_map73.size); - ByteBuffer _key74; - ByteBuffer _val75; + struct.attributes = new java.util.HashMap(2*_map73.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key74; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val75; for (int _i76 = 0; _i76 < _map73.size; ++_i76) { _key74 = iprot.readBinary(); @@ -834,7 +814,7 @@ public class TIncrement implements org.apache.thrift.TBase _iter78 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter78 : struct.attributes.entrySet()) { oprot.writeBinary(_iter78.getKey()); oprot.writeBinary(_iter78.getValue()); @@ -864,17 +844,17 @@ public class TIncrement implements org.apache.thrift.TBase { + private static class TIncrementTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TIncrement struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.columns.size()); @@ -883,7 +863,7 @@ public class TIncrement implements org.apache.thrift.TBase _iter80 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter80 : struct.attributes.entrySet()) { oprot.writeBinary(_iter80.getKey()); oprot.writeBinary(_iter80.getValue()); @@ -914,13 +894,13 @@ public class TIncrement implements org.apache.thrift.TBase(_list81.size); - TColumnIncrement _elem82; + struct.columns = new java.util.ArrayList(_list81.size); + @org.apache.thrift.annotation.Nullable TColumnIncrement _elem82; for (int _i83 = 0; _i83 < _list81.size; ++_i83) { _elem82 = new TColumnIncrement(); @@ -929,13 +909,13 @@ public class TIncrement implements org.apache.thrift.TBase(2*_map84.size); - ByteBuffer _key85; - ByteBuffer _val86; + struct.attributes = new java.util.HashMap(2*_map84.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key85; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val86; for (int _i87 = 0; _i87 < _map84.size; ++_i87) { _key85 = iprot.readBinary(); @@ -957,5 +937,8 @@ public class TIncrement implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java index 39379d1d0a..9ee7254948 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-28") public class TMutation extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TMutation"); private static final org.apache.thrift.protocol.TField PUT_FIELD_DESC = new org.apache.thrift.protocol.TField("put", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -47,10 +21,10 @@ public class TMutation extends org.apache.thrift.TUnion byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -58,6 +32,7 @@ public class TMutation extends org.apache.thrift.TUnion metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PUT, new org.apache.thrift.meta_data.FieldMetaData("put", org.apache.thrift.TFieldRequirementType.DEFAULT, + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PUT, new org.apache.thrift.meta_data.FieldMetaData("put", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TPut.class))); - tmpMap.put(_Fields.DELETE_SINGLE, new org.apache.thrift.meta_data.FieldMetaData("deleteSingle", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DELETE_SINGLE, new org.apache.thrift.meta_data.FieldMetaData("deleteSingle", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDelete.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TMutation.class, metaDataMap); } @@ -118,7 +94,7 @@ public class TMutation extends org.apache.thrift.TUnion list = new ArrayList(); + java.util.List list = new java.util.ArrayList(); list.add(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { list.add(setField.getThriftFieldId()); - Object value = getFieldValue(); + java.lang.Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { @@ -361,7 +338,7 @@ public class TMutation extends org.apache.thrift.TUnion, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPut"); @@ -57,22 +30,19 @@ public class TPut implements org.apache.thrift.TBase, java.i private static final org.apache.thrift.protocol.TField DURABILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("durability", org.apache.thrift.protocol.TType.I32, (short)6); private static final org.apache.thrift.protocol.TField CELL_VISIBILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("cellVisibility", org.apache.thrift.protocol.TType.STRUCT, (short)7); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TPutStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TPutTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TPutStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TPutTupleSchemeFactory(); - public ByteBuffer row; // required - public List columnValues; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List columnValues; // required public long timestamp; // optional - public Map attributes; // optional + public @org.apache.thrift.annotation.Nullable java.util.Map attributes; // optional /** * * @see TDurability */ - public TDurability durability; // optional - public TCellVisibility cellVisibility; // optional + public @org.apache.thrift.annotation.Nullable TDurability durability; // optional + public @org.apache.thrift.annotation.Nullable TCellVisibility cellVisibility; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -87,10 +57,10 @@ public class TPut implements org.apache.thrift.TBase, java.i DURABILITY((short)6, "durability"), CELL_VISIBILITY((short)7, "cellVisibility"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -98,6 +68,7 @@ public class TPut implements org.apache.thrift.TBase, java.i /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ROW @@ -123,21 +94,22 @@ public class TPut implements org.apache.thrift.TBase, java.i */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -146,7 +118,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -155,9 +127,9 @@ public class TPut implements org.apache.thrift.TBase, java.i private static final int __TIMESTAMP_ISSET_ID = 0; private byte __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.TIMESTAMP,_Fields.ATTRIBUTES,_Fields.DURABILITY,_Fields.CELL_VISIBILITY}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.COLUMN_VALUES, new org.apache.thrift.meta_data.FieldMetaData("columnValues", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -173,7 +145,7 @@ public class TPut implements org.apache.thrift.TBase, java.i new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TDurability.class))); tmpMap.put(_Fields.CELL_VISIBILITY, new org.apache.thrift.meta_data.FieldMetaData("cellVisibility", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCellVisibility.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TPut.class, metaDataMap); } @@ -181,8 +153,8 @@ public class TPut implements org.apache.thrift.TBase, java.i } public TPut( - ByteBuffer row, - List columnValues) + java.nio.ByteBuffer row, + java.util.List columnValues) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -198,7 +170,7 @@ public class TPut implements org.apache.thrift.TBase, java.i this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumnValues()) { - List __this__columnValues = new ArrayList(other.columnValues.size()); + java.util.List __this__columnValues = new java.util.ArrayList(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } @@ -206,7 +178,7 @@ public class TPut implements org.apache.thrift.TBase, java.i } this.timestamp = other.timestamp; if (other.isSetAttributes()) { - Map __this__attributes = new HashMap(other.attributes); + java.util.Map __this__attributes = new java.util.HashMap(other.attributes); this.attributes = __this__attributes; } if (other.isSetDurability()) { @@ -237,16 +209,16 @@ public class TPut implements org.apache.thrift.TBase, java.i return row == null ? null : row.array(); } - public ByteBuffer bufferForRow() { + public java.nio.ByteBuffer bufferForRow() { return org.apache.thrift.TBaseHelper.copyBinary(row); } public TPut setRow(byte[] row) { - this.row = row == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(row, row.length)); + this.row = row == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(row.clone()); return this; } - public TPut setRow(ByteBuffer row) { + public TPut setRow(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row) { this.row = org.apache.thrift.TBaseHelper.copyBinary(row); return this; } @@ -270,22 +242,24 @@ public class TPut implements org.apache.thrift.TBase, java.i return (this.columnValues == null) ? 0 : this.columnValues.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getColumnValuesIterator() { return (this.columnValues == null) ? null : this.columnValues.iterator(); } public void addToColumnValues(TColumnValue elem) { if (this.columnValues == null) { - this.columnValues = new ArrayList(); + this.columnValues = new java.util.ArrayList(); } this.columnValues.add(elem); } - public List getColumnValues() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumnValues() { return this.columnValues; } - public TPut setColumnValues(List columnValues) { + public TPut setColumnValues(@org.apache.thrift.annotation.Nullable java.util.List columnValues) { this.columnValues = columnValues; return this; } @@ -316,34 +290,35 @@ public class TPut implements org.apache.thrift.TBase, java.i } public void unsetTimestamp() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { - return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public int getAttributesSize() { return (this.attributes == null) ? 0 : this.attributes.size(); } - public void putToAttributes(ByteBuffer key, ByteBuffer val) { + public void putToAttributes(java.nio.ByteBuffer key, java.nio.ByteBuffer val) { if (this.attributes == null) { - this.attributes = new HashMap(); + this.attributes = new java.util.HashMap(); } this.attributes.put(key, val); } - public Map getAttributes() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getAttributes() { return this.attributes; } - public TPut setAttributes(Map attributes) { + public TPut setAttributes(@org.apache.thrift.annotation.Nullable java.util.Map attributes) { this.attributes = attributes; return this; } @@ -367,6 +342,7 @@ public class TPut implements org.apache.thrift.TBase, java.i * * @see TDurability */ + @org.apache.thrift.annotation.Nullable public TDurability getDurability() { return this.durability; } @@ -375,7 +351,7 @@ public class TPut implements org.apache.thrift.TBase, java.i * * @see TDurability */ - public TPut setDurability(TDurability durability) { + public TPut setDurability(@org.apache.thrift.annotation.Nullable TDurability durability) { this.durability = durability; return this; } @@ -395,11 +371,12 @@ public class TPut implements org.apache.thrift.TBase, java.i } } + @org.apache.thrift.annotation.Nullable public TCellVisibility getCellVisibility() { return this.cellVisibility; } - public TPut setCellVisibility(TCellVisibility cellVisibility) { + public TPut setCellVisibility(@org.apache.thrift.annotation.Nullable TCellVisibility cellVisibility) { this.cellVisibility = cellVisibility; return this; } @@ -419,13 +396,17 @@ public class TPut implements org.apache.thrift.TBase, java.i } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case ROW: if (value == null) { unsetRow(); } else { - setRow((ByteBuffer)value); + if (value instanceof byte[]) { + setRow((byte[])value); + } else { + setRow((java.nio.ByteBuffer)value); + } } break; @@ -433,7 +414,7 @@ public class TPut implements org.apache.thrift.TBase, java.i if (value == null) { unsetColumnValues(); } else { - setColumnValues((List)value); + setColumnValues((java.util.List)value); } break; @@ -441,7 +422,7 @@ public class TPut implements org.apache.thrift.TBase, java.i if (value == null) { unsetTimestamp(); } else { - setTimestamp((Long)value); + setTimestamp((java.lang.Long)value); } break; @@ -449,7 +430,7 @@ public class TPut implements org.apache.thrift.TBase, java.i if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; @@ -472,7 +453,8 @@ public class TPut implements org.apache.thrift.TBase, java.i } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -493,13 +475,13 @@ public class TPut implements org.apache.thrift.TBase, java.i return getCellVisibility(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -516,11 +498,11 @@ public class TPut implements org.apache.thrift.TBase, java.i case CELL_VISIBILITY: return isSetCellVisibility(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TPut) @@ -531,6 +513,8 @@ public class TPut implements org.apache.thrift.TBase, java.i public boolean equals(TPut that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); @@ -591,39 +575,33 @@ public class TPut implements org.apache.thrift.TBase, java.i @Override public int hashCode() { - List list = new ArrayList(); - - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); - - boolean present_columnValues = true && (isSetColumnValues()); - list.add(present_columnValues); - if (present_columnValues) - list.add(columnValues); - - boolean present_timestamp = true && (isSetTimestamp()); - list.add(present_timestamp); - if (present_timestamp) - list.add(timestamp); - - boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); - if (present_attributes) - list.add(attributes); - - boolean present_durability = true && (isSetDurability()); - list.add(present_durability); - if (present_durability) - list.add(durability.getValue()); - - boolean present_cellVisibility = true && (isSetCellVisibility()); - list.add(present_cellVisibility); - if (present_cellVisibility) - list.add(cellVisibility); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); + + hashCode = hashCode * 8191 + ((isSetColumnValues()) ? 131071 : 524287); + if (isSetColumnValues()) + hashCode = hashCode * 8191 + columnValues.hashCode(); + + hashCode = hashCode * 8191 + ((isSetTimestamp()) ? 131071 : 524287); + if (isSetTimestamp()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); + + hashCode = hashCode * 8191 + ((isSetAttributes()) ? 131071 : 524287); + if (isSetAttributes()) + hashCode = hashCode * 8191 + attributes.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDurability()) ? 131071 : 524287); + if (isSetDurability()) + hashCode = hashCode * 8191 + durability.getValue(); + + hashCode = hashCode * 8191 + ((isSetCellVisibility()) ? 131071 : 524287); + if (isSetCellVisibility()) + hashCode = hashCode * 8191 + cellVisibility.hashCode(); + + return hashCode; } @Override @@ -634,7 +612,7 @@ public class TPut implements org.apache.thrift.TBase, java.i int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + lastComparison = java.lang.Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } @@ -644,7 +622,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); + lastComparison = java.lang.Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); if (lastComparison != 0) { return lastComparison; } @@ -654,7 +632,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); + lastComparison = java.lang.Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } @@ -664,7 +642,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = java.lang.Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } @@ -674,7 +652,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); + lastComparison = java.lang.Boolean.valueOf(isSetDurability()).compareTo(other.isSetDurability()); if (lastComparison != 0) { return lastComparison; } @@ -684,7 +662,7 @@ public class TPut implements org.apache.thrift.TBase, java.i return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCellVisibility()).compareTo(other.isSetCellVisibility()); + lastComparison = java.lang.Boolean.valueOf(isSetCellVisibility()).compareTo(other.isSetCellVisibility()); if (lastComparison != 0) { return lastComparison; } @@ -697,21 +675,22 @@ public class TPut implements org.apache.thrift.TBase, java.i return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TPut("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TPut("); boolean first = true; sb.append("row:"); @@ -791,7 +770,7 @@ public class TPut implements org.apache.thrift.TBase, java.i } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -801,13 +780,13 @@ public class TPut implements org.apache.thrift.TBase, java.i } } - private static class TPutStandardSchemeFactory implements SchemeFactory { + private static class TPutStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TPutStandardScheme getScheme() { return new TPutStandardScheme(); } } - private static class TPutStandardScheme extends StandardScheme { + private static class TPutStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TPut struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -831,8 +810,8 @@ public class TPut implements org.apache.thrift.TBase, java.i if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list34 = iprot.readListBegin(); - struct.columnValues = new ArrayList(_list34.size); - TColumnValue _elem35; + struct.columnValues = new java.util.ArrayList(_list34.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem35; for (int _i36 = 0; _i36 < _list34.size; ++_i36) { _elem35 = new TColumnValue(); @@ -858,9 +837,9 @@ public class TPut implements org.apache.thrift.TBase, java.i if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map37 = iprot.readMapBegin(); - struct.attributes = new HashMap(2*_map37.size); - ByteBuffer _key38; - ByteBuffer _val39; + struct.attributes = new java.util.HashMap(2*_map37.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key38; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val39; for (int _i40 = 0; _i40 < _map37.size; ++_i40) { _key38 = iprot.readBinary(); @@ -933,7 +912,7 @@ public class TPut implements org.apache.thrift.TBase, java.i oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); - for (Map.Entry _iter42 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter42 : struct.attributes.entrySet()) { oprot.writeBinary(_iter42.getKey()); oprot.writeBinary(_iter42.getValue()); @@ -963,17 +942,17 @@ public class TPut implements org.apache.thrift.TBase, java.i } - private static class TPutTupleSchemeFactory implements SchemeFactory { + private static class TPutTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TPutTupleScheme getScheme() { return new TPutTupleScheme(); } } - private static class TPutTupleScheme extends TupleScheme { + private static class TPutTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TPut struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.columnValues.size()); @@ -982,7 +961,7 @@ public class TPut implements org.apache.thrift.TBase, java.i _iter43.write(oprot); } } - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } @@ -1002,7 +981,7 @@ public class TPut implements org.apache.thrift.TBase, java.i if (struct.isSetAttributes()) { { oprot.writeI32(struct.attributes.size()); - for (Map.Entry _iter44 : struct.attributes.entrySet()) + for (java.util.Map.Entry _iter44 : struct.attributes.entrySet()) { oprot.writeBinary(_iter44.getKey()); oprot.writeBinary(_iter44.getValue()); @@ -1019,13 +998,13 @@ public class TPut implements org.apache.thrift.TBase, java.i @Override public void read(org.apache.thrift.protocol.TProtocol prot, TPut struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); { org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.columnValues = new ArrayList(_list45.size); - TColumnValue _elem46; + struct.columnValues = new java.util.ArrayList(_list45.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem46; for (int _i47 = 0; _i47 < _list45.size; ++_i47) { _elem46 = new TColumnValue(); @@ -1034,7 +1013,7 @@ public class TPut implements org.apache.thrift.TBase, java.i } } struct.setColumnValuesIsSet(true); - BitSet incoming = iprot.readBitSet(4); + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); @@ -1042,9 +1021,9 @@ public class TPut implements org.apache.thrift.TBase, java.i if (incoming.get(1)) { { org.apache.thrift.protocol.TMap _map48 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.attributes = new HashMap(2*_map48.size); - ByteBuffer _key49; - ByteBuffer _val50; + struct.attributes = new java.util.HashMap(2*_map48.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key49; + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val50; for (int _i51 = 0; _i51 < _map48.size; ++_i51) { _key49 = iprot.readBinary(); @@ -1066,5 +1045,8 @@ public class TPut implements org.apache.thrift.TBase, java.i } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.java index 4a6cf3ebd5..c07d4ad8c6 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-28") 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 8c16012ddb..7334ff087c 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java @@ -1,67 +1,37 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * if no Result is found, row and columnValues will not be set. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TResult"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField COLUMN_VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("columnValues", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TResultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TResultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TResultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TResultTupleSchemeFactory(); - public ByteBuffer row; // optional - public List columnValues; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // optional + public @org.apache.thrift.annotation.Nullable java.util.List columnValues; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ROW((short)1, "row"), COLUMN_VALUES((short)2, "columnValues"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class TResult implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.COLUMN_VALUES, new org.apache.thrift.meta_data.FieldMetaData("columnValues", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TColumnValue.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TResult.class, metaDataMap); } @@ -132,7 +104,7 @@ public class TResult implements org.apache.thrift.TBase columnValues) + java.util.List columnValues) { this(); this.columnValues = columnValues; @@ -146,7 +118,7 @@ public class TResult implements org.apache.thrift.TBase __this__columnValues = new ArrayList(other.columnValues.size()); + java.util.List __this__columnValues = new java.util.ArrayList(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } @@ -169,16 +141,16 @@ public class TResult implements org.apache.thrift.TBase getColumnValuesIterator() { return (this.columnValues == null) ? null : this.columnValues.iterator(); } public void addToColumnValues(TColumnValue elem) { if (this.columnValues == null) { - this.columnValues = new ArrayList(); + this.columnValues = new java.util.ArrayList(); } this.columnValues.add(elem); } - public List getColumnValues() { + @org.apache.thrift.annotation.Nullable + public java.util.List getColumnValues() { return this.columnValues; } - public TResult setColumnValues(List columnValues) { + public TResult setColumnValues(@org.apache.thrift.annotation.Nullable java.util.List columnValues) { this.columnValues = columnValues; return this; } @@ -237,13 +211,17 @@ public class TResult implements org.apache.thrift.TBase)value); + setColumnValues((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -267,13 +246,13 @@ public class TResult implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_columnValues = true && (isSetColumnValues()); - list.add(present_columnValues); - if (present_columnValues) - list.add(columnValues); + hashCode = hashCode * 8191 + ((isSetColumnValues()) ? 131071 : 524287); + if (isSetColumnValues()) + hashCode = hashCode * 8191 + columnValues.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -344,7 +323,7 @@ public class TResult implements org.apache.thrift.TBase { + private static class TResultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TResult struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -459,8 +439,8 @@ public class TResult implements org.apache.thrift.TBase(_list0.size); - TColumnValue _elem1; + struct.columnValues = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem1; for (int _i2 = 0; _i2 < _list0.size; ++_i2) { _elem1 = new TColumnValue(); @@ -514,17 +494,17 @@ public class TResult implements org.apache.thrift.TBase { + private static class TResultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TResult struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; { oprot.writeI32(struct.columnValues.size()); for (TColumnValue _iter4 : struct.columnValues) @@ -532,7 +512,7 @@ public class TResult implements org.apache.thrift.TBase(_list5.size); - TColumnValue _elem6; + struct.columnValues = new java.util.ArrayList(_list5.size); + @org.apache.thrift.annotation.Nullable TColumnValue _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = new TColumnValue(); @@ -557,7 +537,7 @@ public class TResult implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java index dfa06ff22a..4d8633fc23 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java @@ -1,67 +1,37 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A TRowMutations object is used to apply a number of Mutations to a single row. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TRowMutations implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRowMutations"); private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TRowMutationsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TRowMutationsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TRowMutationsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TRowMutationsTupleSchemeFactory(); - public ByteBuffer row; // required - public List mutations; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer row; // required + public @org.apache.thrift.annotation.Nullable java.util.List mutations; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ROW((short)1, "row"), MUTATIONS((short)2, "mutations"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class TRowMutations implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TMutation.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TRowMutations.class, metaDataMap); } @@ -131,8 +103,8 @@ public class TRowMutations implements org.apache.thrift.TBase mutations) + java.nio.ByteBuffer row, + java.util.List mutations) { this(); this.row = org.apache.thrift.TBaseHelper.copyBinary(row); @@ -147,7 +119,7 @@ public class TRowMutations implements org.apache.thrift.TBase __this__mutations = new ArrayList(other.mutations.size()); + java.util.List __this__mutations = new java.util.ArrayList(other.mutations.size()); for (TMutation other_element : other.mutations) { __this__mutations.add(new TMutation(other_element)); } @@ -170,16 +142,16 @@ public class TRowMutations implements org.apache.thrift.TBase getMutationsIterator() { return (this.mutations == null) ? null : this.mutations.iterator(); } public void addToMutations(TMutation elem) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new java.util.ArrayList(); } this.mutations.add(elem); } - public List getMutations() { + @org.apache.thrift.annotation.Nullable + public java.util.List getMutations() { return this.mutations; } - public TRowMutations setMutations(List mutations) { + public TRowMutations setMutations(@org.apache.thrift.annotation.Nullable java.util.List mutations) { this.mutations = mutations; return this; } @@ -238,13 +212,17 @@ public class TRowMutations implements org.apache.thrift.TBase)value); + setMutations((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); @@ -268,13 +247,13 @@ public class TRowMutations implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_row = true && (isSetRow()); - list.add(present_row); - if (present_row) - list.add(row); + hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); + if (isSetRow()) + hashCode = hashCode * 8191 + row.hashCode(); - boolean present_mutations = true && (isSetMutations()); - list.add(present_mutations); - if (present_mutations) - list.add(mutations); + hashCode = hashCode * 8191 + ((isSetMutations()) ? 131071 : 524287); + if (isSetMutations()) + hashCode = hashCode * 8191 + mutations.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -345,7 +324,7 @@ public class TRowMutations implements org.apache.thrift.TBase { + private static class TRowMutationsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TRowMutations struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -460,14 +440,14 @@ public class TRowMutations implements org.apache.thrift.TBase(_list124.size); - TMutation _elem125; - for (int _i126 = 0; _i126 < _list124.size; ++_i126) + org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); + struct.mutations = new java.util.ArrayList(_list134.size); + @org.apache.thrift.annotation.Nullable TMutation _elem135; + for (int _i136 = 0; _i136 < _list134.size; ++_i136) { - _elem125 = new TMutation(); - _elem125.read(iprot); - struct.mutations.add(_elem125); + _elem135 = new TMutation(); + _elem135.read(iprot); + struct.mutations.add(_elem135); } iprot.readListEnd(); } @@ -500,9 +480,9 @@ public class TRowMutations implements org.apache.thrift.TBase { + private static class TRowMutationsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TRowMutations struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.mutations.size()); - for (TMutation _iter128 : struct.mutations) + for (TMutation _iter138 : struct.mutations) { - _iter128.write(oprot); + _iter138.write(oprot); } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, TRowMutations struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); { - org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mutations = new ArrayList(_list129.size); - TMutation _elem130; - for (int _i131 = 0; _i131 < _list129.size; ++_i131) + org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mutations = new java.util.ArrayList(_list139.size); + @org.apache.thrift.annotation.Nullable TMutation _elem140; + for (int _i141 = 0; _i141 < _list139.size; ++_i141) { - _elem130 = new TMutation(); - _elem130.read(iprot); - struct.mutations.add(_elem130); + _elem140 = new TMutation(); + _elem140.read(iprot); + struct.mutations.add(_elem140); } } struct.setMutationsIsSet(true); } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java index 18392075de..1a15e3a389 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java @@ -1,44 +1,17 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Any timestamps in the columns are ignored but the colFamTimeRangeMap included, use timeRange to select by timestamp. * Max versions defaults to 1. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-03-27") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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"); @@ -58,30 +31,27 @@ public class TScan implements org.apache.thrift.TBase, jav private static final org.apache.thrift.protocol.TField READ_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("readType", org.apache.thrift.protocol.TType.I32, (short)14); private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)15); - 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 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -106,10 +76,10 @@ public class TScan implements org.apache.thrift.TBase, jav READ_TYPE((short)14, "readType"), LIMIT((short)15, "limit"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -117,6 +87,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 @@ -160,21 +131,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; } @@ -183,7 +155,7 @@ public class TScan implements org.apache.thrift.TBase, jav return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -197,9 +169,9 @@ public class TScan implements org.apache.thrift.TBase, jav private static final int __LIMIT_ISSET_ID = 5; private byte __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.START_ROW,_Fields.STOP_ROW,_Fields.COLUMNS,_Fields.CACHING,_Fields.MAX_VERSIONS,_Fields.TIME_RANGE,_Fields.FILTER_STRING,_Fields.BATCH_SIZE,_Fields.ATTRIBUTES,_Fields.AUTHORIZATIONS,_Fields.REVERSED,_Fields.CACHE_BLOCKS,_Fields.COL_FAM_TIME_RANGE_MAP,_Fields.READ_TYPE,_Fields.LIMIT}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_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, @@ -235,7 +207,7 @@ public class TScan implements org.apache.thrift.TBase, jav new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TReadType.class))); tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.OPTIONAL, 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(TScan.class, metaDataMap); } @@ -256,7 +228,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)); } @@ -272,7 +244,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()) { @@ -281,13 +253,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); @@ -335,16 +307,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; } @@ -369,16 +341,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; } @@ -402,22 +374,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; } @@ -448,16 +422,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() { @@ -471,23 +445,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; } @@ -512,16 +487,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; } @@ -552,34 +527,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; } @@ -599,11 +575,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; } @@ -634,16 +611,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() { @@ -657,34 +634,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; } @@ -708,6 +686,7 @@ public class TScan implements org.apache.thrift.TBase, jav * * @see TReadType */ + @org.apache.thrift.annotation.Nullable public TReadType getReadType() { return this.readType; } @@ -716,7 +695,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; } @@ -747,25 +726,29 @@ 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); } - 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; @@ -773,7 +756,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; @@ -781,7 +768,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetColumns(); } else { - setColumns((List)value); + setColumns((java.util.List)value); } break; @@ -789,7 +776,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetCaching(); } else { - setCaching((Integer)value); + setCaching((java.lang.Integer)value); } break; @@ -797,7 +784,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetMaxVersions(); } else { - setMaxVersions((Integer)value); + setMaxVersions((java.lang.Integer)value); } break; @@ -813,7 +800,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; @@ -821,7 +812,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetBatchSize(); } else { - setBatchSize((Integer)value); + setBatchSize((java.lang.Integer)value); } break; @@ -829,7 +820,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetAttributes(); } else { - setAttributes((Map)value); + setAttributes((java.util.Map)value); } break; @@ -845,7 +836,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetReversed(); } else { - setReversed((Boolean)value); + setReversed((java.lang.Boolean)value); } break; @@ -853,7 +844,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetCacheBlocks(); } else { - setCacheBlocks((Boolean)value); + setCacheBlocks((java.lang.Boolean)value); } break; @@ -861,7 +852,7 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetColFamTimeRangeMap(); } else { - setColFamTimeRangeMap((Map)value); + setColFamTimeRangeMap((java.util.Map)value); } break; @@ -877,14 +868,15 @@ public class TScan implements org.apache.thrift.TBase, jav if (value == null) { unsetLimit(); } else { - setLimit((Integer)value); + setLimit((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 START_ROW: return getStartRow(); @@ -932,13 +924,13 @@ public class TScan implements org.apache.thrift.TBase, jav return getLimit(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -973,11 +965,11 @@ public class TScan implements org.apache.thrift.TBase, jav case LIMIT: return isSetLimit(); } - throw new IllegalStateException(); + throw new 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) @@ -988,6 +980,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(); @@ -1129,84 +1123,69 @@ 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); - - 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; + + return hashCode; } @Override @@ -1217,7 +1196,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; } @@ -1227,7 +1206,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; } @@ -1237,7 +1216,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; } @@ -1247,7 +1226,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; } @@ -1257,7 +1236,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; } @@ -1267,7 +1246,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; } @@ -1277,7 +1256,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; } @@ -1287,7 +1266,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; } @@ -1297,7 +1276,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; } @@ -1307,7 +1286,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; } @@ -1317,7 +1296,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; } @@ -1327,7 +1306,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; } @@ -1337,7 +1316,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; } @@ -1347,7 +1326,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; } @@ -1357,7 +1336,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; } @@ -1370,21 +1349,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()) { @@ -1535,7 +1515,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; @@ -1545,13 +1525,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; @@ -1583,8 +1563,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(); @@ -1643,9 +1623,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(); @@ -1688,9 +1668,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(); @@ -1798,7 +1778,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()); @@ -1830,7 +1810,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); @@ -1858,18 +1838,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); } @@ -1949,7 +1929,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()); @@ -1968,7 +1948,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); @@ -1985,8 +1965,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(15); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(15); if (incoming.get(0)) { struct.startRow = iprot.readBinary(); struct.setStartRowIsSet(true); @@ -1998,8 +1978,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(); @@ -2033,9 +2013,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(); @@ -2061,9 +2041,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(); @@ -2085,5 +2065,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 27188e9744..5e463fe944 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") public class TServerName implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TServerName"); @@ -42,13 +15,10 @@ public class TServerName implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TServerNameStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TServerNameTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TServerNameStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TServerNameTupleSchemeFactory(); - public String hostName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String hostName; // required public int port; // optional public long startCode; // optional @@ -58,10 +28,10 @@ public class TServerName implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class TServerName implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.HOST_NAME, new org.apache.thrift.meta_data.FieldMetaData("hostName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.START_CODE, new org.apache.thrift.meta_data.FieldMetaData("startCode", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TServerName.class, metaDataMap); } @@ -138,7 +110,7 @@ public class TServerName implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_hostName = true && (isSetHostName()); - list.add(present_hostName); - if (present_hostName) - list.add(hostName); + hashCode = hashCode * 8191 + ((isSetHostName()) ? 131071 : 524287); + if (isSetHostName()) + hashCode = hashCode * 8191 + hostName.hashCode(); - boolean present_port = true && (isSetPort()); - list.add(present_port); - if (present_port) - list.add(port); + hashCode = hashCode * 8191 + ((isSetPort()) ? 131071 : 524287); + if (isSetPort()) + hashCode = hashCode * 8191 + port; - boolean present_startCode = true && (isSetStartCode()); - list.add(present_startCode); - if (present_startCode) - list.add(startCode); + hashCode = hashCode * 8191 + ((isSetStartCode()) ? 131071 : 524287); + if (isSetStartCode()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startCode); - return list.hashCode(); + return hashCode; } @Override @@ -373,7 +346,7 @@ public class TServerName implements org.apache.thrift.TBase { + private static class TServerNameStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TServerName struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -550,19 +524,19 @@ public class TServerName implements org.apache.thrift.TBase { + private static class TServerNameTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TServerName struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.hostName); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetPort()) { optionals.set(0); } @@ -580,10 +554,10 @@ public class TServerName implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java index 74c72553ad..4f06309dbd 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java @@ -1,51 +1,21 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-05-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-01-28") 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 f6912ce054..0e14c147e8 100755 --- a/pom.xml +++ b/pom.xml @@ -1447,7 +1447,7 @@ 2.5.0 0.5.0 thrift - 0.9.3 + 0.12.0 3.4.10 0.9.94 -- 2.17.1