http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index 939c15a..c18e819 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequest, CompactionRequest._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequest, CompactionRequest._Fields>, java.io.Serializable, Cloneable, Comparable<CompactionRequest> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CompactionRequest"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -127,7 +131,7 @@ public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequ } // isset id assignments - private _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.RUNAS}; + private static final _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.RUNAS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -466,90 +470,90 @@ public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequ @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_dbname = true && (isSetDbname()); - builder.append(present_dbname); + list.add(present_dbname); if (present_dbname) - builder.append(dbname); + list.add(dbname); boolean present_tablename = true && (isSetTablename()); - builder.append(present_tablename); + list.add(present_tablename); if (present_tablename) - builder.append(tablename); + list.add(tablename); boolean present_partitionname = true && (isSetPartitionname()); - builder.append(present_partitionname); + list.add(present_partitionname); if (present_partitionname) - builder.append(partitionname); + list.add(partitionname); boolean present_type = true && (isSetType()); - builder.append(present_type); + list.add(present_type); if (present_type) - builder.append(type.getValue()); + list.add(type.getValue()); boolean present_runas = true && (isSetRunas()); - builder.append(present_runas); + list.add(present_runas); if (present_runas) - builder.append(runas); + list.add(runas); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(CompactionRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - CompactionRequest typedOther = (CompactionRequest)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(typedOther.isSetPartitionname()); + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, typedOther.partitionname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunas()).compareTo(typedOther.isSetRunas()); + lastComparison = Boolean.valueOf(isSetRunas()).compareTo(other.isSetRunas()); if (lastComparison != 0) { return lastComparison; } if (isSetRunas()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runas, typedOther.runas); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runas, other.runas); if (lastComparison != 0) { return lastComparison; } @@ -698,7 +702,7 @@ public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequ break; case 4: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = CompactionType.findByValue(iprot.readI32()); + struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -797,7 +801,7 @@ public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequ struct.setDbnameIsSet(true); struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); - struct.type = CompactionType.findByValue(iprot.readI32()); + struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) {
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java index e4ecbcc..09474ee 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java index bdcf21d..2f57fa9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class ConfigValSecurityException extends TException implements org.apache.thrift.TBase<ConfigValSecurityException, ConfigValSecurityException._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class ConfigValSecurityException extends TException implements org.apache.thrift.TBase<ConfigValSecurityException, ConfigValSecurityException._Fields>, java.io.Serializable, Cloneable, Comparable<ConfigValSecurityException> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ConfigValSecurityException"); 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); @@ -225,30 +229,30 @@ public class ConfigValSecurityException extends TException implements org.apache @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(ConfigValSecurityException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - ConfigValSecurityException typedOther = (ConfigValSecurityException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java index 8b8e5c4..a873e55 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class CurrentNotificationEventId implements org.apache.thrift.TBase<CurrentNotificationEventId, CurrentNotificationEventId._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class CurrentNotificationEventId implements org.apache.thrift.TBase<CurrentNotificationEventId, CurrentNotificationEventId._Fields>, java.io.Serializable, Cloneable, Comparable<CurrentNotificationEventId> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CurrentNotificationEventId"); private static final org.apache.thrift.protocol.TField EVENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("eventId", org.apache.thrift.protocol.TType.I64, (short)1); @@ -227,30 +231,30 @@ public class CurrentNotificationEventId implements org.apache.thrift.TBase<Curre @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_eventId = true; - builder.append(present_eventId); + list.add(present_eventId); if (present_eventId) - builder.append(eventId); + list.add(eventId); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(CurrentNotificationEventId other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - CurrentNotificationEventId typedOther = (CurrentNotificationEventId)other; - lastComparison = Boolean.valueOf(isSetEventId()).compareTo(typedOther.isSetEventId()); + lastComparison = Boolean.valueOf(isSetEventId()).compareTo(other.isSetEventId()); if (lastComparison != 0) { return lastComparison; } if (isSetEventId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, typedOther.eventId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, other.eventId); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java index c3c531d..f1a6bed 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class Database implements org.apache.thrift.TBase<Database, Database._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class Database implements org.apache.thrift.TBase<Database, Database._Fields>, java.io.Serializable, Cloneable, Comparable<Database> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Database"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -137,7 +141,7 @@ public class Database implements org.apache.thrift.TBase<Database, Database._Fie } // isset id assignments - private _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.OWNER_NAME,_Fields.OWNER_TYPE}; + private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.OWNER_NAME,_Fields.OWNER_TYPE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -191,18 +195,7 @@ public class Database implements org.apache.thrift.TBase<Database, Database._Fie this.locationUri = other.locationUri; } if (other.isSetParameters()) { - Map<String,String> __this__parameters = new HashMap<String,String>(); - for (Map.Entry<String, String> other_element : other.parameters.entrySet()) { - - String other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - String __this__parameters_copy_key = other_element_key; - - String __this__parameters_copy_value = other_element_value; - - __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); - } + Map<String,String> __this__parameters = new HashMap<String,String>(other.parameters); this.parameters = __this__parameters; } if (other.isSetPrivileges()) { @@ -605,120 +598,120 @@ public class Database implements org.apache.thrift.TBase<Database, Database._Fie @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); - builder.append(present_name); + list.add(present_name); if (present_name) - builder.append(name); + list.add(name); boolean present_description = true && (isSetDescription()); - builder.append(present_description); + list.add(present_description); if (present_description) - builder.append(description); + list.add(description); boolean present_locationUri = true && (isSetLocationUri()); - builder.append(present_locationUri); + list.add(present_locationUri); if (present_locationUri) - builder.append(locationUri); + list.add(locationUri); boolean present_parameters = true && (isSetParameters()); - builder.append(present_parameters); + list.add(present_parameters); if (present_parameters) - builder.append(parameters); + list.add(parameters); boolean present_privileges = true && (isSetPrivileges()); - builder.append(present_privileges); + list.add(present_privileges); if (present_privileges) - builder.append(privileges); + list.add(privileges); boolean present_ownerName = true && (isSetOwnerName()); - builder.append(present_ownerName); + list.add(present_ownerName); if (present_ownerName) - builder.append(ownerName); + list.add(ownerName); boolean present_ownerType = true && (isSetOwnerType()); - builder.append(present_ownerType); + list.add(present_ownerType); if (present_ownerType) - builder.append(ownerType.getValue()); + list.add(ownerType.getValue()); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(Database other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - Database typedOther = (Database)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription()); + lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); if (lastComparison != 0) { return lastComparison; } if (isSetDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLocationUri()).compareTo(typedOther.isSetLocationUri()); + lastComparison = Boolean.valueOf(isSetLocationUri()).compareTo(other.isSetLocationUri()); if (lastComparison != 0) { return lastComparison; } if (isSetLocationUri()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, typedOther.locationUri); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, other.locationUri); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(typedOther.isSetOwnerName()); + lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(other.isSetOwnerName()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, other.ownerName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(typedOther.isSetOwnerType()); + lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(other.isSetOwnerType()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, typedOther.ownerType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, other.ownerType); if (lastComparison != 0) { return lastComparison; } @@ -879,13 +872,13 @@ public class Database implements org.apache.thrift.TBase<Database, Database._Fie { org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin(); struct.parameters = new HashMap<String,String>(2*_map94.size); - for (int _i95 = 0; _i95 < _map94.size; ++_i95) + String _key95; + String _val96; + for (int _i97 = 0; _i97 < _map94.size; ++_i97) { - String _key96; // required - String _val97; // required - _key96 = iprot.readString(); - _val97 = iprot.readString(); - struct.parameters.put(_key96, _val97); + _key95 = iprot.readString(); + _val96 = iprot.readString(); + struct.parameters.put(_key95, _val96); } iprot.readMapEnd(); } @@ -913,7 +906,7 @@ public class Database implements org.apache.thrift.TBase<Database, Database._Fie break; case 7: // OWNER_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.ownerType = PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1071,13 +1064,13 @@ public class Database implements org.apache.thrift.TBase<Database, Database._Fie { org.apache.thrift.protocol.TMap _map100 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap<String,String>(2*_map100.size); - for (int _i101 = 0; _i101 < _map100.size; ++_i101) + String _key101; + String _val102; + for (int _i103 = 0; _i103 < _map100.size; ++_i103) { - String _key102; // required - String _val103; // required - _key102 = iprot.readString(); - _val103 = iprot.readString(); - struct.parameters.put(_key102, _val103); + _key101 = iprot.readString(); + _val102 = iprot.readString(); + struct.parameters.put(_key101, _val102); } } struct.setParametersIsSet(true); @@ -1092,7 +1085,7 @@ public class Database implements org.apache.thrift.TBase<Database, Database._Fie struct.setOwnerNameIsSet(true); } if (incoming.get(6)) { - struct.ownerType = PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java index 3e02db5..b04898a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class Date implements org.apache.thrift.TBase<Date, Date._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class Date implements org.apache.thrift.TBase<Date, Date._Fields>, java.io.Serializable, Cloneable, Comparable<Date> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Date"); private static final org.apache.thrift.protocol.TField DAYS_SINCE_EPOCH_FIELD_DESC = new org.apache.thrift.protocol.TField("daysSinceEpoch", org.apache.thrift.protocol.TType.I64, (short)1); @@ -227,30 +231,30 @@ public class Date implements org.apache.thrift.TBase<Date, Date._Fields>, java.i @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_daysSinceEpoch = true; - builder.append(present_daysSinceEpoch); + list.add(present_daysSinceEpoch); if (present_daysSinceEpoch) - builder.append(daysSinceEpoch); + list.add(daysSinceEpoch); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(Date other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - Date typedOther = (Date)other; - lastComparison = Boolean.valueOf(isSetDaysSinceEpoch()).compareTo(typedOther.isSetDaysSinceEpoch()); + lastComparison = Boolean.valueOf(isSetDaysSinceEpoch()).compareTo(other.isSetDaysSinceEpoch()); if (lastComparison != 0) { return lastComparison; } if (isSetDaysSinceEpoch()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.daysSinceEpoch, typedOther.daysSinceEpoch); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.daysSinceEpoch, other.daysSinceEpoch); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java index e9a577d..73ed883 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DateColumnStatsData implements org.apache.thrift.TBase<DateColumnStatsData, DateColumnStatsData._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class DateColumnStatsData implements org.apache.thrift.TBase<DateColumnStatsData, DateColumnStatsData._Fields>, java.io.Serializable, Cloneable, Comparable<DateColumnStatsData> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DateColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -121,7 +125,7 @@ public class DateColumnStatsData implements org.apache.thrift.TBase<DateColumnSt private static final int __NUMNULLS_ISSET_ID = 0; private static final int __NUMDVS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -398,75 +402,75 @@ public class DateColumnStatsData implements org.apache.thrift.TBase<DateColumnSt @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_lowValue = true && (isSetLowValue()); - builder.append(present_lowValue); + list.add(present_lowValue); if (present_lowValue) - builder.append(lowValue); + list.add(lowValue); boolean present_highValue = true && (isSetHighValue()); - builder.append(present_highValue); + list.add(present_highValue); if (present_highValue) - builder.append(highValue); + list.add(highValue); boolean present_numNulls = true; - builder.append(present_numNulls); + list.add(present_numNulls); if (present_numNulls) - builder.append(numNulls); + list.add(numNulls); boolean present_numDVs = true; - builder.append(present_numDVs); + list.add(present_numDVs); if (present_numDVs) - builder.append(numDVs); + list.add(numDVs); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(DateColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - DateColumnStatsData typedOther = (DateColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java index ed8bb18..57bcf84 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class Decimal implements org.apache.thrift.TBase<Decimal, Decimal._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class Decimal implements org.apache.thrift.TBase<Decimal, Decimal._Fields>, java.io.Serializable, Cloneable, Comparable<Decimal> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Decimal"); private static final org.apache.thrift.protocol.TField UNSCALED_FIELD_DESC = new org.apache.thrift.protocol.TField("unscaled", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -129,7 +133,7 @@ public class Decimal implements org.apache.thrift.TBase<Decimal, Decimal._Fields short scale) { this(); - this.unscaled = unscaled; + this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(unscaled); this.scale = scale; setScaleIsSet(true); } @@ -141,7 +145,6 @@ public class Decimal implements org.apache.thrift.TBase<Decimal, Decimal._Fields __isset_bitfield = other.__isset_bitfield; if (other.isSetUnscaled()) { this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(other.unscaled); -; } this.scale = other.scale; } @@ -163,15 +166,15 @@ public class Decimal implements org.apache.thrift.TBase<Decimal, Decimal._Fields } public ByteBuffer bufferForUnscaled() { - return unscaled; + return org.apache.thrift.TBaseHelper.copyBinary(unscaled); } public void setUnscaled(byte[] unscaled) { - setUnscaled(unscaled == null ? (ByteBuffer)null : ByteBuffer.wrap(unscaled)); + this.unscaled = unscaled == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(unscaled, unscaled.length)); } public void setUnscaled(ByteBuffer unscaled) { - this.unscaled = unscaled; + this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(unscaled); } public void unsetUnscaled() { @@ -295,45 +298,45 @@ public class Decimal implements org.apache.thrift.TBase<Decimal, Decimal._Fields @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_unscaled = true && (isSetUnscaled()); - builder.append(present_unscaled); + list.add(present_unscaled); if (present_unscaled) - builder.append(unscaled); + list.add(unscaled); boolean present_scale = true; - builder.append(present_scale); + list.add(present_scale); if (present_scale) - builder.append(scale); + list.add(scale); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(Decimal other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - Decimal typedOther = (Decimal)other; - lastComparison = Boolean.valueOf(isSetUnscaled()).compareTo(typedOther.isSetUnscaled()); + lastComparison = Boolean.valueOf(isSetUnscaled()).compareTo(other.isSetUnscaled()); if (lastComparison != 0) { return lastComparison; } if (isSetUnscaled()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unscaled, typedOther.unscaled); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unscaled, other.unscaled); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetScale()).compareTo(typedOther.isSetScale()); + lastComparison = Boolean.valueOf(isSetScale()).compareTo(other.isSetScale()); if (lastComparison != 0) { return lastComparison; } if (isSetScale()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scale, typedOther.scale); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scale, other.scale); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java index 951d479..1ed46ea 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DecimalColumnStatsData implements org.apache.thrift.TBase<DecimalColumnStatsData, DecimalColumnStatsData._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class DecimalColumnStatsData implements org.apache.thrift.TBase<DecimalColumnStatsData, DecimalColumnStatsData._Fields>, java.io.Serializable, Cloneable, Comparable<DecimalColumnStatsData> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DecimalColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -121,7 +125,7 @@ public class DecimalColumnStatsData implements org.apache.thrift.TBase<DecimalCo private static final int __NUMNULLS_ISSET_ID = 0; private static final int __NUMDVS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -398,75 +402,75 @@ public class DecimalColumnStatsData implements org.apache.thrift.TBase<DecimalCo @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_lowValue = true && (isSetLowValue()); - builder.append(present_lowValue); + list.add(present_lowValue); if (present_lowValue) - builder.append(lowValue); + list.add(lowValue); boolean present_highValue = true && (isSetHighValue()); - builder.append(present_highValue); + list.add(present_highValue); if (present_highValue) - builder.append(highValue); + list.add(highValue); boolean present_numNulls = true; - builder.append(present_numNulls); + list.add(present_numNulls); if (present_numNulls) - builder.append(numNulls); + list.add(numNulls); boolean present_numDVs = true; - builder.append(present_numDVs); + list.add(present_numDVs); if (present_numDVs) - builder.append(numDVs); + list.add(numDVs); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(DecimalColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - DecimalColumnStatsData typedOther = (DecimalColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java index 4203fd8..8b4843f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DoubleColumnStatsData implements org.apache.thrift.TBase<DoubleColumnStatsData, DoubleColumnStatsData._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class DoubleColumnStatsData implements org.apache.thrift.TBase<DoubleColumnStatsData, DoubleColumnStatsData._Fields>, java.io.Serializable, Cloneable, Comparable<DoubleColumnStatsData> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DoubleColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.DOUBLE, (short)1); @@ -123,7 +127,7 @@ public class DoubleColumnStatsData implements org.apache.thrift.TBase<DoubleColu private static final int __NUMNULLS_ISSET_ID = 2; private static final int __NUMDVS_ISSET_ID = 3; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -396,75 +400,75 @@ public class DoubleColumnStatsData implements org.apache.thrift.TBase<DoubleColu @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_lowValue = true && (isSetLowValue()); - builder.append(present_lowValue); + list.add(present_lowValue); if (present_lowValue) - builder.append(lowValue); + list.add(lowValue); boolean present_highValue = true && (isSetHighValue()); - builder.append(present_highValue); + list.add(present_highValue); if (present_highValue) - builder.append(highValue); + list.add(highValue); boolean present_numNulls = true; - builder.append(present_numNulls); + list.add(present_numNulls); if (present_numNulls) - builder.append(numNulls); + list.add(numNulls); boolean present_numDVs = true; - builder.append(present_numDVs); + list.add(present_numDVs); if (present_numDVs) - builder.append(numDVs); + list.add(numDVs); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(DoubleColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - DoubleColumnStatsData typedOther = (DoubleColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java index 59a66f3..e261d71 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DropPartitionsExpr implements org.apache.thrift.TBase<DropPartitionsExpr, DropPartitionsExpr._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class DropPartitionsExpr implements org.apache.thrift.TBase<DropPartitionsExpr, DropPartitionsExpr._Fields>, java.io.Serializable, Cloneable, Comparable<DropPartitionsExpr> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsExpr"); private static final org.apache.thrift.protocol.TField EXPR_FIELD_DESC = new org.apache.thrift.protocol.TField("expr", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -110,7 +114,7 @@ public class DropPartitionsExpr implements org.apache.thrift.TBase<DropPartition // isset id assignments private static final int __PARTARCHIVELEVEL_ISSET_ID = 0; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.PART_ARCHIVE_LEVEL}; + private static final _Fields optionals[] = {_Fields.PART_ARCHIVE_LEVEL}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -129,7 +133,7 @@ public class DropPartitionsExpr implements org.apache.thrift.TBase<DropPartition ByteBuffer expr) { this(); - this.expr = expr; + this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); } /** @@ -139,7 +143,6 @@ public class DropPartitionsExpr implements org.apache.thrift.TBase<DropPartition __isset_bitfield = other.__isset_bitfield; if (other.isSetExpr()) { this.expr = org.apache.thrift.TBaseHelper.copyBinary(other.expr); -; } this.partArchiveLevel = other.partArchiveLevel; } @@ -161,15 +164,15 @@ public class DropPartitionsExpr implements org.apache.thrift.TBase<DropPartition } public ByteBuffer bufferForExpr() { - return expr; + return org.apache.thrift.TBaseHelper.copyBinary(expr); } public void setExpr(byte[] expr) { - setExpr(expr == null ? (ByteBuffer)null : ByteBuffer.wrap(expr)); + this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length)); } public void setExpr(ByteBuffer expr) { - this.expr = expr; + this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); } public void unsetExpr() { @@ -293,45 +296,45 @@ public class DropPartitionsExpr implements org.apache.thrift.TBase<DropPartition @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_expr = true && (isSetExpr()); - builder.append(present_expr); + list.add(present_expr); if (present_expr) - builder.append(expr); + list.add(expr); boolean present_partArchiveLevel = true && (isSetPartArchiveLevel()); - builder.append(present_partArchiveLevel); + list.add(present_partArchiveLevel); if (present_partArchiveLevel) - builder.append(partArchiveLevel); + list.add(partArchiveLevel); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(DropPartitionsExpr other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - DropPartitionsExpr typedOther = (DropPartitionsExpr)other; - lastComparison = Boolean.valueOf(isSetExpr()).compareTo(typedOther.isSetExpr()); + lastComparison = Boolean.valueOf(isSetExpr()).compareTo(other.isSetExpr()); if (lastComparison != 0) { return lastComparison; } if (isSetExpr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, typedOther.expr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, other.expr); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartArchiveLevel()).compareTo(typedOther.isSetPartArchiveLevel()); + lastComparison = Boolean.valueOf(isSetPartArchiveLevel()).compareTo(other.isSetPartArchiveLevel()); if (lastComparison != 0) { return lastComparison; } if (isSetPartArchiveLevel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partArchiveLevel, typedOther.partArchiveLevel); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partArchiveLevel, other.partArchiveLevel); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java index 1923f38..08c0aa0 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DropPartitionsRequest implements org.apache.thrift.TBase<DropPartitionsRequest, DropPartitionsRequest._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class DropPartitionsRequest implements org.apache.thrift.TBase<DropPartitionsRequest, DropPartitionsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<DropPartitionsRequest> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -143,7 +147,7 @@ public class DropPartitionsRequest implements org.apache.thrift.TBase<DropPartit private static final int __IGNOREPROTECTION_ISSET_ID = 2; private static final int __NEEDRESULT_ISSET_ID = 3; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.DELETE_DATA,_Fields.IF_EXISTS,_Fields.IGNORE_PROTECTION,_Fields.ENVIRONMENT_CONTEXT,_Fields.NEED_RESULT}; + private static final _Fields optionals[] = {_Fields.DELETE_DATA,_Fields.IF_EXISTS,_Fields.IGNORE_PROTECTION,_Fields.ENVIRONMENT_CONTEXT,_Fields.NEED_RESULT}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -624,135 +628,135 @@ public class DropPartitionsRequest implements org.apache.thrift.TBase<DropPartit @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_dbName = true && (isSetDbName()); - builder.append(present_dbName); + list.add(present_dbName); if (present_dbName) - builder.append(dbName); + list.add(dbName); boolean present_tblName = true && (isSetTblName()); - builder.append(present_tblName); + list.add(present_tblName); if (present_tblName) - builder.append(tblName); + list.add(tblName); boolean present_parts = true && (isSetParts()); - builder.append(present_parts); + list.add(present_parts); if (present_parts) - builder.append(parts); + list.add(parts); boolean present_deleteData = true && (isSetDeleteData()); - builder.append(present_deleteData); + list.add(present_deleteData); if (present_deleteData) - builder.append(deleteData); + list.add(deleteData); boolean present_ifExists = true && (isSetIfExists()); - builder.append(present_ifExists); + list.add(present_ifExists); if (present_ifExists) - builder.append(ifExists); + list.add(ifExists); boolean present_ignoreProtection = true && (isSetIgnoreProtection()); - builder.append(present_ignoreProtection); + list.add(present_ignoreProtection); if (present_ignoreProtection) - builder.append(ignoreProtection); + list.add(ignoreProtection); boolean present_environmentContext = true && (isSetEnvironmentContext()); - builder.append(present_environmentContext); + list.add(present_environmentContext); if (present_environmentContext) - builder.append(environmentContext); + list.add(environmentContext); boolean present_needResult = true && (isSetNeedResult()); - builder.append(present_needResult); + list.add(present_needResult); if (present_needResult) - builder.append(needResult); + list.add(needResult); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(DropPartitionsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - DropPartitionsRequest typedOther = (DropPartitionsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParts()).compareTo(typedOther.isSetParts()); + lastComparison = Boolean.valueOf(isSetParts()).compareTo(other.isSetParts()); if (lastComparison != 0) { return lastComparison; } if (isSetParts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, typedOther.parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, other.parts); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIfExists()).compareTo(typedOther.isSetIfExists()); + lastComparison = Boolean.valueOf(isSetIfExists()).compareTo(other.isSetIfExists()); if (lastComparison != 0) { return lastComparison; } if (isSetIfExists()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifExists, typedOther.ifExists); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifExists, other.ifExists); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIgnoreProtection()).compareTo(typedOther.isSetIgnoreProtection()); + lastComparison = Boolean.valueOf(isSetIgnoreProtection()).compareTo(other.isSetIgnoreProtection()); if (lastComparison != 0) { return lastComparison; } if (isSetIgnoreProtection()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ignoreProtection, typedOther.ignoreProtection); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ignoreProtection, other.ignoreProtection); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironmentContext()).compareTo(typedOther.isSetEnvironmentContext()); + lastComparison = Boolean.valueOf(isSetEnvironmentContext()).compareTo(other.isSetEnvironmentContext()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironmentContext()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environmentContext, typedOther.environmentContext); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environmentContext, other.environmentContext); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(typedOther.isSetNeedResult()); + lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(other.isSetNeedResult()); if (lastComparison != 0) { return lastComparison; } if (isSetNeedResult()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, typedOther.needResult); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, other.needResult); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index b7f69f2..bb3b34e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; -import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -28,10 +29,13 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartitionsResult, DropPartitionsResult._Fields>, java.io.Serializable, Cloneable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14") +public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartitionsResult, DropPartitionsResult._Fields>, java.io.Serializable, Cloneable, Comparable<DropPartitionsResult> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsResult"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -103,7 +107,7 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti } // isset id assignments - private _Fields optionals[] = {_Fields.PARTITIONS}; + private static final _Fields optionals[] = {_Fields.PARTITIONS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -122,7 +126,7 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti */ public DropPartitionsResult(DropPartitionsResult other) { if (other.isSetPartitions()) { - List<Partition> __this__partitions = new ArrayList<Partition>(); + List<Partition> __this__partitions = new ArrayList<Partition>(other.partitions.size()); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -239,30 +243,30 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List<Object> list = new ArrayList<Object>(); boolean present_partitions = true && (isSetPartitions()); - builder.append(present_partitions); + list.add(present_partitions); if (present_partitions) - builder.append(partitions); + list.add(partitions); - return builder.toHashCode(); + return list.hashCode(); } + @Override public int compareTo(DropPartitionsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - DropPartitionsResult typedOther = (DropPartitionsResult)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); if (lastComparison != 0) { return lastComparison; } @@ -344,12 +348,12 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti { org.apache.thrift.protocol.TList _list396 = iprot.readListBegin(); struct.partitions = new ArrayList<Partition>(_list396.size); - for (int _i397 = 0; _i397 < _list396.size; ++_i397) + Partition _elem397; + for (int _i398 = 0; _i398 < _list396.size; ++_i398) { - Partition _elem398; // optional - _elem398 = new Partition(); - _elem398.read(iprot); - struct.partitions.add(_elem398); + _elem397 = new Partition(); + _elem397.read(iprot); + struct.partitions.add(_elem397); } iprot.readListEnd(); } @@ -426,12 +430,12 @@ public class DropPartitionsResult implements org.apache.thrift.TBase<DropPartiti { org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList<Partition>(_list401.size); - for (int _i402 = 0; _i402 < _list401.size; ++_i402) + Partition _elem402; + for (int _i403 = 0; _i403 < _list401.size; ++_i403) { - Partition _elem403; // optional - _elem403 = new Partition(); - _elem403.read(iprot); - struct.partitions.add(_elem403); + _elem402 = new Partition(); + _elem402.read(iprot); + struct.partitions.add(_elem402); } } struct.setPartitionsIsSet(true);
